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 model = "NEC Aterm WF1200CR";
11 compatible = "nec,wf1200cr", "qca,qca9561";
14 led-boot = &led_power_green;
15 led-failsafe = &led_power_red;
16 led-running = &led_power_green;
17 led-upgrade = &led_power_green;
21 compatible = "gpio-leds";
22 /* other LEDs are connected to ath10k (QCA9888) gpiochip */
24 led_power_green: power_green {
25 function = LED_FUNCTION_POWER;
26 color = <LED_COLOR_ID_GREEN>;
27 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
30 led_power_red: power_red {
31 function = LED_FUNCTION_POWER;
32 color = <LED_COLOR_ID_RED>;
33 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
38 compatible = "gpio-keys";
42 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
43 linux,code = <KEY_RESTART>;
44 debounce-interval = <60>;
49 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
51 linux,input-type = <EV_SW>;
52 debounce-interval = <60>;
57 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
58 linux,code = <KEY_WPS_BUTTON>;
59 debounce-interval = <60>;
68 compatible = "jedec,spi-nor";
70 spi-max-frequency = <25000000>;
73 compatible = "fixed-partitions";
79 reg = <0x000000 0x040000>;
85 reg = <0x040000 0x010000>;
91 reg = <0x050000 0x010000>;
97 reg = <0x060000 0x010000>;
102 compatible = "seama";
104 reg = <0x070000 0x780000>;
109 reg = <0x7f0000 0x010000>;
113 compatible = "fixed-layout";
114 #address-cells = <1>;
117 precal_art_5000: pre-calibration@5000 {
118 reg = <0x5000 0x2f20>;
129 pll-data = <0x03000101 0x00000101 0x00001919>;
131 phy-handle = <&swphy0>;
136 switch-phy-swap = <1>;
137 switch-phy-addr-swap = <0>;
144 pinctrl-names = "default";
145 pinctrl-0 = <&pinmux_swled_enable_pins>;
151 gpios = <14 GPIO_ACTIVE_HIGH>, /* WAN */
152 <19 GPIO_ACTIVE_HIGH>; /* LAN */
154 line-name = "led:wan-lan";
159 pinmux_swled_enable_pins: swled_enable_pins {
160 pinctrl-single,bits =
161 <0xc 0x240000 0xff0000>, /* WAN */
162 <0x10 0x10000000 0xff000000>; /* LAN */
170 compatible = "qcom,ath10k";
171 reg = <0x0000 0 0 0 0>;
172 nvmem-cells = <&precal_art_5000>;
173 nvmem-cell-names = "pre-calibration";