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