Skip to content

Instantly share code, notes, and snippets.

Created December 9, 2013 21:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/7881200 to your computer and use it in GitHub Desktop.
Save anonymous/7881200 to your computer and use it in GitHub Desktop.
device tree -- that does not work for dallas 2 wire
/dts-v1/;
/plugin/;
/ {
compatible = "ti,beaglebone", "ti,beaglebone-black";
part-number = "BB-W1";
version = "00A0";
exclusive-use = "P9.15";
fragment@0 {
target = <&am33xx_pinmux>;
__overlay__ {
bb_w1_pins: pinmux_bb_w1_pins {
pinctrl-single,pins = <
0x040 0x37 /*pin P9_15 input with pullup mode 7 - w1-gpio */
>;
};
};
};
fragment@1 {
target = <&ocp>;
__overlay__ {
onewire@0 {
status = "okay";
compatible = "w1-gpio";
pinctrl-names = "default";
pinctrl-0 = <&bb_w1_pins>;
gpios = <&gpio2 16 0>; /*grrr I think this means gpio1_16 (using 1 to 4 instread of 0-3)*/
};
};
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment