OpenWrt – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | /dts-v1/; |
2 | |||
3 | #include "mt7621.dtsi" |
||
4 | |||
5 | #include <dt-bindings/gpio/gpio.h> |
||
6 | #include <dt-bindings/input/input.h> |
||
7 | |||
8 | / { |
||
9 | compatible = "tplink,re350-v1", "mediatek,mt7621-soc"; |
||
10 | model = "TP-LINK RE350 v1"; |
||
11 | |||
12 | aliases { |
||
13 | led-boot = &led_power; |
||
14 | led-failsafe = &led_power; |
||
15 | led-running = &led_power; |
||
16 | led-upgrade = &led_power; |
||
17 | }; |
||
18 | |||
19 | memory@0 { |
||
20 | device_type = "memory"; |
||
21 | reg = <0x0 0x4000000>; |
||
22 | }; |
||
23 | |||
24 | chosen { |
||
25 | bootargs = "console=ttyS0,57600"; |
||
26 | }; |
||
27 | |||
28 | leds { |
||
29 | compatible = "gpio-leds"; |
||
30 | |||
31 | led_power: power { |
||
32 | label = "re350-v1:blue:power"; |
||
33 | gpios = <&gpio0 22 GPIO_ACTIVE_LOW>; |
||
34 | }; |
||
35 | |||
36 | wifi2g { |
||
37 | label = "re350-v1:blue:wifi2G"; |
||
38 | gpios = <&gpio0 23 GPIO_ACTIVE_LOW>; |
||
39 | }; |
||
40 | |||
41 | wifi5g { |
||
42 | label = "re350-v1:blue:wifi5G"; |
||
43 | gpios = <&gpio0 24 GPIO_ACTIVE_LOW>; |
||
44 | }; |
||
45 | |||
46 | wps_r { |
||
47 | label = "re350-v1:red:wps"; |
||
48 | gpios = <&gpio0 25 GPIO_ACTIVE_HIGH>; |
||
49 | }; |
||
50 | |||
51 | wps_b { |
||
52 | label = "re350-v1:blue:wps"; |
||
53 | gpios = <&gpio0 26 GPIO_ACTIVE_HIGH>; |
||
54 | }; |
||
55 | |||
56 | eth { |
||
57 | label = "re350-v1:green:eth_act"; |
||
58 | gpios = <&gpio0 28 GPIO_ACTIVE_LOW>; |
||
59 | }; |
||
60 | |||
61 | eth2 { |
||
62 | label = "re350-v1:green:eth_link"; |
||
63 | gpios = <&gpio0 29 GPIO_ACTIVE_LOW>; |
||
64 | }; |
||
65 | }; |
||
66 | |||
67 | keys { |
||
68 | compatible = "gpio-keys-polled"; |
||
69 | poll-interval = <20>; |
||
70 | |||
71 | led { |
||
72 | label = "led"; |
||
73 | gpios = <&gpio0 30 GPIO_ACTIVE_LOW>; |
||
74 | linux,code = <BTN_0>; |
||
75 | }; |
||
76 | |||
77 | reset { |
||
78 | label = "reset"; |
||
79 | gpios = <&gpio0 31 GPIO_ACTIVE_LOW>; |
||
80 | linux,code = <KEY_RESTART>; |
||
81 | }; |
||
82 | |||
83 | power { |
||
84 | label = "power"; |
||
85 | gpios = <&gpio1 0 GPIO_ACTIVE_LOW>; |
||
86 | linux,code = <KEY_POWER>; |
||
87 | }; |
||
88 | |||
89 | wps { |
||
90 | label = "wps"; |
||
91 | gpios = <&gpio1 1 GPIO_ACTIVE_LOW>; |
||
92 | linux,code = <KEY_WPS_BUTTON>; |
||
93 | }; |
||
94 | }; |
||
95 | }; |
||
96 | |||
97 | &spi0 { |
||
98 | status = "okay"; |
||
99 | |||
100 | w25q64@0 { |
||
101 | compatible = "jedec,spi-nor"; |
||
102 | reg = <0>; |
||
103 | spi-max-frequency = <10000000>; |
||
104 | |||
105 | partitions { |
||
106 | compatible = "fixed-partitions"; |
||
107 | #address-cells = <1>; |
||
108 | #size-cells = <1>; |
||
109 | |||
110 | partition@0 { |
||
111 | label = "u-boot"; |
||
112 | reg = <0x0 0x20000>; |
||
113 | read-only; |
||
114 | }; |
||
115 | |||
116 | partition@20000 { |
||
117 | compatible = "tplink,firmware"; |
||
118 | label = "firmware"; |
||
119 | reg = <0x20000 0x5e0000>; |
||
120 | }; |
||
121 | |||
122 | config: partition@600000 { |
||
123 | label = "config"; |
||
124 | reg = <0x600000 0x50000>; |
||
125 | read-only; |
||
126 | }; |
||
127 | |||
128 | radio: partition@7f0000 { |
||
129 | label = "radio"; |
||
130 | reg = <0x7f0000 0x10000>; |
||
131 | read-only; |
||
132 | }; |
||
133 | }; |
||
134 | }; |
||
135 | }; |
||
136 | |||
137 | &pcie { |
||
138 | status = "okay"; |
||
139 | }; |
||
140 | |||
141 | &pcie0 { |
||
142 | mt76@0,0 { |
||
143 | reg = <0x0000 0 0 0 0>; |
||
144 | mediatek,mtd-eeprom = <&radio 0>; |
||
145 | mtd-mac-address = <&config 0x10008>; |
||
146 | mtd-mac-address-increment = <1>; |
||
147 | }; |
||
148 | }; |
||
149 | |||
150 | &pcie1 { |
||
151 | mt76@0,0 { |
||
152 | reg = <0x0000 0 0 0 0>; |
||
153 | mediatek,mtd-eeprom = <&radio 0x8000>; |
||
154 | ieee80211-freq-limit = <5000000 6000000>; |
||
155 | mtd-mac-address = <&config 0x10008>; |
||
156 | mtd-mac-address-increment = <2>; |
||
157 | }; |
||
158 | }; |
||
159 | |||
160 | ðernet { |
||
161 | mtd-mac-address = <&config 0x10008>; |
||
162 | }; |
||
163 | |||
164 | &pinctrl { |
||
165 | state_default: pinctrl0 { |
||
166 | gpio { |
||
167 | ralink,group = "rgmii2", "wdt"; |
||
168 | ralink,function = "gpio"; |
||
169 | }; |
||
170 | }; |
||
171 | }; |