3f1ad22a764a4163b9234089a591c7c5e4bf6f4f
[openwrt/staging/svanheule.git] / target / linux / ath79 / dts / qca9531_glinet_gl-x750.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-x750", "qca,qca9531";
10 model = "GL.iNet GL-X750";
11
12 keys {
13 compatible = "gpio-keys";
14
15 pinctrl-names = "default";
16 pinctrl-0 = <&jtag_disable_pins>;
17
18 reset {
19 label = "reset";
20 linux,code = <KEY_RESTART>;
21 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
22 };
23 };
24
25 leds {
26 compatible = "gpio-leds";
27
28 power {
29 label = "green:power";
30 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
31 default-state = "on";
32 };
33
34 wlan2g {
35 label = "green:wlan2g";
36 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
37 linux,default-trigger = "phy1tpt";
38 };
39
40 wlan5g {
41 label = "green:wlan5g";
42 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
43 linux,default-trigger = "phy0tpt";
44 };
45
46 wan {
47 label = "green:wan";
48 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
49 };
50
51 4g {
52 label = "green:4g";
53 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
54 };
55 };
56 };
57
58 &pcie0 {
59 status = "okay";
60 };
61
62 &usb0 {
63 status = "okay";
64 };
65
66 &usb_phy {
67 status = "okay";
68 };
69
70 &spi {
71 status = "okay";
72
73 flash@0 {
74 compatible = "jedec,spi-nor";
75 reg = <0>;
76 spi-max-frequency = <25000000>;
77
78 partitions {
79 compatible = "fixed-partitions";
80 #address-cells = <1>;
81 #size-cells = <1>;
82
83 partition@0 {
84 label = "u-boot";
85 reg = <0x000000 0x040000>;
86 read-only;
87 };
88
89 partition@40000 {
90 label = "u-boot-env";
91 reg = <0x040000 0x010000>;
92 };
93
94 art: partition@50000 {
95 label = "art";
96 reg = <0x050000 0x010000>;
97 read-only;
98
99 nvmem-layout {
100 compatible = "fixed-layout";
101 #address-cells = <1>;
102 #size-cells = <1>;
103
104 macaddr_art_0: macaddr@0 {
105 compatible = "mac-base";
106 reg = <0x0 0x6>;
107 #nvmem-cell-cells = <1>;
108 };
109 };
110 };
111
112 partition@60000 {
113 compatible = "denx,uimage";
114 label = "firmware";
115 reg = <0x060000 0xfa0000>;
116 };
117 };
118 };
119 };
120
121 &eth0 {
122 status = "okay";
123
124 phy-handle = <&swphy4>;
125
126 nvmem-cells = <&macaddr_art_0 0>;
127 nvmem-cell-names = "mac-address";
128 };
129
130 &eth1 {
131 nvmem-cells = <&macaddr_art_0 1>;
132 nvmem-cell-names = "mac-address";
133 };
134
135 &wmac {
136 status = "okay";
137
138 mtd-cal-data = <&art 0x1000>;
139 };