dt-bindings: net: Document Marvell PHY "marvell,reg-init"
Subsystems (4)
Rob Herring (Arm)
maintainerPATCH 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.
---
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
@@ -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
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
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_checkvalidates 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.yamlschema. 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