ath79: wpj563: enable 2nd USB controller
[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 mtd-mac-address = <&art 0x0>;
67 phy-handle = <&phy0>;
68 pll-data = <0xa6000000 0x00000101 0x00001616>;
69 };
70
71 &mdio0 {
72 status = "okay";
73
74 phy0: ethernet-phy@0 {
75 reg = <0>;
76 qca,ar8327-initvals = <
77 0x04 0x07600000 /* PORT0 PAD MODE CTRL */
78 0x0c 0x00080080 /* PORT6 PAD MODE CTRL */
79 0x58 0xc935c935 /* LED2 CTRL */
80 0x5c 0x03ffff00 /* LED3 CTRL */
81 0x7c 0x0000007e /* PORT0_STATUS */
82 0x94 0x0000007e /* PORT6_STATUS */
83 >;
84 };
85 };
86
87 &eth1 {
88 status = "okay";
89
90 mtd-mac-address = <&art 0x6>;
91 pll-data = <0x03000101 0x00000101 0x00001616>;
92
93 fixed-link {
94 speed = <1000>;
95 full-duplex;
96 };
97 };
98
99 &pcie0 {
100 status = "okay";
101
102 wifi@0,0 {
103 compatible = "qcom,ath10k";
104 reg = <0x0000 0 0 0 0>;
105 };
106 };
107
108 &spi {
109 status = "okay";
110
111 flash@0 {
112 compatible = "jedec,spi-nor";
113 reg = <0>;
114 spi-max-frequency = <25000000>;
115
116 partitions {
117 compatible = "fixed-partitions";
118 #address-cells = <1>;
119 #size-cells = <1>;
120
121 partition@0 {
122 label = "u-boot";
123 reg = <0x000000 0x040000>;
124 read-only;
125 };
126
127 partition@40000 {
128 label = "u-boot-env";
129 reg = <0x040000 0x010000>;
130 };
131
132 partition@50000 {
133 label = "wlandrv";
134 reg = <0x050000 0x010000>;
135 read-only;
136 };
137
138 fwconcat0: partition@60000 {
139 label = "fwconcat0";
140 reg = <0x060000 0xf90000>;
141 };
142
143 art: partition@ff0000 {
144 label = "art";
145 reg = <0xff0000 0x010000>;
146 read-only;
147 };
148 };
149 };
150
151 flash@1 {
152 compatible = "jedec,spi-nor";
153 reg = <1>;
154 spi-max-frequency = <25000000>;
155
156 partitions {
157 compatible = "fixed-partitions";
158 #address-cells = <1>;
159 #size-cells = <1>;
160
161 fwconcat1: partition@0 {
162 label = "fwconcat1";
163 reg = <0x0 0x1000000>;
164 };
165 };
166 };
167 };
168
169 &usb_phy0 {
170 status = "okay";
171 };
172
173 &usb0 {
174 status = "okay";
175 };
176
177 &wmac {
178 status = "okay";
179
180 mtd-cal-data = <&art 0x1000>;
181 };