* [PATCH 0/2] Convert arm,versatile-sysreg to DT schema
@ 2022-08-10 16:03 Rob Herring
2022-08-10 16:03 ` [PATCH 1/2] dt-bindings: display: arm,versatile-tft-panel: Drop erroneous properties in example Rob Herring
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Rob Herring @ 2022-08-10 16:03 UTC (permalink / raw)
To: Linus Walleij, Thierry Reding, Sam Ravnborg, Krzysztof Kozlowski
Cc: dri-devel, devicetree, linux-kernel
This short series converts the arm,versatile-sysreg binding to DT schema.
The binding is already in use in examples which unsurprisingly needs a
fix with the schema added.
This is part of getting rid of the remaining ~40 cases of compatibles
without a schema in the examples.
Rob
Rob Herring (2):
dt-bindings: display: arm,versatile-tft-panel: Drop erroneous
properties in example
dt-bindings: arm,versatile-sysreg: Convert to DT schema format
.../bindings/arm/arm,versatile-sysreg.yaml | 35 +++++++++++++++++++
.../bindings/arm/versatile-sysreg.txt | 10 ------
.../panel/arm,versatile-tft-panel.yaml | 3 --
3 files changed, 35 insertions(+), 13 deletions(-)
create mode 100644 Documentation/devicetree/bindings/arm/arm,versatile-sysreg.yaml
delete mode 100644 Documentation/devicetree/bindings/arm/versatile-sysreg.txt
--
2.34.1
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/2] dt-bindings: display: arm,versatile-tft-panel: Drop erroneous properties in example
2022-08-10 16:03 [PATCH 0/2] Convert arm,versatile-sysreg to DT schema Rob Herring
@ 2022-08-10 16:03 ` Rob Herring
2022-08-10 16:03 ` [PATCH 2/2] dt-bindings: arm,versatile-sysreg: Convert to DT schema format Rob Herring
2022-08-22 11:11 ` [PATCH 0/2] Convert arm,versatile-sysreg to DT schema Linus Walleij
2 siblings, 0 replies; 5+ messages in thread
From: Rob Herring @ 2022-08-10 16:03 UTC (permalink / raw)
To: Linus Walleij, Thierry Reding, Sam Ravnborg, Krzysztof Kozlowski
Cc: dri-devel, devicetree, linux-kernel
The 'arm,versatile-sysreg' node in the example should not have
'#address-cells' and '#size-cells' properties as the child node doesn't
have 'reg'.
Signed-off-by: Rob Herring <robh@kernel.org>
---
.../bindings/display/panel/arm,versatile-tft-panel.yaml | 3 ---
1 file changed, 3 deletions(-)
diff --git a/Documentation/devicetree/bindings/display/panel/arm,versatile-tft-panel.yaml b/Documentation/devicetree/bindings/display/panel/arm,versatile-tft-panel.yaml
index be69e0cc50fc..c9958f824d9a 100644
--- a/Documentation/devicetree/bindings/display/panel/arm,versatile-tft-panel.yaml
+++ b/Documentation/devicetree/bindings/display/panel/arm,versatile-tft-panel.yaml
@@ -37,9 +37,6 @@ examples:
compatible = "arm,versatile-sysreg", "syscon", "simple-mfd";
reg = <0x00000 0x1000>;
- #address-cells = <1>;
- #size-cells = <0>;
-
panel {
compatible = "arm,versatile-tft-panel";
--
2.34.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/2] dt-bindings: arm,versatile-sysreg: Convert to DT schema format
2022-08-10 16:03 [PATCH 0/2] Convert arm,versatile-sysreg to DT schema Rob Herring
2022-08-10 16:03 ` [PATCH 1/2] dt-bindings: display: arm,versatile-tft-panel: Drop erroneous properties in example Rob Herring
@ 2022-08-10 16:03 ` Rob Herring
2022-08-11 6:46 ` Krzysztof Kozlowski
2022-08-22 11:11 ` [PATCH 0/2] Convert arm,versatile-sysreg to DT schema Linus Walleij
2 siblings, 1 reply; 5+ messages in thread
From: Rob Herring @ 2022-08-10 16:03 UTC (permalink / raw)
To: Linus Walleij, Thierry Reding, Sam Ravnborg, Krzysztof Kozlowski
Cc: dri-devel, devicetree, linux-kernel
Convert the arm,versatile-sysreg binding to DT schema format.
The original binding was missing 'simple-mfd' and a 'panel' sub node which
the only user (versatile-ab.dts) of this binding has.
Signed-off-by: Rob Herring <robh@kernel.org>
---
.../bindings/arm/arm,versatile-sysreg.yaml | 35 +++++++++++++++++++
.../bindings/arm/versatile-sysreg.txt | 10 ------
2 files changed, 35 insertions(+), 10 deletions(-)
create mode 100644 Documentation/devicetree/bindings/arm/arm,versatile-sysreg.yaml
delete mode 100644 Documentation/devicetree/bindings/arm/versatile-sysreg.txt
diff --git a/Documentation/devicetree/bindings/arm/arm,versatile-sysreg.yaml b/Documentation/devicetree/bindings/arm/arm,versatile-sysreg.yaml
new file mode 100644
index 000000000000..491eef1e1b10
--- /dev/null
+++ b/Documentation/devicetree/bindings/arm/arm,versatile-sysreg.yaml
@@ -0,0 +1,35 @@
+# SPDX-License-Identifier: (GPL-2.0-only or BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/arm/arm,versatile-sysreg.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Arm Versatile system registers
+
+maintainers:
+ - Linus Walleij <linus.walleij@linaro.org>
+
+description:
+ This is a system control registers block, providing multiple low level
+ platform functions like board detection and identification, software
+ interrupt generation, MMC and NOR Flash control, etc.
+
+properties:
+ compatible:
+ items:
+ - const: arm,versatile-sysreg
+ - const: syscon
+ - const: simple-mfd
+
+ reg:
+ maxItems: 1
+
+ panel:
+ type: object
+
+required:
+ - compatible
+ - reg
+
+additionalProperties: false
+...
diff --git a/Documentation/devicetree/bindings/arm/versatile-sysreg.txt b/Documentation/devicetree/bindings/arm/versatile-sysreg.txt
deleted file mode 100644
index a4f15262d717..000000000000
--- a/Documentation/devicetree/bindings/arm/versatile-sysreg.txt
+++ /dev/null
@@ -1,10 +0,0 @@
-ARM Versatile system registers
---------------------------------------
-
-This is a system control registers block, providing multiple low level
-platform functions like board detection and identification, software
-interrupt generation, MMC and NOR Flash control etc.
-
-Required node properties:
-- compatible value : = "arm,versatile-sysreg", "syscon"
-- reg : physical base address and the size of the registers window
--
2.34.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 2/2] dt-bindings: arm,versatile-sysreg: Convert to DT schema format
2022-08-10 16:03 ` [PATCH 2/2] dt-bindings: arm,versatile-sysreg: Convert to DT schema format Rob Herring
@ 2022-08-11 6:46 ` Krzysztof Kozlowski
0 siblings, 0 replies; 5+ messages in thread
From: Krzysztof Kozlowski @ 2022-08-11 6:46 UTC (permalink / raw)
To: Rob Herring, Linus Walleij, Thierry Reding, Sam Ravnborg,
Krzysztof Kozlowski
Cc: dri-devel, devicetree, linux-kernel
On 10/08/2022 19:03, Rob Herring wrote:
> Convert the arm,versatile-sysreg binding to DT schema format.
>
> The original binding was missing 'simple-mfd' and a 'panel' sub node which
> the only user (versatile-ab.dts) of this binding has.
>
> Signed-off-by: Rob Herring <robh@kernel.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 0/2] Convert arm,versatile-sysreg to DT schema
2022-08-10 16:03 [PATCH 0/2] Convert arm,versatile-sysreg to DT schema Rob Herring
2022-08-10 16:03 ` [PATCH 1/2] dt-bindings: display: arm,versatile-tft-panel: Drop erroneous properties in example Rob Herring
2022-08-10 16:03 ` [PATCH 2/2] dt-bindings: arm,versatile-sysreg: Convert to DT schema format Rob Herring
@ 2022-08-22 11:11 ` Linus Walleij
2 siblings, 0 replies; 5+ messages in thread
From: Linus Walleij @ 2022-08-22 11:11 UTC (permalink / raw)
To: Rob Herring
Cc: Thierry Reding, Sam Ravnborg, Krzysztof Kozlowski, dri-devel,
devicetree, linux-kernel
On Wed, Aug 10, 2022 at 6:03 PM Rob Herring <robh@kernel.org> wrote:
> This short series converts the arm,versatile-sysreg binding to DT schema.
> The binding is already in use in examples which unsurprisingly needs a
> fix with the schema added.
Excellent, thanks!
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
I assume you will apply this to the binding tree or similar, else tell me
what to do!
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-08-22 11:11 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-10 16:03 [PATCH 0/2] Convert arm,versatile-sysreg to DT schema Rob Herring
2022-08-10 16:03 ` [PATCH 1/2] dt-bindings: display: arm,versatile-tft-panel: Drop erroneous properties in example Rob Herring
2022-08-10 16:03 ` [PATCH 2/2] dt-bindings: arm,versatile-sysreg: Convert to DT schema format Rob Herring
2022-08-11 6:46 ` Krzysztof Kozlowski
2022-08-22 11:11 ` [PATCH 0/2] Convert arm,versatile-sysreg to DT schema Linus Walleij
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).