12c3694d2SAntony Pavlov/dts-v1/; 22c3694d2SAntony Pavlov 32c3694d2SAntony Pavlov#include <dt-bindings/gpio/gpio.h> 42c3694d2SAntony Pavlov#include <dt-bindings/input/input.h> 52c3694d2SAntony Pavlov 62c3694d2SAntony Pavlov#include "ar9331.dtsi" 72c3694d2SAntony Pavlov 82c3694d2SAntony Pavlov/ { 92c3694d2SAntony Pavlov model = "TP-Link TL-MR3020"; 102c3694d2SAntony Pavlov compatible = "tplink,tl-mr3020"; 112c3694d2SAntony Pavlov 122c3694d2SAntony Pavlov aliases { 132c3694d2SAntony Pavlov serial0 = &uart; 142c3694d2SAntony Pavlov }; 152c3694d2SAntony Pavlov 162c3694d2SAntony Pavlov memory@0 { 172c3694d2SAntony Pavlov device_type = "memory"; 182c3694d2SAntony Pavlov reg = <0x0 0x2000000>; 192c3694d2SAntony Pavlov }; 202c3694d2SAntony Pavlov 212c3694d2SAntony Pavlov leds { 222c3694d2SAntony Pavlov compatible = "gpio-leds"; 232c3694d2SAntony Pavlov 242c3694d2SAntony Pavlov wlan { 252c3694d2SAntony Pavlov label = "tp-link:green:wlan"; 262c3694d2SAntony Pavlov gpios = <&gpio 0 GPIO_ACTIVE_HIGH>; 272c3694d2SAntony Pavlov default-state = "off"; 282c3694d2SAntony Pavlov }; 292c3694d2SAntony Pavlov 302c3694d2SAntony Pavlov lan { 312c3694d2SAntony Pavlov label = "tp-link:green:lan"; 322c3694d2SAntony Pavlov gpios = <&gpio 17 GPIO_ACTIVE_LOW>; 332c3694d2SAntony Pavlov default-state = "off"; 342c3694d2SAntony Pavlov }; 352c3694d2SAntony Pavlov 362c3694d2SAntony Pavlov wps { 372c3694d2SAntony Pavlov label = "tp-link:green:wps"; 382c3694d2SAntony Pavlov gpios = <&gpio 26 GPIO_ACTIVE_LOW>; 392c3694d2SAntony Pavlov default-state = "off"; 402c3694d2SAntony Pavlov }; 412c3694d2SAntony Pavlov 422c3694d2SAntony Pavlov led3g { 432c3694d2SAntony Pavlov label = "tp-link:green:3g"; 442c3694d2SAntony Pavlov gpios = <&gpio 27 GPIO_ACTIVE_LOW>; 452c3694d2SAntony Pavlov default-state = "off"; 462c3694d2SAntony Pavlov }; 472c3694d2SAntony Pavlov }; 482c3694d2SAntony Pavlov 492c3694d2SAntony Pavlov gpio-keys-polled { 502c3694d2SAntony Pavlov compatible = "gpio-keys-polled"; 512c3694d2SAntony Pavlov #address-cells = <1>; 522c3694d2SAntony Pavlov #size-cells = <0>; 532c3694d2SAntony Pavlov poll-interval = <100>; 542c3694d2SAntony Pavlov 552c3694d2SAntony Pavlov button@0 { 562c3694d2SAntony Pavlov label = "wps"; 572c3694d2SAntony Pavlov linux,code = <KEY_WPS_BUTTON>; 582c3694d2SAntony Pavlov gpios = <&gpio 11 GPIO_ACTIVE_HIGH>; 592c3694d2SAntony Pavlov }; 602c3694d2SAntony Pavlov 612c3694d2SAntony Pavlov button@1 { 622c3694d2SAntony Pavlov label = "sw1"; 632c3694d2SAntony Pavlov linux,code = <BTN_0>; 642c3694d2SAntony Pavlov gpios = <&gpio 18 GPIO_ACTIVE_HIGH>; 652c3694d2SAntony Pavlov }; 662c3694d2SAntony Pavlov 672c3694d2SAntony Pavlov button@2 { 682c3694d2SAntony Pavlov label = "sw2"; 692c3694d2SAntony Pavlov linux,code = <BTN_1>; 702c3694d2SAntony Pavlov gpios = <&gpio 20 GPIO_ACTIVE_HIGH>; 712c3694d2SAntony Pavlov }; 722c3694d2SAntony Pavlov }; 732c3694d2SAntony Pavlov 742c3694d2SAntony Pavlov reg_usb_vbus: reg_usb_vbus { 752c3694d2SAntony Pavlov compatible = "regulator-fixed"; 762c3694d2SAntony Pavlov regulator-name = "usb_vbus"; 772c3694d2SAntony Pavlov regulator-min-microvolt = <5000000>; 782c3694d2SAntony Pavlov regulator-max-microvolt = <5000000>; 792c3694d2SAntony Pavlov gpio = <&gpio 8 GPIO_ACTIVE_HIGH>; 802c3694d2SAntony Pavlov enable-active-high; 812c3694d2SAntony Pavlov }; 822c3694d2SAntony Pavlov}; 832c3694d2SAntony Pavlov 842c3694d2SAntony Pavlov&ref { 852c3694d2SAntony Pavlov clock-frequency = <25000000>; 862c3694d2SAntony Pavlov}; 872c3694d2SAntony Pavlov 882c3694d2SAntony Pavlov&uart { 892c3694d2SAntony Pavlov status = "okay"; 902c3694d2SAntony Pavlov}; 912c3694d2SAntony Pavlov 922c3694d2SAntony Pavlov&gpio { 932c3694d2SAntony Pavlov status = "okay"; 942c3694d2SAntony Pavlov}; 952c3694d2SAntony Pavlov 962c3694d2SAntony Pavlov&usb { 972c3694d2SAntony Pavlov dr_mode = "host"; 982c3694d2SAntony Pavlov vbus-supply = <®_usb_vbus>; 992c3694d2SAntony Pavlov status = "okay"; 1002c3694d2SAntony Pavlov}; 1012c3694d2SAntony Pavlov 1022c3694d2SAntony Pavlov&usb_phy { 1032c3694d2SAntony Pavlov status = "okay"; 1042c3694d2SAntony Pavlov}; 1052c3694d2SAntony Pavlov 1062c3694d2SAntony Pavlov&spi { 1072c3694d2SAntony Pavlov num-chipselects = <1>; 1082c3694d2SAntony Pavlov status = "okay"; 1092c3694d2SAntony Pavlov 1102c3694d2SAntony Pavlov /* Spansion S25FL032PIF SPI flash */ 1112c3694d2SAntony Pavlov spiflash: s25sl032p@0 { 1122c3694d2SAntony Pavlov #address-cells = <1>; 1132c3694d2SAntony Pavlov #size-cells = <1>; 1142c3694d2SAntony Pavlov compatible = "spansion,s25sl032p", "jedec,spi-nor"; 1152c3694d2SAntony Pavlov spi-max-frequency = <104000000>; 1162c3694d2SAntony Pavlov reg = <0>; 1172c3694d2SAntony Pavlov }; 1182c3694d2SAntony Pavlov}; 119