ath79: apply Engenius ECB1750 style to OpenMesh MR900 RGMII cfg
[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 flash@0 {
86 compatible = "jedec,spi-nor";
87 reg = <0>;
88 spi-max-frequency = <25000000>;
89
90 partitions {
91 compatible = "fixed-partitions";
92 #address-cells = <1>;
93 #size-cells = <1>;
94
95 uboot: partition@0 {
96 label = "u-boot";
97 reg = <0x000000 0x040000>;
98 read-only;
99 };
100
101 uboot_env: partition@40000 {
102 label = "u-boot-env";
103 reg = <0x040000 0x010000>;
104 };
105
106 art: partition@50000 {
107 label = "art";
108 reg = <0x050000 0x010000>;
109 read-only;
110 };
111
112 partition@60000 {
113 label = "nbu";
114 reg = <0x060000 0xfa0000>;
115 };
116 };
117 };
118 };
119
120 &nand {
121 status = "okay";
122
123 partitions {
124 compatible = "fixed-partitions";
125 #address-cells = <1>;
126 #size-cells = <1>;
127
128 partition@0 {
129 label = "zyxel_rfsd";
130 reg = <0x0 0x200000>;
131 };
132
133 partition@200000 {
134 label = "romd";
135 reg = <0x200000 0x200000>;
136 };
137
138 partition@400000 {
139 label = "header";
140 reg = <0x400000 0x100000>;
141 };
142
143 firmware@500000 {
144 label = "firmware";
145 reg = <0x500000 0x7b00000>;
146 };
147
148 partition@500000 {
149 label = "kernel";
150 reg = <0x500000 0x400000>;
151 };
152
153 partition@900000 {
154 label = "ubi";
155 reg = <0x900000 0x7700000>;
156 };
157 };
158 };
159
160 &pcie1 {
161 status = "okay";
162
163 wifi@0,0 {
164 compatible = "qcom,ath10k";
165 reg = <0 0 0 0 0>;
166 qcom,ath10k-calibration-variant = "ZyXEL-NBG6716";
167 };
168 };