1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "qca956x.dtsi"
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
10 compatible = "glinet,gl-ar750s", "qca,qca9563";
11 model = "GL.iNet GL-AR750S";
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
18 label-mac-device = ð0;
22 compatible = "gpio-keys";
24 pinctrl-names = "default";
25 pinctrl-0 = <&jtag_disable_pins>;
29 linux,code = <KEY_RESTART>;
30 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
36 linux,input-type = <EV_SW>;
37 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
42 compatible = "gpio-leds";
45 function = LED_FUNCTION_POWER;
46 color = <LED_COLOR_ID_GREEN>;
47 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
48 default-state = "keep";
52 label = "green:wlan2g";
53 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
54 linux,default-trigger = "phy1tpt";
58 label = "green:wlan5g";
59 gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
60 linux,default-trigger = "phy0tpt";
65 compatible = "i2c-gpio";
67 sda-gpios = <&gpio 5 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
68 scl-gpios = <&gpio 21 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
76 compatible = "jedec,spi-nor";
78 spi-max-frequency = <25000000>;
80 nor_partitions: partitions {
81 compatible = "fixed-partitions";
87 reg = <0x000000 0x040000>;
93 reg = <0x040000 0x010000>;
96 art: partition@50000 {
98 reg = <0x050000 0x010000>;
102 compatible = "fixed-layout";
103 #address-cells = <1>;
106 macaddr_art_0: macaddr@0 {
107 compatible = "mac-base";
109 #nvmem-cell-cells = <1>;
112 cal_art_5000: calibration@5000 {
113 reg = <0x5000 0x844>;
118 /* Firmware / Kernel flash type specific */
122 flash_nand: flash@1 {
123 compatible = "spi-nand";
125 spi-max-frequency = <25000000>;
127 nand_partitions: partitions {
128 compatible = "fixed-partitions";
129 #address-cells = <1>;
132 nand_ubi: partition@0 {
134 reg = <0x000000 0x8000000>;
143 phy-handle = <&phy0>;
144 nvmem-cells = <&macaddr_art_0 0>;
145 nvmem-cell-names = "mac-address";
151 gpios = <7 GPIO_ACTIVE_HIGH>;
153 line-name = "usb-vbus";
160 phy0: ethernet-phy@0 {
163 qca,ar8327-initvals = <
164 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
165 0x7c 0x0000007e /* PORT0_STATUS */
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";
200 mtd-cal-data = <&art 0x1000>;