ath79: use gpios for switch management in WZR-HP-G300NH variants
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9557_zyxel_nbg6616.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca955x_zyxel_nbg6x16.dtsi"
4
5 / {
6 compatible = "zyxel,nbg6616", "qca,qca9557";
7 model = "ZyXEL NBG6616";
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 = "green:power";
21 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
22 };
23
24 usb1 {
25 label = "green:usb1";
26 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
27 linux,default-trigger = "usbport";
28 trigger-sources = <&hub_port0>;
29 };
30
31 usb2 {
32 label = "green:usb2";
33 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
34 linux,default-trigger = "usbport";
35 trigger-sources = <&hub_port1>;
36 };
37
38 wifi2g {
39 label = "green:wifi2g";
40 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
41 linux,default-trigger = "phy1tpt";
42 };
43
44 wifi5g {
45 label = "green:wifi5g";
46 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
47 linux,default-trigger = "phy0tpt";
48 };
49
50 wps {
51 label = "green:wps";
52 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
53 };
54 };
55 };
56
57 &gpio_usb_power {
58 line-name = "nbg6616:power:usb";
59 };
60
61 &spi {
62 status = "okay";
63
64 flash@0 {
65 compatible = "jedec,spi-nor";
66 reg = <0>;
67 spi-max-frequency = <25000000>;
68
69 partitions {
70 compatible = "fixed-partitions";
71 #address-cells = <1>;
72 #size-cells = <1>;
73
74 partition@0 {
75 label = "u-boot";
76 reg = <0x000000 0x030000>;
77 read-only;
78 };
79
80 partition@30000 {
81 label = "u-boot-env";
82 reg = <0x030000 0x010000>;
83 };
84
85 art: partition@40000 {
86 label = "art";
87 reg = <0x040000 0x010000>;
88 read-only;
89 };
90
91 partition@50000 {
92 label = "zyxel_rfsd";
93 reg = <0x050000 0x060000>;
94 };
95
96 partition@b0000 {
97 label = "romd";
98 reg = <0x0b0000 0x060000>;
99 };
100
101 partition@110000 {
102 label = "header";
103 reg = <0x110000 0x010000>;
104 };
105
106 partition@120000 {
107 label = "firmware";
108 reg = <0x120000 0xee0000>;
109 compatible = "denx,uimage";
110 };
111 };
112 };
113 };
114
115 &pcie1 {
116 status = "okay";
117
118 wifi@0,0 {
119 compatible = "qcom,ath10k";
120 reg = <0 0 0 0 0>;
121 qca,no-eeprom;
122 };
123 };