openwrt/target/linux/kirkwood/patches-5.4/105-ea4500.patch
Pawel Dembicki 4fd7e539e4 kirkwood: switch from swconfig to dsa
This patch removes support for swconfig and switches to dsa driver.

swconfig and switch drivers are removed. DSA driver is enabled and
configuration is adjusted.

In kirkwood only two devices have switches: Linksys EA3500 and EA4500.

WAN MAC configuration in 02_network is required because otherwise WAN
would have the same MAC address as lan interfaces. In swconfig solution
the WAN address was assigned in u-Boot to eth1. Now, as eth1 is disabled
and wan is part of the switch, we have to set it manually.

Compile tested: EA3500, EA4500
Run tested: EA4500

Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
[minor commit title/message adjustments, remove swconfig package
for devices]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-04-28 16:49:31 +02:00

53 lines
1.0 KiB
Diff

--- a/arch/arm/boot/dts/kirkwood-linksys-viper.dts
+++ b/arch/arm/boot/dts/kirkwood-linksys-viper.dts
@@ -24,6 +24,10 @@
};
aliases {
+ led-boot = &led_white_health;
+ led-failsafe = &led_white_health;
+ led-running = &led_white_health;
+ led-upgrade = &led_white_health;
serial0 = &uart0;
};
@@ -56,9 +60,10 @@
pinctrl-0 = < &pmx_led_white_health &pmx_led_white_pulse >;
pinctrl-names = "default";
- white-health {
+ led_white_health: white-health {
label = "viper:white:health";
gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
+ default-state = "on";
};
white-pulse {
@@ -114,22 +119,22 @@
};
partition@200000 {
- label = "kernel";
+ label = "kernel1";
reg = <0x200000 0x2A0000>;
};
partition@4a0000 {
- label = "rootfs";
+ label = "rootfs1";
reg = <0x4A0000 0x1760000>;
};
partition@1c00000 {
- label = "alt_kernel";
+ label = "kernel2";
reg = <0x1C00000 0x2A0000>;
};
partition@1ea0000 {
- label = "alt_rootfs";
+ label = "rootfs2";
reg = <0x1EA0000 0x1760000>;
};