* [PATCH] arm64: dts: armada-3720-gl-mv1000: use nvmem-layout
@ 2024-12-03 23:37 Rosen Penev
2024-12-03 23:44 ` Andrew Lunn
0 siblings, 1 reply; 3+ messages in thread
From: Rosen Penev @ 2024-12-03 23:37 UTC (permalink / raw)
To: linux-arm-kernel
Cc: Andrew Lunn, Gregory Clement, Sebastian Hesselbarth, Rob Herring,
Krzysztof Kozlowski, Conor Dooley,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
open list
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.47.0
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] arm64: dts: armada-3720-gl-mv1000: use nvmem-layout
2024-12-03 23:37 [PATCH] arm64: dts: armada-3720-gl-mv1000: use nvmem-layout Rosen Penev
@ 2024-12-03 23:44 ` Andrew Lunn
2024-12-04 1:27 ` Rosen Penev
0 siblings, 1 reply; 3+ messages in thread
From: Andrew Lunn @ 2024-12-03 23:44 UTC (permalink / raw)
To: Rosen Penev
Cc: linux-arm-kernel, Gregory Clement, Sebastian Hesselbarth,
Rob Herring, Krzysztof Kozlowski, Conor Dooley,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
open list
On Tue, Dec 03, 2024 at 03:37:17PM -0800, Rosen Penev wrote:
> nvmem-layout is a more flexible replacement for nvmem-cells.
Do you have this reference board? How did you test this patch?
Andrew
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] arm64: dts: armada-3720-gl-mv1000: use nvmem-layout
2024-12-03 23:44 ` Andrew Lunn
@ 2024-12-04 1:27 ` Rosen Penev
0 siblings, 0 replies; 3+ messages in thread
From: Rosen Penev @ 2024-12-04 1:27 UTC (permalink / raw)
To: Andrew Lunn
Cc: linux-arm-kernel, Gregory Clement, Sebastian Hesselbarth,
Rob Herring, Krzysztof Kozlowski, Conor Dooley,
open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS,
open list
On Tue, Dec 3, 2024 at 3:44 PM Andrew Lunn <andrew@lunn.ch> wrote:
>
> On Tue, Dec 03, 2024 at 03:37:17PM -0800, Rosen Penev wrote:
> > nvmem-layout is a more flexible replacement for nvmem-cells.
>
> Do you have this reference board? How did you test this patch?
Only compile time tested.
2cc3b37f5b6df8189d55d0e812d9658ce256dfec marks nvmem-cells as legacy
and most dts files have already been converted.
This is not a crazy API change that would break anything.
>
> Andrew
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-12-04 1:28 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-03 23:37 [PATCH] arm64: dts: armada-3720-gl-mv1000: use nvmem-layout Rosen Penev
2024-12-03 23:44 ` Andrew Lunn
2024-12-04 1:27 ` Rosen Penev
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.