Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: net: phy: Document support for LEDs node

Document support for LEDs node in phy and add an example for it.
PHY LED will have to match led pattern and should be treated as a
generic led.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Christian Marangi and committed by
David S. Miller
18a24b69 09930f1f

+43
+43
Documentation/devicetree/bindings/net/ethernet-phy.yaml
··· 197 197 PHY's that have configurable TX internal delays. If this property is 198 198 present then the PHY applies the TX delay. 199 199 200 + leds: 201 + type: object 202 + 203 + properties: 204 + '#address-cells': 205 + const: 1 206 + 207 + '#size-cells': 208 + const: 0 209 + 210 + patternProperties: 211 + '^led@[a-f0-9]+$': 212 + $ref: /schemas/leds/common.yaml# 213 + 214 + properties: 215 + reg: 216 + maxItems: 1 217 + description: 218 + This define the LED index in the PHY or the MAC. It's really 219 + driver dependent and required for ports that define multiple 220 + LED for the same port. 221 + 222 + required: 223 + - reg 224 + 225 + unevaluatedProperties: false 226 + 227 + additionalProperties: false 228 + 200 229 required: 201 230 - reg 202 231 ··· 233 204 234 205 examples: 235 206 - | 207 + #include <dt-bindings/leds/common.h> 208 + 236 209 ethernet { 237 210 #address-cells = <1>; 238 211 #size-cells = <0>; ··· 250 219 reset-gpios = <&gpio1 4 1>; 251 220 reset-assert-us = <1000>; 252 221 reset-deassert-us = <2000>; 222 + 223 + leds { 224 + #address-cells = <1>; 225 + #size-cells = <0>; 226 + 227 + led@0 { 228 + reg = <0>; 229 + color = <LED_COLOR_ID_WHITE>; 230 + function = LED_FUNCTION_LAN; 231 + default-state = "keep"; 232 + }; 233 + }; 253 234 }; 254 235 };