9dc6d767a6c87e49de7ced3e387fec19dd654fde
[openwrt/openwrt.git] / target / linux / lantiq / files-5.4 / arch / mips / boot / dts / lantiq / vr9_netgear_dm200.dts
1 #include "vr9.dtsi"
2
3 #include <dt-bindings/input/input.h>
4 #include <dt-bindings/mips/lantiq_rcu_gphy.h>
5
6 / {
7 compatible = "netgear,dm200", "lantiq,xway", "lantiq,vr9";
8 model = "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 led-upgrade = &power_green;
19
20 led-dsl = &dsl_green;
21 };
22
23 memory@0 {
24 device_type = "memory";
25 reg = <0x0 0x4000000>;
26 };
27
28 keys {
29 compatible = "gpio-keys-polled";
30 poll-interval = <100>;
31 reset {
32 label = "reset";
33 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
34 linux,code = <KEY_RESTART>;
35 };
36 };
37
38 gpio_export {
39 compatible = "gpio-export";
40 #size-cells = <0>;
41
42 annexa {
43 gpio-export,name = "annexa";
44 gpio-export,output = <0>;
45 gpios = <&gpio 12 GPIO_ACTIVE_HIGH>;
46 };
47 annexb {
48 gpio-export,name = "annexb";
49 gpio-export,output = <0>;
50 gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
51 };
52 };
53
54 leds {
55 compatible = "gpio-leds";
56
57 power_amber: power_amber {
58 label = "amber:power";
59 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
60 };
61 power_green: power_green {
62 label = "green:power";
63 gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
64 };
65
66 lan_amber {
67 label = "amber:lan";
68 gpios = <&gpio 33 GPIO_ACTIVE_HIGH>;
69 };
70 lan_green {
71 label = "green:lan";
72 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
73 };
74
75 dsl_amber {
76 label = "amber:dsl";
77 gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
78 };
79 dsl_green: dsl_green {
80 label = "green:dsl";
81 gpios = <&gpio 36 GPIO_ACTIVE_HIGH>;
82 };
83 };
84 };
85
86 &eth0 {
87 lantiq,phys = <&gphy1>;
88
89 lan: interface@0 {
90 compatible = "lantiq,xrx200-pdi";
91 #address-cells = <1>;
92 #size-cells = <0>;
93 reg = <0>;
94
95 ethernet@4 {
96 compatible = "lantiq,xrx200-pdi-port";
97 reg = <4>;
98 phy-mode = "mii";
99 phy-handle = <&phy13>;
100 };
101 };
102
103 mdio {
104 #address-cells = <1>;
105 #size-cells = <0>;
106 compatible = "lantiq,xrx200-mdio";
107
108 phy13: ethernet-phy@13 {
109 reg = <0x13>;
110 compatible = "lantiq,phy22f", "ethernet-phy-ieee802.3-c22";
111 };
112 };
113 };
114
115 &gphy1 {
116 lantiq,gphy-mode = <GPHY_MODE_FE>;
117 };
118
119 &pcie0 {
120 status = "disabled";
121 };
122
123 &spi {
124 status = "okay";
125
126 flash@4 {
127 compatible = "jedec,spi-nor";
128 reg = <4>;
129 spi-max-frequency = <10000000>;
130
131 partitions {
132 #address-cells = <1>;
133 #size-cells = <1>;
134 compatible = "fixed-partitions";
135
136 partition@0 {
137 reg = <0x0 0x20000>;
138 label = "uboot";
139 read-only;
140 };
141
142 partition@20000 {
143 reg = <0x20000 0x10000>;
144 label = "gphyfirmware";
145 read-only;
146 };
147
148 partition@30000 {
149 reg = <0x30000 0x7b0000>;
150 label = "firmware";
151 };
152
153 partition@7e0000 {
154 reg = <0x7e0000 0x10000>;
155 label = "sysconfig";
156 read-only;
157 };
158
159 partition@7f0000 {
160 reg = <0x7f0000 0x2000>;
161 label = "u-boot-env";
162 read-only;
163 };
164
165 partition@7f2000 {
166 reg = <0x7f2000 0x1000>;
167 label = "ART";
168 read-only;
169 };
170
171 partition@7f3000 {
172 reg = <0x7f3000 0x1000>;
173 label = "pot";
174 read-only;
175 };
176
177 partition@7f4000 {
178 reg = <0x7f4000 0xc000>;
179 label = "ret";
180 read-only;
181 };
182 };
183 };
184 };