Document binding for LEDs connected to and controlled by ethernet PHY chips. Signed-off-by: Marek Behún <marek.behun@xxxxxx> Cc: Rob Herring <robh+dt@xxxxxxxxxx> --- .../devicetree/bindings/net/ethernet-phy.yaml | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/Documentation/devicetree/bindings/net/ethernet-phy.yaml b/Documentation/devicetree/bindings/net/ethernet-phy.yaml index a9e547ac79051..11839265cc2f9 100644 --- a/Documentation/devicetree/bindings/net/ethernet-phy.yaml +++ b/Documentation/devicetree/bindings/net/ethernet-phy.yaml @@ -174,6 +174,37 @@ properties: PHY's that have configurable TX internal delays. If this property is present then the PHY applies the TX delay. +patternProperties: + "^led@[0-9a-f]+$": + type: object + description: + This node represents a LED device connected to the PHY chip. + $ref: /schemas/leds/common.yaml# + + properties: + reg: + maxItems: 1 + + enable-active-high: + description: + Polarity of LED is active high. If missing, assumed default is active low. + type: boolean + + led-open-drain: + description: + LED pin is open drain type. If missing, assumed false. + type: boolean + + linux,default-hw-mode: + description: + This parameter, if present, specifies the default HW triggering mode of the LED + when LED trigger is set to `phydev-hw-mode`. + Available values are specific per PHY chip and per LED. + $ref: /schemas/types.yaml#definitions/string + + required: + - reg + required: - reg -- 2.26.2