bcm53xx: add support for Buffalo WZR-1750DHP
[openwrt/openwrt.git] / target / linux / bcm53xx / patches-3.14 / 303-ARM-BCM5301X-Add-DT-for-Buffalo-WZR-1750DHP.patch
1 From b7620da56595c5505e4a10b8779cec0362b59db2 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <zajec5@gmail.com>
3 Date: Thu, 9 Oct 2014 18:04:28 +0200
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 ---
11 arch/arm/boot/dts/Makefile | 1 +
12 arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts | 74 +++++++++++++++++++++++
13 2 files changed, 75 insertions(+)
14 create mode 100644 arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts
15
16 diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
17 index 3e43f17..17c717b 100644
18 --- a/arch/arm/boot/dts/Makefile
19 +++ b/arch/arm/boot/dts/Makefile
20 @@ -51,6 +51,7 @@ dtb-$(CONFIG_ARCH_BCM_MOBILE) += bcm11351-brt.dtb \
21 bcm28155-ap.dtb
22 dtb-$(CONFIG_ARCH_BCM2835) += bcm2835-rpi-b.dtb
23 dtb-$(CONFIG_ARCH_BCM_5301X) += \
24 + bcm4708-buffalo-wzr-1750dhp.dtb \
25 bcm4708-netgear-r6250.dtb \
26 bcm4708-netgear-r6300-v2.dtb
27 dtb-$(CONFIG_ARCH_BERLIN) += \
28 diff --git a/arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts b/arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts
29 new file mode 100644
30 index 0000000..63e9e5f
31 --- /dev/null
32 +++ b/arch/arm/boot/dts/bcm4708-buffalo-wzr-1750dhp.dts
33 @@ -0,0 +1,74 @@
34 +/*
35 + * Broadcom BCM470X / BCM5301X arm platform code.
36 + * DTS for Buffalo WZR-1750DHP
37 + *
38 + * Copyright © 2014 Rafał Miłecki <zajec5@gmail.com>
39 + *
40 + * Licensed under the GNU/GPL. See COPYING for details.
41 + */
42 +
43 +/dts-v1/;
44 +
45 +#include "bcm4708.dtsi"
46 +
47 +/ {
48 + compatible = "buffalo,wzr-1750dhp", "brcm,bcm4708";
49 + model = "Buffalo WZR-1750DHP (BCM4708)";
50 +
51 + chosen {
52 + bootargs = "console=ttyS0,115200";
53 + };
54 +
55 + memory {
56 + reg = <0x00000000 0x08000000>;
57 + };
58 +
59 + chipcommonA {
60 + uart0: serial@0300 {
61 + status = "okay";
62 + };
63 +
64 + uart1: serial@0400 {
65 + status = "okay";
66 + };
67 + };
68 +
69 + gpio-keys {
70 + compatible = "gpio-keys-polled";
71 + #address-cells = <1>;
72 + #size-cells = <0>;
73 + poll-interval = <200>;
74 +
75 + restart {
76 + label = "Reset";
77 + linux,code = <KEY_RESTART>;
78 + gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
79 + };
80 +
81 + aoss {
82 + label = "AOSS";
83 + linux,code = <KEY_WPS_BUTTON>;
84 + gpios = <&chipcommon 12 GPIO_ACTIVE_LOW>;
85 + };
86 +
87 + /* Commit mode set by switch? */
88 + mode {
89 + label = "Mode";
90 + linux,code = <KEY_SETUP>;
91 + gpios = <&chipcommon 13 GPIO_ACTIVE_LOW>;
92 + };
93 +
94 + /* Switch: AP mode */
95 + sw_ap {
96 + label = "AP";
97 + linux,code = <BTN_0>;
98 + gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>;
99 + };
100 +
101 + eject {
102 + label = "USB eject";
103 + linux,code = <KEY_EJECTCD>;
104 + gpios = <&chipcommon 15 GPIO_ACTIVE_LOW>;
105 + };
106 + };
107 +};
108 --
109 1.8.4.5
110