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