bcm53xx: add profiling support
[openwrt/svn-archive/archive.git] / target / linux / bcm53xx / patches-3.18 / 133-ARM-BCM5301X-Add-DT-for-Asus-RT-AC68U.patch
1 From c2ebc30d9633d80849e99f489497e4c862e532e5 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <zajec5@gmail.com>
3 Date: Sat, 28 Mar 2015 14:51:08 +0100
4 Subject: [PATCH V2] ARM: BCM5301X: Add DT for Asus RT-AC68U
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/bcm4708-asus-rt-ac68u.dts | 83 +++++++++++++++++++++++++++++
13 2 files changed, 84 insertions(+)
14 create mode 100644 arch/arm/boot/dts/bcm4708-asus-rt-ac68u.dts
15
16 --- a/arch/arm/boot/dts/Makefile
17 +++ b/arch/arm/boot/dts/Makefile
18 @@ -55,6 +55,7 @@ dtb-$(CONFIG_ARCH_ATLAS6) += atlas6-evb.
19 dtb-$(CONFIG_ARCH_AXXIA) += axm5516-amarillo.dtb
20 dtb-$(CONFIG_ARCH_BCM2835) += bcm2835-rpi-b.dtb
21 dtb-$(CONFIG_ARCH_BCM_5301X) += \
22 + bcm4708-asus-rt-ac68u.dtb \
23 bcm4708-buffalo-wzr-1750dhp.dtb \
24 bcm4708-luxul-xwc-1000.dtb \
25 bcm4708-netgear-r6250.dtb \
26 --- /dev/null
27 +++ b/arch/arm/boot/dts/bcm4708-asus-rt-ac68u.dts
28 @@ -0,0 +1,83 @@
29 +/*
30 + * Broadcom BCM470X / BCM5301X ARM platform code.
31 + * DTS for Asus RT-AC68U
32 + *
33 + * Copyright (C) 2015 Rafał Miłecki <zajec5@gmail.com>
34 + *
35 + * Licensed under the GNU/GPL. See COPYING for details.
36 + */
37 +
38 +/dts-v1/;
39 +
40 +#include "bcm4708.dtsi"
41 +
42 +/ {
43 + compatible = "asus,rt-ac68u", "brcm,bcm4708";
44 + model = "Asus RT-AC68U (BCM4708)";
45 +
46 + chosen {
47 + bootargs = "console=ttyS0,115200";
48 + };
49 +
50 + memory {
51 + reg = <0x00000000 0x08000000>;
52 + };
53 +
54 + leds {
55 + compatible = "gpio-leds";
56 +
57 + usb2 {
58 + label = "bcm53xx:blue:usb2";
59 + gpios = <&chipcommon 0 GPIO_ACTIVE_LOW>;
60 + linux,default-trigger = "default-off";
61 + };
62 +
63 + power {
64 + label = "bcm53xx:blue:power";
65 + gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
66 + linux,default-trigger = "default-on";
67 + };
68 +
69 + logo {
70 + label = "bcm53xx:white:logo";
71 + gpios = <&chipcommon 4 GPIO_ACTIVE_LOW>;
72 + linux,default-trigger = "default-on";
73 + };
74 +
75 + usb3 {
76 + label = "bcm53xx:blue:usb3";
77 + gpios = <&chipcommon 14 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 + brightness {
88 + label = "Backlight";
89 + linux,code = <KEY_BRIGHTNESS_ZERO>;
90 + gpios = <&chipcommon 5 GPIO_ACTIVE_LOW>;
91 + };
92 +
93 + wps {
94 + label = "WPS";
95 + linux,code = <KEY_WPS_BUTTON>;
96 + gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>;
97 + };
98 +
99 + restart {
100 + label = "Reset";
101 + linux,code = <KEY_RESTART>;
102 + gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
103 + };
104 +
105 + rfkill {
106 + label = "WiFi";
107 + linux,code = <KEY_RFKILL>;
108 + gpios = <&chipcommon 15 GPIO_ACTIVE_LOW>;
109 + };
110 + };
111 +};