mirror of
https://github.com/torvalds/linux.git
synced 2026-04-19 07:13:56 -04:00
Support for old NVMEM fixed cells was deprecated in favour of "fixed-layout". It's still part of the nvmem.yaml though and may be unknowingly used by new bindings added without much of analyze. To make it more difficult to accidentally support old syntax move its binding to separated file with "deprecated" in its name. Signed-off-by: Rafał Miłecki <rafal@milecki.pl> Acked-by: Neil Armstrong <neil.armstrong@linaro.org> Reviewed-by: Rob Herring <robh@kernel.org> Acked-by: Heiko Stuebner <heiko@sntech.de> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Link: https://lore.kernel.org/r/20231020105545.216052-4-srinivas.kandagatla@linaro.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
116 lines
2.5 KiB
YAML
116 lines
2.5 KiB
YAML
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
|
|
%YAML 1.2
|
|
---
|
|
$id: http://devicetree.org/schemas/mtd/mtd.yaml#
|
|
$schema: http://devicetree.org/meta-schemas/core.yaml#
|
|
|
|
title: MTD (Memory Technology Device)
|
|
|
|
maintainers:
|
|
- Miquel Raynal <miquel.raynal@bootlin.com>
|
|
- Richard Weinberger <richard@nod.at>
|
|
|
|
properties:
|
|
$nodename:
|
|
pattern: "^(flash|.*sram|nand)(@.*)?$"
|
|
|
|
label:
|
|
description:
|
|
User-defined MTD device name. Can be used to assign user friendly
|
|
names to MTD devices (instead of the flash model or flash controller
|
|
based name) in order to ease flash device identification and/or
|
|
describe what they are used for.
|
|
|
|
'#address-cells':
|
|
deprecated: true
|
|
|
|
'#size-cells':
|
|
deprecated: true
|
|
|
|
partitions:
|
|
$ref: /schemas/mtd/partitions/partitions.yaml
|
|
|
|
required:
|
|
- compatible
|
|
|
|
patternProperties:
|
|
"@[0-9a-f]+$":
|
|
$ref: partitions/partition.yaml
|
|
deprecated: true
|
|
|
|
"^partition@[0-9a-f]+":
|
|
$ref: partitions/partition.yaml
|
|
deprecated: true
|
|
|
|
"^otp(-[0-9]+)?$":
|
|
type: object
|
|
|
|
allOf:
|
|
- $ref: ../nvmem/nvmem.yaml#
|
|
- $ref: ../nvmem/nvmem-deprecated-cells.yaml#
|
|
|
|
unevaluatedProperties: false
|
|
|
|
description: |
|
|
An OTP memory region. Some flashes provide a one-time-programmable
|
|
memory whose content can either be programmed by a user or is already
|
|
pre-programmed by the factory. Some flashes might provide both.
|
|
|
|
properties:
|
|
compatible:
|
|
enum:
|
|
- user-otp
|
|
- factory-otp
|
|
|
|
required:
|
|
- compatible
|
|
|
|
# This is a generic file other binding inherit from
|
|
additionalProperties: true
|
|
|
|
examples:
|
|
- |
|
|
spi {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
flash@0 {
|
|
reg = <0>;
|
|
compatible = "jedec,spi-nor";
|
|
label = "System-firmware";
|
|
};
|
|
};
|
|
|
|
- |
|
|
spi {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
flash@0 {
|
|
reg = <0>;
|
|
compatible = "jedec,spi-nor";
|
|
|
|
otp-1 {
|
|
compatible = "factory-otp";
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
|
|
electronic-serial-number@0 {
|
|
reg = <0 8>;
|
|
};
|
|
};
|
|
|
|
otp-2 {
|
|
compatible = "user-otp";
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
|
|
mac-address@0 {
|
|
reg = <0 6>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
...
|