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 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 function = LED_FUNCTION_POWER;
26 color = <LED_COLOR_ID_GREEN>;
27 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
31 led_power_red: power_red {
32 function = LED_FUNCTION_POWER;
33 color = <LED_COLOR_ID_RED>;
34 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
39 compatible = "gpio-keys";
43 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
44 linux,code = <KEY_RESTART>;
45 debounce-interval = <60>;
50 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
51 linux,code = <KEY_WPS_BUTTON>;
52 debounce-interval = <60>;
57 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
59 linux,input-type = <EV_SW>;
60 debounce-interval = <60>;
65 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
67 linux,input-type = <EV_SW>;
68 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>;
128 compatible = "fixed-layout";
129 #address-cells = <1>;
132 precal_art_5000: pre-calibration@5000 {
133 reg = <0x5000 0x2f20>;
144 phy0: ethernet-phy@0 {
147 qca,ar8327-initvals = <
148 0x04 0x00000080 /* PORT0 PAD MODE CTRL */
149 0x50 0xcc35cc35 /* LED_CTRL0 */
150 0x54 0xca35ca35 /* LED_CTRL1 */
151 0x58 0xc935c935 /* LED_CTRL2 */
152 0x5c 0x03ffff00 /* LED_CTRL3 */
153 0x7c 0x0000007e /* PORT0_STATUS */
161 pll-data = <0x03000101 0x00000101 0x00001919>;
164 phy-handle = <&phy0>;
171 compatible = "pci168c,0056";
172 reg = <0x0000 0 0 0 0>;
173 nvmem-cells = <&precal_art_5000>;
174 nvmem-cell-names = "pre-calibration";