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