aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79/dts
diff options
context:
space:
mode:
authorSungbo Eo <mans0n@gorani.run>2022-01-31 13:21:47 +0900
committerSungbo Eo <mans0n@gorani.run>2022-02-01 14:54:16 +0900
commitc7a559980ad18270c0c1c7afa4cbe708f26fb851 (patch)
treeca133216b20cbe59f6e3522a4d9bcd1b2d9ef732 /target/linux/ath79/dts
parent0c635cf830bc9bb46005f5f8ac414c80e1bcab4e (diff)
downloadupstream-c7a559980ad18270c0c1c7afa4cbe708f26fb851.tar.gz
upstream-c7a559980ad18270c0c1c7afa4cbe708f26fb851.tar.bz2
upstream-c7a559980ad18270c0c1c7afa4cbe708f26fb851.zip
ath79: improve support for Dongwon T&I DW02-412H
* Move &nand node to DTSI * Utilize nvmem for fetching caldata * Rename build recipe, clean before build * Simplify KERNEL definition Signed-off-by: Sungbo Eo <mans0n@gorani.run>
Diffstat (limited to 'target/linux/ath79/dts')
-rw-r--r--target/linux/ath79/dts/qca9557_dongwon_dw02-412h-128m.dts26
-rw-r--r--target/linux/ath79/dts/qca9557_dongwon_dw02-412h-64m.dts26
-rw-r--r--target/linux/ath79/dts/qca9557_dongwon_dw02-412h.dtsi66
3 files changed, 54 insertions, 64 deletions
diff --git a/target/linux/ath79/dts/qca9557_dongwon_dw02-412h-128m.dts b/target/linux/ath79/dts/qca9557_dongwon_dw02-412h-128m.dts
index 2308d82af9..199529e709 100644
--- a/target/linux/ath79/dts/qca9557_dongwon_dw02-412h-128m.dts
+++ b/target/linux/ath79/dts/qca9557_dongwon_dw02-412h-128m.dts
@@ -7,28 +7,6 @@
compatible = "dongwon,dw02-412h-128m", "qca,qca9557";
};
-&nand {
- status = "okay";
-
- partitions {
- compatible = "fixed-partitions";
- #address-cells = <1>;
- #size-cells = <1>;
-
- partition@0 {
- label = "current";
- reg = <0x0 0x1000000>;
- read-only;
- };
-
- partition@1000000 {
- label = "kernel";
- reg = <0x1000000 0x800000>;
- };
-
- partition@1800000 {
- label = "ubi";
- reg = <0x1800000 0x6800000>;
- };
- };
+&ubi {
+ reg = <0x1800000 0x6800000>;
};
diff --git a/target/linux/ath79/dts/qca9557_dongwon_dw02-412h-64m.dts b/target/linux/ath79/dts/qca9557_dongwon_dw02-412h-64m.dts
index 2420dc11a9..15d3d677a9 100644
--- a/target/linux/ath79/dts/qca9557_dongwon_dw02-412h-64m.dts
+++ b/target/linux/ath79/dts/qca9557_dongwon_dw02-412h-64m.dts
@@ -7,28 +7,6 @@
compatible = "dongwon,dw02-412h-64m", "qca,qca9557";
};
-&nand {
- status = "okay";
-
- partitions {
- compatible = "fixed-partitions";
- #address-cells = <1>;
- #size-cells = <1>;
-
- partition@0 {
- label = "current";
- reg = <0x0 0x1000000>;
- read-only;
- };
-
- partition@1000000 {
- label = "kernel";
- reg = <0x1000000 0x800000>;
- };
-
- partition@1800000 {
- label = "ubi";
- reg = <0x1800000 0x2800000>;
- };
- };
+&ubi {
+ reg = <0x1800000 0x2800000>;
};
diff --git a/target/linux/ath79/dts/qca9557_dongwon_dw02-412h.dtsi b/target/linux/ath79/dts/qca9557_dongwon_dw02-412h.dtsi
index fd56983432..498499c146 100644
--- a/target/linux/ath79/dts/qca9557_dongwon_dw02-412h.dtsi
+++ b/target/linux/ath79/dts/qca9557_dongwon_dw02-412h.dtsi
@@ -97,30 +97,74 @@
read-only;
};
- art: partition@1f0000 {
+ partition@1f0000 {
label = "art";
reg = <0x1f0000 0x010000>;
read-only;
+
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_art_0: macaddr@0 {
+ reg = <0x0 0x6>;
+ };
+
+ cal_art_1000: cal@1000 {
+ reg = <0x1000 0x440>;
+ };
+
+ cal_art_5000: cal@5000 {
+ reg = <0x5000 0x844>;
+ };
};
};
};
};
+&nand {
+ status = "okay";
+
+ partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ partition@0 {
+ label = "current";
+ reg = <0x0 0x1000000>;
+ read-only;
+ };
+
+ partition@1000000 {
+ label = "kernel";
+ reg = <0x1000000 0x800000>;
+ };
+
+ ubi: partition@1800000 {
+ label = "ubi";
+ };
+ };
+};
+
&pcie0 {
status = "okay";
wifi@0,0 {
compatible = "qcom,ath10k";
reg = <0 0 0 0 0>;
+
+ nvmem-cells = <&macaddr_art_0>, <&cal_art_5000>;
+ nvmem-cell-names = "mac-address", "calibration";
+ mac-address-increment = <4>;
};
};
&wmac {
status = "okay";
- mtd-cal-data = <&art 0x1000>;
- nvmem-cells = <&macaddr_art_0>;
- nvmem-cell-names = "mac-address";
+ nvmem-cells = <&macaddr_art_0>, <&cal_art_1000>;
+ nvmem-cell-names = "mac-address", "calibration";
mac-address-increment = <3>;
};
@@ -144,8 +188,8 @@
0x54 0x00000000 /* LED Control Register 1 */
0x58 0x00000000 /* LED Control Register 2 */
0x5c 0x0030c300 /* LED Control Register 3 */
- 0x7c 0x0000007e /* PORT0_STATUS */
- >;
+ 0x7c 0x0000007e /* PORT0_STATUS */
+ >;
};
};
@@ -163,13 +207,3 @@
rgmii-enabled = <1>;
};
};
-
-&art {
- compatible = "nvmem-cells";
- #address-cells = <1>;
- #size-cells = <1>;
-
- macaddr_art_0: macaddr@0 {
- reg = <0x0 0x6>;
- };
-};