* [PATCH v2 1/1] dt-bindings: nvmem: convert vf610-ocotp.txt to yaml format
@ 2025-05-21 16:40 Frank Li
2025-05-22 8:13 ` Krzysztof Kozlowski
2025-07-11 16:53 ` Srinivas Kandagatla
0 siblings, 2 replies; 4+ messages in thread
From: Frank Li @ 2025-05-21 16:40 UTC (permalink / raw)
To: Srinivas Kandagatla, Rob Herring, Krzysztof Kozlowski,
Conor Dooley,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
open list
Cc: imx
Convert vf610-ocotp.txt to yaml format.
Additional changes:
- Remove label in examples.
- Add include file in examples.
- Move reg just after compatible in examples.
- Add ref: nvmem.yaml and nvmem-deprecated-cells.yaml
- Remove #address-cells and #size-cells from required list to match existed
dts file.
Signed-off-by: Frank Li <Frank.Li@nxp.com>
---
Change from v1 to v2
- remove address-cells and size-cells.
- add clocks to requires
---
.../bindings/nvmem/fsl,vf610-ocotp.yaml | 47 +++++++++++++++++++
.../devicetree/bindings/nvmem/vf610-ocotp.txt | 19 --------
2 files changed, 47 insertions(+), 19 deletions(-)
create mode 100644 Documentation/devicetree/bindings/nvmem/fsl,vf610-ocotp.yaml
delete mode 100644 Documentation/devicetree/bindings/nvmem/vf610-ocotp.txt
diff --git a/Documentation/devicetree/bindings/nvmem/fsl,vf610-ocotp.yaml b/Documentation/devicetree/bindings/nvmem/fsl,vf610-ocotp.yaml
new file mode 100644
index 0000000000000..5aef86a752a6d
--- /dev/null
+++ b/Documentation/devicetree/bindings/nvmem/fsl,vf610-ocotp.yaml
@@ -0,0 +1,47 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/nvmem/fsl,vf610-ocotp.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: On-Chip OTP Memory for Freescale Vybrid
+
+maintainers:
+ - Frank Li <Frank.Li@nxp.com>
+
+allOf:
+ - $ref: nvmem.yaml#
+ - $ref: nvmem-deprecated-cells.yaml
+
+properties:
+ compatible:
+ items:
+ - enum:
+ - fsl,vf610-ocotp
+ - const: syscon
+
+ reg:
+ maxItems: 1
+
+ clocks:
+ items:
+ - description: ipg clock we associate with the OCOTP peripheral
+
+required:
+ - compatible
+ - reg
+ - clocks
+
+unevaluatedProperties: false
+
+examples:
+ - |
+ #include <dt-bindings/clock/vf610-clock.h>
+
+ ocotp@400a5000 {
+ compatible = "fsl,vf610-ocotp", "syscon";
+ reg = <0x400a5000 0xcf0>;
+ #address-cells = <1>;
+ #size-cells = <1>;
+ clocks = <&clks VF610_CLK_OCOTP>;
+ };
diff --git a/Documentation/devicetree/bindings/nvmem/vf610-ocotp.txt b/Documentation/devicetree/bindings/nvmem/vf610-ocotp.txt
deleted file mode 100644
index 72ba628f6d0b0..0000000000000
--- a/Documentation/devicetree/bindings/nvmem/vf610-ocotp.txt
+++ /dev/null
@@ -1,19 +0,0 @@
-On-Chip OTP Memory for Freescale Vybrid
-
-Required Properties:
- compatible:
- - "fsl,vf610-ocotp", "syscon" for VF5xx/VF6xx
- #address-cells : Should be 1
- #size-cells : Should be 1
- reg : Address and length of OTP controller and fuse map registers
- clocks : ipg clock we associate with the OCOTP peripheral
-
-Example for Vybrid VF5xx/VF6xx:
-
- ocotp: ocotp@400a5000 {
- compatible = "fsl,vf610-ocotp", "syscon";
- #address-cells = <1>;
- #size-cells = <1>;
- reg = <0x400a5000 0xCF0>;
- clocks = <&clks VF610_CLK_OCOTP>;
- };
--
2.34.1
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH v2 1/1] dt-bindings: nvmem: convert vf610-ocotp.txt to yaml format
2025-05-21 16:40 [PATCH v2 1/1] dt-bindings: nvmem: convert vf610-ocotp.txt to yaml format Frank Li
@ 2025-05-22 8:13 ` Krzysztof Kozlowski
2025-07-09 21:22 ` Frank Li
2025-07-11 16:53 ` Srinivas Kandagatla
1 sibling, 1 reply; 4+ messages in thread
From: Krzysztof Kozlowski @ 2025-05-22 8:13 UTC (permalink / raw)
To: Frank Li
Cc: Srinivas Kandagatla, Rob Herring, Krzysztof Kozlowski,
Conor Dooley,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
open list, imx
On Wed, May 21, 2025 at 12:40:30PM GMT, Frank Li wrote:
> Convert vf610-ocotp.txt to yaml format.
>
> Additional changes:
> - Remove label in examples.
> - Add include file in examples.
> - Move reg just after compatible in examples.
> - Add ref: nvmem.yaml and nvmem-deprecated-cells.yaml
> - Remove #address-cells and #size-cells from required list to match existed
> dts file.
>
> Signed-off-by: Frank Li <Frank.Li@nxp.com>
> ---
Thanks!
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2 1/1] dt-bindings: nvmem: convert vf610-ocotp.txt to yaml format
2025-05-22 8:13 ` Krzysztof Kozlowski
@ 2025-07-09 21:22 ` Frank Li
0 siblings, 0 replies; 4+ messages in thread
From: Frank Li @ 2025-07-09 21:22 UTC (permalink / raw)
To: Krzysztof Kozlowski
Cc: Srinivas Kandagatla, Rob Herring, Krzysztof Kozlowski,
Conor Dooley,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
open list, imx
On Thu, May 22, 2025 at 10:13:50AM +0200, Krzysztof Kozlowski wrote:
> On Wed, May 21, 2025 at 12:40:30PM GMT, Frank Li wrote:
> > Convert vf610-ocotp.txt to yaml format.
> >
> > Additional changes:
> > - Remove label in examples.
> > - Add include file in examples.
> > - Move reg just after compatible in examples.
> > - Add ref: nvmem.yaml and nvmem-deprecated-cells.yaml
> > - Remove #address-cells and #size-cells from required list to match existed
> > dts file.
> >
> > Signed-off-by: Frank Li <Frank.Li@nxp.com>
> > ---
>
> Thanks!
>
> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
All:
Anyone pick this? Krzysztof already reviewed.
Frank
>
> Best regards,
> Krzysztof
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2 1/1] dt-bindings: nvmem: convert vf610-ocotp.txt to yaml format
2025-05-21 16:40 [PATCH v2 1/1] dt-bindings: nvmem: convert vf610-ocotp.txt to yaml format Frank Li
2025-05-22 8:13 ` Krzysztof Kozlowski
@ 2025-07-11 16:53 ` Srinivas Kandagatla
1 sibling, 0 replies; 4+ messages in thread
From: Srinivas Kandagatla @ 2025-07-11 16:53 UTC (permalink / raw)
To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, devicetree,
linux-kernel, Frank Li
Cc: imx
On Wed, 21 May 2025 12:40:30 -0400, Frank Li wrote:
> Convert vf610-ocotp.txt to yaml format.
>
> Additional changes:
> - Remove label in examples.
> - Add include file in examples.
> - Move reg just after compatible in examples.
> - Add ref: nvmem.yaml and nvmem-deprecated-cells.yaml
> - Remove #address-cells and #size-cells from required list to match existed
> dts file.
>
> [...]
Applied, thanks!
[1/1] dt-bindings: nvmem: convert vf610-ocotp.txt to yaml format
commit: fe5df28647e2941db393e376e545f8811cc4f4ec
Best regards,
--
Srinivas Kandagatla <srini@kernel.org>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-07-11 16:53 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-05-21 16:40 [PATCH v2 1/1] dt-bindings: nvmem: convert vf610-ocotp.txt to yaml format Frank Li
2025-05-22 8:13 ` Krzysztof Kozlowski
2025-07-09 21:22 ` Frank Li
2025-07-11 16:53 ` Srinivas Kandagatla
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®