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 = "hiwifi,hc5962", "mediatek,mt7621-soc"; 9 compatible = "hiwifi,hc5962", "mediatek,mt7621-soc";
10 model = "HiWiFi HC5962"; 10 model = "HiWiFi HC5962";
11   -  
12 aliases { -  
13 led-boot = &led_status; -  
14 led-failsafe = &led_status; -  
15 led-running = &led_status; -  
16 led-upgrade = &led_status; -  
17 }; -  
18   11  
19 memory@0 { 12 memory@0 {
20 device_type = "memory"; 13 device_type = "memory";
21 reg = <0x0 0x10000000>; 14 reg = <0x0 0x10000000>;
22 }; 15 };
23   16  
24 chosen { 17 chosen {
25 bootargs = "console=ttyS0,115200"; 18 bootargs = "console=ttyS0,115200";
26 }; 19 };
27   20  
28 leds { 21 gpio-leds {
29 compatible = "gpio-leds"; 22 compatible = "gpio-leds";
30   23  
31 led_status: status { 24 status {
32 label = "hc5962:white:status"; 25 label = "hc5962:white:status";
33 gpios = <&gpio0 6 GPIO_ACTIVE_LOW>; 26 gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
34 }; 27 };
35   28  
36 system { 29 system {
37 label = "hc5962:red:system"; 30 label = "hc5962:red:system";
38 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; 31 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
39 }; 32 };
40 }; 33 };
41   34  
42 keys { 35 gpio-keys-polled {
-   36 compatible = "gpio-keys-polled";
-   37 #address-cells = <1>;
43 compatible = "gpio-keys-polled"; 38 #size-cells = <0>;
44 poll-interval = <20>; 39 poll-interval = <20>;
45   40  
46 reset { 41 reset {
47 label = "reset"; 42 label = "reset";
48 gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>; 43 gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>;
49 linux,code = <KEY_RESTART>; 44 linux,code = <KEY_RESTART>;
50 }; 45 };
51 }; 46 };
52 }; 47 };
53   48  
54 &nand { 49 &nand {
55 status = "okay"; 50 status = "okay";
56   -  
57 partitions { -  
58 compatible = "fixed-partitions"; -  
59 #address-cells = <1>; -  
60 #size-cells = <1>; -  
61   51  
62 partition@0 { 52 partition@0 {
63 label = "u-boot"; 53 label = "u-boot";
64 reg = <0x0 0x80000>; 54 reg = <0x0 0x80000>;
65 read-only; 55 read-only;
66 }; 56 };
67   57  
68 partition@80000 { 58 partition@80000 {
69 label = "debug"; 59 label = "debug";
70 reg = <0x80000 0x80000>; 60 reg = <0x80000 0x80000>;
71 read-only; 61 read-only;
72 }; 62 };
73   63  
74 factory: partition@100000 { 64 factory: partition@100000 {
75 label = "factory"; 65 label = "factory";
76 reg = <0x100000 0x40000>; 66 reg = <0x100000 0x40000>;
77 read-only; 67 read-only;
78 }; 68 };
79   69  
80 partition@140000 { 70 partition@140000 {
81 label = "kernel"; 71 label = "kernel";
82 reg = <0x140000 0x200000>; 72 reg = <0x140000 0x200000>;
83 }; 73 };
84   74  
85 partition@340000 { 75 partition@340000 {
86 label = "ubi"; 76 label = "ubi";
87 reg = <0x340000 0x1E00000>; 77 reg = <0x340000 0x1E00000>;
88 }; 78 };
89   79  
90 partition@2140000 { 80 partition@2140000 {
91 label = "hw_panic"; 81 label = "hw_panic";
92 reg = <0x2140000 0x80000>; 82 reg = <0x2140000 0x80000>;
93 read-only; 83 read-only;
94 }; 84 };
95   85  
96 partition@21c0000 { 86 partition@21c0000 {
97 label = "bdinfo"; 87 label = "bdinfo";
98 reg = <0x21c0000 0x80000>; 88 reg = <0x21c0000 0x80000>;
99 read-only; 89 read-only;
100 }; 90 };
101   91  
102 partition@2240000 { 92 partition@2240000 {
103 label = "backup"; 93 label = "backup";
104 reg = <0x2240000 0x80000>; 94 reg = <0x2240000 0x80000>;
105 read-only; 95 read-only;
106 }; 96 };
107   97  
108 partition@22c0000 { 98 partition@22c0000 {
109 label = "overly"; 99 label = "overly";
110 reg = <0x22c0000 0x1000000>; 100 reg = <0x22c0000 0x1000000>;
111 }; 101 };
112   102  
113 partition@32c0000 { 103 partition@32c0000 {
114 label = "firmware_backup"; -  
115 reg = <0x32c0000 0x2000000>; 104 label = "firmware_backup";
116 }; 105 reg = <0x32c0000 0x2000000>;
117   106 };
118 partition@52c0000 { 107  
119 label = "oem"; 108 partition@52c0000 {
120 reg = <0x52c0000 0x200000>; 109 label = "oem";
121 }; 110 reg = <0x52c0000 0x200000>;
122   111 };
123 partition@54c0000 { 112  
124 label = "opt"; 113 partition@54c0000 {
125 reg = <0x54c0000 0x2ac0000>; 114 label = "opt";
126 }; 115 reg = <0x54c0000 0x2ac0000>;
127 }; 116 };
128 }; 117 };
129   118  
130 &pcie { 119 &pcie {
131 status = "okay"; 120 status = "okay";
132 }; -  
133   121  
134 &pcie0 { 122 pcie0 {
135 mt76@0,0 { 123 mt76@0,0 {
-   124 reg = <0x0000 0 0 0 0>;
136 reg = <0x0000 0 0 0 0>; 125 device_type = "pci";
137 mediatek,mtd-eeprom = <&factory 0x0000>; 126 mediatek,mtd-eeprom = <&factory 0x0000>;
-   127 ieee80211-freq-limit = <2400000 2500000>;
138 ieee80211-freq-limit = <2400000 2500000>; 128 };
139 }; -  
140 }; 129 };
141   130  
142 &pcie1 { 131 pcie1 {
-   132 mt76@1,0 {
143 mt76@0,0 { 133 reg = <0x0000 0 0 0 0>;
144 reg = <0x0000 0 0 0 0>; 134 device_type = "pci";
-   135 mediatek,mtd-eeprom = <&factory 0x8000>;
145 mediatek,mtd-eeprom = <&factory 0x8000>; 136 ieee80211-freq-limit = <5000000 6000000>;
146 ieee80211-freq-limit = <5000000 6000000>; 137 };
147 }; 138 };
148 }; 139 };
149   140  
150 &pinctrl { 141 &pinctrl {
151 state_default: pinctrl0 { 142 state_default: pinctrl0 {
152 gpio { 143 gpio {
153 ralink,group = "uart3", "jtag"; 144 ralink,group = "uart3", "jtag";
154 ralink,function = "gpio"; 145 ralink,function = "gpio";
155 }; 146 };
156 }; 147 };
157 }; 148 };
158   149