arm64: dts: imx8mp-venice-gw702x: add support for PHY LED's
authorTim Harvey <tharvey@gateworks.com>
Tue, 18 Jun 2024 20:05:52 +0000 (13:05 -0700)
committerShawn Guo <shawnguo@kernel.org>
Mon, 1 Jul 2024 14:21:07 +0000 (22:21 +0800)
The GW702x SoM has an onboard DP83867 RGMII GbE PHY that drives two
LED's (LED1 and LED2, skipping LED0). Add the appropriate dt bindings to
allow these PHY LED's to be controlled via a netdev trigger.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
arch/arm64/boot/dts/freescale/imx8mp-venice-gw702x.dtsi

index 560c68e4da6dc836944506bf173d6403381132e7..6c75a5ecf56bb1156bf679b429508e433ee2d375 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/linux-event-codes.h>
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/net/ti-dp83867.h>
 
 / {
                        ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>;
                        tx-fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
                        rx-fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>;
+
+                       leds {
+                               #address-cells = <1>;
+                               #size-cells = <0>;
+
+                               led@1 {
+                                       reg = <1>;
+                                       color = <LED_COLOR_ID_AMBER>;
+                                       function = LED_FUNCTION_LAN;
+                                       default-state = "keep";
+                               };
+
+                               led@2 {
+                                       reg = <2>;
+                                       color = <LED_COLOR_ID_GREEN>;
+                                       function = LED_FUNCTION_LAN;
+                                       default-state = "keep";
+                               };
+                       };
                };
        };
 };