OpenWrt – Diff between revs 2 and 3
?pathlinks?
Rev 2 | Rev 3 | |||
---|---|---|---|---|
Line 7... | Line 7... | |||
7 | |
7 | |
|
8 | / { |
8 | / { |
|
9 | compatible = "phicomm,k2p", "mediatek,mt7621-soc"; |
9 | compatible = "phicomm,k2p", "mediatek,mt7621-soc"; |
|
Line 10... | Line -... | |||
10 | model = "Phicomm K2P"; |
- | ||
11 | |
- | ||
12 | aliases { |
- | ||
13 | led-boot = &led_blue; |
- | ||
14 | led-failsafe = &led_blue; |
- | ||
15 | led-running = &led_blue; |
- | ||
16 | led-upgrade = &led_blue; |
- | ||
17 | }; |
10 | model = "Phicomm K2P"; |
|
18 | |
11 | |
|
19 | memory@0 { |
12 | memory@0 { |
|
20 | device_type = "memory"; |
13 | device_type = "memory"; |
|
Line 21... | Line 14... | |||
21 | reg = <0x0 0x8000000>; |
14 | reg = <0x0 0x8000000>; |
|
22 | }; |
15 | }; |
|
23 | |
16 | |
|
Line 24... | Line 17... | |||
24 | chosen { |
17 | chosen { |
|
25 | bootargs = "console=ttyS0,57600"; |
18 | bootargs = "console=ttyS0,57600"; |
|
Line 26... | Line 19... | |||
26 | }; |
19 | }; |
|
27 | |
20 | |
|
28 | leds { |
21 | gpio-leds { |
|
Line 36... | Line 29... | |||
36 | stat_y { |
29 | stat_y { |
|
37 | label = "k2p:yellow:status"; |
30 | label = "k2p:yellow:status"; |
|
38 | gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; |
31 | gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; |
|
39 | }; |
32 | }; |
|
Line 40... | Line 33... | |||
40 | |
33 | |
|
41 | led_blue: stat_b { |
34 | stat_b { |
|
42 | label = "k2p:blue:status"; |
35 | label = "k2p:blue:status"; |
|
43 | gpios = <&gpio0 15 GPIO_ACTIVE_LOW>; |
36 | gpios = <&gpio0 15 GPIO_ACTIVE_LOW>; |
|
44 | }; |
37 | }; |
|
Line 45... | Line 38... | |||
45 | }; |
38 | }; |
|
46 | |
39 | |
|
- | 40 | gpio-keys-polled { |
||
- | 41 | compatible = "gpio-keys-polled"; |
||
47 | keys { |
42 | #address-cells = <1>; |
|
Line 48... | Line 43... | |||
48 | compatible = "gpio-keys-polled"; |
43 | #size-cells = <0>; |
|
49 | poll-interval = <20>; |
44 | poll-interval = <20>; |
|
50 | |
45 | |
|
Line 58... | Line 53... | |||
58 | |
53 | |
|
59 | &spi0 { |
54 | &spi0 { |
|
Line 60... | Line 55... | |||
60 | status = "okay"; |
55 | status = "okay"; |
|
- | 56 | |
||
- | 57 | m25p80@0 { |
||
61 | |
58 | #address-cells = <1>; |
|
62 | m25p80@0 { |
59 | #size-cells = <1>; |
|
63 | compatible = "jedec,spi-nor"; |
60 | compatible = "jedec,spi-nor"; |
|
- | 61 | reg = <0>; |
||
- | 62 | spi-max-frequency = <10000000>; |
||
- | 63 | m25p,chunked-io = <32>; |
||
- | 64 | |
||
- | 65 | partition@0 { |
||
- | 66 | label = "u-boot"; |
||
- | 67 | reg = <0x0 0x30000>; |
||
- | 68 | read-only; |
||
- | 69 | }; |
||
- | 70 | |
||
- | 71 | partition@30000 { |
||
- | 72 | label = "u-boot-env"; |
||
- | 73 | reg = <0x30000 0x10000>; |
||
Line 64... | Line -... | |||
64 | reg = <0>; |
- | ||
65 | spi-max-frequency = <10000000>; |
- | ||
66 | |
- | ||
67 | partitions { |
- | ||
68 | compatible = "fixed-partitions"; |
- | ||
69 | #address-cells = <1>; |
- | ||
70 | #size-cells = <1>; |
- | ||
71 | |
- | ||
72 | partition@0 { |
- | ||
73 | label = "u-boot"; |
- | ||
74 | reg = <0x0 0x30000>; |
- | ||
75 | read-only; |
- | ||
76 | }; |
- | ||
77 | |
- | ||
78 | partition@30000 { |
- | ||
79 | label = "u-boot-env"; |
- | ||
80 | reg = <0x30000 0x10000>; |
- | ||
81 | read-only; |
74 | read-only; |
|
82 | }; |
75 | }; |
|
83 | |
76 | |
|
84 | factory: partition@40000 { |
77 | factory: partition@40000 { |
|
85 | label = "factory"; |
78 | label = "factory"; |
|
86 | reg = <0x40000 0x10000>; |
79 | reg = <0x40000 0x10000>; |
|
87 | read-only; |
80 | read-only; |
|
88 | }; |
81 | }; |
|
89 | |
82 | |
|
90 | partition@50000 { |
83 | partition@50000 { |
|
91 | label = "permanent_config"; |
84 | label = "permanent_config"; |
|
92 | reg = <0x50000 0x50000>; |
85 | reg = <0x50000 0x50000>; |
|
93 | read-only; |
86 | read-only; |
|
94 | }; |
- | ||
95 | |
87 | }; |
|
96 | partition@a0000 { |
88 | |
|
97 | compatible = "denx,uimage"; |
- | ||
98 | label = "firmware"; |
89 | partition@a0000 { |
|
99 | reg = <0xa0000 0xf60000>; |
90 | label = "firmware"; |
|
100 | }; |
91 | reg = <0xa0000 0xf60000>; |
|
Line 101... | Line 92... | |||
101 | }; |
92 | }; |
|
102 | }; |
93 | }; |
|
103 | }; |
- | ||
Line 104... | Line 94... | |||
104 | |
94 | }; |
|
105 | &pcie { |
95 | |
|
106 | status = "okay"; |
96 | &pcie { |
|
- | 97 | status = "okay"; |
||
107 | }; |
98 | |
|
- | 99 | pcie0 { |
||
108 | |
100 | mt76@0,0 { |
|
109 | &pcie0 { |
101 | reg = <0x0000 0 0 0 0>; |
|
Line 110... | Line 102... | |||
110 | mt76@0,0 { |
102 | device_type = "pci"; |
|
111 | reg = <0x0000 0 0 0 0>; |
103 | mediatek,mtd-eeprom = <&factory 0x0>; |