* [PATCHv3 1/5] ARM: dts: qcom: ipq4019: use nvmem-layout
2024-10-09 21:48 [PATCHv3 0/5] devicetree: move nvmem-cells users to nvmem-layout Rosen Penev
@ 2024-10-09 21:48 ` Rosen Penev
2024-10-09 21:48 ` [PATCHv3 2/5] arm64: dts: bcm4908: nvmem-layout conversion Rosen Penev
` (3 subsequent siblings)
4 siblings, 0 replies; 7+ messages in thread
From: Rosen Penev @ 2024-10-09 21:48 UTC (permalink / raw)
To: devicetree
Cc: Miquel Raynal, Richard Weinberger, Vignesh Raghavendra,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, David S. Miller,
Eric Dumazet, Jakub Kicinski, Paolo Abeni, Bjorn Andersson,
Konrad Dybcio, William Zhang, Anand Gore, Kursad Oney,
Florian Fainelli, Rafał Miłecki,
Broadcom internal kernel review list, Andrew Lunn,
Gregory Clement, Sebastian Hesselbarth, Matthias Brugger,
AngeloGioacchino Del Regno, Rosen Penev, Manivannan Sadhasivam,
Christian Marangi, open list:MEMORY TECHNOLOGY DEVICES (MTD),
open list, open list:NETWORKING DRIVERS,
open list:ARM/QUALCOMM SUPPORT,
moderated list:BROADCOM BCMBCA ARM ARCHITECTURE,
moderated list:ARM/Mediatek SoC support
nvmem-layout is a more flexible replacement for nvmem-cells.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
.../boot/dts/qcom/qcom-ipq4018-ap120c-ac.dtsi | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/arch/arm/boot/dts/qcom/qcom-ipq4018-ap120c-ac.dtsi b/arch/arm/boot/dts/qcom/qcom-ipq4018-ap120c-ac.dtsi
index 0d23c03fae33..a6d4390efa7c 100644
--- a/arch/arm/boot/dts/qcom/qcom-ipq4018-ap120c-ac.dtsi
+++ b/arch/arm/boot/dts/qcom/qcom-ipq4018-ap120c-ac.dtsi
@@ -166,16 +166,19 @@ partition@170000 {
label = "ART";
reg = <0x00170000 0x00010000>;
read-only;
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
- precal_art_1000: precal@1000 {
- reg = <0x1000 0x2f20>;
- };
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ precal_art_1000: precal@1000 {
+ reg = <0x1000 0x2f20>;
+ };
- precal_art_5000: precal@5000 {
- reg = <0x5000 0x2f20>;
+ precal_art_5000: precal@5000 {
+ reg = <0x5000 0x2f20>;
+ };
};
};
--
2.46.2
^ permalink raw reply related [flat|nested] 7+ messages in thread* [PATCHv3 2/5] arm64: dts: bcm4908: nvmem-layout conversion
2024-10-09 21:48 [PATCHv3 0/5] devicetree: move nvmem-cells users to nvmem-layout Rosen Penev
2024-10-09 21:48 ` [PATCHv3 1/5] ARM: dts: qcom: ipq4019: use nvmem-layout Rosen Penev
@ 2024-10-09 21:48 ` Rosen Penev
2024-10-09 21:48 ` [PATCHv3 3/5] arm64: dts: armada-3720-gl-mv1000: use nvmem-layout Rosen Penev
` (2 subsequent siblings)
4 siblings, 0 replies; 7+ messages in thread
From: Rosen Penev @ 2024-10-09 21:48 UTC (permalink / raw)
To: devicetree
Cc: Miquel Raynal, Richard Weinberger, Vignesh Raghavendra,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, David S. Miller,
Eric Dumazet, Jakub Kicinski, Paolo Abeni, Bjorn Andersson,
Konrad Dybcio, William Zhang, Anand Gore, Kursad Oney,
Florian Fainelli, Rafał Miłecki,
Broadcom internal kernel review list, Andrew Lunn,
Gregory Clement, Sebastian Hesselbarth, Matthias Brugger,
AngeloGioacchino Del Regno, Rosen Penev, Manivannan Sadhasivam,
Christian Marangi, open list:MEMORY TECHNOLOGY DEVICES (MTD),
open list, open list:NETWORKING DRIVERS,
open list:ARM/QUALCOMM SUPPORT,
moderated list:BROADCOM BCMBCA ARM ARCHITECTURE,
moderated list:ARM/Mediatek SoC support
nvmem-layout is a more flexible replacement for nvmem-cells.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
.../dts/broadcom/bcmbca/bcm4906-netgear-r8000p.dts | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/arch/arm64/boot/dts/broadcom/bcmbca/bcm4906-netgear-r8000p.dts b/arch/arm64/boot/dts/broadcom/bcmbca/bcm4906-netgear-r8000p.dts
index 999d93730240..a5f9ec92bd5e 100644
--- a/arch/arm64/boot/dts/broadcom/bcmbca/bcm4906-netgear-r8000p.dts
+++ b/arch/arm64/boot/dts/broadcom/bcmbca/bcm4906-netgear-r8000p.dts
@@ -144,16 +144,20 @@ partitions {
#size-cells = <1>;
partition@0 {
- compatible = "nvmem-cells";
label = "cferom";
reg = <0x0 0x100000>;
-
#address-cells = <1>;
#size-cells = <1>;
ranges = <0 0x0 0x100000>;
- base_mac_addr: mac@106a0 {
- reg = <0x106a0 0x6>;
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ base_mac_addr: mac@106a0 {
+ reg = <0x106a0 0x6>;
+ };
};
};
--
2.46.2
^ permalink raw reply related [flat|nested] 7+ messages in thread* [PATCHv3 3/5] arm64: dts: armada-3720-gl-mv1000: use nvmem-layout
2024-10-09 21:48 [PATCHv3 0/5] devicetree: move nvmem-cells users to nvmem-layout Rosen Penev
2024-10-09 21:48 ` [PATCHv3 1/5] ARM: dts: qcom: ipq4019: use nvmem-layout Rosen Penev
2024-10-09 21:48 ` [PATCHv3 2/5] arm64: dts: bcm4908: nvmem-layout conversion Rosen Penev
@ 2024-10-09 21:48 ` Rosen Penev
2024-10-09 21:48 ` [PATCHv3 4/5] arm64: dts: mediatek: 7886cax: " Rosen Penev
2024-10-09 21:48 ` [PATCHv3 5/5] documentation: use nvmem-layout in examples Rosen Penev
4 siblings, 0 replies; 7+ messages in thread
From: Rosen Penev @ 2024-10-09 21:48 UTC (permalink / raw)
To: devicetree
Cc: Miquel Raynal, Richard Weinberger, Vignesh Raghavendra,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, David S. Miller,
Eric Dumazet, Jakub Kicinski, Paolo Abeni, Bjorn Andersson,
Konrad Dybcio, William Zhang, Anand Gore, Kursad Oney,
Florian Fainelli, Rafał Miłecki,
Broadcom internal kernel review list, Andrew Lunn,
Gregory Clement, Sebastian Hesselbarth, Matthias Brugger,
AngeloGioacchino Del Regno, Rosen Penev, Manivannan Sadhasivam,
Christian Marangi, open list:MEMORY TECHNOLOGY DEVICES (MTD),
open list, open list:NETWORKING DRIVERS,
open list:ARM/QUALCOMM SUPPORT,
moderated list:BROADCOM BCMBCA ARM ARCHITECTURE,
moderated list:ARM/Mediatek SoC support
nvmem-layout is a more flexible replacement for nvmem-cells.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
.../dts/marvell/armada-3720-gl-mv1000.dts | 30 +++++++++----------
1 file changed, 15 insertions(+), 15 deletions(-)
diff --git a/arch/arm64/boot/dts/marvell/armada-3720-gl-mv1000.dts b/arch/arm64/boot/dts/marvell/armada-3720-gl-mv1000.dts
index 56930f2ce481..7b801b60862d 100644
--- a/arch/arm64/boot/dts/marvell/armada-3720-gl-mv1000.dts
+++ b/arch/arm64/boot/dts/marvell/armada-3720-gl-mv1000.dts
@@ -98,10 +98,24 @@ partition@f0000 {
reg = <0xf0000 0x8000>;
};
- factory: partition@f8000 {
+ partition@f8000 {
label = "factory";
reg = <0xf8000 0x8000>;
read-only;
+
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_factory_0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
+
+ macaddr_factory_6: macaddr@6 {
+ reg = <0x6 0x6>;
+ };
+ };
};
partition@100000 {
@@ -221,17 +235,3 @@ fixed-link {
full-duplex;
};
};
-
-&factory {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_factory_0: macaddr@0 {
- reg = <0x0 0x6>;
- };
-
- macaddr_factory_6: macaddr@6 {
- reg = <0x6 0x6>;
- };
-};
--
2.46.2
^ permalink raw reply related [flat|nested] 7+ messages in thread* [PATCHv3 4/5] arm64: dts: mediatek: 7886cax: use nvmem-layout
2024-10-09 21:48 [PATCHv3 0/5] devicetree: move nvmem-cells users to nvmem-layout Rosen Penev
` (2 preceding siblings ...)
2024-10-09 21:48 ` [PATCHv3 3/5] arm64: dts: armada-3720-gl-mv1000: use nvmem-layout Rosen Penev
@ 2024-10-09 21:48 ` Rosen Penev
2024-10-09 21:48 ` [PATCHv3 5/5] documentation: use nvmem-layout in examples Rosen Penev
4 siblings, 0 replies; 7+ messages in thread
From: Rosen Penev @ 2024-10-09 21:48 UTC (permalink / raw)
To: devicetree
Cc: Miquel Raynal, Richard Weinberger, Vignesh Raghavendra,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, David S. Miller,
Eric Dumazet, Jakub Kicinski, Paolo Abeni, Bjorn Andersson,
Konrad Dybcio, William Zhang, Anand Gore, Kursad Oney,
Florian Fainelli, Rafał Miłecki,
Broadcom internal kernel review list, Andrew Lunn,
Gregory Clement, Sebastian Hesselbarth, Matthias Brugger,
AngeloGioacchino Del Regno, Rosen Penev, Manivannan Sadhasivam,
Christian Marangi, open list:MEMORY TECHNOLOGY DEVICES (MTD),
open list, open list:NETWORKING DRIVERS,
open list:ARM/QUALCOMM SUPPORT,
moderated list:BROADCOM BCMBCA ARM ARCHITECTURE,
moderated list:ARM/Mediatek SoC support
nvmem-layout is a more flexible replacement for nvmem-cells.
Signed-off-by: Rosen Penev <rosenp@gmail.com>
---
arch/arm64/boot/dts/mediatek/mt7986a-acelink-ew-7886cax.dts | 1 -
1 file changed, 1 deletion(-)
diff --git a/arch/arm64/boot/dts/mediatek/mt7986a-acelink-ew-7886cax.dts b/arch/arm64/boot/dts/mediatek/mt7986a-acelink-ew-7886cax.dts
index 08b3b0827436..9a6625d8660f 100644
--- a/arch/arm64/boot/dts/mediatek/mt7986a-acelink-ew-7886cax.dts
+++ b/arch/arm64/boot/dts/mediatek/mt7986a-acelink-ew-7886cax.dts
@@ -121,7 +121,6 @@ partition@100000 {
};
partition@180000 {
- compatible = "nvmem-cells";
reg = <0x180000 0x200000>;
label = "factory";
read-only;
--
2.46.2
^ permalink raw reply related [flat|nested] 7+ messages in thread* [PATCHv3 5/5] documentation: use nvmem-layout in examples
2024-10-09 21:48 [PATCHv3 0/5] devicetree: move nvmem-cells users to nvmem-layout Rosen Penev
` (3 preceding siblings ...)
2024-10-09 21:48 ` [PATCHv3 4/5] arm64: dts: mediatek: 7886cax: " Rosen Penev
@ 2024-10-09 21:48 ` Rosen Penev
2024-10-10 4:50 ` Krzysztof Kozlowski
4 siblings, 1 reply; 7+ messages in thread
From: Rosen Penev @ 2024-10-09 21:48 UTC (permalink / raw)
To: devicetree
Cc: Miquel Raynal, Richard Weinberger, Vignesh Raghavendra,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, David S. Miller,
Eric Dumazet, Jakub Kicinski, Paolo Abeni, Bjorn Andersson,
Konrad Dybcio, William Zhang, Anand Gore, Kursad Oney,
Florian Fainelli, Rafał Miłecki,
Broadcom internal kernel review list, Andrew Lunn,
Gregory Clement, Sebastian Hesselbarth, Matthias Brugger,
AngeloGioacchino Del Regno, Rosen Penev, Manivannan Sadhasivam,
Christian Marangi, open list:MEMORY TECHNOLOGY DEVICES (MTD),
open list, open list:NETWORKING DRIVERS,
open list:ARM/QUALCOMM SUPPORT,
moderated list:BROADCOM BCMBCA ARM ARCHITECTURE,
moderated list:ARM/Mediatek SoC support
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@gmail.com>
---
.../mtd/partitions/qcom,smem-part.yaml | 21 +++++++++++--------
.../bindings/net/marvell,aquantia.yaml | 13 +++++++-----
2 files changed, 20 insertions(+), 14 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..c2cc11286d80 100644
--- a/Documentation/devicetree/bindings/mtd/partitions/qcom,smem-part.yaml
+++ b/Documentation/devicetree/bindings/mtd/partitions/qcom,smem-part.yaml
@@ -23,7 +23,7 @@ properties:
patternProperties:
"^partition-[0-9a-z]+$":
- $ref: nvmem-cells.yaml
+ $ref: nvmem-layout.yaml
required:
- compatible
@@ -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@0 {
- reg = <0x0 0x6>;
- };
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_art_0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
- macaddr_art_6: macaddr@6 {
- reg = <0x6 0x6>;
+ macaddr_art_6: macaddr@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@650000 {
- compatible = "nvmem-cells";
label = "0:ethphyfw";
reg = <0x650000 0x80000>;
read-only;
- #address-cells = <1>;
- #size-cells = <1>;
- aqr_fw: aqr_fw@0 {
- reg = <0x0 0x5f42a>;
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ aqr_fw: aqr_fw@0 {
+ reg = <0x0 0x5f42a>;
+ };
};
};
--
2.46.2
^ permalink raw reply related [flat|nested] 7+ messages in thread* Re: [PATCHv3 5/5] documentation: use nvmem-layout in examples
2024-10-09 21:48 ` [PATCHv3 5/5] documentation: use nvmem-layout in examples Rosen Penev
@ 2024-10-10 4:50 ` Krzysztof Kozlowski
0 siblings, 0 replies; 7+ messages in thread
From: Krzysztof Kozlowski @ 2024-10-10 4:50 UTC (permalink / raw)
To: Rosen Penev, devicetree
Cc: Miquel Raynal, Richard Weinberger, Vignesh Raghavendra,
Rob Herring, Krzysztof Kozlowski, Conor Dooley, David S. Miller,
Eric Dumazet, Jakub Kicinski, Paolo Abeni, Bjorn Andersson,
Konrad Dybcio, William Zhang, Anand Gore, Kursad Oney,
Florian Fainelli, Rafał Miłecki,
Broadcom internal kernel review list, Andrew Lunn,
Gregory Clement, Sebastian Hesselbarth, Matthias Brugger,
AngeloGioacchino Del Regno, Manivannan Sadhasivam,
Christian Marangi, open list:MEMORY TECHNOLOGY DEVICES (MTD),
open list, open list:NETWORKING DRIVERS,
open list:ARM/QUALCOMM SUPPORT,
moderated list:BROADCOM BCMBCA ARM ARCHITECTURE,
moderated list:ARM/Mediatek SoC support
On 09/10/2024 23:48, Rosen Penev wrote:
> 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@gmail.com>
> ---
Please use subject prefixes matching the subsystem. You can get them for
example with `git log --oneline -- DIRECTORY_OR_FILE` on the directory
your patch is touching. For bindings, the preferred subjects are
explained here:
https://www.kernel.org/doc/html/latest/devicetree/bindings/submitting-patches.html#i-for-patch-submitters
You already got this comment, is something unclear?
> .../mtd/partitions/qcom,smem-part.yaml | 21 +++++++++++--------
> .../bindings/net/marvell,aquantia.yaml | 13 +++++++-----
> 2 files changed, 20 insertions(+), 14 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..c2cc11286d80 100644
> --- a/Documentation/devicetree/bindings/mtd/partitions/qcom,smem-part.yaml
> +++ b/Documentation/devicetree/bindings/mtd/partitions/qcom,smem-part.yaml
> @@ -23,7 +23,7 @@ properties:
>
> patternProperties:
> "^partition-[0-9a-z]+$":
> - $ref: nvmem-cells.yaml
> + $ref: nvmem-layout.yaml
There is no such file here, so this should be full path /schemas/nvmem/....
but is this a nvmem? Looks like MTD and NAND. Previously this was a
partition, now it is not. I don't understand what you are trying to
achieve here.
Best regards,
Krzysztof
^ permalink raw reply [flat|nested] 7+ messages in thread