mirror of
https://github.com/torvalds/linux.git
synced 2026-09-24 06:24:02 +02:00
dt-bindings: mmc: Document fixed-layout NVMEM provider support
Allow an eMMC hardware partition node to describe an NVMEM layout so the partition can be exposed as an NVMEM provider. This lets a partition (e.g. an eMMC boot partition) store device-specific information such as a WiFi MAC address or a Bluetooth BD address and reference it through NVMEM cells. Accept "fixed-layout" as the partition node compatible, in addition to "fixed-partitions", so the layout can be described directly on the partition node. Reviewed-by: Rob Herring (Arm) <robh@kernel.org> Signed-off-by: Loic Poulain <loic.poulain@oss.qualcomm.com> Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com> Signed-off-by: Ulf Hansson <ulfh@kernel.org>
This commit is contained in:
parent
f92c238425
commit
b65a40521d
|
|
@ -38,7 +38,9 @@ patternProperties:
|
|||
properties:
|
||||
compatible:
|
||||
contains:
|
||||
const: fixed-partitions
|
||||
enum:
|
||||
- fixed-partitions
|
||||
- fixed-layout
|
||||
|
||||
required:
|
||||
- compatible
|
||||
|
|
@ -86,6 +88,25 @@ examples:
|
|||
read-only;
|
||||
};
|
||||
};
|
||||
|
||||
partitions-boot2 {
|
||||
compatible = "fixed-layout";
|
||||
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
mac-addr@4400 {
|
||||
compatible = "mac-base";
|
||||
reg = <0x4400 0x6>;
|
||||
#nvmem-cell-cells = <1>;
|
||||
};
|
||||
|
||||
bd-addr@5400 {
|
||||
compatible = "mac-base";
|
||||
reg = <0x5400 0x6>;
|
||||
#nvmem-cell-cells = <1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user