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 "mt7620a.dtsi" 3 #include "mt7620a.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 = "buffalo,whr-1166d", "ralink,mt7620a-soc"; 9 compatible = "buffalo,whr-1166d", "ralink,mt7620a-soc";
10 model = "Buffalo WHR-1166D"; 10 model = "Buffalo WHR-1166D";
11   -  
12 aliases { -  
13 led-boot = &led_power_green; -  
14 led-failsafe = &led_power_green; -  
15 led-running = &led_power_green; -  
16 led-upgrade = &led_power_green; -  
17 }; -  
18   11  
19 leds { 12 gpio-leds {
20 compatible = "gpio-leds"; 13 compatible = "gpio-leds";
21   14  
22 power { 15 power {
23 label = "whr-1166d:red:power"; 16 label = "whr-1166d:red:power";
24 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; 17 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
25 }; 18 };
26   19  
27 wifi { 20 wifi {
28 label = "whr-1166d:green:wifi"; 21 label = "whr-1166d:green:wifi";
29 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; 22 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
30 }; 23 };
31   24  
32 led_power_green: power2 { 25 power2 {
33 label = "whr-1166d:green:power"; 26 label = "whr-1166d:green:power";
34 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; 27 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
35 }; 28 };
36   29  
37 wifi2 { 30 wifi2 {
38 label = "whr-1166d:orange:wifi"; 31 label = "whr-1166d:orange:wifi";
39 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; 32 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
40 }; 33 };
41   34  
42 internet { 35 internet {
43 label = "whr-1166d:green:internet"; 36 label = "whr-1166d:green:internet";
44 gpios = <&gpio2 17 GPIO_ACTIVE_LOW>; 37 gpios = <&gpio2 17 GPIO_ACTIVE_LOW>;
45 }; 38 };
46   39  
47 router { 40 router {
48 label = "whr-1166d:orange:router"; 41 label = "whr-1166d:orange:router";
49 gpios = <&gpio2 18 GPIO_ACTIVE_LOW>; 42 gpios = <&gpio2 18 GPIO_ACTIVE_LOW>;
50 }; 43 };
51   44  
52 router2 { 45 router2 {
53 label = "whr-1166d:green:router"; 46 label = "whr-1166d:green:router";
54 gpios = <&gpio2 19 GPIO_ACTIVE_LOW>; 47 gpios = <&gpio2 19 GPIO_ACTIVE_LOW>;
55 }; 48 };
56 }; 49 };
57   50  
58 keys { 51 gpio-keys-polled {
-   52 compatible = "gpio-keys-polled";
-   53 #address-cells = <1>;
59 compatible = "gpio-keys-polled"; 54 #size-cells = <0>;
60 poll-interval = <20>; 55 poll-interval = <20>;
61   56  
62 reset { 57 reset {
63 label = "reset"; 58 label = "reset";
64 gpios = <&gpio2 12 GPIO_ACTIVE_LOW>; 59 gpios = <&gpio2 12 GPIO_ACTIVE_LOW>;
65 linux,code = <KEY_RESTART>; 60 linux,code = <KEY_RESTART>;
66 }; 61 };
67   62  
68 aoss { 63 aoss {
69 label = "aoss"; 64 label = "aoss";
70 gpios = <&gpio2 13 GPIO_ACTIVE_LOW>; 65 gpios = <&gpio2 13 GPIO_ACTIVE_LOW>;
71 linux,code = <KEY_WPS_BUTTON>; 66 linux,code = <KEY_WPS_BUTTON>;
72 }; 67 };
73   68  
74 ap { 69 ap {
75 label = "ap"; 70 label = "ap";
76 gpios = <&gpio2 14 GPIO_ACTIVE_LOW>; 71 gpios = <&gpio2 14 GPIO_ACTIVE_LOW>;
77 linux,code = <BTN_0>; 72 linux,code = <BTN_0>;
78 linux,input-type = <EV_SW>; 73 linux,input-type = <EV_SW>;
79 }; 74 };
80   75  
81 bridge { 76 bridge {
82 label = "bridge"; 77 label = "bridge";
83 gpios = <&gpio2 15 GPIO_ACTIVE_LOW>; 78 gpios = <&gpio2 15 GPIO_ACTIVE_LOW>;
84 linux,code = <BTN_0>; 79 linux,code = <BTN_0>;
85 linux,input-type = <EV_SW>; 80 linux,input-type = <EV_SW>;
86 }; 81 };
87 }; 82 };
88 }; 83 };
89   84  
90 &gpio2 { 85 &gpio2 {
91 status = "okay"; 86 status = "okay";
92 }; 87 };
93   88  
94 &spi0 { 89 &spi0 {
95 status = "okay"; 90 status = "okay";
96   91  
97 m25p80@0 { 92 m25p80@0 {
-   93 #address-cells = <1>;
-   94 #size-cells = <1>;
98 compatible = "jedec,spi-nor"; 95 compatible = "jedec,spi-nor";
99 reg = <0>; 96 reg = <0>;
100 spi-max-frequency = <10000000>; 97 spi-max-frequency = <10000000>;
101   -  
102 partitions { -  
103 compatible = "fixed-partitions"; -  
104 #address-cells = <1>; -  
105 #size-cells = <1>; -  
106   98  
107 partition@0 { 99 partition@0 {
108 label = "u-boot"; 100 label = "u-boot";
109 reg = <0x0 0x30000>; 101 reg = <0x0 0x30000>;
110 read-only; 102 read-only;
111 }; 103 };
112   104  
113 partition@30000 { 105 partition@30000 {
114 label = "u-boot-env"; 106 label = "u-boot-env";
115 reg = <0x30000 0x10000>; 107 reg = <0x30000 0x10000>;
116 read-only; 108 read-only;
117 }; 109 };
118   110  
119 factory: partition@40000 { 111 factory: partition@40000 {
120 label = "factory"; 112 label = "factory";
121 reg = <0x40000 0x10000>; 113 reg = <0x40000 0x10000>;
122 read-only; 114 read-only;
123 }; 115 };
124   116  
125 partition@50000 { -  
126 compatible = "denx,uimage"; 117 partition@50000 {
127 label = "firmware"; 118 label = "firmware";
128 reg = <0x50000 0xfb0000>; -  
129 }; 119 reg = <0x50000 0xfb0000>;
130 }; 120 };
131 }; 121 };
132 }; 122 };
133   123  
134 &pinctrl { 124 &pinctrl {
135 state_default: pinctrl0 { 125 state_default: pinctrl0 {
136 gpio { 126 gpio {
137 ralink,group = "i2c", "uartf", "wled", "nd_sd"; 127 ralink,group = "i2c", "uartf", "wled", "nd_sd";
138 ralink,function = "gpio"; 128 ralink,function = "gpio";
139 }; 129 };
140 }; 130 };
141 }; 131 };
142   132  
143 &ethernet { 133 &ethernet {
144 pinctrl-names = "default"; 134 pinctrl-names = "default";
145 pinctrl-0 = <&rgmii1_pins &mdio_pins>; 135 pinctrl-0 = <&rgmii1_pins &mdio_pins>;
146   136  
147 port@5 { 137 port@5 {
148 status = "okay"; 138 status = "okay";
149 phy-handle = <&phy5>; 139 phy-handle = <&phy5>;
150 phy-mode = "rgmii"; 140 phy-mode = "rgmii";
151 }; 141 };
152   142  
153 mdio-bus { 143 mdio-bus {
154 status = "okay"; 144 status = "okay";
155   145  
156 phy5: ethernet-phy@5 { 146 phy5: ethernet-phy@5 {
157 reg = <5>; 147 reg = <5>;
158 phy-mode = "rgmii-rxid"; 148 phy-mode = "rgmii-rxid";
159 }; 149 };
160 }; 150 };
161 }; 151 };
162   152  
163 &gsw { 153 &gsw {
164 mediatek,port4 = "ephy"; 154 mediatek,port4 = "ephy";
165 }; 155 };
166   156  
167 &wmac { 157 &wmac {
168 ralink,mtd-eeprom = <&factory 0>; 158 ralink,mtd-eeprom = <&factory 0>;
169 }; 159 };
170   160  
171 &pcie { 161 &pcie {
172 status = "okay"; 162 status = "okay";
173 }; -  
174   163  
175 &pcie0 { 164 pcie-bridge {
176 wifi@0,0 { 165 wifi@0,0 {
177 compatible = "pci0,0"; 166 compatible = "pci0,0";
178 reg = <0x0000 0 0 0 0>; 167 reg = <0x0000 0 0 0 0>;
179 mediatek,mtd-eeprom = <&factory 0x8000>; 168 mediatek,mtd-eeprom = <&factory 0x8000>;
-   169 ieee80211-freq-limit = <5000000 6000000>;
180 ieee80211-freq-limit = <5000000 6000000>; 170 };
181 }; 171 };
182 }; 172 };
183   173