2 * TP-Link TL-WDR4900 v1 Device Tree Source
4 * Copyright 2013 Gabor Juhos <juhosg@openwrt.org>
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation; either version 2 of the License, or (at your
9 * option) any later version.
12 #include <dt-bindings/input/input.h>
13 #include <dt-bindings/gpio/gpio.h>
15 /include/ "fsl/p1010si-pre.dtsi"
18 model = "TP-Link TL-WDR4900 v1";
19 compatible = "tplink,tl-wdr4900-v1";
22 bootargs = "console=ttyS0,115200";
24 stdout-path = "/soc@ffe00000/serial@4500";
30 led-boot = &system_green;
31 led-failsafe = &system_green;
32 led-running = &system_green;
33 led-upgrade = &system_green;
34 label-mac-device = &enet0;
38 device_type = "memory";
42 ranges = <0x0 0x0 0xffe00000 0x100000>;
46 compatible = "jedec,spi-nor";
48 spi-max-frequency = <25000000>;
51 compatible = "fixed-partitions";
56 reg = <0x0 0x0050000>;
60 compatible = "nvmem-cells";
64 macaddr_uboot_4fc00: macaddr@4fc00 {
70 reg = <0x00050000 0x00010000>;
76 compatible = "tplink,firmware";
77 reg = <0x00060000 0x00f80000>;
82 reg = <0x00fe0000 0x00010000>;
88 reg = <0x00ff0000 0x00010000>;
96 gpio0: gpio-controller@fc00 {
105 phy0: ethernet-phy@0 {
107 qca,ar8327-initvals = <
108 0x00004 0x07600000 /* PAD0_MODE */
109 0x00008 0x00000000 /* PAD5_MODE */
110 0x0000c 0x01000000 /* PAD6_MODE */
111 0x00010 0x40000000 /* POWER_ON_STRAP */
112 0x00050 0xcf35cf35 /* LED_CTRL0 */
113 0x00054 0xcf35cf35 /* LED_CTRL1 */
114 0x00058 0xcf35cf35 /* LED_CTRL2 */
115 0x0005c 0x03ffff00 /* LED_CTRL3 */
116 0x0007c 0x0000007e /* PORT0_STATUS */
117 0x00094 0x00000200 /* PORT6_STATUS */
130 enet0: ethernet@b0000 {
131 phy-handle = <&phy0>;
132 phy-connection-type = "rgmii-id";
133 nvmem-cells = <&macaddr_uboot_4fc00>;
134 nvmem-cell-names = "mac-address";
137 enet1: ethernet@b1000 {
141 enet2: ethernet@b2000 {
149 serial1: serial@4600 {
162 compatible = "fsl,etsec-ptp";
163 reg = <0xb0e00 0xb0>;
164 interrupts = <68 2 0 0 69 2 0 0 70 2 0 0>;
166 fsl,tclk-period = <5>;
168 fsl,tmr-add = <0xcccccccd>;
169 fsl,tmr-fiper1 = <0x3b9ac9fb>; /* 1PPS */
170 fsl,tmr-fiper2 = <0x00018696>;
171 fsl,max-adj = <249999999>;
175 pci0: pcie@ffe09000 {
176 reg = <0 0xffe09000 0 0x1000>;
177 ranges = <0x2000000 0x0 0xa0000000 0 0xa0000000 0x0 0x20000000
178 0x1000000 0x0 0x00000000 0 0xffc10000 0x0 0x10000>;
180 ranges = <0x2000000 0x0 0xa0000000
181 0x2000000 0x0 0xa0000000
190 pci1: pcie@ffe0a000 {
191 reg = <0 0xffe0a000 0 0x1000>;
192 ranges = <0x2000000 0x0 0x80000000 0 0x80000000 0x0 0x20000000
193 0x1000000 0x0 0x00000000 0 0xffc00000 0x0 0x10000>;
195 ranges = <0x2000000 0x0 0x80000000
196 0x2000000 0x0 0x80000000
210 compatible = "gpio-leds";
212 system_green: system {
213 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
214 label = "tp-link:blue:system";
218 gpios = <&gpio0 3 GPIO_ACTIVE_LOW>;
219 label = "tp-link:green:usb1";
223 gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
224 label = "tp-link:green:usb2";
228 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
229 label = "tp-link:usb:power";
234 compatible = "gpio-keys";
237 label = "Reset button";
238 gpios = <&gpio0 5 GPIO_ACTIVE_LOW>;
239 linux,code = <KEY_RESTART>;
243 label = "RFKILL switch";
244 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
245 linux,code = <KEY_RFKILL>;
250 /include/ "fsl/p1010si-post.dtsi"
255 bus-frequency = <399999996>;
256 timebase-frequency = <49999999>;
257 clock-frequency = <799999992>;
262 reg = <0x0 0x0 0x0 0x8000000>;
266 bus-frequency = <399999996>;
269 clock-frequency = <399999996>;
273 clock-frequency = <399999996>;
277 clock-frequency = <399999996>;
283 * The TL-WDR4900 v1 uses the NXP (Freescale) P1014 SoC which is closely
284 * related to the P1010.
286 * NXP QP1010FS.pdf "QorIQ P1010 and P1014 Communications Processors"
287 * datasheet states that the P1014 does not include the accelerated crypto
288 * module (CAAM/SEC4) which is present in the P1010.
290 * NXP Appliation Note AN4938 Rev. 2 implies that some P1014 may contain the
291 * SEC4 module, but states that SoCs with System Version Register values
292 * 0x80F10110 or 0x80F10120 do not have the security feature.
294 * All v1.3 TL-WDR4900 tested have SVR == 0x80F10110 which AN4938 describes
295 * as: core rev 1.0, "P1014 (without security)".
297 * The SVR value is reported by uboot on the serial console.
302 /delete-node/ crypto@30000; /* Pulled in by p1010si-post */
307 * For the OpenWrt 22.03 release, since Linux 5.10.138 now uses
308 * aliases to determine PCI domain numbers, drop aliases so as not to
309 * change the sysfs path of our wireless netdevs.
314 /delete-property/ pci0;
315 /delete-property/ pci1;