xref: /linux/arch/mips/boot/dts/qca/ar9331_tl_mr3020.dts (revision 9a87ffc99ec8eb8d35eed7c4f816d75f5cc9662e)
1b2441318SGreg Kroah-Hartman// SPDX-License-Identifier: GPL-2.0
22c3694d2SAntony Pavlov/dts-v1/;
32c3694d2SAntony Pavlov
42c3694d2SAntony Pavlov#include <dt-bindings/gpio/gpio.h>
52c3694d2SAntony Pavlov#include <dt-bindings/input/input.h>
62c3694d2SAntony Pavlov
72c3694d2SAntony Pavlov#include "ar9331.dtsi"
82c3694d2SAntony Pavlov
92c3694d2SAntony Pavlov/ {
102c3694d2SAntony Pavlov	model = "TP-Link TL-MR3020";
112c3694d2SAntony Pavlov	compatible = "tplink,tl-mr3020";
122c3694d2SAntony Pavlov
132c3694d2SAntony Pavlov	aliases {
142c3694d2SAntony Pavlov		serial0 = &uart;
152c3694d2SAntony Pavlov	};
162c3694d2SAntony Pavlov
172c3694d2SAntony Pavlov	memory@0 {
182c3694d2SAntony Pavlov		device_type = "memory";
192c3694d2SAntony Pavlov		reg = <0x0 0x2000000>;
202c3694d2SAntony Pavlov	};
212c3694d2SAntony Pavlov
222c3694d2SAntony Pavlov	leds {
232c3694d2SAntony Pavlov		compatible = "gpio-leds";
242c3694d2SAntony Pavlov
25*09e61efdSArınç ÜNAL		led-wlan {
262c3694d2SAntony Pavlov			label = "tp-link:green:wlan";
272c3694d2SAntony Pavlov			gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
282c3694d2SAntony Pavlov			default-state = "off";
292c3694d2SAntony Pavlov		};
302c3694d2SAntony Pavlov
31*09e61efdSArınç ÜNAL		led-lan {
322c3694d2SAntony Pavlov			label = "tp-link:green:lan";
332c3694d2SAntony Pavlov			gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
342c3694d2SAntony Pavlov			default-state = "off";
352c3694d2SAntony Pavlov		};
362c3694d2SAntony Pavlov
37*09e61efdSArınç ÜNAL		led-wps {
382c3694d2SAntony Pavlov			label = "tp-link:green:wps";
392c3694d2SAntony Pavlov			gpios = <&gpio 26 GPIO_ACTIVE_LOW>;
402c3694d2SAntony Pavlov			default-state = "off";
412c3694d2SAntony Pavlov		};
422c3694d2SAntony Pavlov
43*09e61efdSArınç ÜNAL		led-led3g {
442c3694d2SAntony Pavlov			label = "tp-link:green:3g";
452c3694d2SAntony Pavlov			gpios = <&gpio 27 GPIO_ACTIVE_LOW>;
462c3694d2SAntony Pavlov			default-state = "off";
472c3694d2SAntony Pavlov		};
482c3694d2SAntony Pavlov	};
492c3694d2SAntony Pavlov
5024babe69SAlban Bedel	gpio-keys {
5124babe69SAlban Bedel		compatible = "gpio-keys";
522c3694d2SAntony Pavlov
535ee46bfbSKrzysztof Kozlowski		button-0 {
542c3694d2SAntony Pavlov			label = "wps";
552c3694d2SAntony Pavlov			linux,code = <KEY_WPS_BUTTON>;
562c3694d2SAntony Pavlov			gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
572c3694d2SAntony Pavlov		};
582c3694d2SAntony Pavlov
595ee46bfbSKrzysztof Kozlowski		button-1 {
602c3694d2SAntony Pavlov			label = "sw1";
612c3694d2SAntony Pavlov			linux,code = <BTN_0>;
622c3694d2SAntony Pavlov			gpios = <&gpio 18 GPIO_ACTIVE_HIGH>;
632c3694d2SAntony Pavlov		};
642c3694d2SAntony Pavlov
655ee46bfbSKrzysztof Kozlowski		button-2 {
662c3694d2SAntony Pavlov			label = "sw2";
672c3694d2SAntony Pavlov			linux,code = <BTN_1>;
682c3694d2SAntony Pavlov			gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
692c3694d2SAntony Pavlov		};
702c3694d2SAntony Pavlov	};
712c3694d2SAntony Pavlov
722c3694d2SAntony Pavlov	reg_usb_vbus: reg_usb_vbus {
732c3694d2SAntony Pavlov		compatible = "regulator-fixed";
742c3694d2SAntony Pavlov		regulator-name = "usb_vbus";
752c3694d2SAntony Pavlov		regulator-min-microvolt = <5000000>;
762c3694d2SAntony Pavlov		regulator-max-microvolt = <5000000>;
772c3694d2SAntony Pavlov		gpio = <&gpio 8 GPIO_ACTIVE_HIGH>;
782c3694d2SAntony Pavlov		enable-active-high;
792c3694d2SAntony Pavlov	};
802c3694d2SAntony Pavlov};
812c3694d2SAntony Pavlov
822c3694d2SAntony Pavlov&ref {
832c3694d2SAntony Pavlov	clock-frequency = <25000000>;
842c3694d2SAntony Pavlov};
852c3694d2SAntony Pavlov
862c3694d2SAntony Pavlov&uart {
872c3694d2SAntony Pavlov	status = "okay";
882c3694d2SAntony Pavlov};
892c3694d2SAntony Pavlov
902c3694d2SAntony Pavlov&gpio {
912c3694d2SAntony Pavlov	status = "okay";
922c3694d2SAntony Pavlov};
932c3694d2SAntony Pavlov
942c3694d2SAntony Pavlov&usb {
952c3694d2SAntony Pavlov	dr_mode = "host";
962c3694d2SAntony Pavlov	vbus-supply = <&reg_usb_vbus>;
972c3694d2SAntony Pavlov	status = "okay";
982c3694d2SAntony Pavlov};
992c3694d2SAntony Pavlov
1002c3694d2SAntony Pavlov&usb_phy {
1012c3694d2SAntony Pavlov	status = "okay";
1022c3694d2SAntony Pavlov};
1032c3694d2SAntony Pavlov
1042c3694d2SAntony Pavlov&spi {
1052c3694d2SAntony Pavlov	num-chipselects = <1>;
1062c3694d2SAntony Pavlov	status = "okay";
1072c3694d2SAntony Pavlov
1082c3694d2SAntony Pavlov	/* Spansion S25FL032PIF SPI flash */
1092c3694d2SAntony Pavlov	spiflash: s25sl032p@0 {
1102c3694d2SAntony Pavlov		#address-cells = <1>;
1112c3694d2SAntony Pavlov		#size-cells = <1>;
1122c3694d2SAntony Pavlov		compatible = "spansion,s25sl032p", "jedec,spi-nor";
1132c3694d2SAntony Pavlov		spi-max-frequency = <104000000>;
1142c3694d2SAntony Pavlov		reg = <0>;
1152c3694d2SAntony Pavlov	};
1162c3694d2SAntony Pavlov};
117