ath79: add support for Compex WPJ531 (16M)
[openwrt/staging/dedeckeh.git] / target / linux / ath79 / dts / qca9563_nec_wg800hp.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6
7 #include "qca956x.dtsi"
8
9 / {
10 model = "NEC Aterm WG800HP";
11 compatible = "nec,wg800hp", "qca,qca9563";
12
13 aliases {
14 led-boot = &led_power_green;
15 led-failsafe = &led_power_red;
16 led-running = &led_power_green;
17 led-upgrade = &led_power_green;
18 };
19
20 leds {
21 compatible = "gpio-leds";
22 pinctrl-names = "default";
23 pinctrl-0 = <&jtag_disable_pins>;
24
25 wlan2g_red {
26 label = "wg800hp:red:wlan2g";
27 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
28 };
29
30 active_red {
31 label = "wg800hp:red:active";
32 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
33 };
34
35 active_green {
36 label = "wg800hp:green:active";
37 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
38 };
39
40 led_power_red: power_red {
41 label = "wg800hp:red:power";
42 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
43 };
44
45 led_power_green: power_green {
46 label = "wg800hp:green:power";
47 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
48 default-state = "on";
49 };
50
51 wlan5g_red {
52 label = "wg800hp:red:wlan5g";
53 gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;
54 };
55
56 wlan5g_green {
57 label = "wg800hp:green:wlan5g";
58 gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
59 linux,default-trigger = "phy0tpt";
60 };
61
62 wlan2g_green {
63 label = "wg800hp:green:wlan2g";
64 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
65 linux,default-trigger = "phy1tpt";
66 };
67 };
68
69 keys {
70 compatible = "gpio-keys";
71
72 br {
73 label = "br";
74 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
75 linux,code = <BTN_0>;
76 linux,input-type = <EV_SW>;
77 debounce-interval = <60>;
78 };
79
80 reset {
81 label = "reset";
82 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
83 linux,code = <KEY_RESTART>;
84 debounce-interval = <60>;
85 };
86
87 wps {
88 label = "wps";
89 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
90 linux,code = <KEY_WPS_BUTTON>;
91 debounce-interval = <60>;
92 };
93 };
94 };
95
96 &spi {
97 status = "okay";
98 num-cs = <1>;
99
100 flash@0 {
101 compatible = "jedec,spi-nor";
102 reg = <0>;
103 spi-max-frequency = <25000000>;
104
105 partitions {
106 compatible = "fixed-partitions";
107 #address-cells = <1>;
108 #size-cells = <1>;
109
110 partition@0 {
111 label = "u-boot";
112 reg = <0x000000 0x040000>;
113 read-only;
114 };
115
116 partition@40000 {
117 label = "u-boot-env";
118 reg = <0x040000 0x010000>;
119 read-only;
120 };
121
122 partition@50000 {
123 compatible = "denx,uimage";
124 label = "firmware";
125 reg = <0x050000 0x6f0000>;
126 };
127
128 partition@740000 {
129 label = "user_data";
130 reg = <0x740000 0x0a0000>;
131 read-only;
132 };
133
134 partition@7e0000 {
135 label = "board_data";
136 reg = <0x7e0000 0x010000>;
137 read-only;
138 };
139
140 art: partition@7f0000 {
141 label = "art";
142 reg = <0x7f0000 0x010000>;
143 read-only;
144 };
145 };
146 };
147 };
148
149 &mdio0 {
150 status = "okay";
151
152 phy0: ethernet-phy@0 {
153 reg = <0>;
154
155 qca,ar8327-initvals = <
156 0x04 0x00000080 /* PORT0 PAD MODE CTRL */
157 0x50 0xcc35cc35 /* LED_CTRL0 */
158 0x54 0xca35ca35 /* LED_CTRL1 */
159 0x58 0xc935c935 /* LED_CTRL2 */
160 0x5c 0x03ffff00 /* LED_CTRL3 */
161 0x7c 0x0000007e /* PORT0_STATUS */
162 >;
163 };
164 };
165
166 &eth0 {
167 status = "okay";
168
169 phy-mode = "sgmii";
170 phy-handle = <&phy0>;
171 };
172
173 &pcie {
174 status = "okay";
175 };
176
177 &uart {
178 status = "okay";
179 };
180
181 &wmac {
182 status = "okay";
183 qca,no-eeprom;
184 };