1 // SPDX-License-Identifier: GPL-2.0-only
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
10 model = "TP-Link TL-MR3040 V2";
11 compatible = "tplink,tl-mr3040-v2", "qca,ar9331";
15 led-failsafe = &led_lan;
16 label-mac-device = ð0;
20 compatible = "gpio-leds";
22 pinctrl-names = "default";
23 pinctrl-0 = <&switch_led_disable_pins>;
26 function = LED_FUNCTION_WLAN;
27 color = <LED_COLOR_ID_GREEN>;
28 gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
29 linux,default-trigger = "phy0tpt";
33 function = LED_FUNCTION_LAN;
34 color = <LED_COLOR_ID_GREEN>;
35 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
40 gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
41 trigger-sources = <&hub_port>;
42 linux,default-trigger = "usbport";
47 compatible = "gpio-keys";
51 linux,code = <KEY_RESTART>;
52 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
53 debounce-interval = <60>;
58 linux,input-type = <EV_SW>;
60 gpios = <&gpio 19 GPIO_ACTIVE_HIGH>;
61 debounce-interval = <60>;
66 linux,input-type = <EV_SW>;
68 gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
69 debounce-interval = <60>;
73 reg_usb_vbus: reg_usb_vbus {
74 compatible = "regulator-fixed";
75 regulator-name = "usb_vbus";
76 regulator-min-microvolt = <5000000>;
77 regulator-max-microvolt = <5000000>;
78 gpios = <&gpio 18 GPIO_ACTIVE_HIGH>;
84 clock-frequency = <25000000>;
89 vbus-supply = <®_usb_vbus>;
101 compatible = "jedec,spi-nor";
102 spi-max-frequency = <50000000>;
106 compatible = "fixed-partitions";
107 #address-cells = <1>;
112 reg = <0x000000 0x020000>;
116 compatible = "fixed-layout";
117 #address-cells = <1>;
120 macaddr_uboot_1fc00: macaddr@1fc00 {
127 compatible = "tplink,firmware";
129 reg = <0x020000 0x3d0000>;
132 art: partition@3f0000 {
134 reg = <0x3f0000 0x010000>;
144 nvmem-cells = <&macaddr_uboot_1fc00>;
145 nvmem-cell-names = "mac-address";
149 switch-phy-addr-swap = <0>;
150 switch-phy-swap = <0>;
157 compatible = "syscon", "simple-mfd";
163 mtd-cal-data = <&art 0x1000>;
164 nvmem-cells = <&macaddr_uboot_1fc00>;
165 nvmem-cell-names = "mac-address";