summaryrefslogtreecommitdiffstats
path: root/arch/mips/dts/ar9344-tl-wdr4300-v1.7.dts
diff options
context:
space:
mode:
authorOleksij Rempel <linux@rempel-privat.de>2017-09-14 10:25:07 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2017-09-20 08:30:15 +0200
commita93762eb31b6ccbdcc7915e694548a065c50bcbc (patch)
treea405c966dced6dbd61cb7e64a6decdd43c64e9e3 /arch/mips/dts/ar9344-tl-wdr4300-v1.7.dts
parente9edd1ad49eda3bf1c7f973480593baf9c739ecb (diff)
downloadbarebox-a93762eb31b6ccbdcc7915e694548a065c50bcbc.tar.gz
barebox-a93762eb31b6ccbdcc7915e694548a065c50bcbc.tar.xz
MIPS: dts: tl_wdr4300: rename it to tl_wdr4300 v1.7
The minor version of TP-Link are usually big enough that it need extra vendor partition on the flash with additional configurations like PLL, CPU and RAM freqs. Visually I was able to confirm at least different SPI Flash and RAM chips. Signed-off-by: Oleksij Rempel <linux@rempel-privat.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/mips/dts/ar9344-tl-wdr4300-v1.7.dts')
-rw-r--r--arch/mips/dts/ar9344-tl-wdr4300-v1.7.dts67
1 files changed, 67 insertions, 0 deletions
diff --git a/arch/mips/dts/ar9344-tl-wdr4300-v1.7.dts b/arch/mips/dts/ar9344-tl-wdr4300-v1.7.dts
new file mode 100644
index 0000000000..d16cab0052
--- /dev/null
+++ b/arch/mips/dts/ar9344-tl-wdr4300-v1.7.dts
@@ -0,0 +1,67 @@
+/dts-v1/;
+
+#include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
+
+#include "ar9344.dtsi"
+
+/ {
+ model = "TP-Link WDR4300 v1.7";
+ compatible = "tplink,tl-wdr4300", "tplink,tl-wdr4300-v1.7";
+
+ aliases {
+ serial0 = &uart0;
+ spiflash = &spiflash;
+ };
+
+ memory@0 {
+ device_type = "memory";
+ reg = <0x0 0x8000000>;
+ };
+
+ chosen {
+ stdout-path = &uart0;
+
+ environment@0 {
+ compatible = "barebox,environment";
+ device-path = &spiflash, "partname:barebox-environment";
+ };
+ };
+};
+
+&ref {
+ clock-frequency = <40000000>;
+};
+
+&uart0 {
+ status = "okay";
+ clock-frequency = <40000000>;
+};
+
+&spi {
+ num-chipselects = <1>;
+ status = "okay";
+
+ /* Winbond W25Q64CV SPI flash */
+ spiflash: w25q64cv@0 {
+ #address-cells = <1>;
+ #size-cells = <1>;
+ compatible = "jedec,spi-nor", "winbond,w25q64cv";
+ spi-max-frequency = <104000000>;
+ reg = <0>;
+
+ partition@0 {
+ label = "barebox";
+ reg = <0 0x80000>;
+ };
+
+ partition@80000 {
+ label = "barebox-environment";
+ reg = <0x80000 0x10000>;
+ };
+ };
+};
+
+&mac0 {
+ status = "okay";
+};