OpenWrt – Blame information for rev 2
?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 | |||
16 | leds { |
||
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 | |||
45 | keys { |
||
46 | compatible = "gpio-keys-polled"; |
||
47 | poll-interval = <20>; |
||
48 | |||
49 | reset { |
||
50 | label = "reset"; |
||
51 | gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>; |
||
52 | linux,code = <KEY_RESTART>; |
||
53 | }; |
||
54 | }; |
||
55 | }; |
||
56 | |||
57 | &gpio0 { |
||
58 | status = "okay"; |
||
59 | }; |
||
60 | |||
61 | &gpio1 { |
||
62 | status = "okay"; |
||
63 | }; |
||
64 | |||
65 | &gpio2 { |
||
66 | status = "okay"; |
||
67 | }; |
||
68 | |||
69 | &gpio3 { |
||
70 | status = "okay"; |
||
71 | }; |
||
72 | |||
73 | &spi0 { |
||
74 | status = "okay"; |
||
75 | |||
76 | m25p80@0 { |
||
77 | compatible = "jedec,spi-nor"; |
||
78 | reg = <0>; |
||
79 | spi-max-frequency = <10000000>; |
||
80 | |||
81 | partitions { |
||
82 | compatible = "fixed-partitions"; |
||
83 | #address-cells = <1>; |
||
84 | #size-cells = <1>; |
||
85 | |||
86 | partition@0 { |
||
87 | label = "u-boot"; |
||
88 | reg = <0x0 0x30000>; |
||
89 | }; |
||
90 | |||
91 | partition@30000 { |
||
92 | label = "u-boot-env"; |
||
93 | reg = <0x30000 0x10000>; |
||
94 | read-only; |
||
95 | }; |
||
96 | |||
97 | factory: partition@40000 { |
||
98 | label = "factory"; |
||
99 | reg = <0x40000 0x10000>; |
||
100 | read-only; |
||
101 | }; |
||
102 | |||
103 | partition@50000 { |
||
104 | compatible = "denx,uimage"; |
||
105 | label = "firmware"; |
||
106 | reg = <0x50000 0xf80000>; |
||
107 | }; |
||
108 | }; |
||
109 | }; |
||
110 | }; |
||
111 | |||
112 | ðernet { |
||
113 | pinctrl-names = "default"; |
||
114 | pinctrl-0 = <&ephy_pins>; |
||
115 | mtd-mac-address = <&factory 0x4>; |
||
116 | mediatek,portmap = "wllll"; |
||
117 | }; |
||
118 | |||
119 | &wmac { |
||
120 | ralink,mtd-eeprom = <&factory 0>; |
||
121 | pinctrl-names = "default"; |
||
122 | pinctrl-0 = <&pa_pins>; |
||
123 | }; |
||
124 | |||
125 | &pcie { |
||
126 | status = "okay"; |
||
127 | }; |
||
128 | |||
129 | &pcie0 { |
||
130 | mt76@0,0 { |
||
131 | reg = <0x0000 0 0 0 0>; |
||
132 | mediatek,mtd-eeprom = <&factory 0x8000>; |
||
133 | ieee80211-freq-limit = <5000000 6000000>; |
||
134 | }; |
||
135 | }; |
||
136 | |||
137 | &pinctrl { |
||
138 | state_default: pinctrl0 { |
||
139 | gpio { |
||
140 | ralink,group = "wled", "i2c", "uartf", "wdt"; |
||
141 | ralink,function = "gpio"; |
||
142 | }; |
||
143 | }; |
||
144 | }; |