aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/lantiq/dts/VGV7510KW22.dtsi
diff options
context:
space:
mode:
authorMathias Kresin <dev@kresin.me>2016-09-10 11:05:56 +0200
committerHauke Mehrtens <hauke@hauke-m.de>2017-06-03 16:09:33 +0200
commit254bf7961e57f65bad849dbab4b135d2a73b1f9b (patch)
tree9ca9f4753a8c74edb46a245598f69ec9a49f8911 /target/linux/lantiq/dts/VGV7510KW22.dtsi
parentb78bcdf6195c6ead5095489e8bb5e85eece44622 (diff)
downloadupstream-254bf7961e57f65bad849dbab4b135d2a73b1f9b.tar.gz
upstream-254bf7961e57f65bad849dbab4b135d2a73b1f9b.tar.bz2
upstream-254bf7961e57f65bad849dbab4b135d2a73b1f9b.zip
lantiq: xrx200: use vlan for ethernet wan port
Using the lantiq,wan device tree property for one interface node and the lantiq,switch device tree property for another interface node at the same time was never intended/isn't supported at the moment. The property is meant to be used in two phy operation mode where one phy is assigned to an interface without lantiq,* device tree property and the other phy is assigned to an interface with the lantiq,wan device property to have two netdevs. If both properties are used at the same time, the lantiq,wan interface is shown as independent netdev but not able to operate independent. The port needs to be managed via swconfig. These dependency is not obvious and fooled already a lot of users. Add a default WAN vlan for xrx200 devices having an ethernet WAN port and remove the lantiq,wan device tree property. Leave it up to the user to set the ethernet WAN port as default WAN interface or to use this port as additional LAN port. Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'target/linux/lantiq/dts/VGV7510KW22.dtsi')
-rw-r--r--target/linux/lantiq/dts/VGV7510KW22.dtsi23
1 files changed, 6 insertions, 17 deletions
diff --git a/target/linux/lantiq/dts/VGV7510KW22.dtsi b/target/linux/lantiq/dts/VGV7510KW22.dtsi
index fa46e07670..cb1707e183 100644
--- a/target/linux/lantiq/dts/VGV7510KW22.dtsi
+++ b/target/linux/lantiq/dts/VGV7510KW22.dtsi
@@ -189,6 +189,12 @@
mtd-mac-address = <&boardconfig 0x16>;
lantiq,switch;
+ ethernet@0 {
+ compatible = "lantiq,xrx200-pdi-port";
+ reg = <0>;
+ phy-mode = "mii";
+ phy-handle = <&phy1>;
+ };
ethernet@2 {
compatible = "lantiq,xrx200-pdi-port";
reg = <2>;
@@ -215,23 +221,6 @@
};
};
- wan: interface@1 {
- compatible = "lantiq,xrx200-pdi";
- #address-cells = <1>;
- #size-cells = <0>;
- reg = <1>;
- mtd-mac-address = <&boardconfig 0x16>;
- mtd-mac-address-increment = <3>;
- lantiq,wan;
-
- ethernet@0 {
- compatible = "lantiq,xrx200-pdi-port";
- reg = <0>;
- phy-mode = "mii";
- phy-handle = <&phy1>;
- };
- };
-
mdio@0 {
#address-cells = <1>;
#size-cells = <0>;