bcm53xx: try to handle Netgear R8000 VLANs config
[oweals/openwrt.git] / target / linux / bcm53xx / patches-3.18 / 134-ARM-BCM5301X-Add-DT-for-Asus-RT-AC56U.patch
1 From 97734a031475d5a7e8788435f8ce8374c459ef93 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:26:17 +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 ---
11 This patch is based on top of
12 ARM: BCM5301X: Add DT for Asus RT-AC68U
13 (please follow this order, to avoid Makefile conflict)
14 ---
15  arch/arm/boot/dts/Makefile                  |  1 +
16  arch/arm/boot/dts/bcm4708-asus-rt-ac56u.dts | 96 +++++++++++++++++++++++++++++
17  2 files changed, 97 insertions(+)
18  create mode 100644 arch/arm/boot/dts/bcm4708-asus-rt-ac56u.dts
19
20 diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
21 index 7c1ca2a..53f8c1a 100644
22 --- a/arch/arm/boot/dts/Makefile
23 +++ b/arch/arm/boot/dts/Makefile
24 @@ -55,6 +55,7 @@ dtb-$(CONFIG_ARCH_ATLAS6) += atlas6-evb.
25  dtb-$(CONFIG_ARCH_AXXIA) += axm5516-amarillo.dtb
26  dtb-$(CONFIG_ARCH_BCM2835) += bcm2835-rpi-b.dtb
27  dtb-$(CONFIG_ARCH_BCM_5301X) += \
28 +       bcm4708-asus-rt-ac56u.dtb \
29         bcm4708-asus-rt-ac68u.dtb \
30         bcm4708-buffalo-wzr-1750dhp.dtb \
31         bcm4708-luxul-xwc-1000.dtb \
32 diff --git a/arch/arm/boot/dts/bcm4708-asus-rt-ac56u.dts b/arch/arm/boot/dts/bcm4708-asus-rt-ac56u.dts
33 new file mode 100644
34 index 0000000..71cff8d
35 --- /dev/null
36 +++ b/arch/arm/boot/dts/bcm4708-asus-rt-ac56u.dts
37 @@ -0,0 +1,96 @@
38 +/*
39 + * Broadcom BCM470X / BCM5301X ARM platform code.
40 + * DTS for Asus RT-AC56U
41 + *
42 + * Copyright (C) 2015 Rafał Miłecki <zajec5@gmail.com>
43 + *
44 + * Licensed under the GNU/GPL. See COPYING for details.
45 + */
46 +
47 +/dts-v1/;
48 +
49 +#include "bcm4708.dtsi"
50 +
51 +/ {
52 +       compatible = "asus,rt-ac56u", "brcm,bcm4708";
53 +       model = "Asus RT-AC56U (BCM4708)";
54 +
55 +       chosen {
56 +               bootargs = "console=ttyS0,115200";
57 +       };
58 +
59 +       memory {
60 +               reg = <0x00000000 0x08000000>;
61 +       };
62 +
63 +       leds {
64 +               compatible = "gpio-leds";
65 +
66 +               usb3 {
67 +                       label = "bcm53xx:blue:usb3";
68 +                       gpios = <&chipcommon 0 GPIO_ACTIVE_LOW>;
69 +                       linux,default-trigger = "default-off";
70 +               };
71 +
72 +               wan {
73 +                       label = "bcm53xx:blue:wan";
74 +                       gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>;
75 +                       linux,default-trigger = "default-off";
76 +               };
77 +
78 +               lan {
79 +                       label = "bcm53xx:blue:lan";
80 +                       gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>;
81 +                       linux,default-trigger = "default-off";
82 +               };
83 +
84 +               power {
85 +                       label = "bcm53xx:blue:power";
86 +                       gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
87 +                       linux,default-trigger = "default-on";
88 +               };
89 +
90 +               all {
91 +                       label = "bcm53xx:blue:all";
92 +                       gpios = <&chipcommon 4 GPIO_ACTIVE_LOW>;
93 +                       linux,default-trigger = "default-on";
94 +               };
95 +
96 +               2ghz {
97 +                       label = "bcm53xx:blue:2ghz";
98 +                       gpios = <&chipcommon 6 GPIO_ACTIVE_LOW>;
99 +                       linux,default-trigger = "default-off";
100 +               };
101 +
102 +
103 +               usb2 {
104 +                       label = "bcm53xx:blue:usb2";
105 +                       gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>;
106 +                       linux,default-trigger = "default-off";
107 +               };
108 +       };
109 +
110 +       gpio-keys {
111 +               compatible = "gpio-keys";
112 +               #address-cells = <1>;
113 +               #size-cells = <0>;
114 +
115 +               rfkill {
116 +                       label = "WiFi";
117 +                       linux,code = <KEY_RFKILL>;
118 +                       gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>;
119 +               };
120 +
121 +               restart {
122 +                       label = "Reset";
123 +                       linux,code = <KEY_RESTART>;
124 +                       gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
125 +               };
126 +
127 +               wps {
128 +                       label = "WPS";
129 +                       linux,code = <KEY_WPS_BUTTON>;
130 +                       gpios = <&chipcommon 15 GPIO_ACTIVE_LOW>;
131 +               };
132 +       };
133 +};
134 -- 
135 1.8.4.5
136