2021-04-24 13:06:05 +02:00
# 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#
2022-08-25 04:04:27 +02:00
title : MTD (Memory Technology Device)
2021-04-24 13:06:05 +02:00
maintainers :
- Miquel Raynal <miquel.raynal@bootlin.com>
- Richard Weinberger <richard@nod.at>
2024-01-10 19:21:45 +08:00
select : false
2021-04-24 13:06:05 +02:00
properties :
$nodename :
2023-06-19 11:29:00 +02:00
pattern : "^(flash|.*sram|nand)(@.*)?$"
2021-04-24 13:06:05 +02:00
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.
2022-11-14 10:02:59 +01:00
'#address-cells' :
deprecated : true
'#size-cells' :
deprecated : true
partitions :
$ref : /schemas/mtd/partitions/partitions.yaml
2022-11-14 10:03:09 +01:00
required :
- compatible
2021-04-24 13:06:06 +02:00
patternProperties :
2022-11-14 10:02:59 +01:00
"@[0-9a-f]+$" :
$ref : partitions/partition.yaml
deprecated : true
"^partition@[0-9a-f]+" :
$ref : partitions/partition.yaml
deprecated : true
2021-04-24 13:06:06 +02:00
"^otp(-[0-9]+)?$" :
2023-10-20 11:55:42 +01:00
type : object
allOf :
2024-05-05 10:46:18 +02:00
- $ref : /schemas/nvmem/nvmem.yaml#
- $ref : /schemas/nvmem/nvmem-deprecated-cells.yaml#
2023-10-20 11:55:42 +01:00
2023-01-24 17:02:28 -06:00
unevaluatedProperties : false
2021-04-24 13:06:06 +02:00
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
2022-11-14 10:03:13 +01:00
# This is a generic file other binding inherit from
2021-04-24 13:06:05 +02:00
additionalProperties : true
examples :
- |
spi {
#address-cells = <1>;
#size-cells = <0>;
flash@0 {
reg = <0>;
compatible = "jedec,spi-nor";
label = "System-firmware";
};
};
2021-04-24 13:06:06 +02:00
- |
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>;
};
};
};
};
2021-04-24 13:06:05 +02:00
...