Hi Andrew, > Please make use of the LED binding: > > &mdio { > pinctrl-0 = <&mdio_pins>; > 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"; > }; > }; > }; > > Just list the two LEDs you have connected. Been there, didn't work. This is what I had: mdio { #address-cells = <1>; #size-cells = <0>; compatible = "snps,dwmac-mdio"; phy_mii0: ethernet-phy@8 { reg = <8>; leds { #address-cells = <1>; #size-cells = <0>; led@0 { reg = <0>; color = <LED_COLOR_ID_GREEN>; function = LED_FUNCTION_LAN; default-state = "keep"; }; led@1 { reg = <1>; color = <LED_COLOR_ID_AMBER>; function = LED_FUNCTION_ACTIVITY; default-state = "keep"; }; }; }; }; I played around with LED_FUNCTION_* values. I looked at other devicetrees but I only could find one-LED setups. I tried going to one LED, too, with LED_COLOR_ID_MULTI. No success. Then, I looked at the driver code and did not see a path that would enable 'MII_88E1510_PHY_LED0_LINK_LED1_ACTIVE' via any DT configuration. Thus, the above patch. If you have any further pointers how to do this properly, I'd love to hear about them. Thank you, Wolfram
Attachment:
signature.asc
Description: PGP signature