1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
#include <dt-bindings/gpio/gpio.h> &msmgpio { pinctrl-names = "default"; pinctrl-0 = <&soc_gpios_default>; soc_gpios_default: default { usr_led_1_ctrl_default: usr_led_1_ctrl_default { pins = "gpio21"; function = "gpio"; output-low; }; usr_led_2_ctrl_default: usr_led_2_ctrl_default { pins = "gpio120"; function = "gpio"; output-low; }; }; };