OpenWrt – Diff between revs 2 and 3
?pathlinks?
Rev 2 | Rev 3 | |||
---|---|---|---|---|
Line 7... | Line 7... | |||
7 | |
7 | |
|
8 | / { |
8 | / { |
|
9 | compatible = "ohyeah,oy-0001", "ralink,mt7620a-soc"; |
9 | compatible = "ohyeah,oy-0001", "ralink,mt7620a-soc"; |
|
Line 10... | Line -... | |||
10 | model = "OY-0001"; |
- | ||
11 | |
- | ||
12 | aliases { |
- | ||
13 | led-boot = &led_power; |
- | ||
14 | led-failsafe = &led_power; |
- | ||
15 | led-running = &led_power; |
- | ||
16 | led-upgrade = &led_power; |
- | ||
17 | }; |
10 | model = "OY-0001"; |
|
18 | |
11 | |
|
19 | chosen { |
12 | chosen { |
|
Line 20... | Line 13... | |||
20 | bootargs = "console=ttyS0,115200"; |
13 | bootargs = "console=ttyS0,115200"; |
|
21 | }; |
14 | }; |
|
Line 22... | Line 15... | |||
22 | |
15 | |
|
23 | leds { |
16 | gpio-leds { |
|
24 | compatible = "gpio-leds"; |
17 | compatible = "gpio-leds"; |
|
25 | |
18 | |
|
Line 26... | Line 19... | |||
26 | led_power: powerled { |
19 | powerled { |
|
27 | label = "oy-0001:green:power"; |
20 | label = "oy-0001:green:power"; |
|
28 | gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
21 | gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
|
29 | }; |
22 | }; |
|
30 | |
23 | |
|
Line 31... | Line 24... | |||
31 | wifiled { |
24 | wifiled { |
|
32 | label = "oy-0001:green:wifi"; |
25 | label = "oy-0001:green:wifi"; |
|
- | 26 | gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; |
||
- | 27 | }; |
||
33 | gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; |
28 | }; |
|
Line 34... | Line 29... | |||
34 | }; |
29 | |
|
35 | }; |
30 | gpio-keys-polled { |
|
36 | |
31 | compatible = "gpio-keys-polled"; |
|
Line 56... | Line 51... | |||
56 | |
51 | |
|
57 | &spi0 { |
52 | &spi0 { |
|
Line 58... | Line 53... | |||
58 | status = "okay"; |
53 | status = "okay"; |
|
- | 54 | |
||
- | 55 | m25p80@0 { |
||
59 | |
56 | #address-cells = <1>; |
|
60 | m25p80@0 { |
57 | #size-cells = <1>; |
|
61 | compatible = "jedec,spi-nor"; |
58 | compatible = "jedec,spi-nor"; |
|
Line 62... | Line -... | |||
62 | reg = <0>; |
- | ||
63 | spi-max-frequency = <10000000>; |
- | ||
64 | |
- | ||
65 | partitions { |
- | ||
66 | compatible = "fixed-partitions"; |
- | ||
67 | #address-cells = <1>; |
59 | reg = <0>; |
|
68 | #size-cells = <1>; |
60 | spi-max-frequency = <10000000>; |
|
69 | |
61 | |
|
70 | partition@0 { |
62 | partition@0 { |
|
71 | label = "u-boot"; |
63 | label = "u-boot"; |
|
72 | reg = <0x0 0x30000>; |
64 | reg = <0x0 0x30000>; |
|
73 | read-only; |
65 | read-only; |
|
74 | }; |
66 | }; |
|
75 | |
67 | |
|
76 | partition@30000 { |
68 | partition@30000 { |
|
77 | label = "u-boot-env"; |
69 | label = "u-boot-env"; |
|
78 | reg = <0x30000 0x10000>; |
70 | reg = <0x30000 0x10000>; |
|
79 | read-only; |
71 | read-only; |
|
80 | }; |
72 | }; |
|
81 | |
73 | |
|
82 | factory: partition@40000 { |
74 | factory: partition@40000 { |
|
83 | label = "factory"; |
75 | label = "factory"; |
|
84 | reg = <0x40000 0x10000>; |
76 | reg = <0x40000 0x10000>; |
|
85 | read-only; |
77 | read-only; |
|
86 | }; |
- | ||
87 | |
78 | }; |
|
88 | partition@50000 { |
79 | |
|
89 | compatible = "denx,uimage"; |
- | ||
90 | label = "firmware"; |
80 | partition@50000 { |
|
91 | reg = <0x50000 0xfb0000>; |
81 | label = "firmware"; |
|
92 | }; |
82 | reg = <0x50000 0xfb0000>; |
|
Line 93... | Line 83... | |||
93 | }; |
83 | }; |
|
94 | }; |
84 | }; |
|
95 | }; |
85 | }; |
|
96 | |
86 | |
|
97 | &pinctrl { |
87 | &pinctrl { |
|
98 | state_default: pinctrl0 { |
88 | state_default: pinctrl0 { |
|
99 | gpio { |
89 | gpio { |
|
100 | ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled"; |
90 | ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd"; |
|
Line 126... | Line 116... | |||
126 | }; |
116 | }; |
|
Line 127... | Line 117... | |||
127 | |
117 | |
|
128 | &ohci { |
118 | &ohci { |
|
129 | status = "okay"; |
119 | status = "okay"; |
|
- | 120 | }; |
||
- | 121 | |
||
- | 122 | &pcie { |
||
- | 123 | status = "okay"; |