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