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 = "D-Link DIR-842 C2";
11 compatible = "dlink,dir-842-c2", "qca,qca9563";
15 led-failsafe = &power;
21 bootargs = "console=ttyS0,115200n8";
25 compatible = "gpio-leds";
28 label = "dir-842-c2:green:wps";
29 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
33 label = "dir-842-c2:green:power";
34 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
38 label = "dir-842-c2:green:internet";
39 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
43 label = "dir-842-c2:green:wlan";
44 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
45 linux,default-trigger = "phy0tpt";
50 compatible = "gpio-keys";
53 linux,code = <KEY_WPS_BUTTON>;
54 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
55 debounce-interval = <60>;
59 linux,code = <KEY_RESTART>;
60 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
61 debounce-interval = <60>;
65 // Pull up on boot - otherwise the reset button won't work
69 gpios = <11 GPIO_ACTIVE_LOW>;
70 line-name = "reset-button";
87 compatible = "jedec,spi-nor";
89 spi-max-frequency = <30000000>;
92 compatible = "fixed-partitions";
98 reg = <0x000000 0x40000>;
103 label = "u-boot-env";
104 reg = <0x040000 0x10000>;
110 reg = <0x050000 0x10000>;
116 reg = <0x060000 0x10000>;
122 reg = <0x070000 0x10000>;
127 compatible = "seama";
129 reg = <0x080000 0xf50000>;
132 art: partition@fd0000 {
134 reg = <0xfd0000 0x010000>;
140 reg = <0xfe0000 0x20000>;
152 phy0: ethernet-phy@0 {
154 qca,mib-poll-interval = <500>;
156 qca,ar8327-initvals = <
157 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
158 0x10 0x81000080 /* POWER_ON_STRIP */
159 0x50 0xcc35cc35 /* LED_CTRL0 */
160 0x54 0xcb37cb37 /* LED_CTRL1 */
161 0x58 0x00000000 /* LED_CTRL2 */
162 0x5c 0x00f3cf00 /* LED_CTRL3 */
163 0x7c 0x0000007e /* PORT0_STATUS */
171 pll-data = <0x03000101 0x00000101 0x00001919>;
174 phy-handle = <&phy0>;