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 bootargs = "console=ttyS0,115200n8";
18 led-boot = &power_green;
19 led-failsafe = &power_red;
20 led-running = &power_green;
21 led-upgrade = &power_green;
25 compatible = "gpio-leds";
26 /* other LEDs are connected to ath10k (QCA9888) gpiochip */
28 power_green: power_green {
29 label = "wg1200cr:green:power";
30 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
34 power_red: power_red {
35 label = "wg1200cr:red:power";
36 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
41 compatible = "gpio-keys";
45 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
46 linux,code = <KEY_RESTART>;
47 debounce-interval = <60>;
52 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
53 linux,code = <KEY_WPS_BUTTON>;
54 debounce-interval = <60>;
59 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
61 linux,input-type = <EV_SW>;
62 debounce-interval = <60>;
67 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
69 linux,input-type = <EV_SW>;
70 debounce-interval = <60>;
80 compatible = "jedec,spi-nor";
82 spi-max-frequency = <25000000>;
85 compatible = "fixed-partitions";
91 reg = <0x000000 0x040000>;
97 reg = <0x040000 0x010000>;
103 reg = <0x050000 0x010000>;
109 reg = <0x060000 0x010000>;
114 label = "wifimngdata";
115 reg = <0x070000 0x010000>;
120 compatible = "seama";
122 reg = <0x080000 0x770000>;
127 reg = <0x7f0000 0x010000>;
137 phy0: ethernet-phy@0 {
140 qca,ar8327-initvals = <
141 0x04 0x00000080 /* PORT0 PAD MODE CTRL */
142 0x50 0xcc35cc35 /* LED_CTRL0 */
143 0x54 0xca35ca35 /* LED_CTRL1 */
144 0x58 0xc935c935 /* LED_CTRL2 */
145 0x5c 0x03ffff00 /* LED_CTRL3 */
146 0x7c 0x0000007e /* PORT0_STATUS */
154 pll-data = <0x03000101 0x00000101 0x00001919>;
157 phy-handle = <&phy0>;
164 compatible = "pci168c,0056";
165 reg = <0x0000 0 0 0 0>;