bcm53xx: add profiling support
[openwrt/svn-archive/archive.git] / target / linux / bcm53xx / patches-3.18 / 049-ARM-BCM5301X-Add-DT-for-Buffalo-WZR-1750DHP.patch
1 From e336a14d2a2aa4431a8acc9eb3305b37f26fb696 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:58 +0100
4 Subject: [PATCH] ARM: BCM5301X: Add DT for Buffalo WZR-1750DHP
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 | 1 +
13 arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts | 64 +++++++++++++++++++++++
14 2 files changed, 65 insertions(+)
15 create mode 100644 arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts
16
17 --- a/arch/arm/boot/dts/Makefile
18 +++ b/arch/arm/boot/dts/Makefile
19 @@ -55,6 +55,7 @@ dtb-$(CONFIG_ARCH_ATLAS6) += atlas6-evb.
20 dtb-$(CONFIG_ARCH_AXXIA) += axm5516-amarillo.dtb
21 dtb-$(CONFIG_ARCH_BCM2835) += bcm2835-rpi-b.dtb
22 dtb-$(CONFIG_ARCH_BCM_5301X) += \
23 + bcm4708-buffalo-wzr-1750dhp.dtb \
24 bcm4708-netgear-r6250.dtb \
25 bcm4708-netgear-r6300-v2.dtb
26 dtb-$(CONFIG_ARCH_BCM_63XX) += bcm963138dvt.dtb
27 --- /dev/null
28 +++ b/arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts
29 @@ -0,0 +1,64 @@
30 +/*
31 + * Broadcom BCM470X / BCM5301X ARM platform code.
32 + * DTS for Buffalo WZR-1750DHP
33 + *
34 + * Copyright (C) 2014 Rafał Miłecki <zajec5@gmail.com>
35 + *
36 + * Licensed under the GNU/GPL. See COPYING for details.
37 + */
38 +
39 +/dts-v1/;
40 +
41 +#include "bcm4708.dtsi"
42 +
43 +/ {
44 + compatible = "buffalo,wzr-1750dhp", "brcm,bcm4708";
45 + model = "Buffalo WZR-1750DHP (BCM4708)";
46 +
47 + chosen {
48 + bootargs = "console=ttyS0,115200";
49 + };
50 +
51 + memory {
52 + reg = <0x00000000 0x08000000>;
53 + };
54 +
55 + gpio-keys {
56 + compatible = "gpio-keys";
57 + #address-cells = <1>;
58 + #size-cells = <0>;
59 + poll-interval = <200>;
60 +
61 + restart {
62 + label = "Reset";
63 + linux,code = <KEY_RESTART>;
64 + gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
65 + };
66 +
67 + aoss {
68 + label = "AOSS";
69 + linux,code = <KEY_WPS_BUTTON>;
70 + gpios = <&chipcommon 12 GPIO_ACTIVE_LOW>;
71 + };
72 +
73 + /* Commit mode set by switch? */
74 + mode {
75 + label = "Mode";
76 + linux,code = <KEY_SETUP>;
77 + gpios = <&chipcommon 13 GPIO_ACTIVE_LOW>;
78 + };
79 +
80 + /* Switch: AP mode */
81 + sw_ap {
82 + label = "AP";
83 + linux,code = <BTN_0>;
84 + gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>;
85 + };
86 +
87 + eject {
88 + label = "USB eject";
89 + linux,code = <KEY_EJECTCD>;
90 + gpios = <&chipcommon 15 GPIO_ACTIVE_LOW>;
91 + };
92 + };
93 +};