diff options
author | Philipp Tomsich <philipp.tomsich@theobroma-systems.com> | 2016-11-23 14:49:07 +0100 |
---|---|---|
committer | Philipp Tomsich <philipp.tomsich@theobroma-systems.com> | 2017-03-09 01:40:09 +0100 |
commit | 6567c13bc44a2acbc94855ea79ee2d2eaf6196b7 (patch) | |
tree | 50c31f10977e32f809c4cd3b12aebbe8229551e9 /arch | |
parent | afe9e12820a6016ba530f8b8254bf5c9011c701b (diff) |
pangolin: Convert to the LED class for the on-module (power) LED
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/dts/sun6i-a31-pangolin-elcom.dts | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/arch/arm/dts/sun6i-a31-pangolin-elcom.dts b/arch/arm/dts/sun6i-a31-pangolin-elcom.dts index 8531c1d3c8..4c1ff67f6e 100644 --- a/arch/arm/dts/sun6i-a31-pangolin-elcom.dts +++ b/arch/arm/dts/sun6i-a31-pangolin-elcom.dts @@ -63,6 +63,22 @@ chosen { stdout-path = "serial0:115200n8"; }; + + config { + u-boot,boot-led = "pangolin:orange:power"; + }; + + leds { + compatible = "gpio-leds"; + pinctrl-names = "default"; + pinctrl-0 = <&led_pins_pangolin>; + + power { + label = "pangolin:orange:power"; + gpios = <&pio 7 7 GPIO_ACTIVE_HIGH>; + }; + + }; }; &ehci0 { @@ -189,7 +205,8 @@ allwinner,drive = <SUN4I_PINCTRL_10_MA>; allwinner,pull = <SUN4I_PINCTRL_PULL_UP>; }; - leds_pins_pangolin: led_pins@0 { + + led_pins_pangolin: led_pins@0 { allwinner,pins = "PH7", "PC16"; allwinner,function = "gpio_out"; allwinner,drive = <SUN4I_PINCTRL_20_MA>; |