OpenWrt – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | /* |
2 | * BSD LICENSE |
||
3 | * |
||
4 | * Copyright (C) 2018 Piotr Dymacz <pepe2k@gmail.com> |
||
5 | * All rights reserved. |
||
6 | * |
||
7 | * Redistribution and use in source and binary forms, with or without |
||
8 | * modification, are permitted provided that the following conditions |
||
9 | * are met: |
||
10 | * |
||
11 | * 1. Redistributions of source code must retain the above copyright |
||
12 | * notice, this list of conditions and the following disclaimer. |
||
13 | * 2. Redistributions in binary form must reproduce the above copyright |
||
14 | * notice, this list of conditions and the following disclaimer in the |
||
15 | * documentation and/or other materials provided with the distribution. |
||
16 | * 3. Neither the names of the copyright holders nor the names of any |
||
17 | * contributors may be used to endorse or promote products derived |
||
18 | * from this software without specific prior written permission. |
||
19 | * |
||
20 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
||
21 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
||
22 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
||
23 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
||
24 | * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
||
25 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
||
26 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
||
27 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
||
28 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
||
29 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
||
30 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
||
31 | */ |
||
32 | |||
33 | /dts-v1/; |
||
34 | |||
35 | #include "mt7620a.dtsi" |
||
36 | |||
37 | #include <dt-bindings/gpio/gpio.h> |
||
38 | #include <dt-bindings/input/input.h> |
||
39 | |||
40 | / { |
||
41 | compatible = "alfa-network,ac1200rm", "ralink,mt7620a-soc"; |
||
42 | model = "ALFA Network AC1200RM"; |
||
43 | |||
44 | aliases { |
||
45 | led-boot = &led_wps; |
||
46 | led-failsafe = &led_wps; |
||
47 | }; |
||
48 | |||
49 | chosen { |
||
50 | bootargs = "console=ttyS0,115200"; |
||
51 | }; |
||
52 | |||
53 | keys { |
||
54 | compatible = "gpio-keys-polled"; |
||
55 | poll-interval = <20>; |
||
56 | |||
57 | reset { |
||
58 | label = "reset"; |
||
59 | gpios = <&gpio2 15 GPIO_ACTIVE_LOW>; |
||
60 | linux,code = <KEY_RESTART>; |
||
61 | }; |
||
62 | }; |
||
63 | |||
64 | leds { |
||
65 | compatible = "gpio-leds"; |
||
66 | |||
67 | wlan2g { |
||
68 | label = "ac1200rm:green:wlan2g"; |
||
69 | gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; |
||
70 | }; |
||
71 | |||
72 | led_wps: wps { |
||
73 | label = "ac1200rm:green:wps"; |
||
74 | gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>; |
||
75 | }; |
||
76 | }; |
||
77 | }; |
||
78 | |||
79 | &ehci { |
||
80 | status = "okay"; |
||
81 | }; |
||
82 | |||
83 | ðernet { |
||
84 | mtd-mac-address = <&factory 0x28>; |
||
85 | mediatek,portmap = "llllw"; |
||
86 | pinctrl-names = "default"; |
||
87 | pinctrl-0 = <&ephy_pins>; |
||
88 | }; |
||
89 | |||
90 | &gpio1 { |
||
91 | status = "okay"; |
||
92 | }; |
||
93 | |||
94 | &gpio2 { |
||
95 | status = "okay"; |
||
96 | }; |
||
97 | |||
98 | &gpio3 { |
||
99 | status = "okay"; |
||
100 | }; |
||
101 | |||
102 | &gsw { |
||
103 | mediatek,port4 = "ephy"; |
||
104 | }; |
||
105 | |||
106 | &ohci { |
||
107 | status = "okay"; |
||
108 | }; |
||
109 | |||
110 | &pcie { |
||
111 | status = "okay"; |
||
112 | }; |
||
113 | |||
114 | &pcie0 { |
||
115 | mt76@0,0 { |
||
116 | reg = <0x0000 0 0 0 0>; |
||
117 | mediatek,mtd-eeprom = <&factory 0x8000>; |
||
118 | ieee80211-freq-limit = <5000000 6000000>; |
||
119 | |||
120 | led { |
||
121 | led-sources = <2>; |
||
122 | led-active-low; |
||
123 | }; |
||
124 | }; |
||
125 | }; |
||
126 | |||
127 | &pinctrl { |
||
128 | state_default: pinctrl0 { |
||
129 | gpio { |
||
130 | ralink,group = "nd_sd", "spi refclk", "wled"; |
||
131 | ralink,function = "gpio"; |
||
132 | }; |
||
133 | }; |
||
134 | }; |
||
135 | |||
136 | &spi0 { |
||
137 | status = "okay"; |
||
138 | |||
139 | m25p80@0 { |
||
140 | compatible = "jedec,spi-nor"; |
||
141 | reg = <0>; |
||
142 | spi-max-frequency = <10000000>; |
||
143 | |||
144 | partitions { |
||
145 | compatible = "fixed-partitions"; |
||
146 | #address-cells = <1>; |
||
147 | #size-cells = <1>; |
||
148 | |||
149 | partition@0 { |
||
150 | label = "u-boot"; |
||
151 | reg = <0x0 0x30000>; |
||
152 | read-only; |
||
153 | }; |
||
154 | |||
155 | partition@30000 { |
||
156 | label = "u-boot-env"; |
||
157 | reg = <0x30000 0x1000>; |
||
158 | }; |
||
159 | |||
160 | partition@31000 { |
||
161 | label = "config"; |
||
162 | reg = <0x31000 0xf000>; |
||
163 | read-only; |
||
164 | }; |
||
165 | |||
166 | factory: partition@40000 { |
||
167 | label = "factory"; |
||
168 | reg = <0x40000 0x10000>; |
||
169 | read-only; |
||
170 | }; |
||
171 | |||
172 | partition@50000 { |
||
173 | compatible = "denx,uimage"; |
||
174 | label = "firmware"; |
||
175 | reg = <0x50000 0xfb0000>; |
||
176 | }; |
||
177 | }; |
||
178 | }; |
||
179 | }; |
||
180 | |||
181 | &wmac { |
||
182 | ralink,mtd-eeprom = <&factory 0>; |
||
183 | }; |