ath79: add support for Ubiquiti LiteBeam AC Gen2
[oweals/openwrt.git] / target / linux / ath79 / dts / qca9531_glinet_gl-ar750.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-ar750", "qca,qca9531";
11         model = "GL.iNet GL-AR750";
12
13         aliases {
14                 label-mac-device = &eth0;
15         };
16
17         keys {
18                 compatible = "gpio-keys";
19
20                 pinctrl-names = "default";
21                 pinctrl-0 = <&jtag_disable_pins>;
22
23                 reset {
24                         label = "reset";
25                         linux,code = <KEY_RESTART>;
26                         gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
27                 };
28
29                 mode {
30                         label = "mode";
31                         linux,code = <BTN_0>;
32                         gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
33                 };
34         };
35
36         leds {
37                 compatible = "gpio-leds";
38
39                 power {
40                         label = "gl-ar750:white:power";
41                         gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
42                         default-state = "on";
43                 };
44
45                 wlan2g {
46                         label = "gl-ar750:white:wlan2g";
47                         gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
48                         linux,default-trigger = "phy1tpt";
49                 };
50
51                 wlan5g {
52                         label = "gl-ar750:white:wlan5g";
53                         gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
54                         linux,default-trigger = "phy0tpt";
55                 };
56         };
57
58         i2c {
59                 compatible = "i2c-gpio";
60
61                 sda-gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
62                 scl-gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
63         };
64 };
65
66 &pcie0 {
67         status = "okay";
68
69         wifi@0,0 {
70                 compatible = "qcom,ath10k";
71                 reg = <0 0 0 0 0>;
72                 device_type = "pci";
73         };
74 };
75
76 &uart {
77         status = "okay";
78 };
79
80 &usb0 {
81         status = "okay";
82 };
83
84 &usb_phy {
85         status = "okay";
86 };
87
88 &spi {
89         status = "okay";
90         num-cs = <0>;
91
92         flash@0 {
93                 compatible = "jedec,spi-nor";
94                 reg = <0>;
95                 spi-max-frequency = <25000000>;
96
97                 partitions {
98                         compatible = "fixed-partitions";
99                         #address-cells = <1>;
100                         #size-cells = <1>;
101
102                         partition@0 {
103                                 label = "u-boot";
104                                 reg = <0x000000 0x040000>;
105                                 read-only;
106                         };
107
108                         partition@40000 {
109                                 label = "u-boot-env";
110                                 reg = <0x040000 0x010000>;
111                                 read-only;
112                         };
113
114                         art: partition@50000 {
115                                 label = "art";
116                                 reg = <0x050000 0x010000>;
117                                 read-only;
118                         };
119
120                         partition@60000 {
121                                 compatible = "denx,uimage";
122                                 label = "firmware";
123                                 reg = <0x060000 0xfa0000>;
124                         };
125                 };
126         };
127 };
128
129 &eth0 {
130         status = "okay";
131         mtd-mac-address = <&art 0x0>;
132         phy-handle = <&swphy4>;
133 };
134
135 &eth1 {
136         mtd-mac-address = <&art 0x0>;
137         mtd-mac-address-increment = <1>;
138 };
139
140 &wmac {
141         status = "okay";
142         mtd-cal-data = <&art 0x1000>;
143 };