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 = "tp-link,TL-WDR4900v1";
19 bootargs = "console=ttyS0,115200";
21 linux,stdout-path = "/soc@ffe00000/serial@4500";
30 device_type = "memory";
34 ranges = <0x0 0x0 0xffe00000 0x100000>;
40 compatible = "spansion,s25fl129p1";
42 spi-max-frequency = <25000000>;
45 reg = <0x0 0x0050000>;
51 reg = <0x00050000 0x00010000>;
57 reg = <0x00060000 0x002a0000>;
62 reg = <0x00300000 0x00ce0000>;
66 config: config@fe0000 {
67 reg = <0x00fe0000 0x00010000>;
73 reg = <0x00ff0000 0x00010000>;
79 reg = <0x00060000 0x00f80000>;
85 gpio0: gpio-controller@f000 {
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_STRIP */
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 */
118 enet0: ethernet@b0000 {
119 phy-handle = <&phy0>;
120 phy-connection-type = "rgmii-id";
121 mtd-mac-address = <&config 0x14c>;
124 enet1: ethernet@b1000 {
128 enet2: ethernet@b2000 {
136 serial1: serial@4600 {
149 pci0: pcie@ffe09000 {
150 reg = <0 0xffe09000 0 0x1000>;
151 ranges = <0x2000000 0x0 0xa0000000 0 0xa0000000 0x0 0x20000000
152 0x1000000 0x0 0x00000000 0 0xffc10000 0x0 0x10000>;
154 ranges = <0x2000000 0x0 0xa0000000
155 0x2000000 0x0 0xa0000000
164 pci1: pcie@ffe0a000 {
165 reg = <0 0xffe0a000 0 0x1000>;
166 ranges = <0x2000000 0x0 0x80000000 0 0x80000000 0x0 0x20000000
167 0x1000000 0x0 0x00000000 0 0xffc00000 0x0 0x10000>;
169 ranges = <0x2000000 0x0 0x80000000
170 0x2000000 0x0 0x80000000
184 compatible = "gpio-leds";
187 gpios = <&gpio0 2 1>; /* active low */
188 label = "tp-link:blue:system";
192 gpios = <&gpio0 3 1>; /* active low */
193 label = "tp-link:green:usb1";
197 gpios = <&gpio0 4 1>; /* active low */
198 label = "tp-link:green:usb2";
203 compatible = "gpio-keys";
206 label = "Reset button";
207 gpios = <&gpio0 5 1>; /* active low */
208 linux,code = <0x198>; /* KEY_RESTART */
213 /include/ "fsl/p1010si-post.dtsi"