ath79: add support for TP-Link Archer A7
[oweals/openwrt.git] / target / linux / ath79 / dts / qca9531_glinet_gl-x750.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6
7 #include "qca953x.dtsi"
8
9 / {
10         compatible = "glinet,gl-x750", "qca,qca9531";
11         model = "GL.iNet GL-X750";
12
13         keys {
14                 compatible = "gpio-keys-polled";
15
16                 poll-interval = <20>;
17                 pinctrl-names = "default";
18                 pinctrl-0 = <&jtag_disable_pins>;
19
20                 button0 {
21                         label = "reset";
22                         linux,code = <KEY_RESTART>;
23                         gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
24                 };
25         };
26
27         leds {
28                 compatible = "gpio-leds";
29
30                 power {
31                         label = "gl-x750:green:power";
32                         gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
33                         default-state = "on";
34                 };
35
36                 wlan2g {
37                         label = "gl-x750:green:wlan2g";
38                         gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
39                         linux,default-trigger = "phy1tpt";
40                 };
41
42                 wlan5g {
43                         label = "gl-x750:green:wlan5g";
44                         gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
45                         linux,default-trigger = "phy0tpt";
46                 };
47
48                 wan {
49                         label = "gl-x750:green:wan";
50                         gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
51                         default-state = "off";
52                 };
53
54                 4g {
55                         label = "gl-x750:green:4g";
56                         gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
57                         default-state = "off";
58                 };
59         };
60 };
61
62 &pcie0 {
63         status = "okay";
64 };
65
66 &uart {
67         status = "okay";
68 };
69
70 &usb0 {
71         #address-cells = <1>;
72         #size-cells = <0>;
73         status = "okay";
74
75         hub_port: port@1 {
76                 reg = <1>;
77                 #trigger-source-cells = <0>;
78         };
79 };
80
81 &usb_phy {
82         status = "okay";
83 };
84
85 &spi {
86         status = "okay";
87         num-cs = <0>;
88
89         flash@0 {
90                 compatible = "jedec,spi-nor";
91                 reg = <0>;
92                 spi-max-frequency = <25000000>;
93
94                 partitions {
95                         compatible = "fixed-partitions";
96                         #address-cells = <1>;
97                         #size-cells = <1>;
98
99                         partition@0 {
100                                 label = "u-boot";
101                                 reg = <0x000000 0x040000>;
102                                 read-only;
103                         };
104
105                         partition@40000 {
106                                 label = "u-boot-env";
107                                 reg = <0x040000 0x010000>;
108                         };
109
110                         art: partition@50000 {
111                                 label = "art";
112                                 reg = <0x050000 0x010000>;
113                         };
114
115                         partition@60000 {
116                                 compatible = "denx,uimage";
117                                 label = "firmware";
118                                 reg = <0x060000 0xfa0000>;
119                         };
120                 };
121         };
122 };
123
124 &eth0 {
125         status = "okay";
126         mtd-mac-address = <&art 0x0>;
127         phy-handle = <&swphy4>;
128 };
129
130 &eth1 {
131         mtd-mac-address = <&art 0x6>;
132 };
133
134 &wmac {
135         status = "okay";
136         mtd-cal-data = <&art 0x1000>;
137         mtd-mac-address = <&art 0x1002>;
138 };