kernel/modules/other/mlxreg: add new package
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9563_glinet_gl-ar750s.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca956x.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
8
9 / {
10 compatible = "glinet,gl-ar750s", "qca,qca9563";
11 model = "GL.iNet GL-AR750S";
12
13 aliases {
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
18 label-mac-device = &eth0;
19 };
20
21 keys {
22 compatible = "gpio-keys";
23
24 pinctrl-names = "default";
25 pinctrl-0 = <&jtag_disable_pins>;
26
27 reset {
28 label = "reset";
29 linux,code = <KEY_RESTART>;
30 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
31 };
32
33 mode {
34 label = "mode";
35 linux,code = <BTN_0>;
36 linux,input-type = <EV_SW>;
37 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
38 };
39 };
40
41 leds {
42 compatible = "gpio-leds";
43
44 led_power: power {
45 function = LED_FUNCTION_POWER;
46 color = <LED_COLOR_ID_GREEN>;
47 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
48 default-state = "keep";
49 };
50
51 led_wlan2g: wlan2g {
52 label = "green:wlan2g";
53 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
54 linux,default-trigger = "phy1tpt";
55 };
56
57 led_wlan5g: wlan5g {
58 label = "green:wlan5g";
59 gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
60 linux,default-trigger = "phy0tpt";
61 };
62 };
63
64 i2c: i2c {
65 compatible = "i2c-gpio";
66
67 sda-gpios = <&gpio 5 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
68 scl-gpios = <&gpio 21 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
69 };
70 };
71
72 &spi {
73 status = "okay";
74
75 flash_nor: flash@0 {
76 compatible = "jedec,spi-nor";
77 reg = <0>;
78 spi-max-frequency = <25000000>;
79
80 nor_partitions: partitions {
81 compatible = "fixed-partitions";
82 #address-cells = <1>;
83 #size-cells = <1>;
84
85 partition@0 {
86 label = "u-boot";
87 reg = <0x000000 0x040000>;
88 read-only;
89 };
90
91 partition@40000 {
92 label = "u-boot-env";
93 reg = <0x040000 0x010000>;
94 };
95
96 art: partition@50000 {
97 label = "art";
98 reg = <0x050000 0x010000>;
99 read-only;
100
101 nvmem-layout {
102 compatible = "fixed-layout";
103 #address-cells = <1>;
104 #size-cells = <1>;
105
106 macaddr_art_0: macaddr@0 {
107 compatible = "mac-base";
108 reg = <0x0 0x6>;
109 #nvmem-cell-cells = <1>;
110 };
111
112 cal_art_5000: calibration@5000 {
113 reg = <0x5000 0x844>;
114 };
115 };
116 };
117
118 /* Firmware / Kernel flash type specific */
119 };
120 };
121
122 flash_nand: flash@1 {
123 compatible = "spi-nand";
124 reg = <1>;
125 spi-max-frequency = <25000000>;
126
127 nand_partitions: partitions {
128 compatible = "fixed-partitions";
129 #address-cells = <1>;
130 #size-cells = <1>;
131
132 nand_ubi: partition@0 {
133 label = "nand_ubi";
134 reg = <0x000000 0x8000000>;
135 };
136 };
137 };
138 };
139
140 &eth0 {
141 status = "okay";
142
143 phy-handle = <&phy0>;
144 nvmem-cells = <&macaddr_art_0 0>;
145 nvmem-cell-names = "mac-address";
146 };
147
148 &gpio {
149 usb_vbus {
150 gpio-hog;
151 gpios = <7 GPIO_ACTIVE_HIGH>;
152 output-high;
153 line-name = "usb-vbus";
154 };
155 };
156
157 &mdio0 {
158 status = "okay";
159
160 phy0: ethernet-phy@0 {
161 reg = <0>;
162 phy-mode = "sgmii";
163 qca,ar8327-initvals = <
164 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
165 0x7c 0x0000007e /* PORT0_STATUS */
166 >;
167 };
168 };
169
170 &pcie {
171 status = "okay";
172
173 wifi@0,0 {
174 compatible = "qcom,ath10k";
175 reg = <0x0000 0 0 0 0>;
176 nvmem-cells = <&cal_art_5000>, <&macaddr_art_0 1>;
177 nvmem-cell-names = "calibration", "mac-address";
178 };
179 };
180
181 &usb0 {
182 status = "okay";
183 };
184
185 &usb1 {
186 status = "okay";
187 };
188
189 &usb_phy0 {
190 status = "okay";
191 };
192
193 &usb_phy1 {
194 status = "okay";
195 };
196
197 &wmac {
198 status = "okay";
199
200 mtd-cal-data = <&art 0x1000>;
201 };