-
-
Save kenrestivo/06c6905f610a9dc8af532dd9ba84fd4b to your computer and use it in GitHub Desktop.
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
#include "gpio.h" | |
#include "subarctic/pinctrl.h" | |
#include "bone/pins.h" | |
/ { | |
button-led { | |
compatible = "gpio-of-helper"; | |
pinctrl-names = "default"; | |
pinctrl-0 = <&button_led_pins>; | |
buttonled { | |
gpio = <&gpio1 17 ACTIVE_HIGH>; // p9.23 | |
init-low; | |
}; | |
}; | |
}; | |
&am33xx_pinmux { | |
button_led_pins: button-led { | |
pinctrl-single,pins = < | |
PIN_GPIO_PULLDOWN( P9_23 ) // io 1.7 | |
>; | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment