OpenWrt – Blame information for rev 3
?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 | chosen { |
||
45 | bootargs = "console=ttyS0,115200"; |
||
46 | }; |
||
47 | |||
3 | office | 48 | gpio-keys-polled { |
1 | office | 49 | compatible = "gpio-keys-polled"; |
3 | office | 50 | #address-cells = <1>; |
51 | #size-cells = <0>; |
||
1 | office | 52 | poll-interval = <20>; |
53 | |||
54 | reset { |
||
55 | label = "reset"; |
||
56 | gpios = <&gpio2 15 GPIO_ACTIVE_LOW>; |
||
57 | linux,code = <KEY_RESTART>; |
||
58 | }; |
||
59 | }; |
||
60 | |||
3 | office | 61 | gpio-leds { |
1 | office | 62 | compatible = "gpio-leds"; |
63 | |||
64 | wlan2g { |
||
65 | label = "ac1200rm:green:wlan2g"; |
||
66 | gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; |
||
67 | }; |
||
68 | |||
3 | office | 69 | wps { |
1 | office | 70 | label = "ac1200rm:green:wps"; |
71 | gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>; |
||
72 | }; |
||
73 | }; |
||
74 | }; |
||
75 | |||
76 | &ehci { |
||
77 | status = "okay"; |
||
78 | }; |
||
79 | |||
80 | ðernet { |
||
81 | mtd-mac-address = <&factory 0x28>; |
||
82 | mediatek,portmap = "llllw"; |
||
83 | pinctrl-names = "default"; |
||
84 | pinctrl-0 = <&ephy_pins>; |
||
85 | }; |
||
86 | |||
87 | &gpio1 { |
||
88 | status = "okay"; |
||
89 | }; |
||
90 | |||
91 | &gpio2 { |
||
92 | status = "okay"; |
||
93 | }; |
||
94 | |||
95 | &gpio3 { |
||
96 | status = "okay"; |
||
97 | }; |
||
98 | |||
99 | &gsw { |
||
100 | mediatek,port4 = "ephy"; |
||
101 | }; |
||
102 | |||
103 | &ohci { |
||
104 | status = "okay"; |
||
105 | }; |
||
106 | |||
107 | &pcie { |
||
108 | status = "okay"; |
||
109 | |||
3 | office | 110 | pcie-bridge { |
111 | mt76@0,0 { |
||
112 | reg = <0x0000 0 0 0 0>; |
||
113 | device_type = "pci"; |
||
114 | mediatek,mtd-eeprom = <&factory 0x8000>; |
||
115 | ieee80211-freq-limit = <5000000 6000000>; |
||
1 | office | 116 | |
3 | office | 117 | led { |
118 | led-sources = <2>; |
||
119 | led-active-low; |
||
120 | }; |
||
1 | office | 121 | }; |
122 | }; |
||
123 | }; |
||
124 | |||
125 | &pinctrl { |
||
126 | state_default: pinctrl0 { |
||
127 | gpio { |
||
128 | ralink,group = "nd_sd", "spi refclk", "wled"; |
||
129 | ralink,function = "gpio"; |
||
130 | }; |
||
131 | }; |
||
132 | }; |
||
133 | |||
134 | &spi0 { |
||
135 | status = "okay"; |
||
136 | |||
137 | m25p80@0 { |
||
3 | office | 138 | #address-cells = <1>; |
139 | #size-cells = <1>; |
||
1 | office | 140 | compatible = "jedec,spi-nor"; |
141 | reg = <0>; |
||
142 | spi-max-frequency = <10000000>; |
||
143 | |||
3 | office | 144 | partition@0 { |
145 | label = "u-boot"; |
||
146 | reg = <0x0 0x30000>; |
||
147 | read-only; |
||
148 | }; |
||
1 | office | 149 | |
3 | office | 150 | partition@30000 { |
151 | label = "u-boot-env"; |
||
152 | reg = <0x30000 0x1000>; |
||
153 | }; |
||
1 | office | 154 | |
3 | office | 155 | partition@031000 { |
156 | label = "config"; |
||
157 | reg = <0x31000 0xf000>; |
||
158 | read-only; |
||
159 | }; |
||
1 | office | 160 | |
3 | office | 161 | factory: partition@40000 { |
162 | label = "factory"; |
||
163 | reg = <0x40000 0x10000>; |
||
164 | read-only; |
||
165 | }; |
||
1 | office | 166 | |
3 | office | 167 | partition@50000 { |
168 | label = "firmware"; |
||
169 | reg = <0x50000 0xfb0000>; |
||
1 | office | 170 | }; |
171 | }; |
||
172 | }; |
||
173 | |||
174 | &wmac { |
||
175 | ralink,mtd-eeprom = <&factory 0>; |
||
176 | }; |