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 = "dlink,dir-810l", "ralink,mt7620a-soc"; 9 compatible = "dlink,dir-810l", "ralink,mt7620a-soc";
10 model = "D-Link DIR-810L"; 10 model = "D-Link DIR-810L";
11   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   -  
19 keys { 12 gpio-keys-polled {
-   13 compatible = "gpio-keys-polled";
-   14 #address-cells = <1>;
20 compatible = "gpio-keys-polled"; 15 #size-cells = <0>;
21 poll-interval = <20>; 16 poll-interval = <20>;
22   17  
23 reset { 18 reset {
24 label = "reset"; 19 label = "reset";
25 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>; 20 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
26 linux,code = <BTN_0>; 21 linux,code = <BTN_0>;
27 }; 22 };
28   23  
29 wps { 24 wps {
30 label = "wps"; 25 label = "wps";
31 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; 26 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
32 linux,code = <BTN_0>; 27 linux,code = <BTN_0>;
33 }; 28 };
34 }; 29 };
35   30  
36 leds { 31 gpio-leds {
37 compatible = "gpio-leds"; 32 compatible = "gpio-leds";
38   33  
39 led_power_green: power { 34 power {
40 label = "dir-810l:green:power"; 35 label = "dir-810l:green:power";
41 gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>; 36 gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
42 }; 37 };
43   38  
44 wan { 39 wan {
45 label = "dir-810l:orange:wan"; 40 label = "dir-810l:orange:wan";
46 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; 41 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
47 }; 42 };
48   43  
49 power2 { 44 status {
50 label = "dir-810l:orange:power"; 45 label = "dir-810l:orange:power";
51 gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>; 46 gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
52 }; 47 };
53 }; 48 };
54 }; 49 };
55   50  
56 &spi0 { 51 &spi0 {
57 status = "okay"; 52 status = "okay";
58   53  
59 m25p80@0 { 54 m25p80@0 {
-   55 #address-cells = <1>;
-   56 #size-cells = <1>;
60 compatible = "jedec,spi-nor"; 57 compatible = "jedec,spi-nor";
61 reg = <0>; 58 reg = <0>;
62 spi-max-frequency = <10000000>; 59 spi-max-frequency = <10000000>;
63   -  
64 partitions { -  
65 compatible = "fixed-partitions"; -  
66 #address-cells = <1>; -  
67 #size-cells = <1>; -  
68   60  
69 partition@0 { 61 partition@0 {
70 label = "u-boot"; 62 label = "u-boot";
71 reg = <0x0 0x30000>; 63 reg = <0x0 0x30000>;
72 read-only; 64 read-only;
73 }; 65 };
74   66  
75 partition@30000 { 67 partition@30000 {
76 label = "u-boot-env"; 68 label = "u-boot-env";
77 reg = <0x30000 0x10000>; 69 reg = <0x30000 0x10000>;
78 read-only; 70 read-only;
79 }; 71 };
80   72  
81 factory: partition@40000 { 73 factory: partition@40000 {
82 label = "factory"; 74 label = "factory";
83 reg = <0x40000 0x10000>; 75 reg = <0x40000 0x10000>;
84 read-only; 76 read-only;
85 }; 77 };
86   78  
87 factory5g: partition@50000 { 79 factory5g: partition@50000 {
88 label = "factory5g"; 80 label = "factory5g";
89 reg = <0x50000 0x10000>; 81 reg = <0x50000 0x10000>;
90 read-only; 82 read-only;
91 }; 83 };
92   84  
93 partition@60000 { 85 partition@60000 {
94 label = "Wolf_Config"; 86 label = "Wolf_Config";
95 reg = <0x60000 0x10000>; 87 reg = <0x60000 0x10000>;
96 read-only; 88 read-only;
97 }; 89 };
98   90  
99 partition@70000 { 91 partition@70000 {
100 label = "MyDlink"; 92 label = "MyDlink";
101 reg = <0x70000 0x80000>; 93 reg = <0x70000 0x80000>;
102 read-only; 94 read-only;
103 }; 95 };
104   96  
105 partition@e0000 { 97 partition@e0000 {
106 label = "Jffs2"; 98 label = "Jffs2";
107 reg = <0xe0000 0x80000>; 99 reg = <0xe0000 0x80000>;
108 read-only; 100 read-only;
109 }; 101 };
110   102  
111 partition@170000 { -  
112 compatible = "denx,uimage"; 103 partition@170000 {
113 label = "firmware"; 104 label = "firmware";
114 reg = <0x170000 0x690000>; -  
115 }; 105 reg = <0x170000 0x690000>;
116 }; 106 };
117 }; 107 };
118 }; 108 };
119   109  
120 &pinctrl { 110 &pinctrl {
121 state_default: pinctrl0 { 111 state_default: pinctrl0 {
122 gpio { 112 gpio {
123 ralink,group = "mdio", "rgmii1", "i2c", "wled", "uartf"; 113 ralink,group = "mdio", "rgmii1", "i2c", "wled", "uartf";
124 ralink,function = "gpio"; 114 ralink,function = "gpio";
125 }; 115 };
126 }; 116 };
127 }; 117 };
128   118  
129 &ethernet { 119 &ethernet {
130 mtd-mac-address = <&factory 0x28>; 120 mtd-mac-address = <&factory 0x28>;
131 mediatek,portmap = "llllw"; 121 mediatek,portmap = "llllw";
132 }; 122 };
133   123  
134 &gsw { 124 &gsw {
135 mediatek,port4 = "ephy"; 125 mediatek,port4 = "ephy";
136 pinctrl-names = "default"; 126 pinctrl-names = "default";
137 pinctrl-0 = <&ephy_pins>; 127 pinctrl-0 = <&ephy_pins>;
138 }; 128 };
139   129  
140 &pcie { 130 &pcie {
141 status = "okay"; 131 status = "okay";
142 }; 132 };
143   133  
144 &wmac { 134 &wmac {
145 ralink,mtd-eeprom = <&factory 0>; 135 ralink,mtd-eeprom = <&factory 0>;
146 }; 136 };
147   -  
148 &pcie0 { -  
149 wifi@0,0 { -  
150 reg = <0x0000 0 0 0 0>; -  
151 mediatek,mtd-eeprom = <&factory 0x8000>; -  
152 ieee80211-freq-limit = <5000000 6000000>; -  
153 }; -  
154 }; -  
155   137