Thread (8 messages) 8 messages, 3 authors, 2020-10-04
STALE2094d
Revisions (5)
  1. rfc [diff vs current]
  2. v2 [diff vs current]
  3. v3 [diff vs current]
  4. v4 [diff vs current]
  5. v1 current

[PATCH net-next v1 1/3] dt-bindings: net: ethernet-phy: add description for PHY LEDs

From: Marek Behún <hidden>
Date: 2020-09-08 00:03:07
Also in: linux-leds, lkml
Subsystem: ethernet phy library, networking drivers, open firmware and flattened device tree bindings, the rest · Maintainers: Andrew Lunn, Heiner Kallweit, "David S. Miller", Eric Dumazet, Jakub Kicinski, Paolo Abeni, Rob Herring, Krzysztof Kozlowski, Conor Dooley, Linus Torvalds

Document binding for LEDs connected to and controlled by ethernet PHY
chips.

Signed-off-by: Marek Behún <redacted>
Cc: Rob Herring <robh+dt@kernel.org>
---
 .../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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help