brcm2708: Add support for raspberry pi 3 b+.
[openwrt/staging/wigyori.git] / target / linux / bcm53xx / patches-4.9 / 033-0002-ARM-dts-BCM5301X-Add-basic-DT-for-Linksys-EA6300-V1.patch
1 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
2 Subject: [PATCH] ARM: dts: BCM5301X: Add basic DT for Linksys EA6300 V1
3 MIME-Version: 1.0
4 Content-Type: text/plain; charset=UTF-8
5 Content-Transfer-Encoding: 8bit
6
7 It's wireless home router based on BCM4708A0 with BCM4360 + BCM43217
8 wireless chipsets. LEDs will be hopefully added later to the DT.
9 According to some sources it may use the same board as EA6400 and just
10 differ by an original vendor firmware.
11
12 Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
13 Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
14 ---
15 arch/arm/boot/dts/Makefile | 1 +
16 arch/arm/boot/dts/bcm4708-linksys-ea6300-v1.dts | 41 +++++++++++++++++++++++++
17 2 files changed, 42 insertions(+)
18 create mode 100644 arch/arm/boot/dts/bcm4708-linksys-ea6300-v1.dts
19
20 --- a/arch/arm/boot/dts/Makefile
21 +++ b/arch/arm/boot/dts/Makefile
22 @@ -75,6 +75,7 @@ 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-linksys-ea6300-v1.dtb \
27 bcm4708-luxul-xap-1510.dtb \
28 bcm4708-luxul-xwc-1000.dtb \
29 bcm4708-netgear-r6250.dtb \
30 --- /dev/null
31 +++ b/arch/arm/boot/dts/bcm4708-linksys-ea6300-v1.dts
32 @@ -0,0 +1,41 @@
33 +/*
34 + * Copyright (C) 2017 Rafał Miłecki <rafal@milecki.pl>
35 + *
36 + * Licensed under the ISC license.
37 + */
38 +
39 +/dts-v1/;
40 +
41 +#include "bcm4708.dtsi"
42 +#include "bcm5301x-nand-cs0-bch8.dtsi"
43 +
44 +/ {
45 + compatible = "linksys,ea6300-v1", "brcm,bcm4708";
46 + model = "Linksys EA6300 V1";
47 +
48 + chosen {
49 + bootargs = "console=ttyS0,115200";
50 + };
51 +
52 + memory {
53 + reg = <0x00000000 0x08000000>;
54 + };
55 +
56 + gpio-keys {
57 + compatible = "gpio-keys";
58 + #address-cells = <1>;
59 + #size-cells = <0>;
60 +
61 + wps {
62 + label = "WPS";
63 + linux,code = <KEY_WPS_BUTTON>;
64 + gpios = <&chipcommon 7 GPIO_ACTIVE_LOW>;
65 + };
66 +
67 + restart {
68 + label = "Reset";
69 + linux,code = <KEY_RESTART>;
70 + gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
71 + };
72 + };
73 +};