363a3abe3c608cd8fb5027a1ec78c7014d63aed5
[openwrt/openwrt.git] / target / linux / bcm53xx / patches-3.18 / 059-ARM-BCM5301X-Add-DT-for-Buffalo-WXR-1900DHP.patch
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
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
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>
12 ---
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
17
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
31 new file mode 100644
32 index 0000000..548e93b
33 --- /dev/null
34 +++ b/arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dts
35 @@ -0,0 +1,127 @@
36 +/*
37 + * Broadcom BCM470X / BCM5301X ARM platform code.
38 + * DTS for Buffalo WXR-1900DHP
39 + *
40 + * Copyright (C) 2015 Felix Fietkau <nbd@openwrt.org>
41 + *
42 + * Licensed under the GNU/GPL. See COPYING for details.
43 + */
44 +
45 +/dts-v1/;
46 +
47 +#include "bcm4708.dtsi"
48 +
49 +/ {
50 + compatible = "buffalo,wxr-1900dhp", "brcm,bcm4709", "brcm,bcm4708";
51 + model = "Buffalo WXR-1900DHP";
52 +
53 + chosen {
54 + bootargs = "console=ttyS0,115200";
55 + };
56 +
57 + memory {
58 + reg = <0x00000000 0x08000000>;
59 + };
60 +
61 + leds {
62 + compatible = "gpio-leds";
63 +
64 + usb {
65 + label = "bcm53xx:green:usb";
66 + gpios = <&chipcommon 4 GPIO_ACTIVE_HIGH>;
67 + linux,default-trigger = "default-off";
68 + };
69 +
70 + power-amber {
71 + label = "bcm53xx:amber:power";
72 + gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>;
73 + linux,default-trigger = "default-off";
74 + };
75 +
76 + power-white {
77 + label = "bcm53xx:white:power";
78 + gpios = <&chipcommon 6 GPIO_ACTIVE_HIGH>;
79 + linux,default-trigger = "default-on";
80 + };
81 +
82 + router-amber {
83 + label = "bcm53xx:amber:router";
84 + gpios = <&chipcommon 7 GPIO_ACTIVE_HIGH>;
85 + linux,default-trigger = "default-off";
86 + };
87 +
88 + router-white {
89 + label = "bcm53xx:white:router";
90 + gpios = <&chipcommon 8 GPIO_ACTIVE_HIGH>;
91 + linux,default-trigger = "default-off";
92 + };
93 +
94 + wan-amber {
95 + label = "bcm53xx:amber:wan";
96 + gpios = <&chipcommon 9 GPIO_ACTIVE_HIGH>;
97 + linux,default-trigger = "default-off";
98 + };
99 +
100 + wan-white {
101 + label = "bcm53xx:white:wan";
102 + gpios = <&chipcommon 10 GPIO_ACTIVE_HIGH>;
103 + linux,default-trigger = "default-off";
104 + };
105 +
106 + wireless-amber {
107 + label = "bcm53xx:amber:wireless";
108 + gpios = <&chipcommon 11 GPIO_ACTIVE_HIGH>;
109 + linux,default-trigger = "default-off";
110 + };
111 +
112 + wireless-white {
113 + label = "bcm53xx:white:wireless";
114 + gpios = <&chipcommon 12 GPIO_ACTIVE_HIGH>;
115 + linux,default-trigger = "default-off";
116 + };
117 + };
118 +
119 + gpio-keys {
120 + compatible = "gpio-keys";
121 + #address-cells = <1>;
122 + #size-cells = <0>;
123 +
124 + power {
125 + label = "Power";
126 + linux,code = <KEY_POWER>;
127 + gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>;
128 + };
129 +
130 + restart {
131 + label = "Reset";
132 + linux,code = <KEY_RESTART>;
133 + gpios = <&chipcommon 15 GPIO_ACTIVE_LOW>;
134 + };
135 +
136 + aoss {
137 + label = "AOSS";
138 + linux,code = <KEY_WPS_BUTTON>;
139 + gpios = <&chipcommon 16 GPIO_ACTIVE_LOW>;
140 + };
141 +
142 + /* Commit mode set by switch? */
143 + mode {
144 + label = "Mode";
145 + linux,code = <KEY_SETUP>;
146 + gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>;
147 + };
148 +
149 + /* Switch: AP mode */
150 + sw_ap {
151 + label = "AP";
152 + linux,code = <BTN_0>;
153 + gpios = <&chipcommon 18 GPIO_ACTIVE_LOW>;
154 + };
155 +
156 + eject {
157 + label = "USB eject";
158 + linux,code = <KEY_EJECTCD>;
159 + gpios = <&chipcommon 20 GPIO_ACTIVE_LOW>;
160 + };
161 + };
162 +};
163 --
164 1.8.4.5
165