Skip to contentSkip to conversation

dt-bindings: net: Document Marvell PHY "marvell,reg-init"

PATCH Applied Rob Herring (Arm) 3 participants 3 messages Sep 25 – Sep 29

Subsystems (4)
lore
Share & tools
lore

Rob Herring (Arm)

author maintainer
#0 lore raw

PATCH v2 1/1 dt-bindings: net: Document Marvell PHY "marvell,reg-init"

The Marvell PHY driver consumes marvell,reg-init as one or more <page register mask value> tuples. Define the property so dtbs_check validates the existing board descriptions.

Existing users have no compatible or just "ethernet-phy-ieee802.3-c22" so this has to go into the generic ethernet-phy.yaml schema. Marking it deprecated both for that reason and because opaque register initialization values are discouraged in DT.

Assisted-by LLM

---
v2:
- Add constraints on item values
- Correct mask description

---
 .../devicetree/bindings/net/ethernet-phy.yaml    | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
Documentation/devicetree/bindings/net/ethernet-phy.yaml +16 -0
index c3ebb3af8b52..df50c4c33d76 100644
@@ -269,6 +269,22 @@ properties:
       have to be placed on board. When omitted, the PHYs default will be left as
       is.
 
+  marvell,reg-init:
+    $ref: /schemas/types.yaml#/definitions/uint32-matrix
+    deprecated: true
+    description:
+      Register initialization tuples for Marvell PHYs.
+    items:
+      items:
+        - description: register page
+          maximum: 0xffff
+        - description: register number
+          maximum: 31
+        - description: mask of bits to preserve
+          maximum: 0xffff
+        - description: value to apply
+          maximum: 0xffff
+
   leds:
     type: object
 
Signature · 1 line
2.53.0
maintainer Reviewed-by on v2 1/1
#1 lore raw
Quoted 5 lines
Documentation/devicetree/bindings/net/ethernet-phy.yaml +5 -0
+  marvell,reg-init:
+    $ref: /schemas/types.yaml#/definitions/uint32-matrix
+    deprecated: true
+    description:
+      Register initialization tuples for Marvell PHYs.

Documentation/devicetree/bindings/net/ethernet-phy.yaml properties: · line 286

Quoted 10 lines
Documentation/devicetree/bindings/net/ethernet-phy.yaml +10 -0
+    items:
+      items:
+        - description: register page
+          maximum: 0xffff
+        - description: register number
+          maximum: 31
+        - description: mask of bits to preserve
+          maximum: 0xffff
+        - description: value to apply
+          maximum: 0xffff

This fits with my understanding of the hardware.

Andrew

#2 lore raw
In reply to Rob Herring (Arm)
This patch was applied to netdev/net-next.git (main) by Paolo Abeni <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (main) by Paolo Abeni <[email protected]>:

Quoted 10 lines · On Fri, 25 Sep 2026 09:04:10 -0500 you wrote:

The Marvell PHY driver consumes marvell,reg-init as one or more <page register mask value> tuples. Define the property so dtbs_check validates the existing board descriptions.

Existing users have no compatible or just "ethernet-phy-ieee802.3-c22" so this has to go into the generic ethernet-phy.yaml schema. Marking it deprecated both for that reason and because opaque register initialization values are discouraged in DT.

[...]

Here is the summary with links:
- [net-next,v2] dt-bindings: net: Document Marvell PHY "marvell,reg-init"

    https://git.kernel.org/netdev/net-next/c/63f028c4dd73

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html