ath79: add support for AirTight C-75
[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
46 &eth0 {
47 status = "okay";
48
49 mtd-mac-address = <&art 0x0>;
50 phy-handle = <&phy0>;
51 pll-data = <0xa6000000 0x00000101 0x00001616>;
52 };
53
54 &mdio0 {
55 status = "okay";
56
57 phy0: ethernet-phy@0 {
58 reg = <0>;
59 qca,ar8327-initvals = <
60 0x04 0x07600000 /* PORT0 PAD MODE CTRL */
61 0x0c 0x00080080 /* PORT6 PAD MODE CTRL */
62 0x58 0xc935c935 /* LED2 CTRL */
63 0x5c 0x03ffff00 /* LED3 CTRL */
64 0x7c 0x0000007e /* PORT0_STATUS */
65 0x94 0x0000007e /* PORT6_STATUS */
66 >;
67 };
68 };
69
70 &eth1 {
71 status = "okay";
72
73 mtd-mac-address = <&art 0x6>;
74 pll-data = <0x03000101 0x00000101 0x00001616>;
75
76 fixed-link {
77 speed = <1000>;
78 full-duplex;
79 };
80 };
81
82 &pcie0 {
83 status = "okay";
84
85 wifi@0,0 {
86 compatible = "qcom,ath10k";
87 reg = <0x0000 0 0 0 0>;
88 };
89 };
90
91 &spi {
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 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 };
114
115 partition@50000 {
116 label = "wlandrv";
117 reg = <0x050000 0x010000>;
118 read-only;
119 };
120
121 partition@60000 {
122 label = "firmware";
123 reg = <0x060000 0xf90000>;
124 compatible = "denx,uimage";
125 };
126
127 art: partition@ff0000 {
128 label = "art";
129 reg = <0xff0000 0x010000>;
130 read-only;
131 };
132 };
133 };
134
135 flash@1 {
136 compatible = "jedec,spi-nor";
137 reg = <1>;
138 spi-max-frequency = <25000000>;
139
140 partitions {
141 compatible = "fixed-partitions";
142 #address-cells = <1>;
143 #size-cells = <1>;
144
145 partition@0 {
146 label = "opt";
147 reg = <0x0 0x1000000>;
148 };
149 };
150 };
151 };
152
153 &uart {
154 status = "okay";
155 };
156
157 &usb_phy0 {
158 status = "okay";
159 };
160
161 &usb0 {
162 status = "okay";
163 };
164
165 &wmac {
166 status = "okay";
167
168 mtd-cal-data = <&art 0x1000>;
169 };