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>
9 compatible = "glinet,gl-ar750s", "qca,qca9563";
10 model = "GL.iNet GL-AR750S";
13 led-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
17 label-mac-device = ð0;
21 compatible = "gpio-keys";
23 pinctrl-names = "default";
24 pinctrl-0 = <&jtag_disable_pins>;
28 linux,code = <KEY_RESTART>;
29 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
35 linux,input-type = <EV_SW>;
36 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
41 compatible = "gpio-leds";
44 label = "green:power";
45 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
46 default-state = "keep";
50 label = "green:wlan2g";
51 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
52 linux,default-trigger = "phy1tpt";
56 label = "green:wlan5g";
57 gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
58 linux,default-trigger = "phy0tpt";
63 compatible = "i2c-gpio";
65 sda-gpios = <&gpio 5 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
66 scl-gpios = <&gpio 21 (GPIO_ACTIVE_HIGH|GPIO_OPEN_DRAIN)>;
74 compatible = "jedec,spi-nor";
76 spi-max-frequency = <25000000>;
78 nor_partitions: partitions {
79 compatible = "fixed-partitions";
85 reg = <0x000000 0x040000>;
91 reg = <0x040000 0x010000>;
94 art: partition@50000 {
96 reg = <0x050000 0x010000>;
100 compatible = "fixed-layout";
101 #address-cells = <1>;
104 macaddr_art_0: macaddr@0 {
110 /* Firmware / Kernel flash type specific */
114 flash_nand: flash@1 {
115 compatible = "spi-nand";
117 spi-max-frequency = <25000000>;
119 nand_partitions: partitions {
120 compatible = "fixed-partitions";
121 #address-cells = <1>;
124 nand_ubi: partition@0 {
126 reg = <0x000000 0x8000000>;
135 phy-handle = <&phy0>;
136 nvmem-cells = <&macaddr_art_0>;
137 nvmem-cell-names = "mac-address";
143 gpios = <7 GPIO_ACTIVE_HIGH>;
145 line-name = "usb-vbus";
152 phy0: ethernet-phy@0 {
155 qca,ar8327-initvals = <
156 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
157 0x7c 0x0000007e /* PORT0_STATUS */
185 mtd-cal-data = <&art 0x1000>;