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