linux-loongson/Documentation/devicetree/bindings/nvmem/nxp,lpc1857-eeprom.yaml
Frank Li 9d9659b054 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>
2025-07-16 14:30:05 +02:00

62 lines
1.0 KiB
YAML

# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/nvmem/nxp,lpc1857-eeprom.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: NXP LPC18xx EEPROM memory
maintainers:
- Frank Li <Frank.Li@nxp.com>
properties:
compatible:
const: nxp,lpc1857-eeprom
reg:
maxItems: 2
reg-names:
items:
- const: reg
- const: mem
clocks:
maxItems: 1
clock-names:
items:
- const: eeprom
interrupts:
maxItems: 1
resets:
maxItems: 1
required:
- compatible
- reg
- reg-names
- clocks
- clock-names
- interrupts
- resets
additionalProperties: false
examples:
- |
#include <dt-bindings/clock/lpc18xx-ccu.h>
eeprom@4000e000 {
compatible = "nxp,lpc1857-eeprom";
reg = <0x4000e000 0x1000>,
<0x20040000 0x4000>;
reg-names = "reg", "mem";
clocks = <&ccu1 CLK_CPU_EEPROM>;
clock-names = "eeprom";
resets = <&rgu 27>;
interrupts = <4>;
};