ath79: prepare for 1-port TP-Link EAP2x5 devices
[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 num-cs = <1>;
60
61 flash@0 {
62 compatible = "jedec,spi-nor";
63 reg = <0>;
64 spi-max-frequency = <25000000>;
65
66 partitions: partitions {
67 compatible = "fixed-partitions";
68 #address-cells = <1>;
69 #size-cells = <1>;
70
71 partition@0 {
72 label = "u-boot";
73 reg = <0x000000 0x040000>;
74 read-only;
75 };
76
77 partition@40000 {
78 label = "u-boot-env";
79 reg = <0x040000 0x010000>;
80 read-only;
81 };
82
83 pridata: partition@50000 {
84 label = "pri-data";
85 reg = <0x050000 0x010000>;
86 read-only;
87 };
88
89 art: partition@60000 {
90 label = "art";
91 reg = <0x060000 0x010000>;
92 read-only;
93 };
94 };
95 };
96 };
97
98 &mdio0 {
99 status = "okay";
100
101 phy-mask = <0>;
102
103 phy0: ethernet-phy@0 {
104 reg = <0>;
105 phy-mode = "sgmii";
106 qca,mib-poll-interval = <500>;
107
108 qca,ar8327-initvals = <
109 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
110 0x7c 0x0000007e /* PORT0_STATUS */
111 >;
112 };
113 };
114
115 &eth0 {
116 status = "okay";
117
118 pll-data = <0x03000101 0x00000101 0x00001919>;
119
120 phy-mode = "sgmii";
121 phy-handle = <&phy0>;
122
123 mtd-mac-address = <&pridata 0x400>;
124 };
125
126 &usb_phy0 {
127 status = "okay";
128 };
129
130 &usb0 {
131 #address-cells = <1>;
132 #size-cells = <0>;
133 status = "okay";
134
135 hub_port0: port@1 {
136 reg = <1>;
137 #trigger-source-cells = <0>;
138 };
139 };
140
141 &usb_phy1 {
142 status = "okay";
143 };
144
145 &usb1 {
146 status = "okay";
147 };
148
149 &uart {
150 status = "okay";
151 };
152
153 &wmac {
154 status = "okay";
155
156 mtd-cal-data = <&art 0x1000>;
157 };