ath79: prepare for 1-port TP-Link EAP2x5 devices
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9558_zyxel_nbg6716.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca955x_zyxel_nbg6x16.dtsi"
4
5 / {
6 compatible = "zyxel,nbg6716", "qca,qca9558";
7 model = "ZyXEL NBG6716";
8
9 aliases {
10 led-boot = &led_power;
11 led-failsafe = &led_power;
12 led-running = &led_power;
13 led-upgrade = &led_power;
14 };
15
16 leds {
17 compatible = "gpio-leds";
18
19 led_power: power {
20 label = "white:power";
21 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
22 };
23
24 internet {
25 label = "white:internet";
26 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
27 };
28
29 usb1 {
30 label = "white:usb1";
31 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
32 linux,default-trigger = "usbport";
33 trigger-sources = <&hub_port1>;
34 };
35
36 usb2 {
37 label = "white:usb2";
38 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
39 linux,default-trigger = "usbport";
40 trigger-sources = <&hub_port0>;
41 };
42
43 wifi2g {
44 label = "white:wifi2g";
45 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
46 linux,default-trigger = "phy1tpt";
47 };
48
49 wifi5g {
50 label = "white:wifi5g";
51 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
52 linux,default-trigger = "phy0tpt";
53 };
54
55 wps {
56 label = "white:wps";
57 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
58 };
59 };
60 };
61
62 &keys {
63 usb1 {
64 label = "USB1 eject button";
65 linux,code = <BTN_1>;
66 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
67 debounce-interval = <60>;
68 };
69
70 usb2 {
71 label = "USB2 eject button";
72 linux,code = <BTN_2>;
73 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
74 debounce-interval = <60>;
75 };
76 };
77
78 &gpio_usb_power {
79 line-name = "nbg6716:power:usb";
80 };
81
82 &spi {
83 status = "okay";
84
85 num-cs = <1>;
86
87 flash@0 {
88 compatible = "jedec,spi-nor";
89 reg = <0>;
90 spi-max-frequency = <25000000>;
91
92 partitions {
93 compatible = "fixed-partitions";
94 #address-cells = <1>;
95 #size-cells = <1>;
96
97 uboot: partition@0 {
98 label = "u-boot";
99 reg = <0x000000 0x040000>;
100 read-only;
101 };
102
103 uboot_env: partition@40000 {
104 label = "u-boot-env";
105 reg = <0x040000 0x010000>;
106 };
107
108 art: partition@50000 {
109 label = "art";
110 reg = <0x050000 0x010000>;
111 read-only;
112 };
113
114 partition@60000 {
115 label = "nbu";
116 reg = <0x060000 0xfa0000>;
117 };
118 };
119 };
120 };
121
122 &nand {
123 status = "okay";
124
125 partitions {
126 compatible = "fixed-partitions";
127 #address-cells = <1>;
128 #size-cells = <1>;
129
130 partition@0 {
131 label = "zyxel_rfsd";
132 reg = <0x0 0x200000>;
133 };
134
135 partition@200000 {
136 label = "romd";
137 reg = <0x200000 0x200000>;
138 };
139
140 partition@400000 {
141 label = "header";
142 reg = <0x400000 0x100000>;
143 };
144
145 firmware@500000 {
146 label = "firmware";
147 reg = <0x500000 0x7b00000>;
148 };
149
150 partition@500000 {
151 label = "kernel";
152 reg = <0x500000 0x400000>;
153 };
154
155 partition@900000 {
156 label = "ubi";
157 reg = <0x900000 0x7700000>;
158 };
159 };
160 };
161
162 &pcie1 {
163 status = "okay";
164
165 wifi@0,0 {
166 compatible = "qcom,ath10k";
167 reg = <0 0 0 0 0>;
168 qcom,ath10k-calibration-variant = "ZyXEL-NBG6716";
169 };
170 };