1 From: Felix Fietkau <nbd@openwrt.org>
2 Subject: [PATCH] ARM: BCM5301X: Add DT for Buffalo WXR-1900DHP
4 Content-Type: text/plain; charset=UTF-8
5 Content-Transfer-Encoding: 8bit
7 Signed-off-by: Felix Fietkau <nbd@openwrt.org>
10 +++ b/arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dts
13 + * Broadcom BCM470X / BCM5301X ARM platform code.
14 + * DTS for Buffalo WXR-1900DHP
16 + * Copyright (C) 2014 Rafał Miłecki <zajec5@gmail.com>
17 + * Copyright (C) 2015 Felix Fietkau <nbd@openwrt.org>
19 + * Licensed under the GNU/GPL. See COPYING for details.
24 +#include "bcm4708.dtsi"
27 + compatible = "buffalo,wxr-1900dhp", "brcm,bcm4709", "brcm,bcm4708";
28 + model = "Buffalo WXR-1900DHP (BCM4709)";
31 + bootargs = "console=ttyS0,115200 earlyprintk";
35 + reg = <0x00000000 0x08000000
36 + 0x88000000 0x18000000>;
40 + uart0: serial@0300 {
42 + clock-frequency = <125000000>;
45 + uart1: serial@0400 {
47 + clock-frequency = <125000000>;
52 + clk_periph: periph {
53 + clock-frequency = <500000000>;
58 + compatible = "gpio-leds";
61 + label = "bcm53xx:green:usb";
62 + gpios = <&chipcommon 4 GPIO_ACTIVE_HIGH>;
63 + linux,default-trigger = "default-off";
67 + label = "bcm53xx:amber:power";
68 + gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>;
69 + linux,default-trigger = "default-off";
73 + label = "bcm53xx:white:power";
74 + gpios = <&chipcommon 6 GPIO_ACTIVE_HIGH>;
75 + linux,default-trigger = "default-on";
79 + label = "bcm53xx:white:router";
80 + gpios = <&chipcommon 8 GPIO_ACTIVE_HIGH>;
81 + linux,default-trigger = "default-off";
85 + label = "bcm53xx:amber:router";
86 + gpios = <&chipcommon 7 GPIO_ACTIVE_HIGH>;
87 + linux,default-trigger = "default-off";
91 + label = "bcm53xx:white:wan";
92 + gpios = <&chipcommon 10 GPIO_ACTIVE_HIGH>;
93 + linux,default-trigger = "default-off";
97 + label = "bcm53xx:amber:wan";
98 + gpios = <&chipcommon 9 GPIO_ACTIVE_HIGH>;
99 + linux,default-trigger = "default-off";
103 + label = "bcm53xx:white:wireless";
104 + gpios = <&chipcommon 12 GPIO_ACTIVE_HIGH>;
105 + linux,default-trigger = "default-off";
109 + label = "bcm53xx:amber:wireless";
110 + gpios = <&chipcommon 11 GPIO_ACTIVE_HIGH>;
111 + linux,default-trigger = "default-off";
117 + reg = <0x00021000 0x1000>;
119 + #address-cells = <1>;
122 + vcc-gpio = <&chipcommon 13 GPIO_ACTIVE_HIGH>;
127 + compatible = "gpio-keys";
128 + #address-cells = <1>;
133 + linux,code = <KEY_POWER>;
134 + gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>;
139 + linux,code = <KEY_RESTART>;
140 + gpios = <&chipcommon 15 GPIO_ACTIVE_LOW>;
145 + linux,code = <KEY_WPS_BUTTON>;
146 + gpios = <&chipcommon 16 GPIO_ACTIVE_LOW>;
149 + /* Commit mode set by switch? */
152 + linux,code = <KEY_SETUP>;
153 + gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>;
156 + /* Switch: AP mode */
159 + linux,code = <BTN_0>;
160 + gpios = <&chipcommon 18 GPIO_ACTIVE_LOW>;
164 + label = "USB eject";
165 + linux,code = <KEY_EJECTCD>;
166 + gpios = <&chipcommon 20 GPIO_ACTIVE_LOW>;
170 --- a/arch/arm/boot/dts/Makefile
171 +++ b/arch/arm/boot/dts/Makefile
172 @@ -64,6 +64,7 @@ dtb-$(CONFIG_ARCH_BCM_5301X) += \
173 bcm47081-asus-rt-n18u.dtb \
174 bcm47081-buffalo-wzr-600dhp2.dtb \
175 bcm47081-buffalo-wzr-900dhp.dtb \
176 + bcm4709-buffalo-wxr-1900dhp.dtb \
177 bcm4709-asus-rt-ac87u.dtb \
178 bcm4709-netgear-r8000.dtb
179 dtb-$(CONFIG_ARCH_BCM_63XX) += bcm963138dvt.dtb