OpenWrt – Diff between revs 2 and 3
?pathlinks?
Rev 2 | Rev 3 | |||
---|---|---|---|---|
Line 40... | Line 40... | |||
40 | |
40 | |
|
41 | / { |
41 | / { |
|
42 | compatible = "hnet,c108", "ralink,mt7620a-soc"; |
42 | compatible = "hnet,c108", "ralink,mt7620a-soc"; |
|
Line 43... | Line -... | |||
43 | model = "HNET C108"; |
- | ||
44 | |
- | ||
45 | aliases { |
- | ||
46 | led-boot = &led_lan_green; |
- | ||
47 | led-failsafe = &led_lan_green; |
- | ||
48 | led-running = &led_lan_green; |
- | ||
49 | led-upgrade = &led_lan_green; |
- | ||
50 | }; |
43 | model = "HNET C108"; |
|
51 | |
44 | |
|
52 | chosen { |
45 | chosen { |
|
Line 53... | Line 46... | |||
53 | bootargs = "console=ttyS0,115200"; |
46 | bootargs = "console=ttyS0,115200"; |
|
Line 62... | Line 55... | |||
62 | gpio-export,output = <1>; |
55 | gpio-export,output = <1>; |
|
63 | gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>; |
56 | gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>; |
|
64 | }; |
57 | }; |
|
65 | }; |
58 | }; |
|
Line 66... | Line 59... | |||
66 | |
59 | |
|
67 | leds { |
60 | gpio-leds { |
|
Line 68... | Line 61... | |||
68 | compatible = "gpio-leds"; |
61 | compatible = "gpio-leds"; |
|
69 | |
62 | |
|
70 | sdcard { |
63 | sdcard { |
|
Line 85... | Line 78... | |||
85 | lan_red { |
78 | lan_red { |
|
86 | label = "c108:red:lan"; |
79 | label = "c108:red:lan"; |
|
87 | gpios = <&gpio2 3 GPIO_ACTIVE_HIGH>; |
80 | gpios = <&gpio2 3 GPIO_ACTIVE_HIGH>; |
|
88 | }; |
81 | }; |
|
Line 89... | Line 82... | |||
89 | |
82 | |
|
90 | led_lan_green: lan_green { |
83 | lan_green { |
|
91 | label = "c108:green:lan"; |
84 | label = "c108:green:lan"; |
|
92 | gpios = <&gpio2 4 GPIO_ACTIVE_HIGH>; |
85 | gpios = <&gpio2 4 GPIO_ACTIVE_HIGH>; |
|
93 | }; |
86 | }; |
|
Line 94... | Line 87... | |||
94 | }; |
87 | }; |
|
95 | |
88 | |
|
- | 89 | gpio-keys-polled { |
||
- | 90 | compatible = "gpio-keys-polled"; |
||
96 | keys { |
91 | #address-cells = <1>; |
|
Line 97... | Line 92... | |||
97 | compatible = "gpio-keys-polled"; |
92 | #size-cells = <0>; |
|
98 | poll-interval = <20>; |
93 | poll-interval = <20>; |
|
99 | |
94 | |
|
Line 115... | Line 110... | |||
115 | |
110 | |
|
116 | &spi0 { |
111 | &spi0 { |
|
Line 117... | Line 112... | |||
117 | status = "okay"; |
112 | status = "okay"; |
|
- | 113 | |
||
- | 114 | en25q128@0 { |
||
118 | |
115 | #address-cells = <1>; |
|
119 | en25q128@0 { |
116 | #size-cells = <1>; |
|
120 | compatible = "jedec,spi-nor"; |
117 | compatible = "jedec,spi-nor"; |
|
Line 121... | Line -... | |||
121 | reg = <0>; |
- | ||
122 | spi-max-frequency = <10000000>; |
- | ||
123 | |
- | ||
124 | partitions { |
- | ||
125 | compatible = "fixed-partitions"; |
- | ||
126 | #address-cells = <1>; |
118 | reg = <0>; |
|
127 | #size-cells = <1>; |
119 | spi-max-frequency = <10000000>; |
|
128 | |
120 | |
|
129 | partition@0 { |
121 | partition@0 { |
|
130 | label = "u-boot"; |
122 | label = "u-boot"; |
|
131 | reg = <0x0 0x30000>; |
123 | reg = <0x0 0x30000>; |
|
132 | read-only; |
124 | read-only; |
|
133 | }; |
125 | }; |
|
134 | |
126 | |
|
135 | partition@30000 { |
127 | partition@30000 { |
|
136 | label = "u-boot-env"; |
128 | label = "u-boot-env"; |
|
137 | reg = <0x30000 0x10000>; |
129 | reg = <0x30000 0x10000>; |
|
138 | read-only; |
130 | read-only; |
|
139 | }; |
131 | }; |
|
140 | |
132 | |
|
141 | factory: partition@40000 { |
133 | factory: partition@40000 { |
|
142 | label = "factory"; |
134 | label = "factory"; |
|
143 | reg = <0x40000 0x10000>; |
135 | reg = <0x40000 0x10000>; |
|
144 | read-only; |
136 | read-only; |
|
145 | }; |
- | ||
146 | |
137 | }; |
|
147 | partition@50000 { |
138 | |
|
148 | compatible = "denx,uimage"; |
- | ||
149 | label = "firmware"; |
139 | partition@50000 { |
|
150 | reg = <0x50000 0xfb0000>; |
140 | label = "firmware"; |
|
151 | }; |
141 | reg = <0x50000 0xfb0000>; |
|
Line 152... | Line 142... | |||
152 | }; |
142 | }; |