bcm53xx: add support for kernel 4.1
[openwrt/openwrt.git] / target / linux / bcm53xx / patches-4.1 / 062-ARM-BCM5301X-Add-DT-for-Asus-RT-AC56U.patch
1 From 16dc3bac722252a10e396546f44135ae1b6a7ff3 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <zajec5@gmail.com>
3 Date: Tue, 31 Mar 2015 17:29:18 +0200
4 Subject: [PATCH] ARM: BCM5301X: Add DT for Asus RT-AC56U
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-asus-rt-ac56u.dts | 96 +++++++++++++++++++++++++++++
14 2 files changed, 97 insertions(+)
15 create mode 100644 arch/arm/boot/dts/bcm4708-asus-rt-ac56u.dts
16
17 --- a/arch/arm/boot/dts/Makefile
18 +++ b/arch/arm/boot/dts/Makefile
19 @@ -56,6 +56,7 @@ dtb-$(CONFIG_ARCH_BCM2835) += \
20 bcm2835-rpi-b.dtb \
21 bcm2835-rpi-b-plus.dtb
22 dtb-$(CONFIG_ARCH_BCM_5301X) += \
23 + bcm4708-asus-rt-ac56u.dtb \
24 bcm4708-asus-rt-ac68u.dtb \
25 bcm4708-buffalo-wzr-1750dhp.dtb \
26 bcm4708-luxul-xwc-1000.dtb \
27 --- /dev/null
28 +++ b/arch/arm/boot/dts/bcm4708-asus-rt-ac56u.dts
29 @@ -0,0 +1,96 @@
30 +/*
31 + * Broadcom BCM470X / BCM5301X ARM platform code.
32 + * DTS for Asus RT-AC56U
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 = "asus,rt-ac56u", "brcm,bcm4708";
45 + model = "Asus RT-AC56U (BCM4708)";
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 + usb3 {
59 + label = "bcm53xx:blue:usb3";
60 + gpios = <&chipcommon 0 GPIO_ACTIVE_LOW>;
61 + linux,default-trigger = "default-off";
62 + };
63 +
64 + wan {
65 + label = "bcm53xx:blue:wan";
66 + gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>;
67 + linux,default-trigger = "default-off";
68 + };
69 +
70 + lan {
71 + label = "bcm53xx:blue:lan";
72 + gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>;
73 + linux,default-trigger = "default-off";
74 + };
75 +
76 + power {
77 + label = "bcm53xx:blue:power";
78 + gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
79 + linux,default-trigger = "default-on";
80 + };
81 +
82 + all {
83 + label = "bcm53xx:blue:all";
84 + gpios = <&chipcommon 4 GPIO_ACTIVE_LOW>;
85 + linux,default-trigger = "default-on";
86 + };
87 +
88 + 2ghz {
89 + label = "bcm53xx:blue:2ghz";
90 + gpios = <&chipcommon 6 GPIO_ACTIVE_LOW>;
91 + linux,default-trigger = "default-off";
92 + };
93 +
94 +
95 + usb2 {
96 + label = "bcm53xx:blue:usb2";
97 + gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>;
98 + linux,default-trigger = "default-off";
99 + };
100 + };
101 +
102 + gpio-keys {
103 + compatible = "gpio-keys";
104 + #address-cells = <1>;
105 + #size-cells = <0>;
106 +
107 + rfkill {
108 + label = "WiFi";
109 + linux,code = <KEY_RFKILL>;
110 + gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>;
111 + };
112 +
113 + restart {
114 + label = "Reset";
115 + linux,code = <KEY_RESTART>;
116 + gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
117 + };
118 +
119 + wps {
120 + label = "WPS";
121 + linux,code = <KEY_WPS_BUTTON>;
122 + gpios = <&chipcommon 15 GPIO_ACTIVE_LOW>;
123 + };
124 + };
125 +};