[source] lantiq: fix switch configuration for EASY80920
LEDE Commits
lede-commits at lists.infradead.org
Thu Jul 28 13:50:31 PDT 2016
hauke pushed a commit to source.git, branch master:
https://git.lede-project.org/?p=source.git;a=commitdiff;h=47cce1d5e45c1e6c5bb5659698408d4cea4e03a4
commit 47cce1d5e45c1e6c5bb5659698408d4cea4e03a4
Author: Hauke Mehrtens <hauke at hauke-m.de>
AuthorDate: Wed Jul 27 21:27:54 2016 +0200
lantiq: fix switch configuration for EASY80920
The device tree description misses some Ethernet ports and there was no
model specified for this board. In addition there was no switch
specific default configuration created.
Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
---
.../linux/lantiq/base-files/etc/board.d/02_network | 7 ++++
target/linux/lantiq/dts/EASY80920.dtsi | 40 +++++++++-------------
target/linux/lantiq/dts/EASY80920NAND.dts | 2 ++
target/linux/lantiq/dts/EASY80920NOR.dts | 2 ++
4 files changed, 27 insertions(+), 24 deletions(-)
diff --git a/target/linux/lantiq/base-files/etc/board.d/02_network b/target/linux/lantiq/base-files/etc/board.d/02_network
index d6f6601..989dbf3 100755
--- a/target/linux/lantiq/base-files/etc/board.d/02_network
+++ b/target/linux/lantiq/base-files/etc/board.d/02_network
@@ -157,6 +157,13 @@ WBMR300)
"2:lan:2" "3:lan:3" "5:lan:4" "4:wan:1" "6t at eth0"
;;
+EASY80920NAND|EASY80920NOR)
+ lan_mac=$(mtd_get_mac_ascii uboot_env ethaddr)
+ wan_mac=$(macaddr_add "$lan_mac" 1)
+ ucidef_add_switch "switch0" \
+ "4:lan:1" "2:lan:2" "1:lan:3" "0:lan:3" "5:wan:1" "6t at eth0"
+ ;;
+
*)
ucidef_set_interface_lan 'eth0'
;;
diff --git a/target/linux/lantiq/dts/EASY80920.dtsi b/target/linux/lantiq/dts/EASY80920.dtsi
index 4e64997..47b7a07 100644
--- a/target/linux/lantiq/dts/EASY80920.dtsi
+++ b/target/linux/lantiq/dts/EASY80920.dtsi
@@ -266,13 +266,19 @@
#address-cells = <1>;
#size-cells = <0>;
reg = <0>;
- mac-address = [ 00 11 22 33 44 55 ];
+ lantiq,switch;
- ethernet at 0 {
+ ethernet at 4 {
compatible = "lantiq,xrx200-pdi-port";
- reg = <0>;
- phy-mode = "rgmii";
- phy-handle = <&phy0>;
+ reg = <4>;
+ phynmode0 = "gmii";
+ phy-handle = <&phy13>;
+ };
+ ethernet at 2 {
+ compatible = "lantiq,xrx200-pdi-port";
+ reg = <2>;
+ phy-mode = "gmii";
+ phy-handle = <&phy11>;
};
ethernet at 1 {
compatible = "lantiq,xrx200-pdi-port";
@@ -280,11 +286,11 @@
phy-mode = "rgmii";
phy-handle = <&phy1>;
};
- ethernet at 2 {
+ ethernet at 0 {
compatible = "lantiq,xrx200-pdi-port";
- reg = <2>;
- phy-mode = "gmii";
- phy-handle = <&phy11>;
+ reg = <0>;
+ phy-mode = "rgmii";
+ phy-handle = <&phy0>;
};
};
@@ -293,8 +299,8 @@
#address-cells = <1>;
#size-cells = <0>;
reg = <1>;
- mac-address = [ 00 11 22 33 44 56 ];
lantiq,wan;
+
ethernet at 5 {
compatible = "lantiq,xrx200-pdi-port";
reg = <5>;
@@ -303,20 +309,6 @@
};
};
- test: interface at 2 {
- compatible = "lantiq,xrx200-pdi";
- #address-cells = <1>;
- #size-cells = <0>;
- reg = <2>;
- mac-address = [ 00 11 22 33 44 57 ];
- ethernet at 4 {
- compatible = "lantiq,xrx200-pdi-port";
- reg = <4>;
- phynmode0 = "gmii";
- phy-handle = <&phy13>;
- };
- };
-
mdio at 0 {
#address-cells = <1>;
#size-cells = <0>;
diff --git a/target/linux/lantiq/dts/EASY80920NAND.dts b/target/linux/lantiq/dts/EASY80920NAND.dts
index 7e1811e..96d5f64 100644
--- a/target/linux/lantiq/dts/EASY80920NAND.dts
+++ b/target/linux/lantiq/dts/EASY80920NAND.dts
@@ -4,6 +4,8 @@
/include/ "EASY80920.dtsi"
/ {
+ model = "EASY80920NAND - Intel EASY80920 Nand";
+
chosen {
bootargs = "ubi.mtd=ubi ubi.block=0,rootfsA root=/dev/ubiblock0_1";
};
diff --git a/target/linux/lantiq/dts/EASY80920NOR.dts b/target/linux/lantiq/dts/EASY80920NOR.dts
index 54d2fa9..39367f7 100644
--- a/target/linux/lantiq/dts/EASY80920NOR.dts
+++ b/target/linux/lantiq/dts/EASY80920NOR.dts
@@ -4,6 +4,8 @@
/include/ "EASY80920.dtsi"
/ {
+ model = "EASY80920NOR - Intel EASY80920 Nor";
+
fpi at 10000000 {
localbus at 0 {
ranges = <0 0 0x0 0x3ffffff>;
More information about the lede-commits
mailing list