0001 // SPDX-License-Identifier: GPL-2.0
0002 /dts-v1/;
0003
0004 #include <dt-bindings/gpio/gpio.h>
0005 #include <dt-bindings/input/input.h>
0006
0007 #include "ar9132.dtsi"
0008
0009 / {
0010 compatible = "tplink,tl-wr1043nd-v1", "qca,ar9132";
0011 model = "TP-Link TL-WR1043ND Version 1";
0012
0013 memory@0 {
0014 device_type = "memory";
0015 reg = <0x0 0x2000000>;
0016 };
0017
0018 extosc: ref {
0019 compatible = "fixed-clock";
0020 #clock-cells = <0>;
0021 clock-frequency = <40000000>;
0022 };
0023
0024 gpio-keys {
0025 compatible = "gpio-keys";
0026
0027 button-0 {
0028 label = "reset";
0029 linux,code = <KEY_RESTART>;
0030 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
0031 debounce-interval = <60>;
0032 };
0033
0034 button-1 {
0035 label = "qss";
0036 linux,code = <KEY_WPS_BUTTON>;
0037 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
0038 debounce-interval = <60>;
0039 };
0040 };
0041
0042 leds {
0043 compatible = "gpio-leds";
0044 led@0 {
0045 label = "tp-link:green:usb";
0046 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
0047 };
0048
0049 led@1 {
0050 label = "tp-link:green:system";
0051 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
0052 linux,default-trigger = "heartbeat";
0053 };
0054
0055 led@2 {
0056 label = "tp-link:green:qss";
0057 gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
0058 };
0059
0060 led@3 {
0061 label = "tp-link:green:wlan";
0062 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
0063 };
0064 };
0065 };
0066
0067 &uart {
0068 status = "okay";
0069 };
0070
0071 &pll {
0072 clocks = <&extosc>;
0073 };
0074
0075 &usb {
0076 status = "okay";
0077 };
0078
0079 &usb_phy {
0080 status = "okay";
0081 };
0082
0083 &spi {
0084 status = "okay";
0085 num-cs = <1>;
0086
0087 flash@0 {
0088 #address-cells = <1>;
0089 #size-cells = <1>;
0090 compatible = "s25sl064a";
0091 reg = <0>;
0092 spi-max-frequency = <25000000>;
0093
0094 partition@0 {
0095 label = "u-boot";
0096 reg = <0x000000 0x020000>;
0097 };
0098
0099 partition@1 {
0100 label = "firmware";
0101 reg = <0x020000 0x7D0000>;
0102 };
0103
0104 partition@2 {
0105 label = "art";
0106 reg = <0x7F0000 0x010000>;
0107 read-only;
0108 };
0109 };
0110 };