Skip to content

Commit 4827728

Browse files
committed
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>
1 parent fbf97d6 commit 4827728

2 files changed

Lines changed: 39 additions & 17 deletions

File tree

Documentation/devicetree/bindings/nvmem/brcm,ocotp.txt

Lines changed: 0 additions & 17 deletions
This file was deleted.
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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+
};

0 commit comments

Comments
 (0)