bcm53xx: replace DT patches with backports from stblinux
[oweals/openwrt.git] / target / linux / bcm53xx / patches-3.18 / 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 diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile
18 index 1e8b8b7..4802376 100644
19 --- a/arch/arm/boot/dts/Makefile
20 +++ b/arch/arm/boot/dts/Makefile
21 @@ -55,6 +55,7 @@ dtb-$(CONFIG_ARCH_ATLAS6) += atlas6-evb.
22  dtb-$(CONFIG_ARCH_AXXIA) += axm5516-amarillo.dtb
23  dtb-$(CONFIG_ARCH_BCM2835) += bcm2835-rpi-b.dtb
24  dtb-$(CONFIG_ARCH_BCM_5301X) += \
25 +       bcm4708-asus-rt-ac56u.dtb \
26         bcm4708-asus-rt-ac68u.dtb \
27         bcm4708-buffalo-wzr-1750dhp.dtb \
28         bcm4708-luxul-xwc-1000.dtb \
29 diff --git a/arch/arm/boot/dts/bcm4708-asus-rt-ac56u.dts b/arch/arm/boot/dts/bcm4708-asus-rt-ac56u.dts
30 new file mode 100644
31 index 0000000..71cff8d
32 --- /dev/null
33 +++ b/arch/arm/boot/dts/bcm4708-asus-rt-ac56u.dts
34 @@ -0,0 +1,96 @@
35 +/*
36 + * Broadcom BCM470X / BCM5301X ARM platform code.
37 + * DTS for Asus RT-AC56U
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 = "asus,rt-ac56u", "brcm,bcm4708";
50 +       model = "Asus RT-AC56U (BCM4708)";
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 +               usb3 {
64 +                       label = "bcm53xx:blue:usb3";
65 +                       gpios = <&chipcommon 0 GPIO_ACTIVE_LOW>;
66 +                       linux,default-trigger = "default-off";
67 +               };
68 +
69 +               wan {
70 +                       label = "bcm53xx:blue:wan";
71 +                       gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>;
72 +                       linux,default-trigger = "default-off";
73 +               };
74 +
75 +               lan {
76 +                       label = "bcm53xx:blue:lan";
77 +                       gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>;
78 +                       linux,default-trigger = "default-off";
79 +               };
80 +
81 +               power {
82 +                       label = "bcm53xx:blue:power";
83 +                       gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
84 +                       linux,default-trigger = "default-on";
85 +               };
86 +
87 +               all {
88 +                       label = "bcm53xx:blue:all";
89 +                       gpios = <&chipcommon 4 GPIO_ACTIVE_LOW>;
90 +                       linux,default-trigger = "default-on";
91 +               };
92 +
93 +               2ghz {
94 +                       label = "bcm53xx:blue:2ghz";
95 +                       gpios = <&chipcommon 6 GPIO_ACTIVE_LOW>;
96 +                       linux,default-trigger = "default-off";
97 +               };
98 +
99 +
100 +               usb2 {
101 +                       label = "bcm53xx:blue:usb2";
102 +                       gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>;
103 +                       linux,default-trigger = "default-off";
104 +               };
105 +       };
106 +
107 +       gpio-keys {
108 +               compatible = "gpio-keys";
109 +               #address-cells = <1>;
110 +               #size-cells = <0>;
111 +
112 +               rfkill {
113 +                       label = "WiFi";
114 +                       linux,code = <KEY_RFKILL>;
115 +                       gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>;
116 +               };
117 +
118 +               restart {
119 +                       label = "Reset";
120 +                       linux,code = <KEY_RESTART>;
121 +                       gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
122 +               };
123 +
124 +               wps {
125 +                       label = "WPS";
126 +                       linux,code = <KEY_WPS_BUTTON>;
127 +                       gpios = <&chipcommon 15 GPIO_ACTIVE_LOW>;
128 +               };
129 +       };
130 +};
131 -- 
132 1.8.4.5
133