2018-12-27 14:39:36 +00:00
|
|
|
--- a/arch/arm/boot/dts/kirkwood-linksys-viper.dts
|
|
|
|
+++ b/arch/arm/boot/dts/kirkwood-linksys-viper.dts
|
2020-02-04 16:26:47 +00:00
|
|
|
@@ -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,7 +60,7 @@
|
|
|
|
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>;
|
|
|
|
};
|
|
|
|
@@ -67,9 +71,23 @@
|
2018-12-27 14:39:36 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
- dsa {
|
|
|
|
- status = "disabled";
|
|
|
|
+ switches {
|
|
|
|
+ #address-cells = <1>;
|
|
|
|
+ #size-cells = <0>;
|
2019-02-20 15:02:57 +00:00
|
|
|
|
2018-12-27 14:39:36 +00:00
|
|
|
+ mvsw61xx@10 {
|
|
|
|
+ compatible = "marvell,88e6171";
|
|
|
|
+ status = "okay";
|
|
|
|
+ reg = <0x10>;
|
|
|
|
+
|
|
|
|
+ mii-bus = <&mdio>;
|
|
|
|
+ cpu-port-0 = <5>;
|
|
|
|
+ cpu-port-1 = <6>;
|
|
|
|
+ is-indirect;
|
|
|
|
+ };
|
|
|
|
+ };
|
2019-02-20 15:02:57 +00:00
|
|
|
+
|
2018-12-27 14:39:36 +00:00
|
|
|
+ dsa {
|
|
|
|
compatible = "marvell,dsa";
|
|
|
|
#address-cells = <2>;
|
|
|
|
#size-cells = <0>;
|
2020-02-04 16:26:47 +00:00
|
|
|
@@ -161,22 +179,22 @@
|
2018-12-27 14:39:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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>;
|
|
|
|
};
|
|
|
|
|
2020-02-04 16:26:47 +00:00
|
|
|
@@ -207,53 +225,6 @@
|
2018-12-27 14:39:36 +00:00
|
|
|
|
|
|
|
&mdio {
|
|
|
|
status = "okay";
|
|
|
|
-
|
|
|
|
- switch@10 {
|
|
|
|
- compatible = "marvell,mv88e6085";
|
|
|
|
- #address-cells = <1>;
|
|
|
|
- #size-cells = <0>;
|
|
|
|
- reg = <16>;
|
|
|
|
-
|
|
|
|
- ports {
|
|
|
|
- #address-cells = <1>;
|
|
|
|
- #size-cells = <0>;
|
|
|
|
-
|
|
|
|
- port@0 {
|
|
|
|
- reg = <0>;
|
|
|
|
- label = "ethernet1";
|
|
|
|
- };
|
|
|
|
-
|
|
|
|
- port@1 {
|
|
|
|
- reg = <1>;
|
|
|
|
- label = "ethernet2";
|
|
|
|
- };
|
|
|
|
-
|
|
|
|
- port@2 {
|
|
|
|
- reg = <2>;
|
|
|
|
- label = "ethernet3";
|
|
|
|
- };
|
|
|
|
-
|
|
|
|
- port@3 {
|
|
|
|
- reg = <3>;
|
|
|
|
- label = "ethernet4";
|
|
|
|
- };
|
|
|
|
-
|
|
|
|
- port@4 {
|
|
|
|
- reg = <4>;
|
|
|
|
- label = "internet";
|
|
|
|
- };
|
|
|
|
-
|
|
|
|
- port@5 {
|
|
|
|
- reg = <5>;
|
|
|
|
- label = "cpu";
|
|
|
|
- ethernet = <ð0port>;
|
|
|
|
- fixed-link {
|
|
|
|
- speed = <1000>;
|
|
|
|
- full-duplex;
|
|
|
|
- };
|
|
|
|
- };
|
|
|
|
- };
|
|
|
|
- };
|
|
|
|
};
|
|
|
|
|
|
|
|
&uart0 {
|
2020-02-04 16:26:47 +00:00
|
|
|
@@ -272,10 +243,14 @@
|
2018-12-27 14:39:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/* eth1 is connected to the switch at port 6. However DSA only supports a
|
|
|
|
- * single CPU port. So leave this port disabled to avoid confusion.
|
|
|
|
+ * single CPU port. Upstream uses DSA so they disable this port to avoid confusion.
|
|
|
|
*/
|
|
|
|
ð1 {
|
|
|
|
- status = "disabled";
|
|
|
|
+ status = "okay";
|
|
|
|
+ ethernet1-port@0 {
|
|
|
|
+ speed = <1000>;
|
|
|
|
+ duplex = <1>;
|
|
|
|
+ };
|
|
|
|
};
|
|
|
|
|
|
|
|
/* There is no battery on the board, so the RTC does not keep
|