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

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 <Frank.Li@nxp.com>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20241030140315.40562-6-srinivas.kandagatla@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Frank Li and committed by
Greg Kroah-Hartman
5e616870 2e7bb66b

+54 -40
-40
Documentation/devicetree/bindings/nvmem/zii,rave-sp-eeprom.txt
··· 1 - Zodiac Inflight Innovations RAVE EEPROM Bindings 2 - 3 - RAVE SP EEPROM device is a "MFD cell" device exposing physical EEPROM 4 - attached to RAVE Supervisory Processor. It is expected that its Device 5 - Tree node is specified as a child of the node corresponding to the 6 - parent RAVE SP device (as documented in 7 - Documentation/devicetree/bindings/mfd/zii,rave-sp.txt) 8 - 9 - Required properties: 10 - 11 - - compatible: Should be "zii,rave-sp-eeprom" 12 - 13 - Optional properties: 14 - 15 - - zii,eeprom-name: Unique EEPROM identifier describing its function in the 16 - system. Will be used as created NVMEM deivce's name. 17 - 18 - Data cells: 19 - 20 - Data cells are child nodes of eerpom node, bindings for which are 21 - documented in Documentation/devicetree/bindings/nvmem/nvmem.txt 22 - 23 - Example: 24 - 25 - rave-sp { 26 - compatible = "zii,rave-sp-rdu1"; 27 - current-speed = <38400>; 28 - 29 - eeprom@a4 { 30 - compatible = "zii,rave-sp-eeprom"; 31 - reg = <0xa4 0x4000>; 32 - #address-cells = <1>; 33 - #size-cells = <1>; 34 - zii,eeprom-name = "main-eeprom"; 35 - 36 - wdt_timeout: wdt-timeout@81 { 37 - reg = <0x81 2>; 38 - }; 39 - }; 40 - }
+54
Documentation/devicetree/bindings/nvmem/zii,rave-sp-eeprom.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/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 <Frank.Li@nxp.com> 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 +