OpenWrt – Diff between revs 2 and 3

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 2 Rev 3
Line -... Line 1...
-   1 /* Copyright (c) 2015, The Linux Foundation. All rights reserved.
-   2 *
-   3 * Permission to use, copy, modify, and/or distribute this software for any
-   4 * purpose with or without fee is hereby granted, provided that the above
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT 5 * copyright notice and this permission notice appear in all copies.
-   6 *
-   7 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
-   8 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
-   9 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
-   10 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-   11 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
-   12 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
-   13 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-   14 *
-   15 */
Line 2... Line 16...
2   16  
-   17 #include "qcom-ipq4019.dtsi"
3 #include "qcom-ipq4019.dtsi" 18 #include "qcom-ipq4019-bus.dtsi"
4 #include <dt-bindings/gpio/gpio.h> 19 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h> 20 #include <dt-bindings/input/input.h>
Line 6... Line 21...
6 #include <dt-bindings/soc/qcom,tcsr.h> 21 #include <dt-bindings/soc/qcom,tcsr.h>
Line 19... Line 34...
19 led-failsafe = &power; 34 led-failsafe = &power;
20 led-running = &power; 35 led-running = &power;
21 led-upgrade = &power; 36 led-upgrade = &power;
22 }; 37 };
Line 23... Line -...
23   -  
24 chosen { -  
25 bootargs-append = " ubi.mtd=UBI_DEV"; -  
26 }; -  
27   38  
28 soc { 39 soc {
29 mdio@90000 { 40 mdio@90000 {
30 status = "okay"; 41 status = "okay";
Line 58... Line 69...
58 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>; 69 qcom,wifi_noc_memtype_m0_m2 = <TCSR_WIFI_NOC_MEMTYPE_M0_M2>;
59 }; 70 };
Line 60... Line 71...
60   71  
61 usb2@60f8800 { 72 usb2@60f8800 {
-   73 status = "okay";
Line 62... Line 74...
62 status = "okay"; 74 };
63   75  
64 dwc3@6000000 { 76 serial@78af000 {
65 #address-cells = <1>; -  
66 #size-cells = <0>; -  
67   77 pinctrl-0 = <&serial_pins>;
68 usb2_port1: port@1 { -  
69 reg = <1>; -  
70 #trigger-source-cells = <0>; -  
71 }; 78 pinctrl-names = "default";
Line 72... Line 79...
72 }; 79 status = "okay";
73 }; 80 };
74   -  
75 usb3@8af8800 { -  
76 status = "okay"; -  
77   -  
78 dwc3@8a00000 { -  
79 #address-cells = <1>; -  
80 #size-cells = <0>; -  
81   -  
82 usb3_port1: port@1 { -  
83 reg = <1>; -  
84 #trigger-source-cells = <0>; -  
85 }; -  
86   -  
87 usb3_port2: port@2 { -  
88 reg = <2>; -  
89 #trigger-source-cells = <0>; 81  
Line 90... Line 82...
90 }; 82 usb3@8af8800 {
91 }; 83 status = "okay";
92 }; 84 };
Line 116... Line 108...
116 edma@c080000 { 108 edma@c080000 {
117 status = "okay"; 109 status = "okay";
118 }; 110 };
119 }; 111 };
Line 120... Line 112...
120   112  
121 keys { 113 gpio-keys {
Line 122... Line 114...
122 compatible = "gpio-keys"; 114 compatible = "gpio-keys";
123   115  
124 reset { 116 reset {
Line 132... Line 124...
132 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>; 124 gpios = <&tlmm 63 GPIO_ACTIVE_LOW>;
133 linux,code = <KEY_WPS_BUTTON>; 125 linux,code = <KEY_WPS_BUTTON>;
134 }; 126 };
135 }; 127 };
Line 136... Line 128...
136   128  
137 leds { 129 gpio-leds {
Line 138... Line 130...
138 compatible = "gpio-leds"; 130 compatible = "gpio-leds";
139   131  
140 power: status { 132 power: status {
Line 158... Line 150...
158 }; 150 };
Line 159... Line 151...
159   151  
160 usb { 152 usb {
161 label = "rt-ac58u:blue:usb"; 153 label = "rt-ac58u:blue:usb";
162 gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>; -  
163 trigger-sources = <&usb3_port1>, <&usb3_port2>, <&usb2_port1>; -  
164 linux,default-trigger = "usbport"; 154 gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
Line 165... Line 155...
165 }; 155 };
166   156  
167 lan { 157 lan {
Line 204... Line 194...
204 output-high; 194 output-high;
205 }; 195 };
206 }; 196 };
207 }; 197 };
Line 208... Line 198...
208   198  
209 &blsp1_spi1 { /* BLSP1 QUP1 */ 199 &spi_0 { /* BLSP1 QUP1 */
210 pinctrl-0 = <&spi_0_pins>; 200 pinctrl-0 = <&spi_0_pins>;
211 pinctrl-names = "default"; 201 pinctrl-names = "default";
212 status = "okay"; 202 status = "okay";
213 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>, 203 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>,
Line 214... Line 204...
214 <&tlmm 59 GPIO_ACTIVE_HIGH>; 204 <&tlmm 59 GPIO_ACTIVE_HIGH>;
215   205  
216 flash@0 { 206 m25p80@0 {
217 #address-cells = <1>; 207 #address-cells = <1>;
218 #size-cells = <0>; 208 #size-cells = <0>;
219 /* 209 /*
Line 273... Line 263...
273 }; 263 };
274 /* 0x00180000 - 0x00200000 unused */ 264 /* 0x00180000 - 0x00200000 unused */
275 }; 265 };
276 }; 266 };
Line 277... Line 267...
277   267  
278 flash@1 { 268 mt29f@1 {
279 #address-cells = <1>; 269 #address-cells = <1>;
280 #size-cells = <0>; 270 #size-cells = <0>;
281 compatible = "spinand,mt29f"; 271 compatible = "spinand,mt29f";
282 reg = <1>; 272 reg = <1>;
Line 283... Line -...
283 spi-max-frequency = <24000000>; -  
284   -  
285 /* -  
286 * U-boot looks for "spinand,mt29f" node, -  
287 * if we don't have it, it will spit out the following warning: -  
288 * "ipq: fdt fixup unable to find compatible node". -  
289 */ 273 spi-max-frequency = <24000000>;
290   274  
291 partitions { 275 partitions {
292 compatible = "fixed-partitions"; 276 compatible = "fixed-partitions";
Line 293... Line 277...
293 #address-cells = <1>; 277 #address-cells = <1>;
294 #size-cells = <1>; 278 #size-cells = <1>;
295   279  
296 partition@0 { 280 partition0@0 {
297 label = "ubi"; 281 label = "ubi";
298 reg = <0x00000000 0x08000000>; 282 reg = <0x00000000 0x08000000>;
299 }; 283 };
Line 300... Line -...
300 }; -  
301 }; -  
302 }; -  
303   -  
304 &blsp1_uart1 { -  
305 pinctrl-0 = <&serial_pins>; -  
306 pinctrl-names = "default"; 284 };
307 status = "okay"; 285 };
308 }; 286 };
Line 309... Line 287...
309   287