ath79: reduce 'nvmem-cells' definitions on ALFA Network QCA9531 boards
authorPiotr Dymacz <pepe2k@gmail.com>
Tue, 22 Feb 2022 14:50:22 +0000 (15:50 +0100)
committerPiotr Dymacz <pepe2k@gmail.com>
Sun, 27 Feb 2022 14:09:36 +0000 (15:09 +0100)
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@gmail.com>
target/linux/ath79/dts/qca9531_alfa-network_n2q.dts
target/linux/ath79/dts/qca9531_alfa-network_pi-wifi4.dts
target/linux/ath79/dts/qca9531_alfa-network_r36a.dts
target/linux/ath79/dts/qca9531_alfa-network_r36a.dtsi

index 671adb8ccf8ee7bd954d7d8c62eb2757e23a1378..8759198f532808a11a2a0cd4705f3c1a16a50b9f 100644 (file)
 &pcie0 {
        status = "okay";
 };
-
-&art {
-       compatible = "nvmem-cells";
-       #address-cells = <1>;
-       #size-cells = <1>;
-
-       macaddr_art_1002: macaddr@1002 {
-               reg = <0x1002 0x6>;
-       };
-};
index 5a934ce957cdcd95081327c83f4e717362dd6197..e9e19f9d3287e346eebec68733577699251bf5b4 100644 (file)
                #trigger-source-cells = <0>;
        };
 };
-
-&art {
-       compatible = "nvmem-cells";
-       #address-cells = <1>;
-       #size-cells = <1>;
-
-       macaddr_art_1002: macaddr@1002 {
-               reg = <0x1002 0x6>;
-       };
-};
index 01e14bb0b138c93c64d85118145cdccfb82677b1..6af8d3b8b526feeb663ca0aed948109717ee558d 100644 (file)
                debounce-interval = <60>;
        };
 };
-
-&art {
-       compatible = "nvmem-cells";
-       #address-cells = <1>;
-       #size-cells = <1>;
-
-       macaddr_art_1002: macaddr@1002 {
-               reg = <0x1002 0x6>;
-       };
-};
index 4c9346db1ec66794cdc6e24e12578ffa825ecec6..7e89605480386ec9e5ab512825366e41fecba5e9 100644 (file)
                                label = "art";
                                reg = <0x070000 0x010000>;
                                read-only;
+
+                               compatible = "nvmem-cells";
+                               #address-cells = <1>;
+                               #size-cells = <1>;
+
+                               macaddr_art_1002: macaddr@1002 {
+                                       reg = <0x1002 0x6>;
+                               };
                        };
 
                        partition@80000 {