Skip to content

Instantly share code, notes, and snippets.

@kenrestivo
Last active June 1, 2018 06:06
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 kenrestivo/06c6905f610a9dc8af532dd9ba84fd4b to your computer and use it in GitHub Desktop.
Save kenrestivo/06c6905f610a9dc8af532dd9ba84fd4b to your computer and use it in GitHub Desktop.
#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