aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ipq40xx/files
diff options
context:
space:
mode:
authorNick Hainke <vincent@systemli.org>2022-07-16 10:33:24 +0200
committerChristian Marangi <ansuelsmth@gmail.com>2023-04-24 18:32:26 +0200
commit0f269554e4fd16dd4bcb705e38ff063199e57018 (patch)
tree167bc37c13933d44ba16e49a1590c5c86dd65892 /target/linux/ipq40xx/files
parent90ad13c76360e5c0ff45db2fd88ffb2595afe451 (diff)
downloadupstream-0f269554e4fd16dd4bcb705e38ff063199e57018.tar.gz
upstream-0f269554e4fd16dd4bcb705e38ff063199e57018.tar.bz2
upstream-0f269554e4fd16dd4bcb705e38ff063199e57018.zip
ipq40xx: convert GL-AP1300 to DSA
Convert GL-AP1300 to DSA and enable it. While working on it rename the GL-AP1300 leds from green to white. Tested-by: Rob White <rob@blue-wave.net> Tested-by: Robert Sommer <frauhottelmann@gmail.com> Signed-off-by: Nick Hainke <vincent@systemli.org>
Diffstat (limited to 'target/linux/ipq40xx/files')
-rw-r--r--target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4018-gl-ap1300.dts37
1 files changed, 34 insertions, 3 deletions
diff --git a/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4018-gl-ap1300.dts b/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4018-gl-ap1300.dts
index 41ed66e595..6f5d4d8a57 100644
--- a/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4018-gl-ap1300.dts
+++ b/target/linux/ipq40xx/files/arch/arm/boot/dts/qcom-ipq4018-gl-ap1300.dts
@@ -14,7 +14,6 @@
led-failsafe = &led_power;
led-running = &led_power;
led-upgrade = &led_power;
- label-mac-device = &gmac0;
};
memory {
@@ -92,13 +91,13 @@
compatible = "gpio-leds";
led_power: power {
- label = "green:power";
+ label = "white:power";
gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
default-state = "on";
};
wan {
- label = "green:wan";
+ label = "white:wan";
gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
};
};
@@ -180,6 +179,14 @@
#address-cells = <1>;
#size-cells = <1>;
+ macaddr_art_0: mac-address@0 {
+ reg = <0x0 0x6>;
+ };
+
+ macaddr_art_6: mac-address@6 {
+ reg = <0x6 0x6>;
+ };
+
precal_art_1000: precal@1000 {
reg = <0x1000 0x2f20>;
};
@@ -256,6 +263,30 @@
status = "okay";
};
+&gmac {
+ status = "okay";
+};
+
+&switch {
+ status = "okay";
+};
+
+&swport4 {
+ status = "okay";
+ label = "lan";
+
+ nvmem-cells = <&macaddr_art_0>;
+ nvmem-cell-names = "mac-address";
+};
+
+&swport5 {
+ status = "okay";
+ label = "wan";
+
+ nvmem-cells = <&macaddr_art_6>;
+ nvmem-cell-names = "mac-address";
+};
+
&wifi0 {
status = "okay";
nvmem-cell-names = "pre-calibration";