summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@armlinux.org.uk>2019-12-17 15:21:50 +0000
committerRussell King <rmk+kernel@armlinux.org.uk>2020-01-22 17:45:57 +0000
commit28bb079d551518411616eb83a4383b9fdd28ffdc (patch)
treec5d2b2b6a2f4e9a7b0e3839866ea6c2c85c766f4
parentad19e28cfbc031f29db84cc9579393c4a6e699ee (diff)
dt-bindings: net: add dt bindings for marvell10g driver
Add a DT bindings document for the Marvell 10G driver, which will augment the generic ethernet PHY binding by having LED mode configuration. Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
-rw-r--r--Documentation/devicetree/bindings/net/marvell,10g.yaml31
1 files changed, 31 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/net/marvell,10g.yaml b/Documentation/devicetree/bindings/net/marvell,10g.yaml
new file mode 100644
index 000000000000..da597fc5314d
--- /dev/null
+++ b/Documentation/devicetree/bindings/net/marvell,10g.yaml
@@ -0,0 +1,31 @@
+# SPDX-License-Identifier: GPL-2.0+
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/net/marvell,10g.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Marvell Alaska X family Ethernet PHYs
+
+maintainers:
+ - Russell King <rmk+kernel@armlinux.org.uk>
+
+allOf:
+ - $ref: ethernet-phy.yaml#
+
+properties:
+ marvell,led-mode:
+ description: |
+ An array of one to four 16-bit integers to write to the PHY LED
+ configuration registers.
+ allOf:
+ - $ref: /schemas/types.yaml#/definitions/uint16-array
+ - minItems: 1
+ maxItems: 4
+
+examples:
+ - |
+ ethernet-phy@0 {
+ reg = <0>;
+ compatible = "ethernet-phy-ieee802.3-c45";
+ marvell,led-mode = /bits/ 16 <0x0129 0x095d 0x0855>;
+ };