* [PATCH 1/2] dt-bindings: clock: qcom,sc7280-lpasscorecc: order properties to match convention
@ 2024-08-17 9:46 Krzysztof Kozlowski
2024-08-17 9:46 ` [PATCH 2/2] dt-bindings: clock: qcom,sc7280-lpasscorecc: add top-level constraints Krzysztof Kozlowski
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Krzysztof Kozlowski @ 2024-08-17 9:46 UTC (permalink / raw)
To: Bjorn Andersson, Michael Turquette, Stephen Boyd, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Taniya Das, linux-arm-msm,
linux-clk, devicetree, linux-kernel
Cc: Krzysztof Kozlowski
By convention we expect first "compatible", then "reg" and then rest.
Order properties to match convention and what is in "required:" block.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
Cc: Taniya Das <quic_tdas@quicinc.com>
---
.../clock/qcom,sc7280-lpasscorecc.yaml | 21 ++++++++++---------
1 file changed, 11 insertions(+), 10 deletions(-)
diff --git a/Documentation/devicetree/bindings/clock/qcom,sc7280-lpasscorecc.yaml b/Documentation/devicetree/bindings/clock/qcom,sc7280-lpasscorecc.yaml
index deee5423d66e..5e6737c39897 100644
--- a/Documentation/devicetree/bindings/clock/qcom,sc7280-lpasscorecc.yaml
+++ b/Documentation/devicetree/bindings/clock/qcom,sc7280-lpasscorecc.yaml
@@ -18,12 +18,6 @@ description: |
include/dt-bindings/clock/qcom,lpassaudiocc-sc7280.h
properties:
- clocks: true
-
- clock-names: true
-
- reg: true
-
compatible:
enum:
- qcom,sc7280-lpassaoncc
@@ -31,12 +25,18 @@ properties:
- qcom,sc7280-lpasscorecc
- qcom,sc7280-lpasshm
- power-domains:
- maxItems: 1
+ reg: true
+
+ clocks: true
+
+ clock-names: true
'#clock-cells':
const: 1
+ power-domains:
+ maxItems: 1
+
'#power-domain-cells':
const: 1
@@ -57,8 +57,6 @@ required:
- '#clock-cells'
- '#power-domain-cells'
-additionalProperties: false
-
allOf:
- if:
properties:
@@ -125,6 +123,9 @@ allOf:
reg:
maxItems: 1
+
+additionalProperties: false
+
examples:
- |
#include <dt-bindings/clock/qcom,rpmh.h>
--
2.43.0
^ permalink raw reply [flat|nested] 5+ messages in thread* [PATCH 2/2] dt-bindings: clock: qcom,sc7280-lpasscorecc: add top-level constraints
2024-08-17 9:46 [PATCH 1/2] dt-bindings: clock: qcom,sc7280-lpasscorecc: order properties to match convention Krzysztof Kozlowski
@ 2024-08-17 9:46 ` Krzysztof Kozlowski
2024-08-18 16:19 ` Rob Herring (Arm)
2024-08-18 16:19 ` [PATCH 1/2] dt-bindings: clock: qcom,sc7280-lpasscorecc: order properties to match convention Rob Herring (Arm)
2024-12-17 16:38 ` (subset) " Bjorn Andersson
2 siblings, 1 reply; 5+ messages in thread
From: Krzysztof Kozlowski @ 2024-08-17 9:46 UTC (permalink / raw)
To: Bjorn Andersson, Michael Turquette, Stephen Boyd, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Taniya Das, linux-arm-msm,
linux-clk, devicetree, linux-kernel
Cc: 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 reg, clocks and clock-names.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
---
Cc: Taniya Das <quic_tdas@quicinc.com>
---
.../bindings/clock/qcom,sc7280-lpasscorecc.yaml | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/Documentation/devicetree/bindings/clock/qcom,sc7280-lpasscorecc.yaml b/Documentation/devicetree/bindings/clock/qcom,sc7280-lpasscorecc.yaml
index 5e6737c39897..488d63959424 100644
--- a/Documentation/devicetree/bindings/clock/qcom,sc7280-lpasscorecc.yaml
+++ b/Documentation/devicetree/bindings/clock/qcom,sc7280-lpasscorecc.yaml
@@ -25,11 +25,17 @@ properties:
- qcom,sc7280-lpasscorecc
- qcom,sc7280-lpasshm
- reg: true
+ reg:
+ minItems: 1
+ maxItems: 2
- clocks: true
+ clocks:
+ minItems: 1
+ maxItems: 3
- clock-names: true
+ clock-names:
+ minItems: 1
+ maxItems: 3
'#clock-cells':
const: 1
--
2.43.0
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH 2/2] dt-bindings: clock: qcom,sc7280-lpasscorecc: add top-level constraints
2024-08-17 9:46 ` [PATCH 2/2] dt-bindings: clock: qcom,sc7280-lpasscorecc: add top-level constraints Krzysztof Kozlowski
@ 2024-08-18 16:19 ` Rob Herring (Arm)
0 siblings, 0 replies; 5+ messages in thread
From: Rob Herring (Arm) @ 2024-08-18 16:19 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Bjorn Andersson, Krzysztof Kozlowski, devicetree, Taniya Das,
linux-clk, Stephen Boyd, Conor Dooley, Michael Turquette,
linux-arm-msm, linux-kernel
On Sat, 17 Aug 2024 11:46:05 +0200, Krzysztof Kozlowski wrote:
> 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 reg, clocks and clock-names.
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
>
> ---
>
> Cc: Taniya Das <quic_tdas@quicinc.com>
> ---
> .../bindings/clock/qcom,sc7280-lpasscorecc.yaml | 12 +++++++++---
> 1 file changed, 9 insertions(+), 3 deletions(-)
>
Acked-by: Rob Herring (Arm) <robh@kernel.org>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/2] dt-bindings: clock: qcom,sc7280-lpasscorecc: order properties to match convention
2024-08-17 9:46 [PATCH 1/2] dt-bindings: clock: qcom,sc7280-lpasscorecc: order properties to match convention Krzysztof Kozlowski
2024-08-17 9:46 ` [PATCH 2/2] dt-bindings: clock: qcom,sc7280-lpasscorecc: add top-level constraints Krzysztof Kozlowski
@ 2024-08-18 16:19 ` Rob Herring (Arm)
2024-12-17 16:38 ` (subset) " Bjorn Andersson
2 siblings, 0 replies; 5+ messages in thread
From: Rob Herring (Arm) @ 2024-08-18 16:19 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Michael Turquette, Krzysztof Kozlowski, devicetree, linux-clk,
Bjorn Andersson, linux-arm-msm, linux-kernel, Taniya Das,
Stephen Boyd, Conor Dooley
On Sat, 17 Aug 2024 11:46:04 +0200, Krzysztof Kozlowski wrote:
> By convention we expect first "compatible", then "reg" and then rest.
> Order properties to match convention and what is in "required:" block.
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
>
> ---
>
> Cc: Taniya Das <quic_tdas@quicinc.com>
> ---
> .../clock/qcom,sc7280-lpasscorecc.yaml | 21 ++++++++++---------
> 1 file changed, 11 insertions(+), 10 deletions(-)
>
Acked-by: Rob Herring (Arm) <robh@kernel.org>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: (subset) [PATCH 1/2] dt-bindings: clock: qcom,sc7280-lpasscorecc: order properties to match convention
2024-08-17 9:46 [PATCH 1/2] dt-bindings: clock: qcom,sc7280-lpasscorecc: order properties to match convention Krzysztof Kozlowski
2024-08-17 9:46 ` [PATCH 2/2] dt-bindings: clock: qcom,sc7280-lpasscorecc: add top-level constraints Krzysztof Kozlowski
2024-08-18 16:19 ` [PATCH 1/2] dt-bindings: clock: qcom,sc7280-lpasscorecc: order properties to match convention Rob Herring (Arm)
@ 2024-12-17 16:38 ` Bjorn Andersson
2 siblings, 0 replies; 5+ messages in thread
From: Bjorn Andersson @ 2024-12-17 16:38 UTC (permalink / raw)
To: Michael Turquette, Stephen Boyd, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, Taniya Das, linux-arm-msm,
linux-clk, devicetree, linux-kernel, Krzysztof Kozlowski
On Sat, 17 Aug 2024 11:46:04 +0200, Krzysztof Kozlowski wrote:
> By convention we expect first "compatible", then "reg" and then rest.
> Order properties to match convention and what is in "required:" block.
>
>
Applied, thanks!
[1/2] dt-bindings: clock: qcom,sc7280-lpasscorecc: order properties to match convention
commit: 2a5711c7dc6f20e132f99b13731952bdb3530acf
[2/2] dt-bindings: clock: qcom,sc7280-lpasscorecc: add top-level constraints
commit: 9d40c5a698de6ba629f2abc8dd43b8a2db469307
Best regards,
--
Bjorn Andersson <andersson@kernel.org>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2024-12-17 16:39 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-08-17 9:46 [PATCH 1/2] dt-bindings: clock: qcom,sc7280-lpasscorecc: order properties to match convention Krzysztof Kozlowski
2024-08-17 9:46 ` [PATCH 2/2] dt-bindings: clock: qcom,sc7280-lpasscorecc: add top-level constraints Krzysztof Kozlowski
2024-08-18 16:19 ` Rob Herring (Arm)
2024-08-18 16:19 ` [PATCH 1/2] dt-bindings: clock: qcom,sc7280-lpasscorecc: order properties to match convention Rob Herring (Arm)
2024-12-17 16:38 ` (subset) " Bjorn Andersson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®