ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9557_zyxel_nbg6616.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include <dt-bindings/leds/common.h>
4
5 #include "qca955x_zyxel_nbg6x16.dtsi"
6
7 / {
8 compatible = "zyxel,nbg6616", "qca,qca9557";
9 model = "ZyXEL NBG6616";
10
11 aliases {
12 led-boot = &led_power;
13 led-failsafe = &led_power;
14 led-running = &led_power;
15 led-upgrade = &led_power;
16 };
17
18 leds {
19 compatible = "gpio-leds";
20
21 led_power: power {
22 function = LED_FUNCTION_POWER;
23 color = <LED_COLOR_ID_GREEN>;
24 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
25 };
26
27 usb1 {
28 label = "green:usb1";
29 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
30 linux,default-trigger = "usbport";
31 trigger-sources = <&hub_port0>;
32 };
33
34 usb2 {
35 label = "green:usb2";
36 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
37 linux,default-trigger = "usbport";
38 trigger-sources = <&hub_port1>;
39 };
40
41 wifi2g {
42 label = "green:wifi2g";
43 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
44 linux,default-trigger = "phy1tpt";
45 };
46
47 wifi5g {
48 label = "green:wifi5g";
49 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
50 linux,default-trigger = "phy0tpt";
51 };
52
53 wps {
54 function = LED_FUNCTION_WPS;
55 color = <LED_COLOR_ID_GREEN>;
56 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
57 };
58 };
59 };
60
61 &gpio_usb_power {
62 line-name = "nbg6616:power:usb";
63 };
64
65 &spi {
66 status = "okay";
67
68 flash@0 {
69 compatible = "jedec,spi-nor";
70 reg = <0>;
71 spi-max-frequency = <25000000>;
72
73 partitions {
74 compatible = "fixed-partitions";
75 #address-cells = <1>;
76 #size-cells = <1>;
77
78 partition@0 {
79 label = "u-boot";
80 reg = <0x000000 0x030000>;
81 read-only;
82 };
83
84 partition@30000 {
85 label = "u-boot-env";
86 reg = <0x030000 0x010000>;
87 };
88
89 art: partition@40000 {
90 label = "art";
91 reg = <0x040000 0x010000>;
92 read-only;
93
94 nvmem-layout {
95 compatible = "fixed-layout";
96 #address-cells = <1>;
97 #size-cells = <1>;
98
99 cal_art_5000: calibration@5000 {
100 reg = <0x5000 0x844>;
101 };
102 };
103 };
104
105 partition@50000 {
106 label = "zyxel_rfsd";
107 reg = <0x050000 0x060000>;
108 };
109
110 partition@b0000 {
111 label = "romd";
112 reg = <0x0b0000 0x060000>;
113 };
114
115 partition@110000 {
116 label = "header";
117 reg = <0x110000 0x010000>;
118 };
119
120 partition@120000 {
121 label = "firmware";
122 reg = <0x120000 0xee0000>;
123 compatible = "denx,uimage";
124 };
125 };
126 };
127 };
128
129 &pcie1 {
130 status = "okay";
131
132 wifi@0,0 {
133 compatible = "qcom,ath10k";
134 reg = <0 0 0 0 0>;
135 nvmem-cells = <&cal_art_5000>;
136 nvmem-cell-names = "calibration";
137 };
138 };