Skip to content

Commit 45e06a9

Browse files
nxpfrankligregkh
authored andcommitted
dt-bindings: nvmem: convert vf610-ocotp.txt to yaml format
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 <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Srinivas Kandagatla <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 657339f commit 45e06a9

File tree

2 files changed

+47
-19
lines changed

2 files changed

+47
-19
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/nvmem/fsl,vf610-ocotp.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: On-Chip OTP Memory for Freescale Vybrid
8+
9+
maintainers:
10+
- Frank Li <[email protected]>
11+
12+
allOf:
13+
- $ref: nvmem.yaml#
14+
- $ref: nvmem-deprecated-cells.yaml
15+
16+
properties:
17+
compatible:
18+
items:
19+
- enum:
20+
- fsl,vf610-ocotp
21+
- const: syscon
22+
23+
reg:
24+
maxItems: 1
25+
26+
clocks:
27+
items:
28+
- description: ipg clock we associate with the OCOTP peripheral
29+
30+
required:
31+
- compatible
32+
- reg
33+
- clocks
34+
35+
unevaluatedProperties: false
36+
37+
examples:
38+
- |
39+
#include <dt-bindings/clock/vf610-clock.h>
40+
41+
ocotp@400a5000 {
42+
compatible = "fsl,vf610-ocotp", "syscon";
43+
reg = <0x400a5000 0xcf0>;
44+
#address-cells = <1>;
45+
#size-cells = <1>;
46+
clocks = <&clks VF610_CLK_OCOTP>;
47+
};

Documentation/devicetree/bindings/nvmem/vf610-ocotp.txt

Lines changed: 0 additions & 19 deletions
This file was deleted.

0 commit comments

Comments
 (0)