1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
7 #include "qca956x.dtsi"
10 model = "NEC Aterm WG1200CR";
11 compatible = "nec,wg1200cr", "qca,qca9563";
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 label = "wg1200cr:green:power";
26 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
30 led_power_red: power_red {
31 label = "wg1200cr:red:power";
32 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
37 compatible = "gpio-keys";
41 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
42 linux,code = <KEY_RESTART>;
43 debounce-interval = <60>;
48 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
49 linux,code = <KEY_WPS_BUTTON>;
50 debounce-interval = <60>;
55 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
57 linux,input-type = <EV_SW>;
58 debounce-interval = <60>;
63 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
65 linux,input-type = <EV_SW>;
66 debounce-interval = <60>;
77 compatible = "jedec,spi-nor";
79 spi-max-frequency = <25000000>;
82 compatible = "fixed-partitions";
88 reg = <0x000000 0x040000>;
94 reg = <0x040000 0x010000>;
100 reg = <0x050000 0x010000>;
106 reg = <0x060000 0x010000>;
111 label = "wifimngdata";
112 reg = <0x070000 0x010000>;
117 compatible = "seama";
119 reg = <0x080000 0x770000>;
124 reg = <0x7f0000 0x010000>;
134 phy0: ethernet-phy@0 {
137 qca,ar8327-initvals = <
138 0x04 0x00000080 /* PORT0 PAD MODE CTRL */
139 0x50 0xcc35cc35 /* LED_CTRL0 */
140 0x54 0xca35ca35 /* LED_CTRL1 */
141 0x58 0xc935c935 /* LED_CTRL2 */
142 0x5c 0x03ffff00 /* LED_CTRL3 */
143 0x7c 0x0000007e /* PORT0_STATUS */
151 pll-data = <0x03000101 0x00000101 0x00001919>;
154 phy-handle = <&phy0>;
161 compatible = "pci168c,0056";
162 reg = <0x0000 0 0 0 0>;