OpenWrt – Diff between revs 2 and 3
?pathlinks?
Rev 2 | Rev 3 | |||
---|---|---|---|---|
1 | /dts-v1/; |
1 | /dts-v1/; |
|
2 | |
2 | |
|
3 | #include "rt3050.dtsi" |
3 | #include "rt3050.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 = "netgear,wnce2001", "ralink,rt3052-soc"; |
9 | compatible = "netgear,wnce2001", "ralink,rt3052-soc"; |
|
10 | model = "Netgear WNCE2001"; |
10 | model = "Netgear WNCE2001"; |
|
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 | chosen { |
12 | chosen { |
|
20 | bootargs = "console=ttyS0,115200"; |
13 | bootargs = "console=ttyS0,115200"; |
|
21 | }; |
14 | }; |
|
22 | |
15 | |
|
23 | leds { |
16 | gpio-leds { |
|
24 | compatible = "gpio-leds"; |
17 | compatible = "gpio-leds"; |
|
25 | |
18 | |
|
26 | led_power_green: power-green { |
19 | power-green { |
|
27 | label = "wnce2001:green:power"; |
20 | label = "wnce2001:green:power"; |
|
28 | gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; |
21 | gpios = <&gpio0 8 GPIO_ACTIVE_LOW>; |
|
29 | }; |
22 | }; |
|
30 | |
23 | |
|
31 | power-red { |
24 | power-red { |
|
32 | label = "wnce2001:red:power"; |
25 | label = "wnce2001:red:power"; |
|
33 | gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
26 | gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
|
34 | }; |
27 | }; |
|
35 | |
28 | |
|
36 | wlan-green { |
29 | wlan-green { |
|
37 | label = "wnce2001:green:wlan"; |
30 | label = "wnce2001:green:wlan"; |
|
38 | gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; |
31 | gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>; |
|
39 | }; |
32 | }; |
|
40 | |
33 | |
|
41 | wlan-red { |
34 | wlan-red { |
|
42 | label = "wnce2001:red:wlan"; |
35 | label = "wnce2001:red:wlan"; |
|
43 | gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>; |
36 | gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>; |
|
44 | }; |
37 | }; |
|
45 | }; |
38 | }; |
|
46 | |
39 | |
|
47 | keys { |
40 | gpio-keys-polled { |
|
- | 41 | compatible = "gpio-keys-polled"; |
||
- | 42 | #address-cells = <1>; |
||
48 | compatible = "gpio-keys-polled"; |
43 | #size-cells = <0>; |
|
49 | poll-interval = <20>; |
44 | poll-interval = <20>; |
|
50 | |
45 | |
|
51 | reset { |
46 | reset { |
|
52 | label = "reset"; |
47 | label = "reset"; |
|
53 | gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
48 | gpios = <&gpio0 10 GPIO_ACTIVE_LOW>; |
|
54 | linux,code = <KEY_RESTART>; |
49 | linux,code = <KEY_RESTART>; |
|
55 | }; |
50 | }; |
|
56 | |
51 | |
|
57 | wps { |
52 | wps { |
|
58 | label = "wps"; |
53 | label = "wps"; |
|
59 | gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; |
54 | gpios = <&gpio0 0 GPIO_ACTIVE_LOW>; |
|
60 | linux,code = <KEY_WPS_BUTTON>; |
55 | linux,code = <KEY_WPS_BUTTON>; |
|
61 | }; |
56 | }; |
|
62 | |
57 | |
|
63 | rt { |
58 | rt { |
|
64 | label = "rt"; |
59 | label = "rt"; |
|
65 | gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; |
60 | gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; |
|
66 | linux,code = <BTN_0>; |
61 | linux,code = <BTN_0>; |
|
67 | }; |
62 | }; |
|
68 | |
63 | |
|
69 | ap { |
64 | ap { |
|
70 | label = "ap"; |
65 | label = "ap"; |
|
71 | gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; |
66 | gpios = <&gpio0 7 GPIO_ACTIVE_LOW>; |
|
72 | linux,code = <BTN_1>; |
67 | linux,code = <BTN_1>; |
|
73 | }; |
68 | }; |
|
74 | }; |
69 | }; |
|
75 | }; |
70 | }; |
|
76 | |
71 | |
|
77 | &spi0 { |
72 | &spi0 { |
|
78 | status = "okay"; |
73 | status = "okay"; |
|
79 | |
74 | |
|
80 | m25p80@0 { |
75 | m25p80@0 { |
|
- | 76 | #address-cells = <1>; |
||
- | 77 | #size-cells = <1>; |
||
81 | compatible = "jedec,spi-nor"; |
78 | compatible = "jedec,spi-nor"; |
|
82 | reg = <0>; |
79 | reg = <0>; |
|
83 | spi-max-frequency = <10000000>; |
80 | spi-max-frequency = <10000000>; |
|
84 | |
- | ||
85 | partitions { |
- | ||
86 | compatible = "fixed-partitions"; |
- | ||
87 | #address-cells = <1>; |
- | ||
88 | #size-cells = <1>; |
- | ||
89 | |
81 | |
|
90 | partition@0 { |
82 | partition@0 { |
|
91 | label = "u-boot"; |
83 | label = "u-boot"; |
|
92 | reg = <0x0 0x30000>; |
84 | reg = <0x0 0x30000>; |
|
93 | read-only; |
85 | read-only; |
|
94 | }; |
86 | }; |
|
95 | |
87 | |
|
96 | factory: partition@30000 { |
88 | factory: partition@30000 { |
|
97 | label = "factory"; |
89 | label = "factory"; |
|
98 | reg = <0x30000 0x10000>; |
90 | reg = <0x30000 0x10000>; |
|
99 | read-only; |
91 | read-only; |
|
100 | }; |
92 | }; |
|
101 | |
93 | |
|
102 | partition@40000 { |
94 | partition@40000 { |
|
103 | label = "config"; |
95 | label = "config"; |
|
104 | reg = <0x40000 0x20000>; |
96 | reg = <0x40000 0x20000>; |
|
105 | read-only; |
97 | read-only; |
|
106 | }; |
98 | }; |
|
107 | |
99 | |
|
108 | partition@60000 { |
100 | partition@60000 { |
|
109 | label = "language"; |
101 | label = "language"; |
|
110 | reg = <0x60000 0x30000>; |
102 | reg = <0x60000 0x30000>; |
|
111 | read-only; |
103 | read-only; |
|
112 | }; |
104 | }; |
|
113 | |
105 | |
|
114 | partition@90000 { |
106 | partition@90000 { |
|
115 | label = "pot"; |
107 | label = "pot"; |
|
116 | reg = <0x90000 0x10000>; |
108 | reg = <0x90000 0x10000>; |
|
117 | read-only; |
109 | read-only; |
|
118 | }; |
110 | }; |
|
119 | |
111 | |
|
120 | partition@a0000 { |
112 | partition@a0000 { |
|
121 | label = "checksum"; |
113 | label = "checksum"; |
|
122 | reg = <0xa0000 0x10000>; |
114 | reg = <0xa0000 0x10000>; |
|
123 | }; |
115 | }; |
|
124 | |
116 | |
|
125 | partition@b0000 { |
- | ||
126 | compatible = "denx,uimage"; |
117 | partition@b0000 { |
|
127 | label = "firmware"; |
118 | label = "firmware"; |
|
128 | reg = <0xb0000 0x350000>; |
- | ||
129 | }; |
119 | reg = <0xb0000 0x350000>; |
|
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", "jtag", "rgmii", "mdio", "uartf"; |
127 | ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf"; |
|
138 | ralink,function = "gpio"; |
128 | ralink,function = "gpio"; |
|
139 | }; |
129 | }; |
|
140 | }; |
130 | }; |
|
141 | }; |
131 | }; |
|
142 | |
132 | |
|
143 | ðernet { |
133 | ðernet { |
|
144 | mtd-mac-address = <&factory 0x28>; |
134 | mtd-mac-address = <&factory 0x28>; |
|
145 | }; |
135 | }; |
|
146 | |
136 | |
|
147 | &wmac { |
137 | &wmac { |
|
148 | ralink,mtd-eeprom = <&factory 0>; |
138 | ralink,mtd-eeprom = <&factory 0>; |
|
149 | }; |
139 | }; |
|
150 | |
140 | |