ath79: etactica-eg200: fix restore button
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9558_comfast_cf-wr650ac.dtsi
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 "qca9557.dtsi"
8
9 / {
10 chosen {
11 bootargs = "console=ttyS0,115200n8";
12 };
13
14 keys {
15 compatible = "gpio-keys";
16
17 button0 {
18 label = "reset";
19 linux,code = <KEY_RESTART>;
20 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
21 debounce-interval = <60>;
22 };
23 };
24
25 watchdog {
26 compatible = "linux,wdt-gpio";
27 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
28 hw_algo = "toggle";
29 hw_margin_ms = <500>;
30 always-running;
31 };
32 };
33
34 &pcie0 {
35 status = "okay";
36 };
37
38 &uart {
39 status = "okay";
40 };
41
42 &usb_phy0 {
43 status = "okay";
44 };
45
46 &usb0 {
47 status = "okay";
48 };
49
50 &mdio0 {
51 status = "okay";
52
53 switch0@1f {
54 compatible = "qca,ar8327";
55 reg = <0x1f>;
56 qca,ar8327-initvals = <
57 0x04 0x87600000 /* PORT0 PAD MODE CTRL */
58 0x0c 0x00080080 /* PORT6 PAD MODE CTRL */
59 0x10 0x81000080 /* POWER_ON_STRIP */
60 0x7c 0x0000007e /* PORT0_STATUS */
61 0x94 0x0000007e /* PORT6 STATUS */
62 >;
63 };
64 };
65
66 &eth0 {
67 status = "okay";
68
69 pll-data = <0xa6000000 0x00000101 0x00001616>;
70 mtd-mac-address = <&art 0x0>;
71 fixed-link {
72 speed = <1000>;
73 full-duplex;
74 };
75 };
76
77 &eth1 {
78 status = "okay";
79
80 pll-data = <0x03000101 0x00000101 0x00001616>;
81 mtd-mac-address = <&art 0x6>;
82 fixed-link {
83 speed = <1000>;
84 full-duplex;
85 };
86 };
87
88 &wmac {
89 status = "okay";
90
91 mtd-cal-data = <&art 0x1000>;
92 mtd-mac-address = <&art 0x18>;
93 };
94
95 // This node is required for the Ethernet ports to work correctly.
96 &gpio {
97 status = "okay";
98 };