Skip to content

Instantly share code, notes, and snippets.

@piranha32
Created June 12, 2013 14:52
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 piranha32/4abc8312339ad47d32d0 to your computer and use it in GitHub Desktop.
Save piranha32/4abc8312339ad47d32d0 to your computer and use it in GitHub Desktop.
Beaglebone Black device tree overlay that was supposed to enable gpios 0, 2 and 3. Does not work.
/dts-v1/;
/plugin/;
/ {
compatible = "ti,beaglebone", "ti,beaglebone-black";
version = "00A0";
/* identification */
part-number = "gpio-enabler-0";
fragment@0 {
target = <&am33xx_pinmux>;
__overlay__ {
gpio0_pins: gpio0_p {
pinctrl-single,pins = <
0x020 0x17 /* p8_19 = gpio0_22 */
>;
};
};
};
fragment@1 {
target = <&am33xx_pinmux>;
__overlay__ {
gpio1_pins: gpio1_p {
pinctrl-single,pins = <
0x034 0x17 /* P8_11 = gpio1_13 */
0x030 0x17 /* P8_12 = gpio1_12 */
>;
};
};
};
fragment@2 {
target = <&am33xx_pinmux>;
__overlay__ {
gpio2_pins: gpio2_p {
pinctrl-single,pins = <
0x0a4 0x17 /* p8_46 = gpio2_7 */
>;
};
};
};
fragment@3 {
target = <&am33xx_pinmux>;
__overlay__ {
gpio3_pins: gpio3_p {
pinctrl-single,pins = <
0x0ac 0x17 /* p9_25 = gpio3_21 */
>;
};
};
};
fragment@4 {
target = <&gpio1>;
__overlay__ {
en_gpio0 {
pinctrl-names = "default";
pinctrl-0 = <&gpio0_pins>;
status = "okay";
};
};
};
fragment@5 {
target = <&gpio2>;
__overlay__ {
en_gpio1 {
pinctrl-names = "default";
pinctrl-0 = <&gpio1_pins>;
status = "okay";
};
};
};
fragment@6 {
target = <&gpio3>;
__overlay__ {
en_gpio2 {
pinctrl-names = "default";
pinctrl-0 = <&gpio2_pins>;
status = "okay";
};
};
};
fragment@7 {
target = <&gpio4>;
__overlay__ {
en_gpio3 {
pinctrl-names = "default";
pinctrl-0 = <&gpio3_pins>;
status = "okay";
};
};
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment