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

dt-bindings: nvmem: Convert brcm,ocotp to DT schema

Convert the brcm,ocotp binding to DT schema format. It's a
straight-forward conversion.

Link: https://patch.msgid.link/20251014152957.3782962-1-robh@kernel.org
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>

+39 -17
-17
Documentation/devicetree/bindings/nvmem/brcm,ocotp.txt
··· 1 - Broadcom OTP memory controller 2 - 3 - Required Properties: 4 - - compatible: "brcm,ocotp" for the first generation Broadcom OTPC which is used 5 - in Cygnus and supports 32 bit read/write. Use "brcm,ocotp-v2" for the second 6 - generation Broadcom OTPC which is used in SoC's such as Stingray and supports 7 - 64-bit read/write. 8 - - reg: Base address of the OTP controller. 9 - - brcm,ocotp-size: Amount of memory available, in 32 bit words 10 - 11 - Example: 12 - 13 - otp: otp@301c800 { 14 - compatible = "brcm,ocotp"; 15 - reg = <0x0301c800 0x2c>; 16 - brcm,ocotp-size = <2048>; 17 - };
+39
Documentation/devicetree/bindings/nvmem/brcm,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/brcm,ocotp.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Broadcom OTP memory controller 8 + 9 + maintainers: 10 + - Ray Jui <rjui@broadcom.com> 11 + - Scott Branden <sbranden@broadcom.com> 12 + 13 + properties: 14 + compatible: 15 + enum: 16 + - brcm,ocotp 17 + - brcm,ocotp-v2 18 + 19 + reg: 20 + maxItems: 1 21 + 22 + brcm,ocotp-size: 23 + description: Amount of memory available, in 32-bit words 24 + $ref: /schemas/types.yaml#/definitions/uint32 25 + 26 + required: 27 + - compatible 28 + - reg 29 + - brcm,ocotp-size 30 + 31 + additionalProperties: false 32 + 33 + examples: 34 + - | 35 + otp@301c800 { 36 + compatible = "brcm,ocotp"; 37 + reg = <0x0301c800 0x2c>; 38 + brcm,ocotp-size = <2048>; 39 + };