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