aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79/dts/ar7241_tplink_tl-mr3x20.dtsi
blob: ad18945af41a80e2f937539cf339aa8e914471ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT

#include "ar7241_tplink.dtsi"

/ {
	gpio-export {
		compatible = "gpio-export";
		#size-cells = <0>;

		gpio_usb_power {
			gpio-export,name = "tp-link:power:usb";
			gpio-export,output = <1>;
			gpios = <&gpio 6 GPIO_ACTIVE_HIGH>;
		};
	};
};

&gpio_leds {
	led3g {
		label = "tp-link:green:3g";
		gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
		default-state = "off";
		trigger-sources = <&hub_port>;
		linux,default-trigger = "usbport";
	};
};

&usb {
	status = "okay";

	hub_port: port@1 {
		reg = <1>;
		#trigger-source-cells = <0>;
	};
};

&usb_phy {
	status = "okay";
};
mi">0 { label = "u-boot"; reg = <0x0 0x30000>; read-only; }; partition@30000 { label = "u-boot-env"; reg = <0x30000 0x10000>; read-only; }; factory: partition@40000 { label = "factory"; reg = <0x40000 0x10000>; read-only; }; partition@50000 { compatible = "denx,uimage"; label = "firmware"; reg = <0x50000 0x7b0000>; }; }; }; }; &gpio1 { status = "okay"; }; &pinctrl { state_default: pinctrl0 { gpio { ralink,group = "jtag"; ralink,function = "gpio"; }; uartf_gpio { ralink,group = "uartf"; ralink,function = "gpio uartf"; }; }; }; &ethernet { mtd-mac-address = <&factory 0x4>; }; &esw { mediatek,portmap = <0x2f>; mediatek,led_polarity = <0x17>; }; &wmac { ralink,mtd-eeprom = <&factory 0>; ralink,led-polarity = <1>; }; &ehci { status = "okay"; }; &ohci { status = "okay"; }; &i2c { status = "okay"; }; &uart { status = "okay"; };