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>
10 model = "Devolo Magic 2 Wifi";
11 compatible = "devolo,magic-2-wifi", "qca,ar9344";
14 led-boot = &led_dlan_red;
15 led-failsafe = &led_dlan_red;
16 led-running = &led_dlan_white;
17 led-upgrade = &led_dlan_red;
21 compatible = "gpio-leds";
24 label = "devolo:white:wlan";
25 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
26 linux,default-trigger = "phy1tpt";
29 led_dlan_white: dlan_white {
30 label = "devolo:white:dlan";
31 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
34 led_dlan_red: dlan_red {
35 label = "devolo:red:dlan";
36 gpios = <&gpio 15 GPIO_ACTIVE_HIGH>;
42 compatible = "gpio-keys";
45 label = "Reset button";
46 linux,code = <KEY_RESTART>;
47 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
48 debounce-interval = <60>;
52 label = "WIFI button";
53 linux,code = <KEY_RFKILL>;
54 gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
55 debounce-interval = <60>;
59 label = "DLAN button";
61 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
62 debounce-interval = <60>;
72 line-name = "WLAN power";
73 gpios = <&gpio 21 GPIO_ACTIVE_HIGH>;
84 compatible = "jedec,spi-nor";
86 spi-max-frequency = <25000000>;
89 compatible = "fixed-partitions";
100 label = "u-boot-env";
101 reg = <0x40000 0x10000>;
107 reg = <0x50000 0x10000>;
113 reg = <0x60000 0x10000>;
118 compatible = "denx,uimage";
120 reg = <0x70000 0xf80000>;
123 art: partition@ff0000 {
125 reg = <0xff0000 0x10000>;
133 clock-frequency = <40000000>;
143 pll-data = <0x02000000 0x00000101 0x00001616>;
145 mtd-mac-address = <&art 0x1002>;
146 mtd-mac-address-increment = <2>;
149 phy-handle = <&phy0>;
155 mtd-cal-data = <&art 0x1000>;
162 compatible = "qcom,ath10k";
170 phy0: ethernet-phy@0 {
174 qca,ar8327-initvals = <
175 /* PORT0: RGMII, MAC0/6 exchage, tx_delay 01, No rx_delay */
177 0x08 0x00000000 /* PORT5 PAD MODE CTRL */
178 0x0c 0x00000000 /* PORT6 PAD MODE CTRL */
179 0x7c 0x0000007e /* PORT0_STATUS */