OpenWrt – Diff between revs 2 and 3

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