bcm53xx: add profiling support
[openwrt/svn-archive/archive.git] / target / linux / bcm53xx / patches-3.18 / 048-ARM-BCM5301X-Add-DT-for-Netgear-R6300-V2.patch
1 From 302a5ef29d497449280422576a1b55c72fc0ba4c Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <zajec5@gmail.com>
3 Date: Thu, 4 Dec 2014 10:22:02 +0100
4 Subject: [PATCH] ARM: BCM5301X: Add DT for Netgear R6300 V2
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: Hauke Mehrtens <hauke@hauke-m.de>
11 ---
12 arch/arm/boot/dts/Makefile | 4 +-
13 arch/arm/boot/dts/bcm4708-netgear-r6300-v2.dts | 84 ++++++++++++++++++++++++++
14 2 files changed, 87 insertions(+), 1 deletion(-)
15 create mode 100644 arch/arm/boot/dts/bcm4708-netgear-r6300-v2.dts
16
17 --- a/arch/arm/boot/dts/Makefile
18 +++ b/arch/arm/boot/dts/Makefile
19 @@ -54,7 +54,9 @@ dtb-$(CONFIG_ARCH_AT91) += at91-sama5d4e
20 dtb-$(CONFIG_ARCH_ATLAS6) += atlas6-evb.dtb
21 dtb-$(CONFIG_ARCH_AXXIA) += axm5516-amarillo.dtb
22 dtb-$(CONFIG_ARCH_BCM2835) += bcm2835-rpi-b.dtb
23 -dtb-$(CONFIG_ARCH_BCM_5301X) += bcm4708-netgear-r6250.dtb
24 +dtb-$(CONFIG_ARCH_BCM_5301X) += \
25 + bcm4708-netgear-r6250.dtb \
26 + bcm4708-netgear-r6300-v2.dtb
27 dtb-$(CONFIG_ARCH_BCM_63XX) += bcm963138dvt.dtb
28 dtb-$(CONFIG_ARCH_BCM_MOBILE) += bcm28155-ap.dtb \
29 bcm21664-garnet.dtb
30 --- /dev/null
31 +++ b/arch/arm/boot/dts/bcm4708-netgear-r6300-v2.dts
32 @@ -0,0 +1,84 @@
33 +/*
34 + * Broadcom BCM470X / BCM5301X ARM platform code.
35 + * DTS for Netgear R6300 V2
36 + *
37 + * Copyright (C) 2014 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 = "netgear,r6300v2", "brcm,bcm4708";
48 + model = "Netgear R6300 V2 (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 + logo {
62 + label = "bcm53xx:white:logo";
63 + gpios = <&chipcommon 1 GPIO_ACTIVE_HIGH>;
64 + linux,default-trigger = "default-on";
65 + };
66 +
67 + power0 {
68 + label = "bcm53xx:green:power";
69 + gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>;
70 + linux,default-trigger = "default-off";
71 + };
72 +
73 + power1 {
74 + label = "bcm53xx:amber:power";
75 + gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
76 + linux,default-trigger = "default-on";
77 + };
78 +
79 + usb {
80 + label = "bcm53xx:blue:usb";
81 + gpios = <&chipcommon 8 GPIO_ACTIVE_LOW>;
82 + linux,default-trigger = "default-off";
83 + };
84 +
85 + wireless {
86 + label = "bcm53xx:blue:wireless";
87 + gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
88 + linux,default-trigger = "default-off";
89 + };
90 + };
91 +
92 + gpio-keys {
93 + compatible = "gpio-keys";
94 + #address-cells = <1>;
95 + #size-cells = <0>;
96 + poll-interval = <200>;
97 +
98 + wps {
99 + label = "WPS";
100 + linux,code = <KEY_WPS_BUTTON>;
101 + gpios = <&chipcommon 4 GPIO_ACTIVE_LOW>;
102 + };
103 +
104 + rfkill {
105 + label = "WiFi";
106 + linux,code = <KEY_RFKILL>;
107 + gpios = <&chipcommon 5 GPIO_ACTIVE_LOW>;
108 + };
109 +
110 + restart {
111 + label = "Reset";
112 + linux,code = <KEY_RESTART>;
113 + gpios = <&chipcommon 6 GPIO_ACTIVE_LOW>;
114 + };
115 + };
116 +};