* [PATCH] dt-bindings: arm: vt8500: via,vt8500-pmc: Convert to DT Schema
@ 2026-05-24 11:00 Udaya Kiran Challa
2026-05-30 10:49 ` Krzysztof Kozlowski
0 siblings, 1 reply; 4+ messages in thread
From: Udaya Kiran Challa @ 2026-05-24 11:00 UTC (permalink / raw)
To: linux, robh, krzk+dt, conor+dt
Cc: skhan, me, linux-rtc, devicetree, linux-kernel,
Udaya Kiran Challa
Convert the VIA/Wondermedia VT8500 Power Management controller binding
from the legacy text format to DT schema.
Signed-off-by: Udaya Kiran Challa <challauday369@gmail.com>
---
.../bindings/arm/vt8500/via,vt8500-pmc.txt | 13 -------
.../bindings/arm/vt8500/via,vt8500-pmc.yaml | 38 +++++++++++++++++++
2 files changed, 38 insertions(+), 13 deletions(-)
delete mode 100644 Documentation/devicetree/bindings/arm/vt8500/via,vt8500-pmc.txt
create mode 100644 Documentation/devicetree/bindings/arm/vt8500/via,vt8500-pmc.yaml
diff --git a/Documentation/devicetree/bindings/arm/vt8500/via,vt8500-pmc.txt b/Documentation/devicetree/bindings/arm/vt8500/via,vt8500-pmc.txt
deleted file mode 100644
index 521b9c7de933..000000000000
--- a/Documentation/devicetree/bindings/arm/vt8500/via,vt8500-pmc.txt
+++ /dev/null
@@ -1,13 +0,0 @@
-VIA/Wondermedia VT8500 Power Management Controller
------------------------------------------------------
-
-Required properties:
-- compatible : "via,vt8500-pmc"
-- reg : Should contain 1 register ranges(address and length)
-
-Example:
-
- pmc@d8130000 {
- compatible = "via,vt8500-pmc";
- reg = <0xd8130000 0x1000>;
- };
diff --git a/Documentation/devicetree/bindings/arm/vt8500/via,vt8500-pmc.yaml b/Documentation/devicetree/bindings/arm/vt8500/via,vt8500-pmc.yaml
new file mode 100644
index 000000000000..ac603fd4efec
--- /dev/null
+++ b/Documentation/devicetree/bindings/arm/vt8500/via,vt8500-pmc.yaml
@@ -0,0 +1,38 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/arm/vt8500/via,vt8500-pmc.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: VIA/Wondermedia VT8500 Power Management Controller
+
+maintainers:
+ - Tony Prisk <linux@prisktech.co.nz>
+
+description:
+ The VIA/Wondermedia Power Management Controller provides register access for
+ clock and power management functions on VT8500 and WM8xxx series SoCs.
+
+properties:
+ compatible:
+ const: via,vt8500-pmc
+
+ reg:
+ maxItems: 1
+
+ clocks:
+ type: object
+ additionalProperties: true
+
+required:
+ - compatible
+ - reg
+
+additionalProperties: false
+
+examples:
+ - |
+ pmc@d8130000 {
+ compatible = "via,vt8500-pmc";
+ reg = <0xd8130000 0x1000>;
+ };
--
2.43.0
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH] dt-bindings: arm: vt8500: via,vt8500-pmc: Convert to DT Schema
2026-05-24 11:00 [PATCH] dt-bindings: arm: vt8500: via,vt8500-pmc: Convert to DT Schema Udaya Kiran Challa
@ 2026-05-30 10:49 ` Krzysztof Kozlowski
2026-05-31 16:51 ` Uday Kiran
0 siblings, 1 reply; 4+ messages in thread
From: Krzysztof Kozlowski @ 2026-05-30 10:49 UTC (permalink / raw)
To: Udaya Kiran Challa
Cc: linux, robh, krzk+dt, conor+dt, skhan, me, linux-rtc, devicetree,
linux-kernel
On Sun, May 24, 2026 at 04:30:09PM +0530, Udaya Kiran Challa wrote:
> +properties:
> + compatible:
> + const: via,vt8500-pmc
> +
> + reg:
> + maxItems: 1
> +
> + clocks:
> + type: object
> + additionalProperties: true
No, binding must be constrained. See writing-bindings or any other
binding. If you are unsure how to do something - open other existing
bindings. Do you see anywhere such syntax?
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] dt-bindings: arm: vt8500: via,vt8500-pmc: Convert to DT Schema
2026-05-30 10:49 ` Krzysztof Kozlowski
@ 2026-05-31 16:51 ` Uday Kiran
2026-06-01 11:42 ` Krzysztof Kozlowski
0 siblings, 1 reply; 4+ messages in thread
From: Uday Kiran @ 2026-05-31 16:51 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: linux, robh, krzk+dt, conor+dt, skhan, me, linux-rtc, devicetree,
linux-kernel
> > +properties:
> > + compatible:
> > + const: via,vt8500-pmc
> > +
> > + reg:
> > + maxItems: 1
> > +
> > + clocks:
> > + type: object
> > + additionalProperties: true
>
> No, binding must be constrained. See writing-bindings or any other
> binding. If you are unsure how to do something - open other existing
> bindings. Do you see anywhere such syntax?
Agreed. The clocks child node is now fully constrained: #address-cells and
#size-cells are declared with fixed values and marked required.
additionalProperties: true is retained only because the child clock nodes
inside have their own schema (via,vt8500-clock.yaml) with
additionalProperties: false, which is the pattern described in
example-schema.yaml for child nodes with their own device schema.
Regards,
Udaya Kiran Challa
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] dt-bindings: arm: vt8500: via,vt8500-pmc: Convert to DT Schema
2026-05-31 16:51 ` Uday Kiran
@ 2026-06-01 11:42 ` Krzysztof Kozlowski
0 siblings, 0 replies; 4+ messages in thread
From: Krzysztof Kozlowski @ 2026-06-01 11:42 UTC (permalink / raw)
To: Uday Kiran
Cc: linux, robh, krzk+dt, conor+dt, skhan, me, linux-rtc, devicetree,
linux-kernel
On 31/05/2026 18:51, Uday Kiran wrote:
>>> +properties:
>>> + compatible:
>>> + const: via,vt8500-pmc
>>> +
>>> + reg:
>>> + maxItems: 1
>>> +
>>> + clocks:
>>> + type: object
>>> + additionalProperties: true
>>
>> No, binding must be constrained. See writing-bindings or any other
>> binding. If you are unsure how to do something - open other existing
>> bindings. Do you see anywhere such syntax?
>
> Agreed. The clocks child node is now fully constrained: #address-cells and
No, it is not. What are you speaking about? Open this patch and look -
how anything "IS" there constrained?
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-06-01 11:43 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-24 11:00 [PATCH] dt-bindings: arm: vt8500: via,vt8500-pmc: Convert to DT Schema Udaya Kiran Challa
2026-05-30 10:49 ` Krzysztof Kozlowski
2026-05-31 16:51 ` Uday Kiran
2026-06-01 11:42 ` Krzysztof Kozlowski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox