ath79: add Embedded Wireless Balin Platform
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9550_airtight_c-75.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca955x.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 model = "AirTight Networks C-75";
10 compatible = "airtight,c-75", "qca,qca9550", "qca,qca9558";
11
12 aliases {
13 label-mac-device = &eth0;
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-upgrade = &led_power;
17 };
18
19 keys {
20 compatible = "gpio-keys";
21
22 reset {
23 label = "reset";
24 linux,code = <KEY_RESTART>;
25 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
26 };
27 };
28
29 leds {
30 compatible = "gpio-leds";
31
32 led_power: power {
33 label = "amber:power";
34 gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
35 default-state = "on";
36 };
37
38 wlan2g {
39 label = "green:wlan2g";
40 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
41 linux,default-trigger = "phy1tpt";
42 };
43 };
44
45 virtual_flash {
46 compatible = "mtd-concat";
47 devices = <&fwconcat0 &fwconcat1>;
48
49 partitions {
50 compatible = "fixed-partitions";
51 #address-cells = <1>;
52 #size-cells = <1>;
53
54 partition@0 {
55 label = "firmware";
56 reg = <0x0 0x1f90000>;
57 compatible = "denx,uimage";
58 };
59 };
60 };
61 };
62
63 &eth0 {
64 status = "okay";
65
66 nvmem-cells = <&macaddr_art_0>;
67 nvmem-cell-names = "mac-address";
68 phy-handle = <&phy0>;
69 pll-data = <0xa6000000 0x00000101 0x00001616>;
70 };
71
72 &mdio0 {
73 status = "okay";
74
75 phy0: ethernet-phy@0 {
76 reg = <0>;
77 qca,ar8327-initvals = <
78 0x04 0x07600000 /* PORT0 PAD MODE CTRL */
79 0x0c 0x00080080 /* PORT6 PAD MODE CTRL */
80 0x58 0xc935c935 /* LED2 CTRL */
81 0x5c 0x03ffff00 /* LED3 CTRL */
82 0x7c 0x0000007e /* PORT0_STATUS */
83 0x94 0x0000007e /* PORT6_STATUS */
84 >;
85 };
86 };
87
88 &eth1 {
89 status = "okay";
90
91 nvmem-cells = <&macaddr_art_6>;
92 nvmem-cell-names = "mac-address";
93 pll-data = <0x03000101 0x00000101 0x00001616>;
94
95 fixed-link {
96 speed = <1000>;
97 full-duplex;
98 };
99 };
100
101 &pcie0 {
102 status = "okay";
103
104 wifi@0,0 {
105 compatible = "qcom,ath10k";
106 reg = <0x0000 0 0 0 0>;
107 };
108 };
109
110 &spi {
111 status = "okay";
112
113 flash@0 {
114 compatible = "jedec,spi-nor";
115 reg = <0>;
116 spi-max-frequency = <25000000>;
117
118 partitions {
119 compatible = "fixed-partitions";
120 #address-cells = <1>;
121 #size-cells = <1>;
122
123 partition@0 {
124 label = "u-boot";
125 reg = <0x000000 0x040000>;
126 read-only;
127 };
128
129 partition@40000 {
130 label = "u-boot-env";
131 reg = <0x040000 0x010000>;
132 };
133
134 partition@50000 {
135 label = "wlandrv";
136 reg = <0x050000 0x010000>;
137 read-only;
138 };
139
140 fwconcat0: partition@60000 {
141 label = "fwconcat0";
142 reg = <0x060000 0xf90000>;
143 };
144
145 art: partition@ff0000 {
146 label = "art";
147 reg = <0xff0000 0x010000>;
148 read-only;
149 };
150 };
151 };
152
153 flash@1 {
154 compatible = "jedec,spi-nor";
155 reg = <1>;
156 spi-max-frequency = <25000000>;
157
158 partitions {
159 compatible = "fixed-partitions";
160 #address-cells = <1>;
161 #size-cells = <1>;
162
163 fwconcat1: partition@0 {
164 label = "fwconcat1";
165 reg = <0x0 0x1000000>;
166 };
167 };
168 };
169 };
170
171 &usb_phy0 {
172 status = "okay";
173 };
174
175 &usb0 {
176 status = "okay";
177 };
178
179 &wmac {
180 status = "okay";
181
182 mtd-cal-data = <&art 0x1000>;
183 };
184
185 &art {
186 compatible = "nvmem-cells";
187 #address-cells = <1>;
188 #size-cells = <1>;
189
190 macaddr_art_0: macaddr@0 {
191 reg = <0x0 0x6>;
192 };
193
194 macaddr_art_6: macaddr@6 {
195 reg = <0x6 0x6>;
196 };
197 };