1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
3 #include "qcom-ipq4019.dtsi"
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/leds/common.h>
9 model = "devolo Magic 2 WiFi next";
10 compatible = "devolo,magic-2-wifi-next";
13 device_type = "memory";
14 reg = <0x80000000 0x10000000>;
19 compatible = "gpio-export";
23 gpio-export,name = "plc-enable";
24 gpio-export,output = <1>;
25 gpios = <&tlmm 63 GPIO_ACTIVE_HIGH>;
32 compatible = "gpio-keys";
36 gpios = <&tlmm 5 GPIO_ACTIVE_LOW>;
37 linux,code = <KEY_WPS_BUTTON>;
42 gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
43 linux,code = <KEY_RESTART>;
48 compatible = "gpio-leds";
52 gpios = <&tlmm 4 GPIO_ACTIVE_LOW>;
53 default-state = "keep";
57 function = LED_FUNCTION_WLAN;
58 color = <LED_COLOR_ID_WHITE>;
59 gpios = <&tlmm 58 GPIO_ACTIVE_LOW>;
60 default-state = "keep";
65 gpios = <&tlmm 3 GPIO_ACTIVE_HIGH>;
66 default-state = "keep";
84 spi_0_pins: spi_0_pinmux {
86 function = "blsp_spi0";
87 pins = "gpio55", "gpio56", "gpio57";
88 drive-strength = <12>;
101 mdio_pins: mdio_pinmux {
114 serial_pins: serial_pinmux {
116 pins = "gpio61", "gpio60";
117 function = "blsp_uart0";
122 button_pins: button_pinmux {
125 pins = "gpio0", "gpio5";
141 pinctrl-0 = <&serial_pins>;
142 pinctrl-names = "default";
156 qcom,ath10k-calibration-variant = "devolo,magic-2-wifi-next";
161 qcom,ath10k-calibration-variant = "devolo,magic-2-wifi-next";
165 pinctrl-0 = <&spi_0_pins>;
166 pinctrl-names = "default";
168 cs-gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
171 compatible = "jedec,spi-nor";
173 linux,modalias = "n25q128a11";
174 spi-max-frequency = <24000000>;
177 compatible = "fixed-partitions";
178 #address-cells = <1>;
183 reg = <0x00000000 0x00040000>;
188 reg = <0x00040000 0x00020000>;
193 reg = <0x00060000 0x00060000>;
198 reg = <0x000c0000 0x00010000>;
203 reg = <0x000d0000 0x00010000>;
207 label = "APPSBLENV"; /* uboot env*/
208 reg = <0x000e0000 0x00010000>;
211 label = "APPSBL"; /* uboot */
212 reg = <0x000f0000 0x00080000>;
217 reg = <0x00170000 0x00010000>;
221 compatible = "denx,fit";
223 reg = <0x00180000 0x01a80000>;
231 pinctrl-0 = <&mdio_pins>;
232 pinctrl-names = "default";
233 reset-gpios = <&tlmm 59 GPIO_ACTIVE_LOW>;
234 reset-delay-us = <2000>;