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