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/ "fsl/p1010si-pre.dtsi"
15 model = "TP-Link TL-WDR4900 v1";
16 compatible = "tplink,tl-wdr4900-v1";
19 bootargs = "console=ttyS0,115200";
21 stdout-path = "/soc@ffe00000/serial@4500";
27 led-boot = &system_green;
28 led-failsafe = &system_green;
29 led-running = &system_green;
30 led-upgrade = &system_green;
31 label-mac-device = &enet0;
35 device_type = "memory";
39 ranges = <0x0 0x0 0xffe00000 0x100000>;
43 compatible = "jedec,spi-nor";
45 spi-max-frequency = <25000000>;
48 compatible = "fixed-partitions";
53 reg = <0x0 0x0050000>;
59 reg = <0x00050000 0x00010000>;
65 compatible = "tplink,firmware";
66 reg = <0x00060000 0x00f80000>;
71 reg = <0x00fe0000 0x00010000>;
77 reg = <0x00ff0000 0x00010000>;
85 gpio0: gpio-controller@fc00 {
94 phy0: ethernet-phy@0 {
96 qca,ar8327-initvals = <
97 0x00004 0x07600000 /* PAD0_MODE */
98 0x00008 0x00000000 /* PAD5_MODE */
99 0x0000c 0x01000000 /* PAD6_MODE */
100 0x00010 0x40000000 /* POWER_ON_STRAP */
101 0x00050 0xcf35cf35 /* LED_CTRL0 */
102 0x00054 0xcf35cf35 /* LED_CTRL1 */
103 0x00058 0xcf35cf35 /* LED_CTRL2 */
104 0x0005c 0x03ffff00 /* LED_CTRL3 */
105 0x0007c 0x0000007e /* PORT0_STATUS */
106 0x00094 0x00000200 /* PORT6_STATUS */
119 enet0: ethernet@b0000 {
120 phy-handle = <&phy0>;
121 phy-connection-type = "rgmii-id";
122 mtd-mac-address = <&uboot 0x4fc00>;
125 enet1: ethernet@b1000 {
129 enet2: ethernet@b2000 {
137 serial1: serial@4600 {
150 compatible = "fsl,etsec-ptp";
151 reg = <0xb0e00 0xb0>;
152 interrupts = <68 2 0 0 69 2 0 0 70 2 0 0>;
154 fsl,tclk-period = <5>;
156 fsl,tmr-add = <0xcccccccd>;
157 fsl,tmr-fiper1 = <0x3b9ac9fb>; /* 1PPS */
158 fsl,tmr-fiper2 = <0x00018696>;
159 fsl,max-adj = <249999999>;
163 pci0: pcie@ffe09000 {
164 reg = <0 0xffe09000 0 0x1000>;
165 ranges = <0x2000000 0x0 0xa0000000 0 0xa0000000 0x0 0x20000000
166 0x1000000 0x0 0x00000000 0 0xffc10000 0x0 0x10000>;
168 ranges = <0x2000000 0x0 0xa0000000
169 0x2000000 0x0 0xa0000000
178 pci1: pcie@ffe0a000 {
179 reg = <0 0xffe0a000 0 0x1000>;
180 ranges = <0x2000000 0x0 0x80000000 0 0x80000000 0x0 0x20000000
181 0x1000000 0x0 0x00000000 0 0xffc00000 0x0 0x10000>;
183 ranges = <0x2000000 0x0 0x80000000
184 0x2000000 0x0 0x80000000
198 compatible = "gpio-leds";
200 system_green: system {
201 gpios = <&gpio0 2 1>; /* active low */
202 label = "tp-link:blue:system";
206 gpios = <&gpio0 3 1>; /* active low */
207 label = "tp-link:green:usb1";
211 gpios = <&gpio0 4 1>; /* active low */
212 label = "tp-link:green:usb2";
216 gpios = <&gpio0 10 1>; /* active low */
217 label = "tp-link:usb:power";
222 compatible = "gpio-keys";
225 label = "Reset button";
226 gpios = <&gpio0 5 1>; /* active low */
227 linux,code = <0x198>; /* KEY_RESTART */
231 label = "RFKILL switch";
232 gpios = <&gpio0 11 1>; /* active low */
233 linux,code = <0xf7>; /* RFKill */
238 /include/ "fsl/p1010si-post.dtsi"
243 bus-frequency = <399999996>;
244 timebase-frequency = <49999999>;
245 clock-frequency = <799999992>;
250 reg = <0x0 0x0 0x0 0x8000000>;
254 bus-frequency = <399999996>;
257 clock-frequency = <399999996>;
261 clock-frequency = <399999996>;
265 clock-frequency = <399999996>;
271 * The TL-WDR4900 v1 uses the NXP (Freescale) P1014 SoC which is closely
272 * related to the P1010.
274 * NXP QP1010FS.pdf "QorIQ P1010 and P1014 Communications Processors"
275 * datasheet states that the P1014 does not include the accelerated crypto
276 * module (CAAM/SEC4) which is present in the P1010.
278 * NXP Appliation Note AN4938 Rev. 2 implies that some P1014 may contain the
279 * SEC4 module, but states that SoCs with System Version Register values
280 * 0x80F10110 or 0x80F10120 do not have the security feature.
282 * All v1.3 TL-WDR4900 tested have SVR == 0x80F10110 which AN4938 describes
283 * as: core rev 1.0, "P1014 (without security)".
285 * The SVR value is reported by uboot on the serial console.
290 /delete-node/ crypto@30000; /* Pulled in by p1010si-post */