OpenWrt – Blame information for rev 3
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | /dts-v1/; |
2 | |||
3 | #include "mt7620a.dtsi" |
||
4 | |||
5 | #include <dt-bindings/gpio/gpio.h> |
||
6 | #include <dt-bindings/input/input.h> |
||
7 | |||
8 | / { |
||
9 | compatible = "tplink,mr200", "ralink,mt7620a-soc"; |
||
10 | model = "TP-Link Archer MR200"; |
||
11 | |||
12 | chosen { |
||
13 | bootargs = "console=ttyS0,115200"; |
||
14 | }; |
||
15 | |||
3 | office | 16 | gpio-leds { |
1 | office | 17 | compatible = "gpio-leds"; |
18 | |||
19 | lan { |
||
20 | label = "mr200:white:lan"; |
||
21 | gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; |
||
22 | }; |
||
23 | |||
24 | wan { |
||
25 | label = "mr200:white:wan"; |
||
26 | gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; |
||
27 | }; |
||
28 | |||
3 | office | 29 | power { |
1 | office | 30 | label = "mr200:white:power"; |
31 | gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; |
||
32 | }; |
||
33 | |||
34 | 4g { |
||
35 | label = "mr200:white:4g"; |
||
36 | gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; |
||
37 | }; |
||
38 | |||
39 | wps { |
||
40 | label = "mr200:white:wps"; |
||
41 | gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; |
||
42 | }; |
||
43 | |||
44 | signal1 { |
||
45 | label = "mr200:white:signal1"; |
||
46 | gpios = <&gpio2 1 GPIO_ACTIVE_LOW>; |
||
47 | }; |
||
48 | |||
49 | signal2 { |
||
50 | label = "mr200:white:signal2"; |
||
51 | gpios = <&gpio2 2 GPIO_ACTIVE_LOW>; |
||
52 | }; |
||
53 | |||
54 | signal3 { |
||
55 | label = "mr200:white:signal3"; |
||
56 | gpios = <&gpio2 3 GPIO_ACTIVE_LOW>; |
||
57 | }; |
||
58 | |||
59 | signal4 { |
||
60 | label = "mr200:white:signal4"; |
||
61 | gpios = <&gpio2 4 GPIO_ACTIVE_LOW>; |
||
62 | }; |
||
63 | |||
64 | wlan { |
||
65 | label = "mr200:white:wlan"; |
||
66 | gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; |
||
67 | }; |
||
68 | }; |
||
69 | |||
3 | office | 70 | gpio-keys { |
1 | office | 71 | compatible = "gpio-keys"; |
3 | office | 72 | #address-cells = <1>; |
73 | #size-cells = <0>; |
||
1 | office | 74 | |
75 | reset { |
||
76 | label = "reset"; |
||
77 | gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>; |
||
78 | linux,code = <KEY_RESTART>; |
||
79 | }; |
||
80 | |||
81 | rfkill { |
||
82 | label = "rfkill"; |
||
83 | gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>; |
||
84 | linux,code = <KEY_RFKILL>; |
||
85 | }; |
||
86 | }; |
||
87 | |||
88 | gpio_export { |
||
89 | compatible = "gpio-export"; |
||
90 | #size-cells = <0>; |
||
91 | |||
92 | power_usb { |
||
93 | gpio-export,name = "power_usb1"; |
||
94 | gpio-export,output = <1>; |
||
95 | gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>; |
||
96 | }; |
||
97 | }; |
||
3 | office | 98 | |
1 | office | 99 | }; |
100 | |||
101 | &gpio1 { |
||
102 | status = "okay"; |
||
103 | }; |
||
104 | |||
105 | &gpio2 { |
||
106 | status = "okay"; |
||
107 | }; |
||
108 | |||
109 | &gpio3 { |
||
110 | status = "okay"; |
||
111 | }; |
||
112 | |||
113 | &spi0 { |
||
114 | status = "okay"; |
||
115 | |||
116 | m25p80@0 { |
||
3 | office | 117 | #address-cells = <1>; |
118 | #size-cells = <1>; |
||
1 | office | 119 | compatible = "jedec,spi-nor"; |
120 | reg = <0>; |
||
121 | spi-max-frequency = <10000000>; |
||
122 | |||
3 | office | 123 | partition@0 { |
124 | label = "u-boot"; |
||
125 | reg = <0x0 0x20000>; |
||
126 | read-only; |
||
127 | }; |
||
1 | office | 128 | |
3 | office | 129 | partition@20000 { |
130 | label = "firmware"; |
||
131 | reg = <0x20000 0x7b0000>; |
||
132 | }; |
||
1 | office | 133 | |
3 | office | 134 | rom: partition@7d0000 { |
135 | label = "rom"; |
||
136 | reg = <0x7d0000 0x10000>; |
||
137 | read-only; |
||
138 | }; |
||
1 | office | 139 | |
3 | office | 140 | partition@7e0000 { |
141 | label = "romfile"; |
||
142 | reg = <0x7e0000 0x10000>; |
||
143 | read-only; |
||
144 | }; |
||
1 | office | 145 | |
3 | office | 146 | radio: partition@7f0000 { |
147 | label = "radio"; |
||
148 | reg = <0x7f0000 0x10000>; |
||
149 | read-only; |
||
1 | office | 150 | }; |
151 | }; |
||
152 | }; |
||
153 | |||
154 | &pinctrl { |
||
155 | state_default: pinctrl0 { |
||
156 | gpio { |
||
157 | ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd", "ephy", "spi refclk"; |
||
158 | ralink,function = "gpio"; |
||
159 | }; |
||
160 | }; |
||
161 | }; |
||
162 | |||
163 | ðernet { |
||
164 | mtd-mac-address = <&rom 0xf100>; |
||
165 | mediatek,portmap = "llll"; |
||
166 | }; |
||
167 | |||
168 | &ehci { |
||
169 | status = "okay"; |
||
170 | }; |
||
171 | |||
172 | &ohci { |
||
173 | status = "okay"; |
||
174 | }; |
||
175 | |||
176 | &gsw { |
||
177 | mediatek,port4 = "ephy"; |
||
178 | }; |
||
179 | |||
180 | &wmac { |
||
181 | ralink,mtd-eeprom = <&radio 0>; |
||
182 | }; |
||
183 | |||
184 | &pcie { |
||
185 | status = "okay"; |
||
186 | |||
3 | office | 187 | pcie-bridge { |
188 | mt76@0,0 { |
||
189 | reg = <0x0000 0 0 0 0>; |
||
190 | device_type = "pci"; |
||
191 | mediatek,mtd-eeprom = <&radio 32768>; |
||
192 | }; |
||
1 | office | 193 | }; |
194 | }; |