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-859 A1";
11 compatible = "dlink,dir-859-a1", "qca,qca9563";
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
21 compatible = "gpio-leds";
24 label = "dir-859-a1:green:wps";
25 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
29 label = "dir-859-a1:green:power";
30 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
34 label = "dir-859-a1:green:internet";
35 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
39 label = "dir-859-a1:green:wlan";
40 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
41 linux,default-trigger = "phy0tpt";
46 compatible = "gpio-keys";
49 linux,code = <KEY_WPS_BUTTON>;
50 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
51 debounce-interval = <60>;
55 linux,code = <KEY_RESTART>;
56 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
57 debounce-interval = <60>;
62 compatible = "gpio-export";
66 gpio-export,name = "dir-859-a1:reset:switch";
67 gpio-export,output = <1>;
68 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
87 compatible = "jedec,spi-nor";
89 spi-max-frequency = <30000000>;
92 compatible = "fixed-partitions";
98 reg = <0x000000 0x40000>;
104 reg = <0x040000 0x10000>;
110 reg = <0x050000 0x10000>;
116 reg = <0x060000 0x10000>;
121 compatible = "seama";
123 reg = <0x070000 0xf80000>;
126 art: partition@ff0000 {
128 reg = <0xff0000 0x010000>;
140 phy0: ethernet-phy@0 {
143 qca,mib-poll-interval = <500>;
145 qca,ar8327-initvals = <
146 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
147 0x10 0x81000080 /* POWER_ON_STRAP */
148 0x50 0xcc35cc35 /* LED_CTRL0 */
149 0x54 0xcb37cb37 /* LED_CTRL1 */
150 0x58 0x00000000 /* LED_CTRL2 */
151 0x5c 0x00f3cf00 /* LED_CTRL3 */
152 0x7c 0x0000007e /* PORT0_STATUS */
160 pll-data = <0x03000101 0x00000101 0x00001919>;
163 phy-handle = <&phy0>;