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