ath79: move dts-v1 statement to ath79.dtsi
[openwrt/staging/hauke.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 num-cs = <2>;
65
66 flash@0 {
67 compatible = "jedec,spi-nor";
68 reg = <0>;
69 spi-max-frequency = <25000000>;
70
71 partitions {
72 compatible = "fixed-partitions";
73 #address-cells = <1>;
74 #size-cells = <1>;
75
76 partition@0 {
77 label = "u-boot";
78 reg = <0x0 0x40000>;
79 read-only;
80 };
81
82 partition@40000 {
83 label = "u-boot-env";
84 reg = <0x40000 0x10000>;
85 };
86
87 art: partition@50000 {
88 label = "art";
89 reg = <0x50000 0x10000>;
90 read-only;
91 };
92
93 partition@60000 {
94 label = "kernel";
95 reg = <0x60000 0x400000>;
96 };
97
98 partition@460000 {
99 label = "reserved";
100 reg = <0x460000 0xba0000>;
101 };
102 };
103 };
104
105 flash@1 {
106 compatible = "spi-nand";
107 reg = <1>;
108 spi-max-frequency = <25000000>;
109
110 partitions {
111 compatible = "fixed-partitions";
112 #address-cells = <1>;
113 #size-cells = <1>;
114
115 partition@0 {
116 label = "ubi";
117 reg = <0x0 0x8000000>;
118 };
119 };
120 };
121 };
122
123 &eth0 {
124 status = "okay";
125
126 phy-handle = <&swphy4>;
127
128 mtd-mac-address = <&art 0x0>;
129 };
130
131 &eth1 {
132 compatible = "syscon", "simple-mfd";
133 };
134
135 &wmac {
136 status = "okay";
137
138 mtd-cal-data = <&art 0x1000>;
139 };