bcm53xx: add profiling support
[openwrt/svn-archive/archive.git] / target / linux / bcm53xx / patches-3.18 / 330-ARM-BCM5301X-Add-DT-for-Buffalo-WXR-1900DHP.patch
1 From: Felix Fietkau <nbd@openwrt.org>
2 Subject: [PATCH] ARM: BCM5301X: Add DT for Buffalo WXR-1900DHP
3 MIME-Version: 1.0
4 Content-Type: text/plain; charset=UTF-8
5 Content-Transfer-Encoding: 8bit
6
7 Signed-off-by: Felix Fietkau <nbd@openwrt.org>
8 ---
9 --- /dev/null
10 +++ b/arch/arm/boot/dts/bcm4709-buffalo-wxr-1900dhp.dts
11 @@ -0,0 +1,158 @@
12 +/*
13 + * Broadcom BCM470X / BCM5301X ARM platform code.
14 + * DTS for Buffalo WXR-1900DHP
15 + *
16 + * Copyright (C) 2014 Rafał Miłecki <zajec5@gmail.com>
17 + * Copyright (C) 2015 Felix Fietkau <nbd@openwrt.org>
18 + *
19 + * Licensed under the GNU/GPL. See COPYING for details.
20 + */
21 +
22 +/dts-v1/;
23 +
24 +#include "bcm4708.dtsi"
25 +
26 +/ {
27 + compatible = "buffalo,wxr-1900dhp", "brcm,bcm4709", "brcm,bcm4708";
28 + model = "Buffalo WXR-1900DHP (BCM4709)";
29 +
30 + chosen {
31 + bootargs = "console=ttyS0,115200 earlyprintk";
32 + };
33 +
34 + memory {
35 + reg = <0x00000000 0x08000000
36 + 0x88000000 0x18000000>;
37 + };
38 +
39 + chipcommonA {
40 + uart0: serial@0300 {
41 + status = "okay";
42 + clock-frequency = <125000000>;
43 + };
44 +
45 + uart1: serial@0400 {
46 + status = "okay";
47 + clock-frequency = <125000000>;
48 + };
49 + };
50 +
51 + clocks {
52 + clk_periph: periph {
53 + clock-frequency = <500000000>;
54 + };
55 + };
56 +
57 + leds {
58 + compatible = "gpio-leds";
59 +
60 + usb {
61 + label = "bcm53xx:green:usb";
62 + gpios = <&chipcommon 4 GPIO_ACTIVE_HIGH>;
63 + linux,default-trigger = "default-off";
64 + };
65 +
66 + power0 {
67 + label = "bcm53xx:amber:power";
68 + gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>;
69 + linux,default-trigger = "default-off";
70 + };
71 +
72 + power1 {
73 + label = "bcm53xx:white:power";
74 + gpios = <&chipcommon 6 GPIO_ACTIVE_HIGH>;
75 + linux,default-trigger = "default-on";
76 + };
77 +
78 + router0 {
79 + label = "bcm53xx:white:router";
80 + gpios = <&chipcommon 8 GPIO_ACTIVE_HIGH>;
81 + linux,default-trigger = "default-off";
82 + };
83 +
84 + router1 {
85 + label = "bcm53xx:amber:router";
86 + gpios = <&chipcommon 7 GPIO_ACTIVE_HIGH>;
87 + linux,default-trigger = "default-off";
88 + };
89 +
90 + wan0 {
91 + label = "bcm53xx:white:wan";
92 + gpios = <&chipcommon 10 GPIO_ACTIVE_HIGH>;
93 + linux,default-trigger = "default-off";
94 + };
95 +
96 + wan1 {
97 + label = "bcm53xx:amber:wan";
98 + gpios = <&chipcommon 9 GPIO_ACTIVE_HIGH>;
99 + linux,default-trigger = "default-off";
100 + };
101 +
102 + wireless0 {
103 + label = "bcm53xx:white:wireless";
104 + gpios = <&chipcommon 12 GPIO_ACTIVE_HIGH>;
105 + linux,default-trigger = "default-off";
106 + };
107 +
108 + wireless1 {
109 + label = "bcm53xx:amber:wireless";
110 + gpios = <&chipcommon 11 GPIO_ACTIVE_HIGH>;
111 + linux,default-trigger = "default-off";
112 + };
113 + };
114 +
115 + axi@18000000 {
116 + usb2@21000 {
117 + reg = <0x00021000 0x1000>;
118 +
119 + #address-cells = <1>;
120 + #size-cells = <1>;
121 +
122 + vcc-gpio = <&chipcommon 13 GPIO_ACTIVE_HIGH>;
123 + };
124 + };
125 +
126 + gpio-keys {
127 + compatible = "gpio-keys";
128 + #address-cells = <1>;
129 + #size-cells = <0>;
130 +
131 + power {
132 + label = "Power";
133 + linux,code = <KEY_POWER>;
134 + gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>;
135 + };
136 +
137 + restart {
138 + label = "Reset";
139 + linux,code = <KEY_RESTART>;
140 + gpios = <&chipcommon 15 GPIO_ACTIVE_LOW>;
141 + };
142 +
143 + aoss {
144 + label = "AOSS";
145 + linux,code = <KEY_WPS_BUTTON>;
146 + gpios = <&chipcommon 16 GPIO_ACTIVE_LOW>;
147 + };
148 +
149 + /* Commit mode set by switch? */
150 + mode {
151 + label = "Mode";
152 + linux,code = <KEY_SETUP>;
153 + gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>;
154 + };
155 +
156 + /* Switch: AP mode */
157 + sw_ap {
158 + label = "AP";
159 + linux,code = <BTN_0>;
160 + gpios = <&chipcommon 18 GPIO_ACTIVE_LOW>;
161 + };
162 +
163 + eject {
164 + label = "USB eject";
165 + linux,code = <KEY_EJECTCD>;
166 + gpios = <&chipcommon 20 GPIO_ACTIVE_LOW>;
167 + };
168 + };
169 +};
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