Document the optional "leds" node supported by the DAP8211R PHY. The PHY exposes three configurable LED outputs, each of which can be assigned a color, a function and a default trigger. Signed-off-by: Artem Shimko --- .../bindings/net/dptel,dap8211r.yaml | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/Documentation/devicetree/bindings/net/dptel,dap8211r.yaml b/Documentation/devicetree/bindings/net/dptel,dap8211r.yaml index 4cd0f9730d95..772329feda05 100644 --- a/Documentation/devicetree/bindings/net/dptel,dap8211r.yaml +++ b/Documentation/devicetree/bindings/net/dptel,dap8211r.yaml @@ -20,6 +20,7 @@ description: | - IEEE 802.3az-2010 Energy Efficient Ethernet - IEEE 1588 SyncE support - Internal packet generator and checker for link diagnostics + - Three configurable LEDs (link, speed, duplex, TX/RX activity) allOf: - $ref: ethernet-phy.yaml# @@ -45,10 +46,40 @@ properties: maximum: 2250 default: 1950 + leds: + type: object + + description: + Optional node describing the three configurable LEDs of the PHY. + Each LED can be assigned a color, function and default trigger + (e.g. "netdev" for link/activity indication). + + properties: + '#address-cells': + const: 1 + '#size-cells': + const: 0 + + patternProperties: + '^led@[0-2]$': + type: object + + $ref: /schemas/leds/common.yaml# + unevaluatedProperties: false + + properties: + reg: + items: + maximum: 2 + + additionalProperties: false + unevaluatedProperties: false examples: - | + #include + mdio { #address-cells = <1>; #size-cells = <0>; @@ -58,5 +89,24 @@ examples: reg = <1>; rx-internal-delay-ps = <1950>; tx-internal-delay-ps = <1950>; + + leds { + #address-cells = <1>; + #size-cells = <0>; + + led@0 { + reg = <0>; + color = ; + function = LED_FUNCTION_LAN; + linux,default-trigger = "netdev"; + }; + + led@1 { + reg = <1>; + color = ; + function = LED_FUNCTION_LAN; + linux,default-trigger = "netdev"; + }; + }; }; }; -- 2.43.0