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>
10 led-boot = &led_power_amber;
11 led-failsafe = &led_power_amber;
12 led-running = &led_power_green;
13 led-upgrade = &led_power_amber;
14 label-mac-device = ð0;
18 compatible = "gpio-keys";
22 linux,code = <KEY_WPS_BUTTON>;
23 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
28 linux,code = <KEY_RESTART>;
29 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
34 compatible = "gpio-keys-polled";
39 linux,code = <KEY_RFKILL>;
40 gpios = <&ath9k 9 GPIO_ACTIVE_LOW>;
41 debounce-interval = <60>;
46 compatible = "gpio-leds";
48 pinctrl-names = "default";
49 pinctrl-0 = <&jtag_disable_pins>;
51 led_power_green: power_green {
52 label = "green:power";
53 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
56 led_power_amber: power_amber {
57 label = "amber:power";
58 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
59 default-state = "keep";
64 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
69 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
73 label = "green:wlan2g";
74 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
75 linux,default-trigger = "phy0tpt";
80 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
85 compatible = "gpio-leds";
88 label = "blue:wlan5g";
89 gpios = <&ath9k 7 GPIO_ACTIVE_LOW>;
90 linux,default-trigger = "phy1tpt";
99 compatible = "jedec,spi-nor";
101 spi-max-frequency = <25000000>;
104 compatible = "fixed-partitions";
105 #address-cells = <1>;
115 label = "u-boot-env";
116 reg = <0x40000 0x10000>;
120 label = "caldata_backup";
121 reg = <0x50000 0x10000>;
127 reg = <0x60000 0x10000>;
131 label = "traffic_meter";
132 reg = <0x70000 0x10000>;
137 reg = <0x80000 0x10000>;
142 reg = <0x90000 0x160000>;
145 caldata: partition@1f0000 {
147 reg = <0x1f0000 0x10000>;
154 compatible = "spi-nand";
156 spi-max-frequency = <25000000>;
159 compatible = "fixed-partitions";
160 #address-cells = <1>;
165 reg = <0x0 0x400000>;
170 reg = <0x400000 0x7c00000>;
181 phy0: ethernet-phy@0 {
184 qca,mib-poll-interval = <500>;
186 qca,ar8327-initvals = <
187 0x04 0x00000080 /* PORT0 PAD MODE CTRL */
188 0x10 0x81000080 /* POWER_ON_STRAP */
189 0x50 0xcc35cc35 /* LED_CTRL0 */
190 0x54 0xcb37cb37 /* LED_CTRL1 */
191 0x58 0x00000000 /* LED_CTRL2 */
192 0x5c 0x00f3cf00 /* LED_CTRL3 */
193 0x7c 0x0000007e /* PORT0_STATUS */
194 0x94 0x00000200 /* PORT6_STATUS */
202 pll-data = <0x03000101 0x00000101 0x00001919>;
204 mtd-mac-address = <&caldata 0x0>;
207 phy-handle = <&phy0>;
213 mtd-mac-address = <&caldata 0x0>;
221 /* chip is AR9580, override bogus PCI ID 168c:abcd */
222 compatible = "pci168c,0033";
223 reg = <0x0000 0 0 0 0>;
224 mtd-mac-address = <&caldata 0xc>;
226 qca,gpio-mask=<0xf6ff>; /* unmask pin 9 for RFKILL button */
237 #address-cells = <1>;
243 #trigger-source-cells = <0>;