[PATCH 2/3] arm64: dts: broadcom: bcmbca: bcm4908: Fix Asus GT-AC5300's cferom partition
From: Sam Edwards
Date: Wed Oct 09 2024 - 17:51:55 EST
Since the previous patch relaxed the BCM4908 partition DT rules, it is
now possible to have `nvmem-cells` directly under a BCM4908-partitioned
MTD. Make use of this in order to refer to the nvmem MAC address the
"correct" way, and pass the DTB check, for Asus GT-AC5300.
Signed-off-by: Sam Edwards <CFSworks@xxxxxxxxx>
---
.../dts/broadcom/bcmbca/bcm4908-asus-gt-ac5300.dts | 12 +++++-------
1 file changed, 5 insertions(+), 7 deletions(-)
diff --git a/arch/arm64/boot/dts/broadcom/bcmbca/bcm4908-asus-gt-ac5300.dts b/arch/arm64/boot/dts/broadcom/bcmbca/bcm4908-asus-gt-ac5300.dts
index 2a0d4ee3bd79..e4687176cffb 100644
--- a/arch/arm64/boot/dts/broadcom/bcmbca/bcm4908-asus-gt-ac5300.dts
+++ b/arch/arm64/boot/dts/broadcom/bcmbca/bcm4908-asus-gt-ac5300.dts
@@ -185,17 +185,15 @@ partitions {
#size-cells = <1>;
partition@0 {
+ compatible = "nvmem-cells";
label = "cferom";
reg = <0x0 0x100000>;
- nvmem-layout {
- compatible = "fixed-layout";
- #address-cells = <1>;
- #size-cells = <1>;
+ #address-cells = <1>;
+ #size-cells = <1>;
- base_mac_addr: mac@106a0 {
- reg = <0x106a0 0x6>;
- };
+ base_mac_addr: mac@106a0 {
+ reg = <0x106a0 0x6>;
};
};
--
2.44.2