ath79: drop and consolidate redundant chosen/bootargs
[openwrt/staging/chunkeey.git] / target / linux / ath79 / dts / qca9563_glinet_gl-ar750s.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 "qca956x.dtsi"
8
9 / {
10 compatible = "glinet,gl-ar750s", "qca,qca9563";
11 model = "GL.iNet GL-AR750S";
12
13 aliases {
14 led-boot = &power;
15 led-failsafe = &power;
16 led-running = &power;
17 led-upgrade = &power;
18 };
19
20 keys {
21 compatible = "gpio-keys-polled";
22 poll-interval = <20>;
23 pinctrl-names = "default";
24 pinctrl-0 = <&jtag_disable_pins>;
25
26 reset {
27 label = "reset";
28 linux,code = <KEY_RESTART>;
29 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
30 };
31
32 mode {
33 label = "mode";
34 linux,code = <BTN_0>;
35 linux,input-type = <EV_SW>;
36 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
37 };
38 };
39
40 leds {
41 compatible = "gpio-leds";
42
43 power: power {
44 label = "gl-ar750s:green:power";
45 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
46 default-state = "keep";
47 };
48
49 wlan2g {
50 label = "gl-ar750s:green:wlan2g";
51 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
52 linux,default-trigger = "phy1tpt";
53 };
54
55 wlan5g {
56 label = "gl-ar750s:green:wlan5g";
57 gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
58 linux,default-trigger = "phy0tpt";
59 };
60 };
61
62 usb_vbus: regulator-usb-vbus {
63 compatible = "regulator-fixed";
64
65 regulator-name = "USB_VBUS";
66
67 regulator-min-microvolt = <5000000>;
68 regulator-max-microvolt = <5000000>;
69 regulator-always-on;
70
71 gpio = <&gpio 7 GPIO_ACTIVE_HIGH>;
72 enable-active-high;
73 };
74 };
75
76 &spi {
77 status = "okay";
78 num-cs = <0>;
79
80 flash@0 {
81 compatible = "jedec,spi-nor";
82 reg = <0>;
83 spi-max-frequency = <25000000>;
84
85 partitions {
86 compatible = "fixed-partitions";
87 #address-cells = <1>;
88 #size-cells = <1>;
89
90 partition@0 {
91 label = "u-boot";
92 reg = <0x000000 0x040000>;
93 read-only;
94 };
95
96 partition@40000 {
97 label = "u-boot-env";
98 reg = <0x040000 0x010000>;
99 };
100
101 art: partition@50000 {
102 label = "art";
103 reg = <0x050000 0x010000>;
104 read-only;
105 };
106
107 partition@60000 {
108 compatible = "denx,uimage";
109 label = "firmware";
110 reg = <0x060000 0xfa0000>;
111 };
112 };
113 };
114 };
115
116 &pcie {
117 status = "okay";
118 };
119
120 &uart {
121 status = "okay";
122 };
123
124 &usb0 {
125 status = "okay";
126 vbus-supply = <&usb_vbus>;
127 };
128
129 &usb_phy0 {
130 status = "okay";
131 };
132
133 &usb1 {
134 status = "okay";
135 };
136
137 &usb_phy1 {
138 status = "okay";
139 };
140
141 &mdio0 {
142 status = "okay";
143 phy-mask = <0>;
144
145 phy0: ethernet-phy@0 {
146 reg = <0>;
147 phy-mode = "sgmii";
148 qca,ar8327-initvals = <
149 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
150 0x7c 0x0000007e /* PORT0_STATUS */
151 >;
152 };
153 };
154
155 &eth0 {
156 status = "okay";
157
158 mtd-mac-address = <&art 0x0>;
159 phy-handle = <&phy0>;
160 };
161
162 &wmac {
163 status = "okay";
164 mtd-cal-data = <&art 0x1000>;
165 mtd-mac-address = <&art 0x1002>;
166 };