OpenWrt – Blame information for rev 3
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | /dts-v1/; |
2 | |||
3 | #include "mt7621.dtsi" |
||
4 | |||
5 | #include <dt-bindings/gpio/gpio.h> |
||
6 | #include <dt-bindings/input/input.h> |
||
7 | |||
8 | / { |
||
9 | compatible = "phicomm,k2p", "mediatek,mt7621-soc"; |
||
10 | model = "Phicomm K2P"; |
||
11 | |||
12 | memory@0 { |
||
13 | device_type = "memory"; |
||
14 | reg = <0x0 0x8000000>; |
||
15 | }; |
||
16 | |||
17 | chosen { |
||
18 | bootargs = "console=ttyS0,57600"; |
||
19 | }; |
||
20 | |||
3 | office | 21 | gpio-leds { |
1 | office | 22 | compatible = "gpio-leds"; |
23 | |||
24 | stat_r { |
||
25 | label = "k2p:red:status"; |
||
26 | gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>; |
||
27 | }; |
||
28 | |||
29 | stat_y { |
||
30 | label = "k2p:yellow:status"; |
||
31 | gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; |
||
32 | }; |
||
33 | |||
3 | office | 34 | stat_b { |
1 | office | 35 | label = "k2p:blue:status"; |
36 | gpios = <&gpio0 15 GPIO_ACTIVE_LOW>; |
||
37 | }; |
||
38 | }; |
||
39 | |||
3 | office | 40 | gpio-keys-polled { |
1 | office | 41 | compatible = "gpio-keys-polled"; |
3 | office | 42 | #address-cells = <1>; |
43 | #size-cells = <0>; |
||
1 | office | 44 | poll-interval = <20>; |
45 | |||
46 | reset { |
||
47 | label = "reset"; |
||
48 | gpios = <&gpio0 3 GPIO_ACTIVE_LOW>; |
||
49 | linux,code = <KEY_RESTART>; |
||
50 | }; |
||
51 | }; |
||
52 | }; |
||
53 | |||
54 | &spi0 { |
||
55 | status = "okay"; |
||
56 | |||
57 | m25p80@0 { |
||
3 | office | 58 | #address-cells = <1>; |
59 | #size-cells = <1>; |
||
1 | office | 60 | compatible = "jedec,spi-nor"; |
61 | reg = <0>; |
||
62 | spi-max-frequency = <10000000>; |
||
3 | office | 63 | m25p,chunked-io = <32>; |
1 | office | 64 | |
3 | office | 65 | partition@0 { |
66 | label = "u-boot"; |
||
67 | reg = <0x0 0x30000>; |
||
68 | read-only; |
||
69 | }; |
||
1 | office | 70 | |
3 | office | 71 | partition@30000 { |
72 | label = "u-boot-env"; |
||
73 | reg = <0x30000 0x10000>; |
||
74 | read-only; |
||
75 | }; |
||
1 | office | 76 | |
3 | office | 77 | factory: partition@40000 { |
78 | label = "factory"; |
||
79 | reg = <0x40000 0x10000>; |
||
80 | read-only; |
||
81 | }; |
||
1 | office | 82 | |
3 | office | 83 | partition@50000 { |
84 | label = "permanent_config"; |
||
85 | reg = <0x50000 0x50000>; |
||
86 | read-only; |
||
87 | }; |
||
1 | office | 88 | |
3 | office | 89 | partition@a0000 { |
90 | label = "firmware"; |
||
91 | reg = <0xa0000 0xf60000>; |
||
1 | office | 92 | }; |
93 | }; |
||
94 | }; |
||
95 | |||
96 | &pcie { |
||
97 | status = "okay"; |
||
98 | |||
3 | office | 99 | pcie0 { |
100 | mt76@0,0 { |
||
101 | reg = <0x0000 0 0 0 0>; |
||
102 | device_type = "pci"; |
||
103 | mediatek,mtd-eeprom = <&factory 0x0>; |
||
104 | }; |
||
1 | office | 105 | }; |
106 | }; |
||
107 | |||
108 | ðernet { |
||
109 | mtd-mac-address = <&factory 0xe006>; |
||
110 | }; |
||
111 | |||
112 | &pinctrl { |
||
113 | state_default: pinctrl0 { |
||
114 | gpio { |
||
115 | ralink,group = "i2c", "jtag"; |
||
116 | ralink,function = "gpio"; |
||
117 | }; |
||
118 | }; |
||
119 | }; |