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