1 From 35eecd10ee57b9d4f31e12598296b235ed2b34ae Mon Sep 17 00:00:00 2001
2 From: Felix Fietkau <nbd@openwrt.org>
3 Date: Wed, 13 May 2015 09:10:52 +0200
4 Subject: [PATCH] ARM: BCM5301X: Add DT for Buffalo WXR-1900DHP
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
9 Signed-off-by: Felix Fietkau <nbd@openwrt.org>
10 Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
11 Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
13 arch/arm/boot/dts/Makefile | 1 +
14 arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dts | 127 ++++++++++++++++++++++
15 2 files changed, 128 insertions(+)
16 create mode 100644 arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dts
18 diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
19 index 86217db..d34785a 100644
20 --- a/arch/arm/boot/dts/Makefile
21 +++ b/arch/arm/boot/dts/Makefile
22 @@ -62,6 +62,7 @@ dtb-$(CONFIG_ARCH_BCM_5301X) += \
23 bcm47081-asus-rt-n18u.dtb \
24 bcm47081-buffalo-wzr-600dhp2.dtb \
25 bcm47081-buffalo-wzr-900dhp.dtb \
26 + bcm4709-buffalo-wxr-1900dhp.dtb \
27 bcm4709-netgear-r8000.dtb
28 dtb-$(CONFIG_ARCH_BCM_63XX) += bcm963138dvt.dtb
29 dtb-$(CONFIG_ARCH_BCM_MOBILE) += bcm28155-ap.dtb \
30 diff --git a/arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dts b/arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dts
32 index 0000000..548e93b
34 +++ b/arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dts
37 + * Broadcom BCM470X / BCM5301X ARM platform code.
38 + * DTS for Buffalo WXR-1900DHP
40 + * Copyright (C) 2015 Felix Fietkau <nbd@openwrt.org>
42 + * Licensed under the GNU/GPL. See COPYING for details.
47 +#include "bcm4708.dtsi"
50 + compatible = "buffalo,wxr-1900dhp", "brcm,bcm4709", "brcm,bcm4708";
51 + model = "Buffalo WXR-1900DHP";
54 + bootargs = "console=ttyS0,115200";
58 + reg = <0x00000000 0x08000000>;
62 + compatible = "gpio-leds";
65 + label = "bcm53xx:green:usb";
66 + gpios = <&chipcommon 4 GPIO_ACTIVE_HIGH>;
67 + linux,default-trigger = "default-off";
71 + label = "bcm53xx:amber:power";
72 + gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>;
73 + linux,default-trigger = "default-off";
77 + label = "bcm53xx:white:power";
78 + gpios = <&chipcommon 6 GPIO_ACTIVE_HIGH>;
79 + linux,default-trigger = "default-on";
83 + label = "bcm53xx:amber:router";
84 + gpios = <&chipcommon 7 GPIO_ACTIVE_HIGH>;
85 + linux,default-trigger = "default-off";
89 + label = "bcm53xx:white:router";
90 + gpios = <&chipcommon 8 GPIO_ACTIVE_HIGH>;
91 + linux,default-trigger = "default-off";
95 + label = "bcm53xx:amber:wan";
96 + gpios = <&chipcommon 9 GPIO_ACTIVE_HIGH>;
97 + linux,default-trigger = "default-off";
101 + label = "bcm53xx:white:wan";
102 + gpios = <&chipcommon 10 GPIO_ACTIVE_HIGH>;
103 + linux,default-trigger = "default-off";
107 + label = "bcm53xx:amber:wireless";
108 + gpios = <&chipcommon 11 GPIO_ACTIVE_HIGH>;
109 + linux,default-trigger = "default-off";
113 + label = "bcm53xx:white:wireless";
114 + gpios = <&chipcommon 12 GPIO_ACTIVE_HIGH>;
115 + linux,default-trigger = "default-off";
120 + compatible = "gpio-keys";
121 + #address-cells = <1>;
126 + linux,code = <KEY_POWER>;
127 + gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>;
132 + linux,code = <KEY_RESTART>;
133 + gpios = <&chipcommon 15 GPIO_ACTIVE_LOW>;
138 + linux,code = <KEY_WPS_BUTTON>;
139 + gpios = <&chipcommon 16 GPIO_ACTIVE_LOW>;
142 + /* Commit mode set by switch? */
145 + linux,code = <KEY_SETUP>;
146 + gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>;
149 + /* Switch: AP mode */
152 + linux,code = <BTN_0>;
153 + gpios = <&chipcommon 18 GPIO_ACTIVE_LOW>;
157 + label = "USB eject";
158 + linux,code = <KEY_EJECTCD>;
159 + gpios = <&chipcommon 20 GPIO_ACTIVE_LOW>;