d3b425d7dafecda627f48c3755ed062b348077ac
[openwrt/openwrt.git] / target / linux / bcm53xx / patches-3.18 / 133-ARM-BCM5301X-Add-DT-for-Asus-RT-AC87U.patch
1 From 1f970a144215ec8bbd96a3d79aea8a19ed8d109a Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <zajec5@gmail.com>
3 Date: Sat, 16 May 2015 16:51:51 +0200
4 Subject: [PATCH] ARM: BCM5301X: Add DT for Asus RT-AC87U
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 Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
11 ---
12 arch/arm/boot/dts/Makefile | 1 +
13 arch/arm/boot/dts/bcm4709-asus-rt-ac87u.dts | 65 +++++++++++++++++++++++++++++
14 2 files changed, 66 insertions(+)
15 create mode 100644 arch/arm/boot/dts/bcm4709-asus-rt-ac87u.dts
16
17 diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
18 index 4802376..4e76f68 100644
19 --- a/arch/arm/boot/dts/Makefile
20 +++ b/arch/arm/boot/dts/Makefile
21 @@ -65,6 +65,7 @@ dtb-$(CONFIG_ARCH_BCM_5301X) += \
22 bcm47081-asus-rt-n18u.dtb \
23 bcm47081-buffalo-wzr-600dhp2.dtb \
24 bcm47081-buffalo-wzr-900dhp.dtb \
25 + bcm4709-asus-rt-ac87u.dtb \
26 bcm4709-buffalo-wxr-1900dhp.dtb \
27 bcm4709-netgear-r8000.dtb
28 dtb-$(CONFIG_ARCH_BCM_63XX) += bcm963138dvt.dtb
29 diff --git a/arch/arm/boot/dts/bcm4709-asus-rt-ac87u.dts b/arch/arm/boot/dts/bcm4709-asus-rt-ac87u.dts
30 new file mode 100644
31 index 0000000..aedf3c4
32 --- /dev/null
33 +++ b/arch/arm/boot/dts/bcm4709-asus-rt-ac87u.dts
34 @@ -0,0 +1,65 @@
35 +/*
36 + * Broadcom BCM470X / BCM5301X ARM platform code.
37 + * DTS for Asus RT-AC87U
38 + *
39 + * Copyright (C) 2015 Rafał Miłecki <zajec5@gmail.com>
40 + *
41 + * Licensed under the GNU/GPL. See COPYING for details.
42 + */
43 +
44 +/dts-v1/;
45 +
46 +#include "bcm4708.dtsi"
47 +
48 +/ {
49 + compatible = "asus,rt-ac87u", "brcm,bcm4709", "brcm,bcm4708";
50 + model = "Asus RT-AC87U";
51 +
52 + chosen {
53 + bootargs = "console=ttyS0,115200";
54 + };
55 +
56 + memory {
57 + reg = <0x00000000 0x08000000>;
58 + };
59 +
60 + leds {
61 + compatible = "gpio-leds";
62 +
63 + wps {
64 + label = "bcm53xx:blue:wps";
65 + gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>;
66 + linux,default-trigger = "default-off";
67 + };
68 +
69 + power {
70 + label = "bcm53xx:blue:power";
71 + gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
72 + linux,default-trigger = "default-on";
73 + };
74 +
75 + wan {
76 + label = "bcm53xx:red:wan";
77 + gpios = <&chipcommon 5 GPIO_ACTIVE_LOW>;
78 + linux,default-trigger = "default-off";
79 + };
80 + };
81 +
82 + gpio-keys {
83 + compatible = "gpio-keys";
84 + #address-cells = <1>;
85 + #size-cells = <0>;
86 +
87 + wps {
88 + label = "WPS";
89 + linux,code = <KEY_WPS_BUTTON>;
90 + gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>;
91 + };
92 +
93 + restart {
94 + label = "Reset";
95 + linux,code = <KEY_RESTART>;
96 + gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
97 + };
98 + };
99 +};
100 --
101 1.8.4.5
102