* [Buildroot] [PATCH 1/1] board/acmesystems/acqua-a5: update device tree for newer kernels
@ 2024-09-23 10:28 Edgar Bonet
2024-10-29 21:32 ` Thomas Petazzoni via buildroot
0 siblings, 1 reply; 2+ messages in thread
From: Edgar Bonet @ 2024-09-23 10:28 UTC (permalink / raw)
To: buildroot; +Cc: Biagio Montaruli
The Ethernet MAC address of the Acqua board is stored in an onboard
EEPROM. Its location is described in the device tree as:
eeprom@58 { // NVMEM node
// EEPROM parameters...
eth0_addr: eth-mac-addr@9A { // NVMEM cells
reg = <0x0 0x06>;
};
};
Since Linux 6.5, defining NVMEM cells this way, as direct children of
the NVMEM node, is deprecated. It is instead recommended to wrap the
cells inside a "fixed-layout" node.
The older, deprecated syntax is still supported on Linux 6.6. Since
Linux 6.7 (commit 2cc3b37f5b6d: "nvmem: add explicit config option to
read old syntax fixed OF cells") however, it is only supported by
selected NVMEM drivers. It is not supported by the at24 driver used to
access the Acqua's onboard EEPROM.
Update the device tree to the new, recommended, syntax. This makes it
work with newer kernels, while preserving compatibility with the
currently used 6.6.30.
Signed-off-by: Edgar Bonet <bonet@grenoble.cnrs.fr>
---
board/acmesystems/acqua-a5/at91-sama5d3_acqua.dts | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/board/acmesystems/acqua-a5/at91-sama5d3_acqua.dts b/board/acmesystems/acqua-a5/at91-sama5d3_acqua.dts
index a7a4a20352..411d1942f5 100644
--- a/board/acmesystems/acqua-a5/at91-sama5d3_acqua.dts
+++ b/board/acmesystems/acqua-a5/at91-sama5d3_acqua.dts
@@ -149,8 +149,14 @@
#address-cells = <1>;
#size-cells = <1>;
- eth0_addr: eth-mac-addr@9A {
- reg = <0x0 0x06>;
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ eth0_addr: eth-mac-addr@9A {
+ reg = <0x0 0x06>;
+ };
};
};
--
2.34.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Buildroot] [PATCH 1/1] board/acmesystems/acqua-a5: update device tree for newer kernels
2024-09-23 10:28 [Buildroot] [PATCH 1/1] board/acmesystems/acqua-a5: update device tree for newer kernels Edgar Bonet
@ 2024-10-29 21:32 ` Thomas Petazzoni via buildroot
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni via buildroot @ 2024-10-29 21:32 UTC (permalink / raw)
To: Edgar Bonet; +Cc: buildroot, Biagio Montaruli
On Mon, 23 Sep 2024 12:28:51 +0200
Edgar Bonet <bonet@grenoble.cnrs.fr> wrote:
> The Ethernet MAC address of the Acqua board is stored in an onboard
> EEPROM. Its location is described in the device tree as:
>
> eeprom@58 { // NVMEM node
> // EEPROM parameters...
>
> eth0_addr: eth-mac-addr@9A { // NVMEM cells
> reg = <0x0 0x06>;
> };
> };
>
> Since Linux 6.5, defining NVMEM cells this way, as direct children of
> the NVMEM node, is deprecated. It is instead recommended to wrap the
> cells inside a "fixed-layout" node.
>
> The older, deprecated syntax is still supported on Linux 6.6. Since
> Linux 6.7 (commit 2cc3b37f5b6d: "nvmem: add explicit config option to
> read old syntax fixed OF cells") however, it is only supported by
> selected NVMEM drivers. It is not supported by the at24 driver used to
> access the Acqua's onboard EEPROM.
>
> Update the device tree to the new, recommended, syntax. This makes it
> work with newer kernels, while preserving compatibility with the
> currently used 6.6.30.
>
> Signed-off-by: Edgar Bonet <bonet@grenoble.cnrs.fr>
> ---
> board/acmesystems/acqua-a5/at91-sama5d3_acqua.dts | 10 ++++++++--
> 1 file changed, 8 insertions(+), 2 deletions(-)
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-10-29 21:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-23 10:28 [Buildroot] [PATCH 1/1] board/acmesystems/acqua-a5: update device tree for newer kernels Edgar Bonet
2024-10-29 21:32 ` Thomas Petazzoni via buildroot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox