* [PATCH] dt-bindings: mtd: qcom,nandc: Define properties at top-level
@ 2024-06-25 21:56 Rob Herring (Arm)
2024-06-26 8:15 ` Krzysztof Kozlowski
2024-07-01 12:00 ` Miquel Raynal
0 siblings, 2 replies; 3+ messages in thread
From: Rob Herring (Arm) @ 2024-06-25 21:56 UTC (permalink / raw)
To: Manivannan Sadhasivam, Miquel Raynal, Richard Weinberger,
Vignesh Raghavendra, Krzysztof Kozlowski, Conor Dooley
Cc: linux-mtd, linux-arm-msm, devicetree, linux-kernel
Convention is DT schemas should define all properties at the top-level
and not inside of if/then schemas. That minimizes the if/then schemas
and is more future proof.
There were 2 "if" schemas for "qcom,ipq806x-nand" and the
"qcom,boot-partitions: true" unnecessary, so the conditional schemas
can be simplified a bit.
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
---
.../devicetree/bindings/mtd/qcom,nandc.yaml | 38 +++++++------------
1 file changed, 14 insertions(+), 24 deletions(-)
diff --git a/Documentation/devicetree/bindings/mtd/qcom,nandc.yaml b/Documentation/devicetree/bindings/mtd/qcom,nandc.yaml
index 4ada60fbf81d..35b4206ea918 100644
--- a/Documentation/devicetree/bindings/mtd/qcom,nandc.yaml
+++ b/Documentation/devicetree/bindings/mtd/qcom,nandc.yaml
@@ -31,6 +31,18 @@ properties:
- const: core
- const: aon
+ qcom,cmd-crci:
+ $ref: /schemas/types.yaml#/definitions/uint32
+ description:
+ Must contain the ADM command type CRCI block instance number specified for
+ the NAND controller on the given platform
+
+ qcom,data-crci:
+ $ref: /schemas/types.yaml#/definitions/uint32
+ description:
+ Must contain the ADM data type CRCI block instance number specified for
+ the NAND controller on the given platform
+
patternProperties:
"^nand@[a-f0-9]$":
type: object
@@ -83,18 +95,6 @@ allOf:
items:
- const: rxtx
- qcom,cmd-crci:
- $ref: /schemas/types.yaml#/definitions/uint32
- description:
- Must contain the ADM command type CRCI block instance number
- specified for the NAND controller on the given platform
-
- qcom,data-crci:
- $ref: /schemas/types.yaml#/definitions/uint32
- description:
- Must contain the ADM data type CRCI block instance number
- specified for the NAND controller on the given platform
-
- if:
properties:
compatible:
@@ -119,19 +119,9 @@ allOf:
- const: rx
- const: cmd
- - if:
- properties:
- compatible:
- contains:
- enum:
- - qcom,ipq806x-nand
+ qcom,cmd-crci: false
+ qcom,data-crci: false
- then:
- patternProperties:
- "^nand@[a-f0-9]$":
- properties:
- qcom,boot-partitions: true
- else:
patternProperties:
"^nand@[a-f0-9]$":
properties:
--
2.43.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] dt-bindings: mtd: qcom,nandc: Define properties at top-level
2024-06-25 21:56 [PATCH] dt-bindings: mtd: qcom,nandc: Define properties at top-level Rob Herring (Arm)
@ 2024-06-26 8:15 ` Krzysztof Kozlowski
2024-07-01 12:00 ` Miquel Raynal
1 sibling, 0 replies; 3+ messages in thread
From: Krzysztof Kozlowski @ 2024-06-26 8:15 UTC (permalink / raw)
To: Rob Herring (Arm), Manivannan Sadhasivam, Miquel Raynal,
Richard Weinberger, Vignesh Raghavendra, Krzysztof Kozlowski,
Conor Dooley
Cc: linux-mtd, linux-arm-msm, devicetree, linux-kernel
On 25/06/2024 23:56, Rob Herring (Arm) wrote:
> Convention is DT schemas should define all properties at the top-level
> and not inside of if/then schemas. That minimizes the if/then schemas
> and is more future proof.
>
> There were 2 "if" schemas for "qcom,ipq806x-nand" and the
> "qcom,boot-partitions: true" unnecessary, so the conditional schemas
> can be simplified a bit.
>
> Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] dt-bindings: mtd: qcom,nandc: Define properties at top-level
2024-06-25 21:56 [PATCH] dt-bindings: mtd: qcom,nandc: Define properties at top-level Rob Herring (Arm)
2024-06-26 8:15 ` Krzysztof Kozlowski
@ 2024-07-01 12:00 ` Miquel Raynal
1 sibling, 0 replies; 3+ messages in thread
From: Miquel Raynal @ 2024-07-01 12:00 UTC (permalink / raw)
To: Rob Herring (Arm), Manivannan Sadhasivam, Miquel Raynal,
Richard Weinberger, Vignesh Raghavendra, Krzysztof Kozlowski,
Conor Dooley
Cc: linux-mtd, linux-arm-msm, devicetree, linux-kernel
On Tue, 2024-06-25 at 21:56:05 UTC, "Rob Herring (Arm)" wrote:
> Convention is DT schemas should define all properties at the top-level
> and not inside of if/then schemas. That minimizes the if/then schemas
> and is more future proof.
>
> There were 2 "if" schemas for "qcom,ipq806x-nand" and the
> "qcom,boot-partitions: true" unnecessary, so the conditional schemas
> can be simplified a bit.
>
> Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next, thanks.
Miquel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-07-01 12:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-25 21:56 [PATCH] dt-bindings: mtd: qcom,nandc: Define properties at top-level Rob Herring (Arm)
2024-06-26 8:15 ` Krzysztof Kozlowski
2024-07-01 12:00 ` Miquel Raynal
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).