Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <Frank.Li@nxp.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Srinivas Kandagatla <srini@kernel.org>
Link: https://lore.kernel.org/r/20250712181905.6738-9-srini@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Frank Li and committed by
Greg Kroah-Hartman
45e06a9d 657339fd

+47 -19
+47
Documentation/devicetree/bindings/nvmem/fsl,vf610-ocotp.yaml
··· 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 <Frank.Li@nxp.com> 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 + };
-19
Documentation/devicetree/bindings/nvmem/vf610-ocotp.txt
··· 1 - On-Chip OTP Memory for Freescale Vybrid 2 - 3 - Required Properties: 4 - compatible: 5 - - "fsl,vf610-ocotp", "syscon" for VF5xx/VF6xx 6 - #address-cells : Should be 1 7 - #size-cells : Should be 1 8 - reg : Address and length of OTP controller and fuse map registers 9 - clocks : ipg clock we associate with the OCOTP peripheral 10 - 11 - Example for Vybrid VF5xx/VF6xx: 12 - 13 - ocotp: ocotp@400a5000 { 14 - compatible = "fsl,vf610-ocotp", "syscon"; 15 - #address-cells = <1>; 16 - #size-cells = <1>; 17 - reg = <0x400a5000 0xCF0>; 18 - clocks = <&clks VF610_CLK_OCOTP>; 19 - };