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