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