lantiq: ltq-tapi: fix compatibility with Linux 4.15+
[openwrt/staging/mkresin.git] / target / linux / lantiq / files-4.14 / arch / mips / boot / dts / VG3503J.dts
1 /dts-v1/;
2
3 #include "vr9.dtsi"
4
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/mips/lantiq_rcu_gphy.h>
7
8 / {
9 compatible = "arcadyan,vg3503j", "lantiq,xway", "lantiq,vr9";
10 model = "BT OpenReach VDSL Modem";
11
12 chosen {
13 bootargs = "console=ttyLTQ0,115200";
14 };
15
16 aliases {
17 led-boot = &power_green;
18 led-failsafe = &power_red;
19 led-running = &power_green;
20 led-upgrade = &power_green;
21
22 led-dsl = &dsl;
23 };
24
25 memory@0 {
26 reg = <0x0 0x2000000>;
27 };
28
29 gpio-keys-polled {
30 compatible = "gpio-keys-polled";
31 #address-cells = <1>;
32 #size-cells = <0>;
33 poll-interval = <100>;
34 reset {
35 label = "reset";
36 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
37 linux,code = <KEY_RESTART>;
38 };
39 };
40
41 gpio-leds {
42 compatible = "gpio-leds";
43
44 power_red: power2 {
45 label = "vg3503j:red:power";
46 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
47 };
48 dsl: dsl {
49 label = "vg3503j:green:dsl";
50 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
51 };
52 power_green: power {
53 label = "vg3503j:green:power";
54 gpios = <&gpio 28 GPIO_ACTIVE_LOW>;
55 default-state = "keep";
56 };
57 };
58 };
59
60 &eth0 {
61 interface@0 {
62 compatible = "lantiq,xrx200-pdi";
63 #address-cells = <1>;
64 #size-cells = <0>;
65 reg = <0>;
66
67 lantiq,switch;
68 ethernet@2 {
69 compatible = "lantiq,xrx200-pdi-port";
70 reg = <2>;
71 phy-mode = "mii";
72 phy-handle = <&phy11>;
73 };
74 ethernet@4 {
75 compatible = "lantiq,xrx200-pdi-port";
76 reg = <4>;
77 phy-mode = "mii";
78 phy-handle = <&phy13>;
79 };
80 };
81
82 mdio@0 {
83 #address-cells = <1>;
84 #size-cells = <0>;
85 compatible = "lantiq,xrx200-mdio";
86 reg = <0>;
87
88 phy11: ethernet-phy@11 {
89 reg = <0x11>;
90 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
91 lantiq,led1h = <0x70>;
92 lantiq,led1l = <0x00>;
93 lantiq,led2h = <0x00>;
94 lantiq,led2l = <0x03>;
95 };
96 phy13: ethernet-phy@13 {
97 reg = <0x13>;
98 compatible = "lantiq,phy11g", "ethernet-phy-ieee802.3-c22";
99 lantiq,led1h = <0x70>;
100 lantiq,led1l = <0x00>;
101 lantiq,led2h = <0x00>;
102 lantiq,led2l = <0x03>;
103 };
104 };
105 };
106
107 &gphy0 {
108 lantiq,gphy-mode = <GPHY_MODE_GE>;
109 };
110
111 &gphy1 {
112 lantiq,gphy-mode = <GPHY_MODE_GE>;
113 };
114
115 &gpio {
116 pinctrl-names = "default";
117 pinctrl-0 = <&state_default>;
118
119 state_default: pinmux {
120 mdio {
121 lantiq,groups = "mdio";
122 lantiq,function = "mdio";
123 };
124 gphy-leds {
125 lantiq,groups = "gphy0 led0", "gphy0 led1",
126 "gphy0 led2", "gphy1 led0",
127 "gphy1 led1", "gphy1 led2";
128 lantiq,function = "gphy";
129 lantiq,pull = <2>;
130 lantiq,open-drain = <0>;
131 lantiq,output = <1>;
132 };
133 };
134 };
135
136 &localbus {
137 nor@0 {
138 compatible = "lantiq,nor";
139 bank-width = <2>;
140 reg = <0 0x0 0x2000000>;
141 #address-cells = <1>;
142 #size-cells = <1>;
143
144 partitions {
145 compatible = "fixed-partitions";
146 #address-cells = <1>;
147 #size-cells = <1>;
148
149 partition@0 {
150 label = "uboot";
151 reg = <0x00000 0x20000>;
152 };
153
154 partition@20000 {
155 label = "firmware";
156 reg = <0x20000 0x7d0000>;
157 };
158
159 partition@7f0000 {
160 label = "uboot-env";
161 reg = <0x7f0000 0x10000>;
162 };
163 };
164 };
165 };