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