Skip to contentSkip to conversation

dt-bindings: clock: baikal,bt1-ccu-div: add top-level constraints

PATCH Applied Krzysztof Kozlowski 6 participants 16 messages Aug 18, 2024 – Aug 29, 2024

Subsystems (7)
lore
Share & tools
lore
#0 lore raw

PATCH 1/5 dt-bindings: clock: baikal,bt1-ccu-div: add top-level constraints

Properties with variable number of items per each device are expected to have widest constraints in top-level "properties:" block and further customized (narrowed) in "if:then:". Add missing top-level constraints for clocks and clock-names.

---
 .../devicetree/bindings/clock/baikal,bt1-ccu-div.yaml     | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/clock/baikal,bt1-ccu-div.yaml +6 -2
index bd4cefbb1244..30252c95700c 100644
@@ -134,9 +134,13 @@ properties:
   "#reset-cells":
     const: 1
 
-  clocks: true
+  clocks:
+    minItems: 3
+    maxItems: 4
 
-  clock-names: true
+  clock-names:
+    minItems: 3
+    maxItems: 4
 
 additionalProperties: false
 
Signature · 1 line
2.43.0
#1 lore raw

PATCH 2/5 dt-bindings: clock: cirrus,lochnagar: add top-level constraints

Properties with variable number of items per each device are expected to have widest constraints in top-level "properties:" block and further customized (narrowed) in "if:then:". Add missing top-level constraints for clocks. Drop also redundant assigned-clocks properties, because core dtschema allows them if clocks are provided.

---
 .../devicetree/bindings/clock/cirrus,lochnagar.yaml         | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
Documentation/devicetree/bindings/clock/cirrus,lochnagar.yaml +3 -3
index 59de125647ec..ccff74eda9fb 100644
@@ -67,9 +67,9 @@ properties:
     minItems: 1
     maxItems: 19
 
-  clocks: true
-  assigned-clocks: true
-  assigned-clock-parents: true
+  clocks:
+    minItems: 1
+    maxItems: 19
 
 additionalProperties: false
 
Signature · 1 line
2.43.0
Acked-by on v1 2/5
#2 lore raw

Re: [PATCH 2/5] dt-bindings: clock: cirrus,lochnagar: add top-level constraints

Quoted 7 lines · Krzysztof Kozlowski

Properties with variable number of items per each device are expected to have widest constraints in top-level "properties:" block and further customized (narrowed) in "if:then:". Add missing top-level constraints for clocks. Drop also redundant assigned-clocks properties, because core dtschema allows them if clocks are provided.

Quoted 24 lines
---
 .../devicetree/bindings/clock/cirrus,lochnagar.yaml         | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
Documentation/devicetree/bindings/clock/cirrus,lochnagar.yaml +3 -3
index 59de125647ec..ccff74eda9fb 100644
@@ -67,9 +67,9 @@ properties:
     minItems: 1
     maxItems: 19
 
-  clocks: true
-  assigned-clocks: true
-  assigned-clock-parents: true
+  clocks:
+    minItems: 1
+    maxItems: 19
 
 additionalProperties: false
 
Signature · 1 line
2.43.0
maintainer Applied
#3 lore raw

Re: [PATCH 2/5] dt-bindings: clock: cirrus,lochnagar: add top-level constraints

In reply to Krzysztof Kozlowski

Quoting Krzysztof Kozlowski (2024-08-18 10:30:11)

Quoted 8 lines

Properties with variable number of items per each device are expected to have widest constraints in top-level "properties:" block and further customized (narrowed) in "if:then:". Add missing top-level constraints for clocks. Drop also redundant assigned-clocks properties, because core dtschema allows them if clocks are provided.

---

Applied to clk-next

#4 lore raw

PATCH 3/5 dt-bindings: clock: renesas,cpg-clocks: add top-level constraints

In reply to Krzysztof Kozlowski

Properties with variable number of items per each device are expected to have widest constraints in top-level "properties:" block and further customized (narrowed) in "if:then:". Add missing top-level constraints for clocks and clock-output-names.

---
 .../devicetree/bindings/clock/renesas,cpg-clocks.yaml     | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/clock/renesas,cpg-clocks.yaml +6 -2
