diff options
author | Klaus Goger <klaus.goger@theobroma-systems.com> | 2015-05-06 10:00:08 +0200 |
---|---|---|
committer | Klaus Goger <klaus.goger@theobroma-systems.com> | 2015-07-30 18:52:59 +0200 |
commit | 330c27cea999ed3f0ed84c688b7f5256a380a773 (patch) | |
tree | 2d8396ccaf67193d2be18cad86934f7d4689bb49 | |
parent | 41a4ce8dd4c73c590ce932a7ccb3df4d376bbdbb (diff) |
dts: sunxi: add leds to pangolin dts
* LED on the module (heartbeat)
* LED on the baseboard (MMC0)
Signed-off-by: Klaus Goger <klaus.goger@theobroma-systems.com>
-rw-r--r-- | arch/arm/boot/dts/sun6i-a31-pangolin.dts | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/arch/arm/boot/dts/sun6i-a31-pangolin.dts b/arch/arm/boot/dts/sun6i-a31-pangolin.dts index 56f14cecd578..3715b97264a4 100644 --- a/arch/arm/boot/dts/sun6i-a31-pangolin.dts +++ b/arch/arm/boot/dts/sun6i-a31-pangolin.dts @@ -60,8 +60,24 @@ chosen { bootargs = "earlyprintk console=ttyS1,115200"; }; -}; + leds { + compatible = "gpio-leds"; + pinctrl-names = "default"; + pinctrl-0 = <&leds_pins_pangolin>; + + on_module { + label = "module_led"; + gpios = <&pio 7 7 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "heartbeat"; + }; + mmc0 { + label = "mmc0"; + gpios = <&pio 2 16 GPIO_ACTIVE_HIGH>; + linux,default-trigger = "mmc0"; + }; + }; +}; &cpu0 { cpu-supply = <&vdd_cpu>; operating-points = < @@ -160,6 +176,12 @@ allwinner,drive = <SUN4I_PINCTRL_10_MA>; allwinner,pull = <SUN4I_PINCTRL_PULL_UP>; }; + leds_pins_pangolin: led_pins@0 { + allwinner,pins = "PH7", "PC16"; + allwinner,function = "gpio_out"; + allwinner,drive = <SUN4I_PINCTRL_20_MA>; + allwinner,pull = <SUN4I_PINCTRL_NO_PULL>; + }; }; &uart0 { |