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