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