index 9185d101737e..a0e09b7002f0 100644
@@ -32,12 +32,16 @@ properties:
   reg:
     maxItems: 1
 
-  clocks: true
+  clocks:
+    minItems: 1
+    maxItems: 3
 
   '#clock-cells':
     const: 1
 
-  clock-output-names: true
+  clock-output-names:
+    minItems: 3
+    maxItems: 17
 
   renesas,mode:
     description: Board-specific settings of the MD_CK* bits on R-Mobile A1
Signature · 1 line
2.43.0
Acked-by on v1 3/5
#5 lore raw

Re: [PATCH 3/5] dt-bindings: clock: renesas,cpg-clocks: add top-level constraints

Quoted 6 lines · Krzysztof Kozlowski

Properties with variable number of items per each device are expected to have widest constraints in top-level "properties:" block and further customized (narrowed) in "if:then:". Add missing top-level constraints for clocks and clock-output-names.

Reviewed-by on v1 3/5
#6 lore raw

Re: [PATCH 3/5] dt-bindings: clock: renesas,cpg-clocks: add top-level constraints

In reply to Krzysztof Kozlowski
Quoted 6 lines · Krzysztof Kozlowski

Properties with variable number of items per each device are expected to have widest constraints in top-level "properties:" block and further customized (narrowed) in "if:then:". Add missing top-level constraints for clocks and clock-output-names.

i.e. will queue in renesas-clk for v6.12.

Gr{oetje,eeting}s,

Geert

Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
#7 lore raw

PATCH 4/5 dt-bindings: clock: rockchip,rk3588-cru: drop unneeded assigned-clocks

In reply to Krzysztof Kozlowski

assigned-clocks property is redundant, because core dtschema allows them if clocks are provided.

---
 .../devicetree/bindings/clock/rockchip,rk3588-cru.yaml        | 4 ----
 1 file changed, 4 deletions(-)
Documentation/devicetree/bindings/clock/rockchip,rk3588-cru.yaml +0 -4
index 74cd3f3f229a..4ff175c4992b 100644
@@ -42,10 +42,6 @@ properties:
       - const: xin24m
       - const: xin32k
 
-  assigned-clocks: true
-
-  assigned-clock-rates: true
-
   rockchip,grf:
     $ref: /schemas/types.yaml#/definitions/phandle
     description: >
Signature · 1 line
2.43.0
Acked-by on v1 4/5
#8 lore raw

Re: [PATCH 4/5] dt-bindings: clock: rockchip,rk3588-cru: drop unneeded assigned-clocks

Quoted 4 lines · Krzysztof Kozlowski

assigned-clocks property is redundant, because core dtschema allows them if clocks are provided.

Quoted 22 lines
---
 .../devicetree/bindings/clock/rockchip,rk3588-cru.yaml        | 4 ----
 1 file changed, 4 deletions(-)
Documentation/devicetree/bindings/clock/rockchip,rk3588-cru.yaml +0 -4
index 74cd3f3f229a..4ff175c4992b 100644
@@ -42,10 +42,6 @@ properties:
       - const: xin24m
       - const: xin32k
 
-  assigned-clocks: true
-
-  assigned-clock-rates: true
-
   rockchip,grf:
     $ref: /schemas/types.yaml#/definitions/phandle
     description: >
Signature · 1 line
2.43.0
#9 lore raw

PATCH 5/5 dt-bindings: clock: st,stm32mp1-rcc: add top-level constraints

In reply to Krzysztof Kozlowski

Properties with variable number of items per each device are expected to have widest constraints in top-level "properties:" block and further customized (narrowed) in "if:then:". Add missing top-level constraints for clocks and clock-names.

---
 .../devicetree/bindings/clock/st,stm32mp1-rcc.yaml     | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/clock/st,stm32mp1-rcc.yaml +8 -2
index 5194be0b410e..9b3aaae546cb 100644
@@ -60,8 +60,14 @@ properties:
           - st,stm32mp1-rcc
           - st,stm32mp13-rcc
       - const: syscon
