ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9563_zte_mf28x.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 // Copyright (c) 2021 Cezary Jackiewicz
3 // Copyright (c) 2021, 2022 Lech Perczak
4 #include "qca956x.dtsi"
5
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
8 #include <dt-bindings/leds/common.h>
9
10 / {
11 aliases {
12 led-boot = &led_debug;
13 led-failsafe = &led_debug;
14 led-running = &led_debug;
15 led-upgrade = &led_debug;
16 label-mac-device = &eth0;
17 };
18
19 leds {
20 compatible = "gpio-leds";
21
22 /* Hidden SMD LED below signal strength LEDs.
23 * Visible through slits underside of the case,
24 * and slightly through the case below signal state LEDs
25 */
26 led_debug: led-0 {
27 function = LED_FUNCTION_DEBUG;
28 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
29 default-state = "on";
30 };
31 };
32
33 keys {
34 compatible = "gpio-keys";
35
36 reset {
37 label = "reset";
38 linux,code = <KEY_RESTART>;
39 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
40 debounce-interval = <60>;
41 };
42
43 wps {
44 label = "wps";
45 linux,code = <KEY_WPS_BUTTON>;
46 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
47 debounce-interval = <60>;
48 };
49 };
50
51 /* This GPIO is used to reset whole board _including_ the modem */
52 gpio-restart {
53 compatible = "gpio-restart";
54 gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
55 active-delay = <3000>;
56 inactive-delay = <1000>;
57 };
58 };
59
60 &spi {
61 status = "okay";
62
63 boot_flash: flash@0 {
64 compatible = "jedec,spi-nor";
65 reg = <0>;
66 spi-max-frequency = <25000000>;
67
68 partitions {
69 compatible = "fixed-partitions";
70 #address-cells = <1>;
71 #size-cells = <1>;
72 };
73 };
74
75 system_flash: flash@1 {
76 compatible = "spi-nand";
77 reg = <1>;
78 spi-max-frequency = <25000000>;
79
80 partitions {
81 compatible = "fixed-partitions";
82 #address-cells = <1>;
83 #size-cells = <1>;
84 };
85 };
86 };
87
88 &mdio0 {
89 status = "okay";
90
91 phy0: ethernet-phy@0 {
92 reg = <0>;
93 phy-mode = "sgmii";
94
95 qca,ar8327-initvals = <
96 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
97 0x7c 0x0000007e /* PORT0_STATUS */
98 >;
99 };
100 };
101
102 &eth0 {
103 status = "okay";
104
105 phy-mode = "sgmii";
106 phy-handle = <&phy0>;
107 };
108
109 &pcie {
110 status = "okay";
111
112 wifi_ath10k: wifi@0,0 {
113 compatible = "qcom,ath10k";
114 reg = <0x0 0 0 0 0>;
115 };
116 };
117
118 &wmac {
119 status = "okay";
120 };
121
122 &usb_phy0 {
123 status = "okay";
124 };
125
126 &usb0 {
127 status = "okay";
128 };
129
130 &usb_phy1 {
131 status = "okay";
132 };
133
134 &usb1 {
135 status = "okay";
136 };