lantiq: kernel 4.14: cleanup dts files
[openwrt/openwrt.git] / target / linux / lantiq / files-4.14 / arch / mips / boot / dts / DM200.dts
1 /dts-v1/;
2
3 #include "vr9.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 compatible = "netgear,dm200", "lantiq,xway", "lantiq,vr9";
9 model = "Netgear DM200";
10
11 chosen {
12 bootargs = "console=ttyLTQ0,115200";
13 };
14
15 aliases {
16 led-boot = &power_green;
17 led-failsafe = &power_amber;
18 led-running = &power_green;
19
20 led-dsl = &dsl_green;
21 };
22
23 memory@0 {
24 reg = <0x0 0x4000000>;
25 };
26
27 gphy-xrx200 {
28 compatible = "lantiq,phy-xrx200";
29 firmware = "lantiq/xrx200_phy22f_a22.bin";
30 phys = [ 01 ];
31 };
32
33 gpio-keys-polled {
34 compatible = "gpio-keys-polled";
35 #address-cells = <1>;
36 #size-cells = <0>;
37 poll-interval = <100>;
38 reset {
39 label = "reset";
40 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
41 linux,code = <KEY_RESTART>;
42 };
43 };
44
45 gpio_export {
46 compatible = "gpio-export";
47 #size-cells = <0>;
48
49 annexa {
50 gpio-export,name = "annexa";
51 gpio-export,output = <0>;
52 gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
53 };
54 annexb {
55 gpio-export,name = "annexb";
56 gpio-export,output = <0>;
57 gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
58 };
59 };
60
61 gpio-leds {
62 compatible = "gpio-leds";
63
64 power_amber: power_amber {
65 label = "dm200:amber:power";
66 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
67 };
68 power_green: power_green {
69 label = "dm200:green:power";
70 gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
71 };
72
73 lan_amber {
74 label = "dm200:amber:lan";
75 gpios = <&gpio 33 GPIO_ACTIVE_HIGH>;
76 };
77 lan_green {
78 label = "dm200:green:lan";
79 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
80 };
81
82 dsl_amber {
83 label = "dm200:amber:dsl";
84 gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
85 };
86 dsl_green: dsl_green {
87 label = "dm200:green:dsl";
88 gpios = <&gpio 36 GPIO_ACTIVE_HIGH>;
89 };
90 };
91 };
92
93 &eth0 {
94 lan: interface@0 {
95 compatible = "lantiq,xrx200-pdi";
96 #address-cells = <1>;
97 #size-cells = <0>;
98 reg = <0>;
99
100 ethernet@4 {
101 compatible = "lantiq,xrx200-pdi-port";
102 reg = <4>;
103 phy-mode = "mii";
104 phy-handle = <&phy13>;
105 };
106 };
107
108 mdio@0 {
109 #address-cells = <1>;
110 #size-cells = <0>;
111 compatible = "lantiq,xrx200-mdio";
112 reg = <0>;
113
114 phy13: ethernet-phy@13 {
115 reg = <0x13>;
116 compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
117 };
118 };
119 };
120
121 &gpio {
122 pinctrl-names = "default";
123 pinctrl-0 = <&state_default>;
124
125 state_default: pinmux {
126 mdio {
127 lantiq,groups = "mdio";
128 lantiq,function = "mdio";
129 };
130 };
131
132 pins_spi_default: pins_spi_default {
133 spi_in {
134 lantiq,groups = "spi_di";
135 lantiq,function = "spi";
136 };
137 spi_out {
138 lantiq,groups = "spi_do", "spi_clk", "spi_cs4";
139 lantiq,function = "spi";
140 lantiq,output = <1>;
141 };
142 };
143 };
144
145 &pcie0 {
146 status = "disabled";
147 };
148
149 &spi {
150 status = "okay";
151
152 pinctrl-names = "default";
153 pinctrl-0 = <&pins_spi_default>;
154
155 m25p80@4 {
156 #address-cells = <1>;
157 #size-cells = <1>;
158 compatible = "jedec,spi-nor";
159 reg = <4 0>;
160 spi-max-frequency = <10000000>;
161
162 partitions {
163 compatible = "fixed-partitions";
164 #address-cells = <1>;
165 #size-cells = <1>;
166
167 partition@0 {
168 reg = <0x0 0x20000>;
169 label = "uboot";
170 read-only;
171 };
172
173 partition@20000 {
174 reg = <0x20000 0x10000>;
175 label = "gphyfirmware";
176 read-only;
177 };
178
179 partition@30000 {
180 reg = <0x30000 0x7b0000>;
181 label = "firmware";
182 };
183
184 partition@7e0000 {
185 reg = <0x7e0000 0x10000>;
186 label = "sysconfig";
187 read-only;
188 };
189
190 partition@7f0000 {
191 reg = <0x7f0000 0x2000>;
192 label = "ubootconfig";
193 read-only;
194 };
195
196 partition@7f2000 {
197 reg = <0x7f2000 0x1000>;
198 label = "ART";
199 read-only;
200 };
201
202 partition@7f3000 {
203 reg = <0x7f3000 0x1000>;
204 label = "pot";
205 read-only;
206 };
207
208 partition@7f4000 {
209 reg = <0x7f4000 0xc000>;
210 label = "ret";
211 read-only;
212 };
213 };
214 };
215 };