aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2014-11-13 04:31:49 -0500
committerMaxime Ripard <maxime.ripard@free-electrons.com>2014-11-23 10:53:42 -0500
commitba61e8938ffcc79ce4aba834a1218d0e958b49b7 (patch)
tree52e36350534a89c6a8b1325dabfafbd46f1582e4
parentfad1d5531dd62c61a7a250674931fcc758f0c569 (diff)
ARM: dts: sun6i: Add support for the status led
The Mele M9 / A1000G quad has a blue status led, add support for this. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
-rw-r--r--arch/arm/boot/dts/sun6i-a31-m9.dts18
1 files changed, 18 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/sun6i-a31-m9.dts b/arch/arm/boot/dts/sun6i-a31-m9.dts
index e81eed328c82..66bb7c918e20 100644
--- a/arch/arm/boot/dts/sun6i-a31-m9.dts
+++ b/arch/arm/boot/dts/sun6i-a31-m9.dts
@@ -82,6 +82,13 @@
82 }; 82 };
83 83
84 pio: pinctrl@01c20800 { 84 pio: pinctrl@01c20800 {
85 led_pins_m9: led_pins@0 {
86 allwinner,pins = "PH13";
87 allwinner,function = "gpio_out";
88 allwinner,drive = <0>;
89 allwinner,pull = <0>;
90 };
91
85 mmc0_cd_pin_m9: mmc0_cd_pin@0 { 92 mmc0_cd_pin_m9: mmc0_cd_pin@0 {
86 allwinner,pins = "PH22"; 93 allwinner,pins = "PH22";
87 allwinner,function = "gpio_in"; 94 allwinner,function = "gpio_in";
@@ -104,6 +111,17 @@
104 }; 111 };
105 }; 112 };
106 113
114 leds {
115 compatible = "gpio-leds";
116 pinctrl-names = "default";
117 pinctrl-0 = <&led_pins_m9>;
118
119 blue {
120 label = "m9:blue:usr";
121 gpios = <&pio 7 13 0>;
122 };
123 };
124
107 reg_usb1_vbus: usb1-vbus { 125 reg_usb1_vbus: usb1-vbus {
108 pinctrl-names = "default"; 126 pinctrl-names = "default";
109 pinctrl-0 = <&usb1_vbus_pin_m9>; 127 pinctrl-0 = <&usb1_vbus_pin_m9>;