ARM: dts: stm32: Add GPIO LEDs for STM32MP1 DHCOM PDK2
authorMarek Vasut <marex@denx.de>
Wed, 13 May 2020 18:10:18 +0000 (20:10 +0200)
committerAlexandre Torgue <alexandre.torgue@st.com>
Thu, 14 May 2020 14:22:40 +0000 (16:22 +0200)
Add bindings for the four GPIO LEDs on DH PDK2 board. Note that LED5
GPIO-E may conflict with touchscreen interrupt, hence LED5 must be
disabled when using the DH 560-200 display unit with touchscreen.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Alexandre Torgue <alexandre.torgue@st.com>
Cc: Maxime Coquelin <mcoquelin.stm32@gmail.com>
Cc: Patrice Chotard <patrice.chotard@st.com>
Cc: Patrick Delaunay <patrick.delaunay@st.com>
Cc: linux-stm32@st-md-mailman.stormreply.com
To: linux-arm-kernel@lists.infradead.org
Signed-off-by: Alexandre Torgue <alexandre.torgue@st.com>
arch/arm/boot/dts/stm32mp157c-dhcom-pdk2.dts

index e5036c9..b380268 100644 (file)
                };
        };
 
+       led {
+               compatible = "gpio-leds";
+
+               led-0 {
+                       label = "green:led5";
+                       gpios = <&gpiog 2 GPIO_ACTIVE_HIGH>;
+                       default-state = "off";
+               };
+
+               led-1 {
+                       label = "green:led6";
+                       gpios = <&gpiod 11 GPIO_ACTIVE_HIGH>;
+                       default-state = "off";
+               };
+
+               led-2 {
+                       label = "green:led7";
+                       gpios = <&gpioi 2 GPIO_ACTIVE_HIGH>;
+                       default-state = "off";
+               };
+
+               led-3 {
+                       label = "green:led8";
+                       gpios = <&gpioi 3 GPIO_ACTIVE_HIGH>;
+                       default-state = "off";
+               };
+       };
+
        panel {
                compatible = "edt,etm0700g0edh6";
                backlight = <&display_bl>;