Rebased from upstream / out of band repository.
[librecmc/librecmc.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                 };
52
53                 4g {
54                         label = "gl-x750:green:4g";
55                         gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
56                 };
57         };
58 };
59
60 &pcie0 {
61         status = "okay";
62 };
63
64 &uart {
65         status = "okay";
66 };
67
68 &usb0 {
69         #address-cells = <1>;
70         #size-cells = <0>;
71         status = "okay";
72
73         hub_port: port@1 {
74                 reg = <1>;
75                 #trigger-source-cells = <0>;
76         };
77 };
78
79 &usb_phy {
80         status = "okay";
81 };
82
83 &spi {
84         status = "okay";
85         num-cs = <0>;
86
87         flash@0 {
88                 compatible = "jedec,spi-nor";
89                 reg = <0>;
90                 spi-max-frequency = <25000000>;
91
92                 partitions {
93                         compatible = "fixed-partitions";
94                         #address-cells = <1>;
95                         #size-cells = <1>;
96
97                         partition@0 {
98                                 label = "u-boot";
99                                 reg = <0x000000 0x040000>;
100                                 read-only;
101                         };
102
103                         partition@40000 {
104                                 label = "u-boot-env";
105                                 reg = <0x040000 0x010000>;
106                         };
107
108                         art: partition@50000 {
109                                 label = "art";
110                                 reg = <0x050000 0x010000>;
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 0x6>;
130 };
131
132 &wmac {
133         status = "okay";
134         mtd-cal-data = <&art 0x1000>;
135         mtd-mac-address = <&art 0x1002>;
136 };