Skip to content

Commit 9d9659b

Browse files
nxpfrankligregkh
authored andcommitted
dt-bindings: nvmem: convert lpc1857-eeprom.txt to yaml format
Convert lpc1857-eeprom.txt to yaml format. Signed-off-by: Frank Li <[email protected]> Reviewed-by: Krzysztof Kozlowski <[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 0e0de62 commit 9d9659b

File tree

2 files changed

+61
-28
lines changed

2 files changed

+61
-28
lines changed

Documentation/devicetree/bindings/nvmem/lpc1857-eeprom.txt

Lines changed: 0 additions & 28 deletions
This file was deleted.
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
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 <[email protected]>
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+
};

0 commit comments

Comments
 (0)