OpenWrt – Blame information for rev 2
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | // SPDX-License-Identifier: GPL-2.0-or-later OR MIT |
2 | /dts-v1/; |
||
3 | |||
4 | #include <dt-bindings/gpio/gpio.h> |
||
5 | #include <dt-bindings/input/input.h> |
||
6 | |||
7 | #include "qca956x.dtsi" |
||
8 | |||
9 | / { |
||
10 | chosen { |
||
11 | bootargs = "console=ttyS0,115200n8"; |
||
12 | }; |
||
13 | |||
14 | aliases { |
||
15 | led-boot = &power; |
||
16 | led-failsafe = &power; |
||
17 | led-running = &power; |
||
18 | led-upgrade = &power; |
||
19 | }; |
||
20 | |||
21 | leds { |
||
22 | compatible = "gpio-leds"; |
||
23 | |||
24 | power: power { |
||
25 | label = "tp-link:green:power"; |
||
26 | gpios = <&gpio 17 GPIO_ACTIVE_LOW>; |
||
27 | default-state = "on"; |
||
28 | }; |
||
29 | |||
30 | wlan2g { |
||
31 | label = "tp-link:green:wlan2g"; |
||
32 | gpios = <&gpio 15 GPIO_ACTIVE_LOW>; |
||
33 | linux,default-trigger = "phy1tpt"; |
||
34 | }; |
||
35 | |||
36 | wlan5g { |
||
37 | label = "tp-link:green:wlan5g"; |
||
38 | gpios = <&gpio 19 GPIO_ACTIVE_LOW>; |
||
39 | linux,default-trigger = "phy0tpt"; |
||
40 | }; |
||
41 | |||
42 | lan { |
||
43 | label = "tp-link:green:lan"; |
||
44 | gpios = <&gpio 20 GPIO_ACTIVE_LOW>; |
||
45 | }; |
||
46 | |||
47 | wan { |
||
48 | label = "tp-link:green:wan"; |
||
49 | gpios = <&gpio 7 GPIO_ACTIVE_LOW>; |
||
50 | }; |
||
51 | |||
52 | wan_fail { |
||
53 | label = "tp-link:amber:wan"; |
||
54 | gpios = <&gpio 8 GPIO_ACTIVE_LOW>; |
||
55 | }; |
||
56 | |||
57 | wps { |
||
58 | label = "tp-link:green:wps"; |
||
59 | gpios = <&gpio 9 GPIO_ACTIVE_LOW>; |
||
60 | }; |
||
61 | }; |
||
62 | |||
63 | keys { |
||
64 | compatible = "gpio-keys"; |
||
65 | |||
66 | reset { |
||
67 | label = "Reset button"; |
||
68 | linux,code = <KEY_RESTART>; |
||
69 | gpios = <&gpio 5 GPIO_ACTIVE_LOW>; |
||
70 | debounce-interval = <60>; |
||
71 | }; |
||
72 | |||
73 | wps { |
||
74 | label = "WPS button"; |
||
75 | linux,code = <KEY_WPS_BUTTON>; |
||
76 | gpios = <&gpio 6 GPIO_ACTIVE_LOW>; |
||
77 | debounce-interval = <60>; |
||
78 | }; |
||
79 | }; |
||
80 | }; |
||
81 | |||
82 | &pcie { |
||
83 | status = "okay"; |
||
84 | }; |
||
85 | |||
86 | &uart { |
||
87 | status = "okay"; |
||
88 | }; |
||
89 | |||
90 | &gpio { |
||
91 | status = "okay"; |
||
92 | }; |
||
93 | |||
94 | &spi { |
||
95 | status = "okay"; |
||
96 | num-cs = <1>; |
||
97 | |||
98 | flash@0 { |
||
99 | compatible = "jedec,spi-nor"; |
||
100 | reg = <0>; |
||
101 | spi-max-frequency = <25000000>; |
||
102 | |||
103 | partitions { |
||
104 | compatible = "fixed-partitions"; |
||
105 | #address-cells = <1>; |
||
106 | #size-cells = <1>; |
||
107 | |||
108 | partition@0 { |
||
109 | label = "u-boot"; |
||
110 | reg = <0x000000 0x020000>; |
||
111 | read-only; |
||
112 | }; |
||
113 | |||
114 | mac: partition@20000 { |
||
115 | label = "mac"; |
||
116 | reg = <0x020000 0x010000>; |
||
117 | read-only; |
||
118 | }; |
||
119 | |||
120 | partition@30000 { |
||
121 | compatible = "denx,uimage"; |
||
122 | label = "firmware"; |
||
123 | reg = <0x030000 0x7a0000>; |
||
124 | }; |
||
125 | |||
126 | partition@7d0000 { |
||
127 | label = "tplink"; |
||
128 | reg = <0x7d0000 0x020000>; |
||
129 | read-only; |
||
130 | }; |
||
131 | |||
132 | art: partition@7f0000 { |
||
133 | label = "art"; |
||
134 | reg = <0x7f0000 0x010000>; |
||
135 | read-only; |
||
136 | }; |
||
137 | }; |
||
138 | }; |
||
139 | }; |
||
140 | |||
141 | &mdio0 { |
||
142 | status = "okay"; |
||
143 | |||
144 | phy-mask = <0>; |
||
145 | |||
146 | phy0: ethernet-phy@0 { |
||
147 | reg = <0>; |
||
148 | phy-mode = "sgmii"; |
||
149 | |||
150 | qca,ar8327-initvals = < |
||
151 | 0x04 0x00080080 /* PORT0 PAD MODE CTRL */ |
||
152 | 0x7c 0x0000007e /* PORT0_STATUS */ |
||
153 | >; |
||
154 | }; |
||
155 | }; |
||
156 | |||
157 | ð0 { |
||
158 | status = "okay"; |
||
159 | |||
160 | phy-mode = "sgmii"; |
||
161 | mtd-mac-address = <&mac 0x8>; |
||
162 | phy-handle = <&phy0>; |
||
163 | }; |
||
164 | |||
165 | &wmac { |
||
166 | status = "okay"; |
||
167 | |||
168 | mtd-cal-data = <&art 0x1000>; |
||
169 | mtd-mac-address = <&mac 0x8>; |
||
170 | }; |