]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
arm: mvebu: dt: Add PHY LED support for 370-rd WAN port
authorAndrew Lunn <andrew@lunn.ch>
Mon, 17 Apr 2023 15:17:37 +0000 (17:17 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Apr 2023 11:59:16 +0000 (12:59 +0100)
The WAN port of the 370-RD has a Marvell PHY, with one LED on
the front panel.y List this LED in the device tree.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/arm/boot/dts/armada-370-rd.dts

index be005c9f42ef350cac0076f4ae5e5c8d5fa79eda..2586f32a3e214fb36e675387b110783c301fdc3b 100644 (file)
@@ -20,6 +20,7 @@
 /dts-v1/;
 #include <dt-bindings/input/input.h>
 #include <dt-bindings/interrupt-controller/irq.h>
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/gpio/gpio.h>
 #include "armada-370.dtsi"
 
        pinctrl-names = "default";
        phy0: ethernet-phy@0 {
                reg = <0>;
+               leds {
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+
+                       led@0 {
+                               reg = <0>;
+                               color = <LED_COLOR_ID_WHITE>;
+                               function = LED_FUNCTION_WAN;
+                               default-state = "keep";
+                       };
+               };
        };
 
        switch: switch@10 {