[net-next PATCH v6 16/16] arm: mvebu: dt: Add PHY LED support for 370-rd WAN port

Pavel Machek pavel at ucw.cz
Tue Mar 28 01:31:16 PDT 2023


On Mon 2023-03-27 16:10:31, Christian Marangi wrote:
> From: Andrew Lunn <andrew at lunn.ch>
> 
> The WAN port of the 370-RD has a Marvell PHY, with one LED on
> the front panel. List this LED in the device tree.

> @@ -135,6 +136,19 @@ &mdio {
>  	pinctrl-names = "default";
>  	phy0: ethernet-phy at 0 {
>  		reg = <0>;
> +		leds {
> +			#address-cells = <1>;
> +			#size-cells = <0>;
> +
> +			led at 0 {
> +				reg = <0>;
> +				label = "WAN";
> +				color = <LED_COLOR_ID_WHITE>;
> +				function = LED_FUNCTION_LAN;
> +				function-enumerator = <1>;
> +				linux,default-trigger = "netdev";
> +			};

/sys/class/leds/WAN is not acceptable.

Best regards,
							Pavel
-- 
People of Russia, stop Putin before his war on Ukraine escalates.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20230328/56963623/attachment.sig>


More information about the linux-arm-kernel mailing list