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