bcm53xx: prepare to support Asus RT-N18U
[openwrt/openwrt.git] / target / linux / bcm53xx / patches-3.14 / 304-ARM-BCM5301X-Add-DT-for-Asus-RT-N18U.patch
1 From 14126edd3b5cd6e08e46857283724f783db92c99 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <zajec5@gmail.com>
3 Date: Thu, 9 Oct 2014 18:16:26 +0200
4 Subject: [PATCH] ARM: BCM5301X: Add DT for Asus RT-N18U
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
10 ---
11 arch/arm/boot/dts/Makefile | 1 +
12 arch/arm/boot/dts/bcm47081-asus-rt-n18u.dts | 35 +++++++++++++++++++++++++++++
13 arch/arm/boot/dts/bcm47081.dtsi | 26 +++++++++++++++++++++
14 3 files changed, 62 insertions(+)
15 create mode 100644 arch/arm/boot/dts/bcm47081-asus-rt-n18u.dts
16 create mode 100644 arch/arm/boot/dts/bcm47081.dtsi
17
18 diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
19 index 17c717b..77f932d 100644
20 --- a/arch/arm/boot/dts/Makefile
21 +++ b/arch/arm/boot/dts/Makefile
22 @@ -51,6 +51,7 @@ dtb-$(CONFIG_ARCH_BCM_MOBILE) += bcm11351-brt.dtb \
23 bcm28155-ap.dtb
24 dtb-$(CONFIG_ARCH_BCM2835) += bcm2835-rpi-b.dtb
25 dtb-$(CONFIG_ARCH_BCM_5301X) += \
26 + bcm47081-asus-rt-n18u.dtb \
27 bcm4708-buffalo-wzr-1750dhp.dtb \
28 bcm4708-netgear-r6250.dtb \
29 bcm4708-netgear-r6300-v2.dtb
30 diff --git a/arch/arm/boot/dts/bcm47081-asus-rt-n18u.dts b/arch/arm/boot/dts/bcm47081-asus-rt-n18u.dts
31 new file mode 100644
32 index 0000000..e6347a9
33 --- /dev/null
34 +++ b/arch/arm/boot/dts/bcm47081-asus-rt-n18u.dts
35 @@ -0,0 +1,35 @@
36 +/*
37 + * Broadcom BCM470X / BCM5301X arm platform code.
38 + * DTS for Asus RT-N18U
39 + *
40 + * Copyright © 2014 Rafał Miłecki <zajec5@gmail.com>
41 + *
42 + * Licensed under the GNU/GPL. See COPYING for details.
43 + */
44 +
45 +/dts-v1/;
46 +
47 +#include "bcm47081.dtsi"
48 +
49 +/ {
50 + compatible = "asus,rt-n18u", "brcm,bcm47081";
51 + model = "Asus RT-N18U (BCM47081)";
52 +
53 + chosen {
54 + bootargs = "console=ttyS0,115200";
55 + };
56 +
57 + memory {
58 + reg = <0x00000000 0x08000000>;
59 + };
60 +
61 + chipcommonA {
62 + uart0: serial@0300 {
63 + status = "okay";
64 + };
65 +
66 + uart1: serial@0400 {
67 + status = "okay";
68 + };
69 + };
70 +};
71 diff --git a/arch/arm/boot/dts/bcm47081.dtsi b/arch/arm/boot/dts/bcm47081.dtsi
72 new file mode 100644
73 index 0000000..f720012
74 --- /dev/null
75 +++ b/arch/arm/boot/dts/bcm47081.dtsi
76 @@ -0,0 +1,26 @@
77 +/*
78 + * Broadcom BCM470X / BCM5301X ARM platform code.
79 + * DTS for BCM47081 SoC.
80 + *
81 + * Copyright © 2014 Rafał Miłecki <zajec5@gmail.com>
82 + *
83 + * Licensed under the GNU/GPL. See COPYING for details.
84 + */
85 +
86 +#include "bcm5301x.dtsi"
87 +
88 +/ {
89 + compatible = "brcm,bcm47081";
90 +
91 + cpus {
92 + #address-cells = <1>;
93 + #size-cells = <0>;
94 +
95 + cpu@0 {
96 + device_type = "cpu";
97 + compatible = "arm,cortex-a9";
98 + next-level-cache = <&L2>;
99 + reg = <0x0>;
100 + };
101 + };
102 +};
103 --
104 1.8.4.5
105