linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] dt-bindings: phy: marvell,comphy-cp110: Fix clock and child node constraints
@ 2025-08-06 20:01 Rob Herring (Arm)
  2025-08-08 10:43 ` Miquel Raynal
  2025-08-12 16:40 ` Vinod Koul
  0 siblings, 2 replies; 3+ messages in thread
From: Rob Herring (Arm) @ 2025-08-06 20:01 UTC (permalink / raw)
  To: Miquel Raynal, Vinod Koul, Kishon Vijay Abraham I,
	Krzysztof Kozlowski, Conor Dooley
  Cc: linux-phy, devicetree, linux-kernel

In converting marvell,comphy-cp110 to schema, the constraints for clocks on
marvell,comphy-a3700 are wrong, the maximum number of child nodes are wrong,
and the phy nodes may have a 'connector' child node:

phy@18300 (marvell,comphy-a3700): clock-names: False schema does not allow ['xtal']
phy@120000 (marvell,comphy-cp110): 'phy@3', 'phy@4', 'phy@5' do not match any of the regexes: '^phy@[0-2]$', '^pinctrl-[0-9]+$'
phy@120000 (marvell,comphy-cp110): phy@2: 'connector' does not match any of the regexes: '^pinctrl-[0-9]+$'

Fixes: 50355ac70d4f ("dt-bindings: phy: Convert marvell,comphy-cp110 to DT schema")
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
---
 .../bindings/phy/marvell,comphy-cp110.yaml    | 29 ++++++++++++++-----
 1 file changed, 21 insertions(+), 8 deletions(-)

diff --git a/Documentation/devicetree/bindings/phy/marvell,comphy-cp110.yaml b/Documentation/devicetree/bindings/phy/marvell,comphy-cp110.yaml
index d9501df42886..c35d31642805 100644
--- a/Documentation/devicetree/bindings/phy/marvell,comphy-cp110.yaml
+++ b/Documentation/devicetree/bindings/phy/marvell,comphy-cp110.yaml
@@ -47,21 +47,19 @@ properties:
     const: 0
 
   clocks:
+    minItems: 1
     maxItems: 3
-    description: Reference clocks for CP110; MG clock, MG Core clock, AXI clock
 
   clock-names:
-    items:
-      - const: mg_clk
-      - const: mg_core_clk
-      - const: axi_clk
+    minItems: 1
+    maxItems: 3
 
   marvell,system-controller:
     description: Phandle to the Marvell system controller (CP110 only)
     $ref: /schemas/types.yaml#/definitions/phandle
 
 patternProperties:
-  '^phy@[0-2]$':
+  '^phy@[0-5]$':
     description: A COMPHY lane child node
     type: object
     additionalProperties: false
@@ -69,10 +67,14 @@ patternProperties:
     properties:
       reg:
         description: COMPHY lane number
+        maximum: 5
 
       '#phy-cells':
         const: 1
 
+      connector:
+        type: object
+
     required:
       - reg
       - '#phy-cells'
@@ -91,13 +93,24 @@ allOf:
 
     then:
       properties:
-        clocks: false
-        clock-names: false
+        clocks:
+          maxItems: 1
+        clock-names:
+          const: xtal
 
       required:
         - reg-names
 
     else:
+      properties:
+        clocks:
+          minItems: 3
+        clock-names:
+          items:
+            - const: mg_clk
+            - const: mg_core_clk
+            - const: axi_clk
+
       required:
         - marvell,system-controller
 
-- 
2.47.2


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] dt-bindings: phy: marvell,comphy-cp110: Fix clock and child node constraints
  2025-08-06 20:01 [PATCH] dt-bindings: phy: marvell,comphy-cp110: Fix clock and child node constraints Rob Herring (Arm)
@ 2025-08-08 10:43 ` Miquel Raynal
  2025-08-12 16:40 ` Vinod Koul
  1 sibling, 0 replies; 3+ messages in thread
From: Miquel Raynal @ 2025-08-08 10:43 UTC (permalink / raw)
  To: Rob Herring (Arm)
  Cc: Vinod Koul, Kishon Vijay Abraham I, Krzysztof Kozlowski,
	Conor Dooley, linux-phy, devicetree, linux-kernel

On 06/08/2025 at 15:01:37 -05, "Rob Herring (Arm)" <robh@kernel.org> wrote:

> In converting marvell,comphy-cp110 to schema, the constraints for clocks on
> marvell,comphy-a3700 are wrong, the maximum number of child nodes are wrong,
> and the phy nodes may have a 'connector' child node:
>
> phy@18300 (marvell,comphy-a3700): clock-names: False schema does not allow ['xtal']
> phy@120000 (marvell,comphy-cp110): 'phy@3', 'phy@4', 'phy@5' do not match any of the regexes: '^phy@[0-2]$', '^pinctrl-[0-9]+$'
> phy@120000 (marvell,comphy-cp110): phy@2: 'connector' does not match any of the regexes: '^pinctrl-[0-9]+$'
>
> Fixes: 50355ac70d4f ("dt-bindings: phy: Convert marvell,comphy-cp110 to DT schema")
> Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
> ---

Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>

Thanks,
Miquèl

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] dt-bindings: phy: marvell,comphy-cp110: Fix clock and child node constraints
  2025-08-06 20:01 [PATCH] dt-bindings: phy: marvell,comphy-cp110: Fix clock and child node constraints Rob Herring (Arm)
  2025-08-08 10:43 ` Miquel Raynal
@ 2025-08-12 16:40 ` Vinod Koul
  1 sibling, 0 replies; 3+ messages in thread
From: Vinod Koul @ 2025-08-12 16:40 UTC (permalink / raw)
  To: Miquel Raynal, Kishon Vijay Abraham I, Krzysztof Kozlowski,
	Conor Dooley, Rob Herring (Arm)
  Cc: linux-phy, devicetree, linux-kernel


On Wed, 06 Aug 2025 15:01:37 -0500, Rob Herring (Arm) wrote:
> In converting marvell,comphy-cp110 to schema, the constraints for clocks on
> marvell,comphy-a3700 are wrong, the maximum number of child nodes are wrong,
> and the phy nodes may have a 'connector' child node:
> 
> phy@18300 (marvell,comphy-a3700): clock-names: False schema does not allow ['xtal']
> phy@120000 (marvell,comphy-cp110): 'phy@3', 'phy@4', 'phy@5' do not match any of the regexes: '^phy@[0-2]$', '^pinctrl-[0-9]+$'
> phy@120000 (marvell,comphy-cp110): phy@2: 'connector' does not match any of the regexes: '^pinctrl-[0-9]+$'
> 
> [...]

Applied, thanks!

[1/1] dt-bindings: phy: marvell,comphy-cp110: Fix clock and child node constraints
      commit: 5cfdfc623835d40664f642b75a56d9934f24c5ff

Best regards,
-- 
~Vinod



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-08-12 16:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-06 20:01 [PATCH] dt-bindings: phy: marvell,comphy-cp110: Fix clock and child node constraints Rob Herring (Arm)
2025-08-08 10:43 ` Miquel Raynal
2025-08-12 16:40 ` Vinod Koul

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).