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