OpenWrt – Diff between revs 2 and 3
?pathlinks?
Rev 2 | Rev 3 | |||
---|---|---|---|---|
1 | /dts-v1/; |
1 | /dts-v1/; |
|
2 | |
2 | |
|
3 | #include "rt5350.dtsi" |
3 | #include "rt5350.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 = "trendnet,tew-714tru", "ralink,rt5350-soc"; |
9 | compatible = "trendnet,tew-714tru", "ralink,rt5350-soc"; |
|
10 | model = "TRENDnet TEW714TRU"; |
10 | model = "TRENDnet TEW714TRU"; |
|
11 | |
11 | |
|
12 | leds { |
12 | gpio-leds { |
|
13 | compatible = "gpio-leds"; |
13 | compatible = "gpio-leds"; |
|
14 | |
14 | |
|
15 | usb { |
15 | usb { |
|
16 | label = "tew-714tru:red:usb"; |
16 | label = "tew-714tru:red:usb"; |
|
17 | gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
17 | gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
|
18 | trigger-sources = <&ohci_port1>, <&ehci_port1>; |
- | ||
19 | linux,default-trigger = "usbport"; |
- | ||
20 | }; |
18 | }; |
|
21 | |
19 | |
|
22 | wifi { |
20 | wifi { |
|
23 | label = "tew-714tru:green:wifi"; |
21 | label = "tew-714tru:green:wifi"; |
|
24 | gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
22 | gpios = <&gpio0 13 GPIO_ACTIVE_LOW>; |
|
25 | }; |
23 | }; |
|
26 | }; |
24 | }; |
|
27 | |
25 | |
|
28 | keys { |
26 | gpio-keys-polled { |
|
- | 27 | compatible = "gpio-keys-polled"; |
||
- | 28 | #address-cells = <1>; |
||
29 | compatible = "gpio-keys-polled"; |
29 | #size-cells = <0>; |
|
30 | poll-interval = <20>; |
30 | poll-interval = <20>; |
|
31 | |
31 | |
|
32 | reset { |
32 | reset { |
|
33 | label = "reset"; |
33 | label = "reset"; |
|
34 | gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
34 | gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
|
35 | linux,code = <KEY_RESTART>; |
35 | linux,code = <KEY_RESTART>; |
|
36 | }; |
36 | }; |
|
37 | |
37 | |
|
38 | wps { |
38 | wps { |
|
39 | label = "wps"; |
39 | label = "wps"; |
|
40 | gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; |
40 | gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; |
|
41 | linux,code = <KEY_WPS_BUTTON>; |
41 | linux,code = <KEY_WPS_BUTTON>; |
|
42 | }; |
42 | }; |
|
43 | }; |
43 | }; |
|
44 | |
44 | |
|
45 | gpio_export { |
45 | gpio_export { |
|
46 | compatible = "gpio-export"; |
46 | compatible = "gpio-export"; |
|
47 | #size-cells = <0>; |
47 | #size-cells = <0>; |
|
48 | |
48 | |
|
49 | repeater { |
49 | repeater { |
|
50 | gpio-export,name = "repeater_switch"; |
50 | gpio-export,name = "repeater_switch"; |
|
51 | gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; |
51 | gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>; |
|
52 | }; |
52 | }; |
|
53 | |
53 | |
|
54 | wisp { |
54 | wisp { |
|
55 | gpio-export,name = "wisp_switch"; |
55 | gpio-export,name = "wisp_switch"; |
|
56 | gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; |
56 | gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; |
|
57 | }; |
57 | }; |
|
58 | }; |
58 | }; |
|
59 | }; |
59 | }; |
|
60 | |
60 | |
|
61 | &spi0 { |
61 | &spi0 { |
|
62 | status = "okay"; |
62 | status = "okay"; |
|
63 | |
63 | |
|
64 | m25p80@0 { |
64 | m25p80@0 { |
|
- | 65 | #address-cells = <1>; |
||
- | 66 | #size-cells = <1>; |
||
65 | compatible = "jedec,spi-nor"; |
67 | compatible = "jedec,spi-nor"; |
|
66 | reg = <0>; |
68 | reg = <0>; |
|
67 | spi-max-frequency = <10000000>; |
69 | spi-max-frequency = <10000000>; |
|
68 | |
- | ||
69 | partitions { |
- | ||
70 | compatible = "fixed-partitions"; |
- | ||
71 | #address-cells = <1>; |
- | ||
72 | #size-cells = <1>; |
- | ||
73 | |
70 | |
|
74 | partition@0 { |
71 | partition@0 { |
|
75 | label = "u-boot"; |
72 | label = "u-boot"; |
|
76 | reg = <0x0 0x30000>; |
73 | reg = <0x0 0x30000>; |
|
77 | read-only; |
74 | read-only; |
|
78 | }; |
75 | }; |
|
79 | |
76 | |
|
80 | partition@30000 { |
77 | partition@30000 { |
|
81 | label = "u-boot-env"; |
78 | label = "u-boot-env"; |
|
82 | reg = <0x30000 0x10000>; |
79 | reg = <0x30000 0x10000>; |
|
83 | read-only; |
80 | read-only; |
|
84 | }; |
81 | }; |
|
85 | |
82 | |
|
86 | factory: partition@40000 { |
83 | factory: partition@40000 { |
|
87 | label = "factory"; |
84 | label = "factory"; |
|
88 | reg = <0x40000 0x10000>; |
85 | reg = <0x40000 0x10000>; |
|
89 | read-only; |
86 | read-only; |
|
90 | }; |
87 | }; |
|
91 | |
88 | |
|
92 | partition@50000 { |
- | ||
93 | compatible = "denx,uimage"; |
89 | partition@50000 { |
|
94 | label = "firmware"; |
90 | label = "firmware"; |
|
95 | reg = <0x50000 0x7b0000>; |
- | ||
96 | }; |
91 | reg = <0x50000 0x7b0000>; |
|
97 | }; |
92 | }; |
|
98 | }; |
93 | }; |
|
99 | }; |
94 | }; |
|
100 | |
95 | |
|
101 | &pinctrl { |
96 | &pinctrl { |
|
102 | state_default: pinctrl0 { |
97 | state_default: pinctrl0 { |
|
103 | gpio { |
98 | gpio { |
|
104 | ralink,group = "i2c", "jtag", "uartf"; |
99 | ralink,group = "i2c", "jtag", "uartf"; |
|
105 | ralink,function = "gpio"; |
100 | ralink,function = "gpio"; |
|
106 | }; |
101 | }; |
|
107 | }; |
102 | }; |
|
108 | }; |
103 | }; |
|
109 | |
104 | |
|
110 | ðernet { |
105 | ðernet { |
|
111 | mtd-mac-address = <&factory 0x4>; |
106 | mtd-mac-address = <&factory 0x4>; |
|
112 | }; |
107 | }; |
|
113 | |
108 | |
|
114 | &esw { |
109 | &esw { |
|
115 | mediatek,portmap = <0x1>; |
110 | mediatek,portmap = <0x1>; |
|
116 | mediatek,portdisable = <0x3e>; |
111 | mediatek,portdisable = <0x3e>; |
|
117 | }; |
112 | }; |
|
118 | |
113 | |
|
119 | &wmac { |
114 | &wmac { |
|
120 | ralink,mtd-eeprom = <&factory 0>; |
115 | ralink,mtd-eeprom = <&factory 0>; |
|
121 | }; |
116 | }; |
|
122 | |
117 | |
|
123 | &ehci { |
118 | &ehci { |
|
124 | status = "okay"; |
119 | status = "okay"; |
|
125 | }; |
120 | }; |
|
126 | |
121 | |
|
127 | &ohci { |
122 | &ohci { |
|
128 | status = "okay"; |
123 | status = "okay"; |
|
129 | }; |
124 | }; |
|
130 | |
125 | |