[openwrt/openwrt] ath79: reduce 'nvmem-cells' definitions on ALFA Network QCA9531 boards
LEDE Commits
lede-commits at lists.infradead.org
Sun Feb 27 08:03:32 PST 2022
pepe2k pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/f645bacd06643ba6141f9be34c22681449a42392
commit f645bacd06643ba6141f9be34c22681449a42392
Author: Piotr Dymacz <pepe2k at gmail.com>
AuthorDate: Tue Feb 22 15:50:22 2022 +0100
ath79: reduce 'nvmem-cells' definitions on ALFA Network QCA9531 boards
All the QCA9531 based boards from ALFA Network are based on the same
design and share a common DTSI: 'qca9531_alfa-network_r36a.dtsi'.
Instead of defining 'nvmem-cells' for the MAC address in every device's
DTS, move definition to the common DTSI file.
Signed-off-by: Piotr Dymacz <pepe2k at gmail.com>
---
target/linux/ath79/dts/qca9531_alfa-network_n2q.dts | 10 ----------
target/linux/ath79/dts/qca9531_alfa-network_pi-wifi4.dts | 10 ----------
target/linux/ath79/dts/qca9531_alfa-network_r36a.dts | 10 ----------
target/linux/ath79/dts/qca9531_alfa-network_r36a.dtsi | 8 ++++++++
4 files changed, 8 insertions(+), 30 deletions(-)
diff --git a/target/linux/ath79/dts/qca9531_alfa-network_n2q.dts b/target/linux/ath79/dts/qca9531_alfa-network_n2q.dts
index 671adb8ccf..8759198f53 100644
--- a/target/linux/ath79/dts/qca9531_alfa-network_n2q.dts
+++ b/target/linux/ath79/dts/qca9531_alfa-network_n2q.dts
@@ -120,13 +120,3 @@
&pcie0 {
status = "okay";
};
-
-&art {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_art_1002: macaddr at 1002 {
- reg = <0x1002 0x6>;
- };
-};
diff --git a/target/linux/ath79/dts/qca9531_alfa-network_pi-wifi4.dts b/target/linux/ath79/dts/qca9531_alfa-network_pi-wifi4.dts
index 5a934ce957..e9e19f9d32 100644
--- a/target/linux/ath79/dts/qca9531_alfa-network_pi-wifi4.dts
+++ b/target/linux/ath79/dts/qca9531_alfa-network_pi-wifi4.dts
@@ -86,13 +86,3 @@
#trigger-source-cells = <0>;
};
};
-
-&art {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_art_1002: macaddr at 1002 {
- reg = <0x1002 0x6>;
- };
-};
diff --git a/target/linux/ath79/dts/qca9531_alfa-network_r36a.dts b/target/linux/ath79/dts/qca9531_alfa-network_r36a.dts
index 01e14bb0b1..6af8d3b8b5 100644
--- a/target/linux/ath79/dts/qca9531_alfa-network_r36a.dts
+++ b/target/linux/ath79/dts/qca9531_alfa-network_r36a.dts
@@ -81,13 +81,3 @@
debounce-interval = <60>;
};
};
-
-&art {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_art_1002: macaddr at 1002 {
- reg = <0x1002 0x6>;
- };
-};
diff --git a/target/linux/ath79/dts/qca9531_alfa-network_r36a.dtsi b/target/linux/ath79/dts/qca9531_alfa-network_r36a.dtsi
index 4c9346db1e..7e89605480 100644
--- a/target/linux/ath79/dts/qca9531_alfa-network_r36a.dtsi
+++ b/target/linux/ath79/dts/qca9531_alfa-network_r36a.dtsi
@@ -86,6 +86,14 @@
label = "art";
reg = <0x070000 0x010000>;
read-only;
+
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_art_1002: macaddr at 1002 {
+ reg = <0x1002 0x6>;
+ };
};
partition at 80000 {
More information about the lede-commits
mailing list