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 "ar9344.dtsi" |
||
8 | |||
9 | / { |
||
10 | model = "PowerCloud Systems CAP324"; |
||
11 | compatible = "pcs,cap324", "qca,ar9344"; |
||
12 | |||
13 | aliases { |
||
14 | serial0 = &uart; |
||
15 | led-boot = &status; |
||
16 | led-failsafe = &status; |
||
17 | led-running = &running; |
||
18 | led-upgrade = &status; |
||
19 | }; |
||
20 | |||
21 | keys { |
||
22 | compatible = "gpio-keys-polled"; |
||
23 | poll-interval = <20>; |
||
24 | |||
25 | pinctrl-names = "default"; |
||
26 | pinctrl-0 = <&jtag_disable_pins>; |
||
27 | |||
28 | reset { |
||
29 | label = "Reset button"; |
||
30 | linux,code = <KEY_RESTART>; |
||
31 | gpios = <&gpio 17 GPIO_ACTIVE_LOW>; |
||
32 | debounce-interval = <60>; |
||
33 | }; |
||
34 | }; |
||
35 | |||
36 | leds { |
||
37 | compatible = "gpio-leds"; |
||
38 | |||
39 | status: power_amber { |
||
40 | label = "pcs:amber:power"; |
||
41 | gpios = <&gpio 13 GPIO_ACTIVE_LOW>; |
||
42 | }; |
||
43 | |||
44 | running: power_green { |
||
45 | label = "pcs:green:power"; |
||
46 | gpios = <&gpio 12 GPIO_ACTIVE_LOW>; |
||
47 | default-state = "on"; |
||
48 | }; |
||
49 | |||
50 | wlan_amber { |
||
51 | label = "pcs:amber:wlan"; |
||
52 | gpios = <&gpio 19 GPIO_ACTIVE_LOW>; |
||
53 | linux,default-trigger = "phy1tpt"; |
||
54 | }; |
||
55 | |||
56 | wlan_green { |
||
57 | label = "pcs:green:wlan"; |
||
58 | gpios = <&gpio 18 GPIO_ACTIVE_LOW>; |
||
59 | linux,default-trigger = "phy0tpt"; |
||
60 | }; |
||
61 | |||
62 | lan_amber { |
||
63 | label = "pcs:lan:amber"; |
||
64 | gpios = <&gpio 15 GPIO_ACTIVE_LOW>; |
||
65 | }; |
||
66 | |||
67 | lan_green { |
||
68 | label = "pcs:lan:green"; |
||
69 | gpios = <&gpio 14 GPIO_ACTIVE_LOW>; |
||
70 | }; |
||
71 | }; |
||
72 | }; |
||
73 | |||
74 | &ref { |
||
75 | clock-frequency = <25000000>; |
||
76 | }; |
||
77 | |||
78 | &uart { |
||
79 | status = "okay"; |
||
80 | }; |
||
81 | |||
82 | &gpio { |
||
83 | status = "okay"; |
||
84 | }; |
||
85 | |||
86 | &spi { |
||
87 | num-cs = <1>; |
||
88 | |||
89 | status = "okay"; |
||
90 | |||
91 | flash@0 { |
||
92 | compatible = "jedec,spi-nor"; |
||
93 | reg = <0>; |
||
94 | spi-max-frequency = <25000000>; |
||
95 | |||
96 | partitions { |
||
97 | compatible = "fixed-partitions"; |
||
98 | #address-cells = <1>; |
||
99 | #size-cells = <1>; |
||
100 | |||
101 | uboot: partition@0 { |
||
102 | label = "u-boot"; |
||
103 | reg = <0x000000 0x040000>; |
||
104 | read-only; |
||
105 | }; |
||
106 | |||
107 | partition@40000 { |
||
108 | label = "u-boot-env"; |
||
109 | reg = <0x040000 0x010000>; |
||
110 | read-only; |
||
111 | }; |
||
112 | |||
113 | partition@50000 { |
||
114 | compatible = "denx,uimage"; |
||
115 | label = "firmware"; |
||
116 | reg = <0x050000 0x0fa0000>; |
||
117 | }; |
||
118 | |||
119 | art: partition@7f0000 { |
||
120 | label = "art"; |
||
121 | reg = <0xff0000 0x010000>; |
||
122 | read-only; |
||
123 | }; |
||
124 | }; |
||
125 | }; |
||
126 | }; |
||
127 | |||
128 | &pcie { |
||
129 | status = "okay"; |
||
130 | |||
131 | ath9k: wifi@0,0 { |
||
132 | compatible = "168c,0030"; |
||
133 | reg = <0x0000 0 0 0 0>; |
||
134 | mtd-mac-address = <&art 0x0>; |
||
135 | mtd-mac-address-increment = <(-2)>; |
||
136 | mtd-cal-data = <&art 0x5000>; |
||
137 | qca,no-eeprom; |
||
138 | qca,disable-5ghz; |
||
139 | #gpio-cells = <2>; |
||
140 | gpio-controller; |
||
141 | }; |
||
142 | }; |
||
143 | |||
144 | &wmac { |
||
145 | status = "okay"; |
||
146 | |||
147 | qca,disable-2ghz; |
||
148 | mtd-cal-data = <&art 0x1000>; |
||
149 | mtd-mac-address = <&art 0x0>; |
||
150 | mtd-mac-address-increment = <(-1)>; |
||
151 | }; |
||
152 | |||
153 | &mdio0 { |
||
154 | status = "okay"; |
||
155 | |||
156 | phy-mask = <0>; |
||
157 | |||
158 | phy0: ethernet-phy@0 { |
||
159 | reg = <0>; |
||
160 | phy-mode = "rgmii"; |
||
161 | }; |
||
162 | }; |
||
163 | |||
164 | ð0 { |
||
165 | status = "okay"; |
||
166 | |||
167 | /* default for ar934x, except for 1000M */ |
||
168 | pll-data = <0x06000000 0x00000101 0x00001616>; |
||
169 | |||
170 | mtd-mac-address = <&art 0x0>; |
||
171 | |||
172 | phy-mode = "rgmii"; |
||
173 | phy-handle = <&phy0>; |
||
174 | }; |