-  clocks: true
-  clock-names: true
+
+  clocks:
+    minItems: 1
+    maxItems: 5
+
+  clock-names:
+    minItems: 1
+    maxItems: 5
 
   reg:
     maxItems: 1
Signature · 1 line
2.43.0
Acked-by on v1 5/5
#10 lore raw

Re: [PATCH 5/5] dt-bindings: clock: st,stm32mp1-rcc: add top-level constraints

Quoted 6 lines · Krzysztof Kozlowski

Properties with variable number of items per each device are expected to have widest constraints in top-level "properties:" block and further customized (narrowed) in "if:then:". Add missing top-level constraints for clocks and clock-names.

maintainer Applied
#11 lore raw

Re: [PATCH 5/5] dt-bindings: clock: st,stm32mp1-rcc: add top-level constraints

In reply to Krzysztof Kozlowski

Quoting Krzysztof Kozlowski (2024-08-18 10:30:14)

Quoted 7 lines

Properties with variable number of items per each device are expected to have widest constraints in top-level "properties:" block and further customized (narrowed) in "if:then:". Add missing top-level constraints for clocks and clock-names.

---

Applied to clk-next

Reviewed-by on v1 1/5
#12 lore raw
In reply to Krzysztof Kozlowski
Quoted 6 lines · Krzysztof Kozlowski

Properties with variable number of items per each device are expected to have widest constraints in top-level "properties:" block and further customized (narrowed) in "if:then:". Add missing top-level constraints for clocks and clock-names.

-Serge(y)

Quoted 27 lines
---
 .../devicetree/bindings/clock/baikal,bt1-ccu-div.yaml     | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/clock/baikal,bt1-ccu-div.yaml +6 -2
index bd4cefbb1244..30252c95700c 100644
@@ -134,9 +134,13 @@ properties:
   "#reset-cells":
     const: 1
 
-  clocks: true
+  clocks:
+    minItems: 3
+    maxItems: 4
 
-  clock-names: true
+  clock-names:
+    minItems: 3
+    maxItems: 4
 
 additionalProperties: false
 
Signature · 1 line
2.43.0
Acked-by on v1 1/5
#13 lore raw
In reply to Krzysztof Kozlowski
Quoted 6 lines · Krzysztof Kozlowski

Properties with variable number of items per each device are expected to have widest constraints in top-level "properties:" block and further customized (narrowed) in "if:then:". Add missing top-level constraints for clocks and clock-names.

I really wish you'd sent cover letters so I don't "have" to send 5 different acks where one would do.

Quoted 27 lines
---
 .../devicetree/bindings/clock/baikal,bt1-ccu-div.yaml     | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/clock/baikal,bt1-ccu-div.yaml +6 -2
index bd4cefbb1244..30252c95700c 100644
@@ -134,9 +134,13 @@ properties:
   "#reset-cells":
     const: 1
 
-  clocks: true
+  clocks:
+    minItems: 3
+    maxItems: 4
 
-  clock-names: true
+  clock-names:
+    minItems: 3
+    maxItems: 4
 
 additionalProperties: false
 
Signature · 1 line
2.43.0
maintainer Applied
#14 lore raw
In reply to Krzysztof Kozlowski

Quoting Krzysztof Kozlowski (2024-08-18 10:30:10)

Quoted 7 lines

Properties with variable number of items per each device are expected to have widest constraints in top-level "properties:" block and further customized (narrowed) in "if:then:". Add missing top-level constraints for clocks and clock-names.

---

Applied to clk-next

maintainer Applied
#15 lore raw

Re: (subset) [PATCH 1/5] dt-bindings: clock: baikal,bt1-ccu-div: add top-level constraints

In reply to Krzysztof Kozlowski
Quoted 6 lines · Krzysztof Kozlowski

Properties with variable number of items per each device are expected to have widest constraints in top-level "properties:" block and further customized (narrowed) in "if:then:". Add missing top-level constraints for clocks and clock-names.

Applied, thanks!

[4/5] dt-bindings: clock: rockchip,rk3588-cru: drop unneeded assigned-clocks

      commit: 3529dc29fe65672ad9aeab9499fee901d0010901

Best regards,

Signature · 1 line
Heiko Stuebner <[email protected]>