bcm53xx: rename patches that were not upstreamed to 3xx
[openwrt/openwrt.git] / target / linux / bcm53xx / patches-3.14 / 304-ARM-BCM5301X-Add-DT-for-Asus-RT-N18U.patch
1 From 89fe6f9b7875f74e7d63a90ae3a51d84d3cf9369 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <zajec5@gmail.com>
3 Date: Thu, 9 Oct 2014 18:16:26 +0200
4 Subject: [PATCH] ARM: BCM5301X: Add DT for Asus RT-N18U
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 arch/arm/boot/dts/Makefile | 3 +-
12 arch/arm/boot/dts/bcm47081-asus-rt-n18u.dts | 88 +++++++++++++++++++++++++++++
13 arch/arm/boot/dts/bcm47081.dtsi | 26 +++++++++
14 arch/arm/mach-bcm/bcm_5301x.c | 1 +
15 4 files changed, 117 insertions(+), 1 deletion(-)
16 create mode 100644 arch/arm/boot/dts/bcm47081-asus-rt-n18u.dts
17 create mode 100644 arch/arm/boot/dts/bcm47081.dtsi
18
19 --- a/arch/arm/boot/dts/Makefile
20 +++ b/arch/arm/boot/dts/Makefile
21 @@ -53,7 +53,8 @@ dtb-$(CONFIG_ARCH_BCM2835) += bcm2835-rp
22 dtb-$(CONFIG_ARCH_BCM_5301X) += \
23 bcm4708-buffalo-wzr-1750dhp.dtb \
24 bcm4708-netgear-r6250.dtb \
25 - bcm4708-netgear-r6300-v2.dtb
26 + bcm4708-netgear-r6300-v2.dtb \
27 + bcm47081-asus-rt-n18u.dtb
28 dtb-$(CONFIG_ARCH_BERLIN) += \
29 berlin2-sony-nsz-gs7.dtb \
30 berlin2cd-google-chromecast.dtb
31 --- /dev/null
32 +++ b/arch/arm/boot/dts/bcm47081-asus-rt-n18u.dts
33 @@ -0,0 +1,88 @@
34 +/*
35 + * Broadcom BCM470X / BCM5301X arm platform code.
36 + * DTS for Asus RT-N18U
37 + *
38 + * Copyright © 2014 Rafał Miłecki <zajec5@gmail.com>
39 + *
40 + * Licensed under the GNU/GPL. See COPYING for details.
41 + */
42 +
43 +/dts-v1/;
44 +
45 +#include "bcm47081.dtsi"
46 +
47 +/ {
48 + compatible = "asus,rt-n18u", "brcm,bcm47081";
49 + model = "Asus RT-N18U (BCM47081)";
50 +
51 + chosen {
52 + bootargs = "console=ttyS0,115200 earlyprintk";
53 + };
54 +
55 + memory {
56 + reg = <0x00000000 0x08000000>;
57 + };
58 +
59 + chipcommonA {
60 + uart0: serial@0300 {
61 + status = "okay";
62 + };
63 +
64 + uart1: serial@0400 {
65 + status = "okay";
66 + };
67 + };
68 +
69 + leds {
70 + compatible = "gpio-leds";
71 +
72 + power {
73 + label = "bcm53xx:blue:power";
74 + gpios = <&chipcommon 0 GPIO_ACTIVE_LOW>;
75 + linux,default-trigger = "default-on";
76 + };
77 +
78 + usb2 {
79 + label = "bcm53xx:blue:usb2";
80 + gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
81 + linux,default-trigger = "default-off";
82 + };
83 +
84 + wan {
85 + label = "bcm53xx:blue:wan";
86 + gpios = <&chipcommon 6 GPIO_ACTIVE_LOW>;
87 + linux,default-trigger = "default-on";
88 + };
89 +
90 + lan {
91 + label = "bcm53xx:blue:lan";
92 + gpios = <&chipcommon 9 GPIO_ACTIVE_LOW>;
93 + linux,default-trigger = "default-on";
94 + };
95 +
96 + usb3 {
97 + label = "bcm53xx:blue:usb3";
98 + gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>;
99 + linux,default-trigger = "default-off";
100 + };
101 + };
102 +
103 + gpio-keys {
104 + compatible = "gpio-keys-polled";
105 + #address-cells = <1>;
106 + #size-cells = <0>;
107 + poll-interval = <200>;
108 +
109 + restart {
110 + label = "Reset";
111 + linux,code = <KEY_RESTART>;
112 + gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>;
113 + };
114 +
115 + wps {
116 + label = "WPS";
117 + linux,code = <KEY_WPS_BUTTON>;
118 + gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
119 + };
120 + };
121 +};
122 --- /dev/null
123 +++ b/arch/arm/boot/dts/bcm47081.dtsi
124 @@ -0,0 +1,26 @@
125 +/*
126 + * Broadcom BCM470X / BCM5301X ARM platform code.
127 + * DTS for BCM47081 SoC.
128 + *
129 + * Copyright © 2014 Rafał Miłecki <zajec5@gmail.com>
130 + *
131 + * Licensed under the GNU/GPL. See COPYING for details.
132 + */
133 +
134 +#include "bcm5301x.dtsi"
135 +
136 +/ {
137 + compatible = "brcm,bcm47081";
138 +
139 + cpus {
140 + #address-cells = <1>;
141 + #size-cells = <0>;
142 +
143 + cpu@0 {
144 + device_type = "cpu";
145 + compatible = "arm,cortex-a9";
146 + next-level-cache = <&L2>;
147 + reg = <0x0>;
148 + };
149 + };
150 +};
151 --- a/arch/arm/mach-bcm/bcm_5301x.c
152 +++ b/arch/arm/mach-bcm/bcm_5301x.c
153 @@ -81,6 +81,7 @@ static void bcm5301x_restart(enum reboot
154
155 static const char __initconst *bcm5301x_dt_compat[] = {
156 "brcm,bcm4708",
157 + "brcm,bcm47081",
158 NULL,
159 };
160