Created
December 9, 2013 21:25
-
-
Save anonymous/7881200 to your computer and use it in GitHub Desktop.
device tree -- that does not work for dallas 2 wire
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/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