Skip to content

Commit 5e61687

Browse files
nxpfrankligregkh
authored andcommitted
dt-bindings: nvmem: convert zii,rave-sp-eeprom.txt to yaml format
Convert device tree binding doc zii,rave-sp-eeprom.txt to yaml format. Additional changes: - Add ref to nvme.yaml. - Add reg property. - Remove mfd at example. Signed-off-by: Frank Li <[email protected]> Reviewed-by: Rob Herring (Arm) <[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 2e7bb66 commit 5e61687

File tree

2 files changed

+54
-40
lines changed

2 files changed

+54
-40
lines changed

Documentation/devicetree/bindings/nvmem/zii,rave-sp-eeprom.txt

Lines changed: 0 additions & 40 deletions
This file was deleted.
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/nvmem/zii,rave-sp-eeprom.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Zodiac Inflight Innovations RAVE EEPROM
8+
9+
maintainers:
10+
- Frank Li <[email protected]>
11+
12+
description:
13+
RAVE SP EEPROM device is a "MFD cell" device exposing physical EEPROM
14+
attached to RAVE Supervisory Processor. It is expected that its Device
15+
Tree node is specified as a child of the node corresponding to the
16+
parent RAVE SP device (as documented in
17+
Documentation/devicetree/bindings/mfd/zii,rave-sp.yaml)
18+
19+
properties:
20+
compatible:
21+
const: zii,rave-sp-eeprom
22+
23+
reg:
24+
maxItems: 1
25+
26+
zii,eeprom-name:
27+
$ref: /schemas/types.yaml#/definitions/string
28+
description:
29+
Unique EEPROM identifier describing its function in the
30+
system. Will be used as created NVMEM deivce's name.
31+
32+
required:
33+
- compatible
34+
35+
allOf:
36+
- $ref: nvmem.yaml#
37+
- $ref: nvmem-deprecated-cells.yaml#
38+
39+
unevaluatedProperties: false
40+
41+
examples:
42+
- |
43+
eeprom@a4 {
44+
compatible = "zii,rave-sp-eeprom";
45+
reg = <0xa4 0x4000>;
46+
#address-cells = <1>;
47+
#size-cells = <1>;
48+
zii,eeprom-name = "main-eeprom";
49+
50+
wdt-timeout@81 {
51+
reg = <0x81 2>;
52+
};
53+
};
54+

0 commit comments

Comments
 (0)