1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
6 #include "qca956x.dtsi"
10 bootargs = "console=ttyS0,115200n8";
14 led-boot = &led_power_amber;
15 led-failsafe = &led_power_amber;
16 led-running = &led_power_green;
17 led-upgrade = &led_power_amber;
18 label-mac-device = ð0;
22 compatible = "gpio-keys";
26 linux,code = <KEY_WPS_BUTTON>;
27 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
32 linux,code = <KEY_RESTART>;
33 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
38 compatible = "gpio-keys-polled";
43 linux,code = <KEY_RFKILL>;
44 gpios = <&ath9k 9 GPIO_ACTIVE_LOW>;
45 debounce-interval = <60>;
50 compatible = "gpio-leds";
52 pinctrl-names = "default";
53 pinctrl-0 = <&jtag_disable_pins>;
55 led_power_green: power_green {
56 label = "netgear:green:power";
57 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
60 led_power_amber: power_amber {
61 label = "netgear:amber:power";
62 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
63 default-state = "keep";
67 label = "netgear:green:wan";
68 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
72 label = "netgear:amber:wan";
73 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
77 label = "netgear:green:wlan2g";
78 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
79 linux,default-trigger = "phy0tpt";
83 label = "netgear:green:wps";
84 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
89 compatible = "gpio-leds";
92 label = "netgear:blue:wlan5g";
93 gpios = <&ath9k 7 GPIO_ACTIVE_LOW>;
94 linux,default-trigger = "phy1tpt";
106 compatible = "jedec,spi-nor";
108 spi-max-frequency = <25000000>;
111 compatible = "fixed-partitions";
112 #address-cells = <1>;
122 label = "u-boot-env";
123 reg = <0x40000 0x10000>;
127 label = "caldata_backup";
128 reg = <0x50000 0x10000>;
134 reg = <0x60000 0x10000>;
138 label = "traffic_meter";
139 reg = <0x70000 0x10000>;
144 reg = <0x80000 0x10000>;
149 reg = <0x90000 0x160000>;
152 art: partition@1f0000 {
154 reg = <0x1f0000 0x10000>;
161 compatible = "spi-nand";
163 spi-max-frequency = <25000000>;
166 compatible = "fixed-partitions";
167 #address-cells = <1>;
172 reg = <0x0 0x400000>;
177 reg = <0x400000 0x7c00000>;
188 phy0: ethernet-phy@0 {
191 qca,mib-poll-interval = <500>;
193 qca,ar8327-initvals = <
194 0x04 0x00000080 /* PORT0 PAD MODE CTRL */
195 0x10 0x81000080 /* POWER_ON_STRIP */
196 0x50 0xcc35cc35 /* LED_CTRL0 */
197 0x54 0xcb37cb37 /* LED_CTRL1 */
198 0x58 0x00000000 /* LED_CTRL2 */
199 0x5c 0x00f3cf00 /* LED_CTRL3 */
200 0x7c 0x0000007e /* PORT0_STATUS */
201 0x94 0x00000200 /* PORT6_STATUS */
209 pll-data = <0x03000101 0x00000101 0x00001919>;
211 mtd-mac-address = <&art 0x0>;
214 phy-handle = <&phy0>;
220 mtd-mac-address = <&art 0x0>;
228 /* chip is AR9580, override bogus PCI ID 168c:abcd */
229 compatible = "pci168c,0033";
230 reg = <0x0000 0 0 0 0>;
231 mtd-mac-address = <&art 0xc>;
233 qca,gpio-mask=<0xf6ff>; /* unmask pin 9 for RFKILL button */
244 #address-cells = <1>;
250 #trigger-source-cells = <0>;