kernel: move mv88e6xxx fix to generic backports
[openwrt/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 "qca955x.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 keys {
10 compatible = "gpio-keys";
11
12 reset {
13 label = "reset";
14 linux,code = <KEY_RESTART>;
15 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
16 debounce-interval = <60>;
17 };
18 };
19
20 leds {
21 compatible = "gpio-leds";
22
23 wps {
24 label = "blue:wps";
25 gpios = <&gpio 20 GPIO_ACTIVE_LOW>;
26 };
27
28 network {
29 label = "blue:network";
30 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
31 };
32
33 wlan2g {
34 label = "blue:wlan2";
35 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
36 linux,default-trigger = "phy1tpt";
37 };
38
39 wlan5g {
40 label = "blue:wlan5";
41 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
42 linux,default-trigger = "phy0tpt";
43 };
44 };
45
46 watchdog {
47 compatible = "linux,wdt-gpio";
48 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
49 hw_algo = "toggle";
50 hw_margin_ms = <500>;
51 always-running;
52 };
53 };
54
55 &pcie0 {
56 status = "okay";
57 };
58
59 &usb_phy0 {
60 status = "okay";
61 };
62
63 &usb0 {
64 status = "okay";
65 };
66
67 &mdio0 {
68 status = "okay";
69
70 switch0@1f {
71 compatible = "qca,ar8327";
72 reg = <0x1f>;
73 qca,ar8327-initvals = <
74 0x04 0x87600000 /* PORT0 PAD MODE CTRL */
75 0x0c 0x00080080 /* PORT6 PAD MODE CTRL */
76 0x10 0x81000080 /* POWER_ON_STRAP */
77 0x7c 0x0000007e /* PORT0_STATUS */
78 0x94 0x0000007e /* PORT6 STATUS */
79 >;
80 };
81 };
82
83 &eth0 {
84 status = "okay";
85
86 pll-data = <0xa6000000 0x00000101 0x00001616>;
87 mtd-mac-address = <&art 0x0>;
88 fixed-link {
89 speed = <1000>;
90 full-duplex;
91 };
92 };
93
94 &eth1 {
95 status = "okay";
96
97 pll-data = <0x03000101 0x00000101 0x00001616>;
98 mtd-mac-address = <&art 0x6>;
99 fixed-link {
100 speed = <1000>;
101 full-duplex;
102 };
103 };
104
105 &wmac {
106 status = "okay";
107
108 mtd-cal-data = <&art 0x1000>;
109 mtd-mac-address = <&art 0x18>;
110 };
111
112 // This node is required for the Ethernet ports to work correctly.
113 &gpio {
114 status = "okay";
115 };