mac80211: make it work with 3.18.12+
[openwrt/openwrt.git] / target / linux / bcm53xx / patches-3.18 / 060-ARM-BCM5301X-Add-DT-for-SmartRG-SR400ac.patch
1 From 691917f20cae813d242f7123a4dc97e7d48e6ff1 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <zajec5@gmail.com>
3 Date: Wed, 13 May 2015 09:10:53 +0200
4 Subject: [PATCH] ARM: BCM5301X: Add DT for SmartRG SR400ac
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 Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
11 ---
12 arch/arm/boot/dts/Makefile | 1 +
13 arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts | 119 ++++++++++++++++++++++++++
14 2 files changed, 120 insertions(+)
15 create mode 100644 arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts
16
17 diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
18 index d34785a..59f7970 100644
19 --- a/arch/arm/boot/dts/Makefile
20 +++ b/arch/arm/boot/dts/Makefile
21 @@ -59,6 +59,7 @@ dtb-$(CONFIG_ARCH_BCM_5301X) += \
22 bcm4708-luxul-xwc-1000.dtb \
23 bcm4708-netgear-r6250.dtb \
24 bcm4708-netgear-r6300-v2.dtb \
25 + bcm4708-smartrg-sr400ac.dtb \
26 bcm47081-asus-rt-n18u.dtb \
27 bcm47081-buffalo-wzr-600dhp2.dtb \
28 bcm47081-buffalo-wzr-900dhp.dtb \
29 diff --git a/arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts b/arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts
30 new file mode 100644
31 index 0000000..66dfb53
32 --- /dev/null
33 +++ b/arch/arm/boot/dts/bcm4708-smartrg-sr400ac.dts
34 @@ -0,0 +1,119 @@
35 +/*
36 + * Broadcom BCM470X / BCM5301X arm platform code.
37 + * DTS for SmartRG SR400ac
38 + *
39 + * Copyright (C) 2015 Rafał Miłecki <zajec5@gmail.com>
40 + *
41 + * Licensed under the GNU/GPL. See COPYING for details.
42 + */
43 +
44 +/dts-v1/;
45 +
46 +#include "bcm4708.dtsi"
47 +
48 +/ {
49 + compatible = "smartrg,sr400ac", "brcm,bcm4708";
50 + model = "SmartRG SR400ac";
51 +
52 + chosen {
53 + bootargs = "console=ttyS0,115200";
54 + };
55 +
56 + memory {
57 + reg = <0x00000000 0x08000000>;
58 + };
59 +
60 + leds {
61 + compatible = "gpio-leds";
62 +
63 + power-white {
64 + label = "bcm53xx:white:power";
65 + gpios = <&chipcommon 1 GPIO_ACTIVE_HIGH>;
66 + linux,default-trigger = "default-on";
67 + };
68 +
69 + power-amber {
70 + label = "bcm53xx:amber:power";
71 + gpios = <&chipcommon 2 GPIO_ACTIVE_HIGH>;
72 + linux,default-trigger = "default-off";
73 + };
74 +
75 + usb2 {
76 + label = "bcm53xx:white:usb2";
77 + gpios = <&chipcommon 3 GPIO_ACTIVE_HIGH>;
78 + linux,default-trigger = "default-off";
79 + };
80 +
81 + usb3-white {
82 + label = "bcm53xx:white:usb3";
83 + gpios = <&chipcommon 4 GPIO_ACTIVE_HIGH>;
84 + linux,default-trigger = "default-off";
85 + };
86 +
87 + usb3-green {
88 + label = "bcm53xx:green:usb3";
89 + gpios = <&chipcommon 5 GPIO_ACTIVE_HIGH>;
90 + linux,default-trigger = "default-off";
91 + };
92 +
93 + wps {
94 + label = "bcm53xx:white:wps";
95 + gpios = <&chipcommon 6 GPIO_ACTIVE_HIGH>;
96 + linux,default-trigger = "default-off";
97 + };
98 +
99 + status-red {
100 + label = "bcm53xx:red:status";
101 + gpios = <&chipcommon 8 GPIO_ACTIVE_HIGH>;
102 + linux,default-trigger = "default-off";
103 + };
104 +
105 + status-green {
106 + label = "bcm53xx:green:status";
107 + gpios = <&chipcommon 9 GPIO_ACTIVE_HIGH>;
108 + linux,default-trigger = "default-off";
109 + };
110 +
111 + status-blue {
112 + label = "bcm53xx:blue:status";
113 + gpios = <&chipcommon 10 GPIO_ACTIVE_HIGH>;
114 + linux,default-trigger = "default-off";
115 + };
116 +
117 + wan-white {
118 + label = "bcm53xx:white:wan";
119 + gpios = <&chipcommon 12 GPIO_ACTIVE_HIGH>;
120 + linux,default-trigger = "default-off";
121 + };
122 +
123 + wan-red {
124 + label = "bcm53xx:red:wan";
125 + gpios = <&chipcommon 13 GPIO_ACTIVE_HIGH>;
126 + linux,default-trigger = "default-off";
127 + };
128 + };
129 +
130 + gpio-keys {
131 + compatible = "gpio-keys";
132 + #address-cells = <1>;
133 + #size-cells = <0>;
134 +
135 + rfkill {
136 + label = "WiFi";
137 + linux,code = <KEY_RFKILL>;
138 + gpios = <&chipcommon 0 GPIO_ACTIVE_LOW>;
139 + };
140 +
141 + wps {
142 + label = "WPS";
143 + linux,code = <KEY_WPS_BUTTON>;
144 + gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>;
145 + };
146 +
147 + restart {
148 + label = "Reset";
149 + linux,code = <KEY_RESTART>;
150 + gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
151 + };
152 + };
153 +};
154 --
155 1.8.4.5
156