ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9558_watchguard_ap300.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca955x_senao_loader.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 compatible = "watchguard,ap300", "qca,qca9558";
11 model = "WatchGuard AP300";
12
13 aliases {
14 label-mac-device = &eth0;
15 led-boot = &led_power;
16 led-failsafe = &led_power;
17 led-running = &led_power;
18 led-upgrade = &led_power;
19 };
20
21 keys {
22 compatible = "gpio-keys";
23
24 reset {
25 linux,code = <KEY_RESTART>;
26 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
27 debounce-interval = <60>;
28 };
29 };
30
31 leds {
32 compatible = "gpio-leds";
33
34 led_power: power {
35 function = LED_FUNCTION_POWER;
36 color = <LED_COLOR_ID_GREEN>;
37 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
38 default-state = "on";
39 };
40
41 lan_data {
42 label = "orange:lan_data";
43 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
44 };
45
46 lan_link {
47 label = "green:lan_link";
48 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
49 };
50
51 wifi_amber {
52 label = "amber:wifi";
53 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
54 linux,default-trigger = "phy1tpt";
55 };
56
57 wifi_green {
58 label = "green:wifi";
59 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
60 linux,default-trigger = "phy0tpt";
61 };
62 };
63
64 virtual_flash {
65 devices = <&fwconcat0 &fwconcat1 &fwconcat2>;
66 };
67
68 watchdog {
69 compatible = "linux,wdt-gpio";
70 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
71 hw_algo = "toggle";
72 hw_margin_ms = <20000>;
73 always-running;
74 };
75 };
76
77 &eth0 {
78 status = "okay";
79
80 nvmem-cells = <&macaddr_art_0>;
81 nvmem-cell-names = "mac-address";
82
83 phy-handle = <&phy5>;
84 phy-mode = "rgmii-id";
85
86 pll-data = <0x82000000 0x80000101 0x80001313>;
87 };
88
89 &mdio0 {
90 status = "okay";
91
92 phy5: ethernet-phy@5 {
93 reg = <5>;
94 eee-broken-100tx;
95 eee-broken-1000t;
96 };
97 };
98
99 &partitions {
100 fwconcat2: partition@ff0000 {
101 label = "fwconcat2";
102 reg = <0xff0000 0x1000000>;
103 };
104
105 art: partition@1ff0000 {
106 label = "art";
107 reg = <0x1ff0000 0x010000>;
108 read-only;
109
110 nvmem-layout {
111 compatible = "fixed-layout";
112 #address-cells = <1>;
113 #size-cells = <1>;
114
115 macaddr_art_0: macaddr@0 {
116 compatible = "mac-base";
117 reg = <0x0 0x6>;
118 #nvmem-cell-cells = <1>;
119 };
120
121 cal_art_5000: calibration@5000 {
122 reg = <0x5000 0x844>;
123 };
124 };
125 };
126 };
127
128 &wdt {
129 status = "disabled";
130 };
131
132 &wmac {
133 status = "okay";
134
135 mtd-cal-data = <&art 0x1000>;
136
137 nvmem-cells = <&macaddr_art_0 1>;
138 nvmem-cell-names = "mac-address";
139 };
140
141 &pcie0 {
142 status = "okay";
143
144 wifi@0,0 {
145 compatible = "qcom,ath10k";
146 reg = <0x0000 0 0 0 0>;
147 nvmem-cells = <&cal_art_5000>, <&macaddr_art_0 2>;
148 nvmem-cell-names = "calibration", "mac-address";
149 };
150 };