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