1 // SPDX-License-Identifier: GPL-2.0-only
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
9 model = "TP-Link TL-MR3040 V2";
10 compatible = "tplink,tl-mr3040-v2", "qca,ar9331";
14 led-failsafe = &led_lan;
15 label-mac-device = ð0;
19 compatible = "gpio-leds";
21 pinctrl-names = "default";
22 pinctrl-0 = <&switch_led_disable_pins>;
26 gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
27 linux,default-trigger = "phy0tpt";
32 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
37 gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
38 trigger-sources = <&hub_port>;
39 linux,default-trigger = "usbport";
44 compatible = "gpio-keys";
48 linux,code = <KEY_RESTART>;
49 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
50 debounce-interval = <60>;
55 linux,input-type = <EV_SW>;
57 gpios = <&gpio 19 GPIO_ACTIVE_HIGH>;
58 debounce-interval = <60>;
63 linux,input-type = <EV_SW>;
65 gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
66 debounce-interval = <60>;
70 reg_usb_vbus: reg_usb_vbus {
71 compatible = "regulator-fixed";
72 regulator-name = "usb_vbus";
73 regulator-min-microvolt = <5000000>;
74 regulator-max-microvolt = <5000000>;
75 gpio = <&gpio 18 GPIO_ACTIVE_HIGH>;
81 clock-frequency = <25000000>;
88 vbus-supply = <®_usb_vbus>;
93 #trigger-source-cells = <0>;
105 compatible = "jedec,spi-nor";
106 spi-max-frequency = <50000000>;
110 compatible = "fixed-partitions";
111 #address-cells = <1>;
116 reg = <0x000000 0x020000>;
121 compatible = "tplink,firmware";
123 reg = <0x020000 0x3d0000>;
126 art: partition@3f0000 {
128 reg = <0x3f0000 0x010000>;
138 nvmem-cells = <&macaddr_uboot_1fc00>;
139 nvmem-cell-names = "mac-address";
143 switch-phy-addr-swap = <0>;
144 switch-phy-swap = <0>;
151 compatible = "syscon", "simple-mfd";
157 mtd-cal-data = <&art 0x1000>;
158 nvmem-cells = <&macaddr_uboot_1fc00>;
159 nvmem-cell-names = "mac-address";
163 compatible = "nvmem-cells";
164 #address-cells = <1>;
167 macaddr_uboot_1fc00: macaddr@1fc00 {