[PATCHv2 5/5] documentation: use nvmem-layout in examples
Rosen Penev
rosenp at gmail.com
Thu Oct 3 17:00:15 PDT 2024
nvmem-cells are deprecated and replaced with nvmem-layout. For these
examples, replace. They're not relevant to the main point of the
document anyway.
Signed-off-by: Rosen Penev <rosenp at gmail.com>
---
.../mtd/partitions/qcom,smem-part.yaml | 19 +++++++++++--------
.../bindings/net/marvell,aquantia.yaml | 13 ++++++++-----
2 files changed, 19 insertions(+), 13 deletions(-)
diff --git a/Documentation/devicetree/bindings/mtd/partitions/qcom,smem-part.yaml b/Documentation/devicetree/bindings/mtd/partitions/qcom,smem-part.yaml
index 1c2b4e780ca9..8ae149534b23 100644
--- a/Documentation/devicetree/bindings/mtd/partitions/qcom,smem-part.yaml
+++ b/Documentation/devicetree/bindings/mtd/partitions/qcom,smem-part.yaml
@@ -45,17 +45,20 @@ examples:
compatible = "qcom,smem-part";
partition-art {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
label = "0:art";
- macaddr_art_0: macaddr at 0 {
- reg = <0x0 0x6>;
- };
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_art_0: macaddr at 0 {
+ reg = <0x0 0x6>;
+ };
- macaddr_art_6: macaddr at 6 {
- reg = <0x6 0x6>;
+ macaddr_art_6: macaddr at 6 {
+ reg = <0x6 0x6>;
+ };
};
};
};
diff --git a/Documentation/devicetree/bindings/net/marvell,aquantia.yaml b/Documentation/devicetree/bindings/net/marvell,aquantia.yaml
index 9854fab4c4db..5d118553228b 100644
--- a/Documentation/devicetree/bindings/net/marvell,aquantia.yaml
+++ b/Documentation/devicetree/bindings/net/marvell,aquantia.yaml
@@ -98,15 +98,18 @@ examples:
/* ... */
partition at 650000 {
- compatible = "nvmem-cells";
label = "0:ethphyfw";
reg = <0x650000 0x80000>;
read-only;
- #address-cells = <1>;
- #size-cells = <1>;
- aqr_fw: aqr_fw at 0 {
- reg = <0x0 0x5f42a>;
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ aqr_fw: aqr_fw at 0 {
+ reg = <0x0 0x5f42a>;
+ };
};
};
--
2.46.2
More information about the linux-mtd
mailing list