lantiq: xrx200: switch the subtarget to the mainline DSA driver
[openwrt/staging/mkresin.git] / target / linux / lantiq / files / arch / mips / boot / dts / lantiq / vr9_arcadyan_vg3503j.dts
1 #include "vr9.dtsi"
2
3 #include <dt-bindings/input/input.h>
4 #include <dt-bindings/mips/lantiq_rcu_gphy.h>
5
6 / {
7 compatible = "arcadyan,vg3503j", "lantiq,xway", "lantiq,vr9";
8 model = "BT OpenReach VDSL Modem";
9
10 chosen {
11 bootargs = "console=ttyLTQ0,115200";
12 };
13
14 aliases {
15 led-boot = &power_green;
16 led-failsafe = &power_red;
17 led-running = &power_green;
18 led-upgrade = &power_green;
19
20 led-dsl = &dsl;
21 };
22
23 memory@0 {
24 device_type = "memory";
25 reg = <0x0 0x2000000>;
26 };
27
28 keys {
29 compatible = "gpio-keys-polled";
30 poll-interval = <100>;
31 reset {
32 label = "reset";
33 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
34 linux,code = <KEY_RESTART>;
35 };
36 };
37
38 leds {
39 compatible = "gpio-leds";
40
41 power_red: power2 {
42 label = "red:power";
43 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
44 };
45 dsl: dsl {
46 label = "green:dsl";
47 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
48 };
49 power_green: power {
50 label = "green:power";
51 gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
52 default-state = "keep";
53 };
54 };
55 };
56
57 &gphy0 {
58 lantiq,gphy-mode = <GPHY_MODE_GE>;
59 };
60
61 &gphy1 {
62 lantiq,gphy-mode = <GPHY_MODE_GE>;
63 };
64
65 &gswip {
66 pinctrl-0 = <&gphy0_led0_pins>, <&gphy0_led1_pins>, <&gphy0_led2_pins>,
67 <&gphy1_led0_pins>, <&gphy1_led1_pins>, <&gphy1_led2_pins>;
68 pinctrl-names = "default";
69 };
70
71 &gswip_mdio {
72 phy11: ethernet-phy@11 {
73 reg = <0x11>;
74 lantiq,led1h = <0x70>;
75 lantiq,led1l = <0x00>;
76 lantiq,led2h = <0x00>;
77 lantiq,led2l = <0x03>;
78 };
79 phy13: ethernet-phy@13 {
80 reg = <0x13>;
81 lantiq,led1h = <0x70>;
82 lantiq,led1l = <0x00>;
83 lantiq,led2h = <0x00>;
84 lantiq,led2l = <0x03>;
85 };
86 };
87
88 &gswip_ports {
89 port@2 {
90 reg = <2>;
91 label = "lan2";
92 phy-mode = "internal";
93 phy-handle = <&phy11>;
94 };
95 port@4 {
96 reg = <4>;
97 label = "lan1";
98 phy-mode = "internal";
99 phy-handle = <&phy13>;
100 };
101 };
102
103 &localbus {
104 flash@0 {
105 compatible = "lantiq,nor";
106 bank-width = <2>;
107 reg = <0 0x0 0x2000000>;
108
109 partitions {
110 compatible = "fixed-partitions";
111 #address-cells = <1>;
112 #size-cells = <1>;
113
114 partition@0 {
115 label = "uboot";
116 reg = <0x00000 0x20000>;
117 };
118
119 partition@20000 {
120 label = "firmware";
121 reg = <0x20000 0x7d0000>;
122 };
123
124 partition@7f0000 {
125 label = "u-boot-env";
126 reg = <0x7f0000 0x10000>;
127 };
128 };
129 };
130 };