1b2441318SGreg Kroah-Hartman// SPDX-License-Identifier: GPL-2.0 2a5fcc652SAlban Bedel/dts-v1/; 3a5fcc652SAlban Bedel 4a5fcc652SAlban Bedel#include <dt-bindings/gpio/gpio.h> 5a5fcc652SAlban Bedel#include <dt-bindings/input/input.h> 6a5fcc652SAlban Bedel 7a5fcc652SAlban Bedel#include "ar9132.dtsi" 8a5fcc652SAlban Bedel 9a5fcc652SAlban Bedel/ { 10a5fcc652SAlban Bedel compatible = "tplink,tl-wr1043nd-v1", "qca,ar9132"; 11a5fcc652SAlban Bedel model = "TP-Link TL-WR1043ND Version 1"; 12a5fcc652SAlban Bedel 13a5fcc652SAlban Bedel memory@0 { 14a5fcc652SAlban Bedel device_type = "memory"; 15a5fcc652SAlban Bedel reg = <0x0 0x2000000>; 16a5fcc652SAlban Bedel }; 17a5fcc652SAlban Bedel 18f7f797cfSAntony Pavlov extosc: ref { 19a5fcc652SAlban Bedel compatible = "fixed-clock"; 20a5fcc652SAlban Bedel #clock-cells = <0>; 21a5fcc652SAlban Bedel clock-frequency = <40000000>; 22a5fcc652SAlban Bedel }; 23a5fcc652SAlban Bedel 24a5fcc652SAlban Bedel gpio-keys { 2524babe69SAlban Bedel compatible = "gpio-keys"; 26a5fcc652SAlban Bedel 275ee46bfbSKrzysztof Kozlowski button-0 { 28a5fcc652SAlban Bedel label = "reset"; 29a5fcc652SAlban Bedel linux,code = <KEY_RESTART>; 30a5fcc652SAlban Bedel gpios = <&gpio 3 GPIO_ACTIVE_LOW>; 31a5fcc652SAlban Bedel debounce-interval = <60>; 32a5fcc652SAlban Bedel }; 33a5fcc652SAlban Bedel 345ee46bfbSKrzysztof Kozlowski button-1 { 35a5fcc652SAlban Bedel label = "qss"; 36a5fcc652SAlban Bedel linux,code = <KEY_WPS_BUTTON>; 37a5fcc652SAlban Bedel gpios = <&gpio 7 GPIO_ACTIVE_LOW>; 38a5fcc652SAlban Bedel debounce-interval = <60>; 39a5fcc652SAlban Bedel }; 40a5fcc652SAlban Bedel }; 41a5fcc652SAlban Bedel 42a5fcc652SAlban Bedel leds { 43a5fcc652SAlban Bedel compatible = "gpio-leds"; 44*09e61efdSArınç ÜNAL led-0 { 45a5fcc652SAlban Bedel label = "tp-link:green:usb"; 46a5fcc652SAlban Bedel gpios = <&gpio 1 GPIO_ACTIVE_LOW>; 47a5fcc652SAlban Bedel }; 48a5fcc652SAlban Bedel 49*09e61efdSArınç ÜNAL led-1 { 50a5fcc652SAlban Bedel label = "tp-link:green:system"; 51a5fcc652SAlban Bedel gpios = <&gpio 2 GPIO_ACTIVE_LOW>; 52a5fcc652SAlban Bedel linux,default-trigger = "heartbeat"; 53a5fcc652SAlban Bedel }; 54a5fcc652SAlban Bedel 55*09e61efdSArınç ÜNAL led-2 { 56a5fcc652SAlban Bedel label = "tp-link:green:qss"; 57a5fcc652SAlban Bedel gpios = <&gpio 5 GPIO_ACTIVE_HIGH>; 58a5fcc652SAlban Bedel }; 59a5fcc652SAlban Bedel 60*09e61efdSArınç ÜNAL led-3 { 61a5fcc652SAlban Bedel label = "tp-link:green:wlan"; 62a5fcc652SAlban Bedel gpios = <&gpio 9 GPIO_ACTIVE_LOW>; 63a5fcc652SAlban Bedel }; 64a5fcc652SAlban Bedel }; 65a5fcc652SAlban Bedel}; 6683fe8384SAntony Pavlov 6783fe8384SAntony Pavlov&uart { 6883fe8384SAntony Pavlov status = "okay"; 6983fe8384SAntony Pavlov}; 7083fe8384SAntony Pavlov 7183fe8384SAntony Pavlov&pll { 7283fe8384SAntony Pavlov clocks = <&extosc>; 7383fe8384SAntony Pavlov}; 7483fe8384SAntony Pavlov 7583fe8384SAntony Pavlov&usb { 7683fe8384SAntony Pavlov status = "okay"; 7783fe8384SAntony Pavlov}; 7883fe8384SAntony Pavlov 7983fe8384SAntony Pavlov&usb_phy { 8083fe8384SAntony Pavlov status = "okay"; 8183fe8384SAntony Pavlov}; 8283fe8384SAntony Pavlov 8383fe8384SAntony Pavlov&spi { 8483fe8384SAntony Pavlov status = "okay"; 8583fe8384SAntony Pavlov num-cs = <1>; 8683fe8384SAntony Pavlov 8783fe8384SAntony Pavlov flash@0 { 8883fe8384SAntony Pavlov #address-cells = <1>; 8983fe8384SAntony Pavlov #size-cells = <1>; 9083fe8384SAntony Pavlov compatible = "s25sl064a"; 9183fe8384SAntony Pavlov reg = <0>; 9283fe8384SAntony Pavlov spi-max-frequency = <25000000>; 9383fe8384SAntony Pavlov 9483fe8384SAntony Pavlov partition@0 { 9583fe8384SAntony Pavlov label = "u-boot"; 9683fe8384SAntony Pavlov reg = <0x000000 0x020000>; 9783fe8384SAntony Pavlov }; 9883fe8384SAntony Pavlov 9983fe8384SAntony Pavlov partition@1 { 10083fe8384SAntony Pavlov label = "firmware"; 10183fe8384SAntony Pavlov reg = <0x020000 0x7D0000>; 10283fe8384SAntony Pavlov }; 10383fe8384SAntony Pavlov 10483fe8384SAntony Pavlov partition@2 { 10583fe8384SAntony Pavlov label = "art"; 10683fe8384SAntony Pavlov reg = <0x7F0000 0x010000>; 10783fe8384SAntony Pavlov read-only; 10883fe8384SAntony Pavlov }; 10983fe8384SAntony Pavlov }; 11083fe8384SAntony Pavlov}; 111