uclient: update to Git HEAD (2024-04-18)
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9563_qxwlan_e1700ac.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca956x.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 aliases {
10 label-mac-device = &eth0;
11 led-boot = &led_system;
12 led-failsafe = &led_system;
13 led-running = &led_system;
14 led-upgrade = &led_system;
15 };
16
17 keys {
18 compatible = "gpio-keys";
19
20 reset {
21 label = "reset";
22 linux,code = <KEY_RESTART>;
23 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
24 debounce-interval = <60>;
25 };
26 };
27
28 leds {
29 compatible = "gpio-leds";
30
31 led_system: system {
32 label = "green:system";
33 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
34 default-state = "on";
35 };
36
37 usb {
38 label = "green:usb";
39 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
40 trigger-sources = <&hub_port0>;
41 linux,default-trigger = "usbport";
42 };
43
44 wlan2g {
45 label = "green:wlan2g";
46 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
47 linux,default-trigger = "phy1tpt";
48 };
49 };
50 };
51
52 &pcie {
53 status = "okay";
54 };
55
56 &spi {
57 status = "okay";
58
59 flash@0 {
60 compatible = "jedec,spi-nor";
61 reg = <0>;
62 spi-max-frequency = <25000000>;
63
64 partitions: partitions {
65 compatible = "fixed-partitions";
66 #address-cells = <1>;
67 #size-cells = <1>;
68
69 partition@0 {
70 label = "u-boot";
71 reg = <0x000000 0x040000>;
72 read-only;
73 };
74
75 partition@40000 {
76 label = "u-boot-env";
77 reg = <0x040000 0x010000>;
78 read-only;
79 };
80
81 pridata: partition@50000 {
82 label = "pri-data";
83 reg = <0x050000 0x010000>;
84 read-only;
85 };
86
87 art: partition@60000 {
88 label = "art";
89 reg = <0x060000 0x010000>;
90 read-only;
91 };
92 };
93 };
94 };
95
96 &mdio0 {
97 status = "okay";
98
99 phy-mask = <0>;
100
101 phy0: ethernet-phy@0 {
102 reg = <0>;
103 phy-mode = "sgmii";
104 qca,mib-poll-interval = <500>;
105
106 qca,ar8327-initvals = <
107 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
108 0x7c 0x0000007e /* PORT0_STATUS */
109 >;
110 };
111 };
112
113 &eth0 {
114 status = "okay";
115
116 pll-data = <0x03000101 0x00000101 0x00001919>;
117
118 phy-mode = "sgmii";
119 phy-handle = <&phy0>;
120
121 mtd-mac-address = <&pridata 0x400>;
122 };
123
124 &usb_phy0 {
125 status = "okay";
126 };
127
128 &usb0 {
129 #address-cells = <1>;
130 #size-cells = <0>;
131 status = "okay";
132
133 hub_port0: port@1 {
134 reg = <1>;
135 #trigger-source-cells = <0>;
136 };
137 };
138
139 &usb_phy1 {
140 status = "okay";
141 };
142
143 &usb1 {
144 status = "okay";
145 };
146
147 &wmac {
148 status = "okay";
149
150 mtd-cal-data = <&art 0x1000>;
151 };