ath79: enable UART in SoC DTSI files
[openwrt/staging/jow.git] / target / linux / ath79 / dts / ar9132_tplink_tl-wr1043nd-v1.dts
1 // SPDX-License-Identifier: GPL-2.0-only
2
3 #include "ar9132.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "tplink,tl-wr1043nd-v1", "qca,ar9132";
10 model = "TP-Link TL-WR1043ND v1";
11
12 aliases {
13 led-boot = &led_system;
14 led-failsafe = &led_system;
15 led-running = &led_system;
16 led-upgrade = &led_system;
17 label-mac-device = &eth0;
18 };
19
20 extosc: ref {
21 compatible = "fixed-clock";
22 #clock-cells = <0>;
23 clock-frequency = <40000000>;
24 };
25
26 keys {
27 compatible = "gpio-keys";
28
29 reset {
30 label = "reset";
31 linux,code = <KEY_RESTART>;
32 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
33 debounce-interval = <60>;
34 };
35
36 qss {
37 label = "qss";
38 linux,code = <KEY_WPS_BUTTON>;
39 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
40 debounce-interval = <60>;
41 };
42 };
43
44 leds {
45 compatible = "gpio-leds";
46
47 usb {
48 label = "green:usb";
49 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
50 trigger-sources = <&hub_port>;
51 linux,default-trigger = "usbport";
52 };
53
54 led_system: system {
55 label = "green:system";
56 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
57 linux,default-trigger = "heartbeat";
58 };
59
60 qss {
61 label = "green:qss";
62 gpios = <&gpio 5 GPIO_ACTIVE_HIGH>;
63 };
64
65 wlan {
66 label = "green:wlan";
67 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
68 linux,default-trigger = "phy0tpt";
69 };
70 };
71
72 rtl8366rb {
73 compatible = "realtek,rtl8366rb";
74 gpio-sda = <&gpio 18 GPIO_ACTIVE_HIGH>;
75 gpio-sck = <&gpio 19 GPIO_ACTIVE_HIGH>;
76
77 resets = <&rst 8>;
78 reset-names = "switch";
79 };
80 };
81
82 &pll {
83 clocks = <&extosc>;
84 };
85
86 &usb {
87 #address-cells = <1>;
88 #size-cells = <0>;
89 status = "okay";
90
91 hub_port: port@1 {
92 reg = <1>;
93 #trigger-source-cells = <0>;
94 };
95 };
96
97 &usb_phy {
98 status = "okay";
99 };
100
101 &spi {
102 status = "okay";
103
104 flash@0 {
105 compatible = "jedec,spi-nor";
106 reg = <0>;
107 spi-max-frequency = <25000000>;
108 m25p,fast-read;
109
110 partitions {
111 compatible = "fixed-partitions";
112 #address-cells = <1>;
113 #size-cells = <1>;
114
115 uboot: partition@0 {
116 label = "u-boot";
117 reg = <0x000000 0x020000>;
118 read-only;
119 };
120
121 partition@20000 {
122 compatible = "tplink,firmware";
123 label = "firmware";
124 reg = <0x020000 0x7D0000>;
125 };
126
127 art: partition@7F0000 {
128 label = "art";
129 reg = <0x7F0000 0x010000>;
130 read-only;
131 };
132 };
133 };
134 };
135
136 &eth0 {
137 status = "okay";
138
139 phy-mode = "rgmii";
140 mtd-mac-address = <&uboot 0x1fc00>;
141
142 fixed-link {
143 speed = <1000>;
144 full-duplex;
145 };
146 };
147
148 &wmac {
149 status = "okay";
150
151 mtd-cal-data = <&art 0x1000>;
152 mtd-mac-address = <&uboot 0x1fc00>;
153 };