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

dt-bindings: nvmem: convert lpc1857-eeprom.txt to yaml format

Convert lpc1857-eeprom.txt to yaml format.

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-5-srini@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Frank Li and committed by
Greg Kroah-Hartman
9d9659b0 0e0de622

+61 -28
-28
Documentation/devicetree/bindings/nvmem/lpc1857-eeprom.txt
··· 1 - * NXP LPC18xx EEPROM memory NVMEM driver 2 - 3 - Required properties: 4 - - compatible: Should be "nxp,lpc1857-eeprom" 5 - - reg: Must contain an entry with the physical base address and length 6 - for each entry in reg-names. 7 - - reg-names: Must include the following entries. 8 - - reg: EEPROM registers. 9 - - mem: EEPROM address space. 10 - - clocks: Must contain an entry for each entry in clock-names. 11 - - clock-names: Must include the following entries. 12 - - eeprom: EEPROM operating clock. 13 - - resets: Should contain a reference to the reset controller asserting 14 - the EEPROM in reset. 15 - - interrupts: Should contain EEPROM interrupt. 16 - 17 - Example: 18 - 19 - eeprom: eeprom@4000e000 { 20 - compatible = "nxp,lpc1857-eeprom"; 21 - reg = <0x4000e000 0x1000>, 22 - <0x20040000 0x4000>; 23 - reg-names = "reg", "mem"; 24 - clocks = <&ccu1 CLK_CPU_EEPROM>; 25 - clock-names = "eeprom"; 26 - resets = <&rgu 27>; 27 - interrupts = <4>; 28 - };
+61
Documentation/devicetree/bindings/nvmem/nxp,lpc1857-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/nxp,lpc1857-eeprom.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: NXP LPC18xx EEPROM memory 8 + 9 + maintainers: 10 + - Frank Li <Frank.Li@nxp.com> 11 + 12 + properties: 13 + compatible: 14 + const: nxp,lpc1857-eeprom 15 + 16 + reg: 17 + maxItems: 2 18 + 19 + reg-names: 20 + items: 21 + - const: reg 22 + - const: mem 23 + 24 + clocks: 25 + maxItems: 1 26 + 27 + clock-names: 28 + items: 29 + - const: eeprom 30 + 31 + interrupts: 32 + maxItems: 1 33 + 34 + resets: 35 + maxItems: 1 36 + 37 + required: 38 + - compatible 39 + - reg 40 + - reg-names 41 + - clocks 42 + - clock-names 43 + - interrupts 44 + - resets 45 + 46 + additionalProperties: false 47 + 48 + examples: 49 + - | 50 + #include <dt-bindings/clock/lpc18xx-ccu.h> 51 + 52 + eeprom@4000e000 { 53 + compatible = "nxp,lpc1857-eeprom"; 54 + reg = <0x4000e000 0x1000>, 55 + <0x20040000 0x4000>; 56 + reg-names = "reg", "mem"; 57 + clocks = <&ccu1 CLK_CPU_EEPROM>; 58 + clock-names = "eeprom"; 59 + resets = <&rgu 27>; 60 + interrupts = <4>; 61 + };