73027230296a35180f063945f7b8fcb4ad04d347
[openwrt/staging/wigyori.git] / target / linux / kirkwood / patches-5.4 / 105-ea4500.patch
1 --- a/arch/arm/boot/dts/kirkwood-linksys-viper.dts
2 +++ b/arch/arm/boot/dts/kirkwood-linksys-viper.dts
3 @@ -24,6 +24,10 @@
4 };
5
6 aliases {
7 + led-boot = &led_white_health;
8 + led-failsafe = &led_white_health;
9 + led-running = &led_white_health;
10 + led-upgrade = &led_white_health;
11 serial0 = &uart0;
12 };
13
14 @@ -56,9 +60,10 @@
15 pinctrl-0 = < &pmx_led_white_health &pmx_led_white_pulse >;
16 pinctrl-names = "default";
17
18 - white-health {
19 + led_white_health: white-health {
20 label = "viper:white:health";
21 gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
22 + default-state = "on";
23 };
24
25 white-pulse {
26 @@ -66,6 +71,17 @@
27 gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
28 };
29 };
30 +
31 + mvsw61xx@10 {
32 + compatible = "marvell,88e6171";
33 + status = "okay";
34 + reg = <0x10>;
35 +
36 + mii-bus = <&mdio>;
37 + cpu-port-0 = <5>;
38 + cpu-port-1 = <6>;
39 + is-indirect;
40 + };
41 };
42
43 &pinctrl {
44 @@ -114,22 +130,22 @@
45 };
46
47 partition@200000 {
48 - label = "kernel";
49 + label = "kernel1";
50 reg = <0x200000 0x2A0000>;
51 };
52
53 partition@4a0000 {
54 - label = "rootfs";
55 + label = "rootfs1";
56 reg = <0x4A0000 0x1760000>;
57 };
58
59 partition@1c00000 {
60 - label = "alt_kernel";
61 + label = "kernel2";
62 reg = <0x1C00000 0x2A0000>;
63 };
64
65 partition@1ea0000 {
66 - label = "alt_rootfs";
67 + label = "rootfs2";
68 reg = <0x1EA0000 0x1760000>;
69 };
70
71 @@ -162,6 +178,7 @@
72 status = "okay";
73
74 switch@10 {
75 + status = "disabled";
76 compatible = "marvell,mv88e6085";
77 #address-cells = <1>;
78 #size-cells = <0>;
79 @@ -225,10 +242,14 @@
80 };
81
82 /* eth1 is connected to the switch at port 6. However DSA only supports a
83 - * single CPU port. So leave this port disabled to avoid confusion.
84 + * single CPU port. Upstream uses DSA so they disable this port to avoid confusion.
85 */
86 &eth1 {
87 - status = "disabled";
88 + status = "okay";
89 + ethernet1-port@0 {
90 + speed = <1000>;
91 + duplex = <1>;
92 + };
93 };
94
95 /* There is no battery on the board, so the RTC does not keep