bcm53xx: add profiling support
[openwrt/svn-archive/archive.git] / target / linux / bcm53xx / patches-3.18 / 134-ARM-BCM5301X-Add-DT-for-Asus-RT-AC56U.patch
1 From 97734a031475d5a7e8788435f8ce8374c459ef93 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <zajec5@gmail.com>
3 Date: Tue, 31 Mar 2015 17:26:17 +0200
4 Subject: [PATCH] ARM: BCM5301X: Add DT for Asus RT-AC56U
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 This patch is based on top of
12 ARM: BCM5301X: Add DT for Asus RT-AC68U
13 (please follow this order, to avoid Makefile conflict)
14 ---
15 arch/arm/boot/dts/Makefile | 1 +
16 arch/arm/boot/dts/bcm4708-asus-rt-ac56u.dts | 96 +++++++++++++++++++++++++++++
17 2 files changed, 97 insertions(+)
18 create mode 100644 arch/arm/boot/dts/bcm4708-asus-rt-ac56u.dts
19
20 --- a/arch/arm/boot/dts/Makefile
21 +++ b/arch/arm/boot/dts/Makefile
22 @@ -55,6 +55,7 @@ dtb-$(CONFIG_ARCH_ATLAS6) += atlas6-evb.
23 dtb-$(CONFIG_ARCH_AXXIA) += axm5516-amarillo.dtb
24 dtb-$(CONFIG_ARCH_BCM2835) += bcm2835-rpi-b.dtb
25 dtb-$(CONFIG_ARCH_BCM_5301X) += \
26 + bcm4708-asus-rt-ac56u.dtb \
27 bcm4708-asus-rt-ac68u.dtb \
28 bcm4708-buffalo-wzr-1750dhp.dtb \
29 bcm4708-luxul-xwc-1000.dtb \
30 --- /dev/null
31 +++ b/arch/arm/boot/dts/bcm4708-asus-rt-ac56u.dts
32 @@ -0,0 +1,96 @@
33 +/*
34 + * Broadcom BCM470X / BCM5301X ARM platform code.
35 + * DTS for Asus RT-AC56U
36 + *
37 + * Copyright (C) 2015 Rafał Miłecki <zajec5@gmail.com>
38 + *
39 + * Licensed under the GNU/GPL. See COPYING for details.
40 + */
41 +
42 +/dts-v1/;
43 +
44 +#include "bcm4708.dtsi"
45 +
46 +/ {
47 + compatible = "asus,rt-ac56u", "brcm,bcm4708";
48 + model = "Asus RT-AC56U (BCM4708)";
49 +
50 + chosen {
51 + bootargs = "console=ttyS0,115200";
52 + };
53 +
54 + memory {
55 + reg = <0x00000000 0x08000000>;
56 + };
57 +
58 + leds {
59 + compatible = "gpio-leds";
60 +
61 + usb3 {
62 + label = "bcm53xx:blue:usb3";
63 + gpios = <&chipcommon 0 GPIO_ACTIVE_LOW>;
64 + linux,default-trigger = "default-off";
65 + };
66 +
67 + wan {
68 + label = "bcm53xx:blue:wan";
69 + gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>;
70 + linux,default-trigger = "default-off";
71 + };
72 +
73 + lan {
74 + label = "bcm53xx:blue:lan";
75 + gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>;
76 + linux,default-trigger = "default-off";
77 + };
78 +
79 + power {
80 + label = "bcm53xx:blue:power";
81 + gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
82 + linux,default-trigger = "default-on";
83 + };
84 +
85 + all {
86 + label = "bcm53xx:blue:all";
87 + gpios = <&chipcommon 4 GPIO_ACTIVE_LOW>;
88 + linux,default-trigger = "default-on";
89 + };
90 +
91 + 2ghz {
92 + label = "bcm53xx:blue:2ghz";
93 + gpios = <&chipcommon 6 GPIO_ACTIVE_LOW>;
94 + linux,default-trigger = "default-off";
95 + };
96 +
97 +
98 + usb2 {
99 + label = "bcm53xx:blue:usb2";
100 + gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>;
101 + linux,default-trigger = "default-off";
102 + };
103 + };
104 +
105 + gpio-keys {
106 + compatible = "gpio-keys";
107 + #address-cells = <1>;
108 + #size-cells = <0>;
109 +
110 + rfkill {
111 + label = "WiFi";
112 + linux,code = <KEY_RFKILL>;
113 + gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>;
114 + };
115 +
116 + restart {
117 + label = "Reset";
118 + linux,code = <KEY_RESTART>;
119 + gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
120 + };
121 +
122 + wps {
123 + label = "WPS";
124 + linux,code = <KEY_WPS_BUTTON>;
125 + gpios = <&chipcommon 15 GPIO_ACTIVE_LOW>;
126 + };
127 + };
128 +};