OpenWrt – Blame information for rev 3
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | /dts-v1/; |
2 | |||
3 | #include "mt7620a.dtsi" |
||
4 | |||
5 | #include <dt-bindings/gpio/gpio.h> |
||
6 | #include <dt-bindings/input/input.h> |
||
7 | |||
8 | / { |
||
9 | compatible = "zbtlink,zbt-ape522ii", "ralink,mt7620a-soc"; |
||
10 | model = "ZBT-APE522II"; |
||
11 | |||
12 | chosen { |
||
13 | bootargs = "console=ttyS0,115200"; |
||
14 | }; |
||
15 | |||
3 | office | 16 | gpio-leds { |
1 | office | 17 | compatible = "gpio-leds"; |
18 | |||
19 | sys1 { |
||
20 | label = "zbt-ape522ii:green:sys1"; |
||
21 | gpios = <&gpio0 11 GPIO_ACTIVE_LOW>; |
||
22 | }; |
||
23 | |||
24 | sys2 { |
||
25 | label = "zbt-ape522ii:green:sys2"; |
||
26 | gpios = <&gpio0 12 GPIO_ACTIVE_LOW>; |
||
27 | }; |
||
28 | |||
29 | sys3 { |
||
30 | label = "zbt-ape522ii:green:sys3"; |
||
31 | gpios = <&gpio0 9 GPIO_ACTIVE_LOW>; |
||
32 | }; |
||
33 | |||
34 | sys4 { |
||
35 | label = "zbt-ape522ii:green:sys4"; |
||
36 | gpios = <&gpio0 14 GPIO_ACTIVE_LOW>; |
||
37 | }; |
||
38 | |||
39 | wlan2g4 { |
||
40 | label = "zbt-ape522ii:green:wlan2g4"; |
||
41 | gpios = <&gpio3 0 GPIO_ACTIVE_LOW>; |
||
42 | }; |
||
43 | }; |
||
44 | |||
3 | office | 45 | gpio-keys-polled { |
1 | office | 46 | compatible = "gpio-keys-polled"; |
3 | office | 47 | #address-cells = <1>; |
48 | #size-cells = <0>; |
||
1 | office | 49 | poll-interval = <20>; |
50 | |||
51 | reset { |
||
52 | label = "reset"; |
||
53 | gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>; |
||
54 | linux,code = <KEY_RESTART>; |
||
55 | }; |
||
56 | }; |
||
57 | }; |
||
58 | |||
59 | &gpio0 { |
||
60 | status = "okay"; |
||
61 | }; |
||
62 | |||
63 | &gpio1 { |
||
64 | status = "okay"; |
||
65 | }; |
||
66 | |||
67 | &gpio2 { |
||
68 | status = "okay"; |
||
69 | }; |
||
70 | |||
71 | &gpio3 { |
||
72 | status = "okay"; |
||
73 | }; |
||
74 | |||
75 | &spi0 { |
||
76 | status = "okay"; |
||
77 | |||
78 | m25p80@0 { |
||
3 | office | 79 | #address-cells = <1>; |
80 | #size-cells = <1>; |
||
1 | office | 81 | compatible = "jedec,spi-nor"; |
82 | reg = <0>; |
||
83 | spi-max-frequency = <10000000>; |
||
84 | |||
3 | office | 85 | partition@0 { |
86 | label = "u-boot"; |
||
87 | reg = <0x0 0x30000>; |
||
88 | }; |
||
1 | office | 89 | |
3 | office | 90 | partition@30000 { |
91 | label = "u-boot-env"; |
||
92 | reg = <0x30000 0x10000>; |
||
93 | read-only; |
||
94 | }; |
||
1 | office | 95 | |
3 | office | 96 | factory: partition@40000 { |
97 | label = "factory"; |
||
98 | reg = <0x40000 0x10000>; |
||
99 | read-only; |
||
100 | }; |
||
1 | office | 101 | |
3 | office | 102 | partition@50000 { |
103 | label = "firmware"; |
||
104 | reg = <0x50000 0xf80000>; |
||
1 | office | 105 | }; |
106 | }; |
||
107 | }; |
||
108 | |||
109 | ðernet { |
||
110 | pinctrl-names = "default"; |
||
111 | pinctrl-0 = <&ephy_pins>; |
||
112 | mtd-mac-address = <&factory 0x4>; |
||
113 | mediatek,portmap = "wllll"; |
||
114 | }; |
||
115 | |||
116 | &wmac { |
||
117 | ralink,mtd-eeprom = <&factory 0>; |
||
118 | pinctrl-names = "default"; |
||
119 | pinctrl-0 = <&pa_pins>; |
||
120 | }; |
||
121 | |||
122 | &pcie { |
||
123 | status = "okay"; |
||
124 | |||
3 | office | 125 | pcie-bridge { |
126 | mt76@0,0 { |
||
127 | reg = <0x0000 0 0 0 0>; |
||
128 | device_type = "pci"; |
||
129 | mediatek,mtd-eeprom = <&factory 0x8000>; |
||
130 | ieee80211-freq-limit = <5000000 6000000>; |
||
131 | }; |
||
1 | office | 132 | }; |
133 | }; |
||
134 | |||
135 | &pinctrl { |
||
136 | state_default: pinctrl0 { |
||
137 | gpio { |
||
138 | ralink,group = "wled", "i2c", "uartf", "wdt"; |
||
139 | ralink,function = "gpio"; |
||
140 | }; |
||
141 | }; |
||
142 | }; |