de7d5f577a1713f9be67add4d6136d7599191f50
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9531_glinet_gl-e750.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca953x.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "glinet,gl-e750", "qca,qca9531";
10 model = "GL.iNet GL-E750";
11
12 aliases {
13 label-mac-device = &eth0;
14 };
15
16 keys {
17 compatible = "gpio-keys";
18
19 pinctrl-names = "default";
20 pinctrl-0 = <&jtag_disable_pins>;
21
22 reset {
23 label = "reset";
24 linux,code = <KEY_RESTART>;
25 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
26 };
27
28 switch {
29 label = "switch";
30 linux,code = <BTN_0>;
31 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
32 };
33 };
34
35 gpio-export {
36 compatible = "gpio-export";
37
38 gpio_lte_power {
39 gpio-export,name = "lte_power";
40 gpio-export,output = <1>;
41 gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
42 };
43 };
44 };
45
46 &pcie0 {
47 status = "okay";
48 };
49
50 &uart {
51 status = "okay";
52 };
53
54 &usb0 {
55 status = "okay";
56 };
57
58 &usb_phy {
59 status = "okay";
60 };
61
62 &spi {
63 status = "okay";
64
65 flash@0 {
66 compatible = "jedec,spi-nor";
67 reg = <0>;
68 spi-max-frequency = <25000000>;
69
70 partitions {
71 compatible = "fixed-partitions";
72 #address-cells = <1>;
73 #size-cells = <1>;
74
75 partition@0 {
76 label = "u-boot";
77 reg = <0x0 0x40000>;
78 read-only;
79 };
80
81 partition@40000 {
82 label = "u-boot-env";
83 reg = <0x40000 0x10000>;
84 };
85
86 art: partition@50000 {
87 label = "art";
88 reg = <0x50000 0x10000>;
89 read-only;
90 };
91
92 partition@60000 {
93 label = "kernel";
94 reg = <0x60000 0x400000>;
95 };
96
97 partition@460000 {
98 label = "reserved";
99 reg = <0x460000 0xba0000>;
100 };
101 };
102 };
103
104 flash@1 {
105 compatible = "spi-nand";
106 reg = <1>;
107 spi-max-frequency = <25000000>;
108
109 partitions {
110 compatible = "fixed-partitions";
111 #address-cells = <1>;
112 #size-cells = <1>;
113
114 partition@0 {
115 label = "ubi";
116 reg = <0x0 0x8000000>;
117 };
118 };
119 };
120 };
121
122 &eth0 {
123 status = "okay";
124
125 phy-handle = <&swphy4>;
126
127 mtd-mac-address = <&art 0x0>;
128 };
129
130 &eth1 {
131 compatible = "syscon", "simple-mfd";
132 };
133
134 &wmac {
135 status = "okay";
136
137 mtd-cal-data = <&art 0x1000>;
138 };