bcm53xx: backport upstream DTS files for Linksys devices
[librecmc/librecmc.git] / target / linux / bcm53xx / patches-4.4 / 046-0010-ARM-dts-BCM5301X-Add-basic-DT-for-Linksys-EA9200.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 EA9200
3 MIME-Version: 1.0
4 Content-Type: text/plain; charset=UTF-8
5 Content-Transfer-Encoding: 8bit
6
7 It's tri-band wireless home router based on BCM4709A0 with 3 x BCM43602
8 chipsets. LEDs will be hopefully added later to the DT.
9
10 Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
11 Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
12 ---
13  arch/arm/boot/dts/Makefile                   |  1 +
14  arch/arm/boot/dts/bcm4709-linksys-ea9200.dts | 42 ++++++++++++++++++++++++++++
15  2 files changed, 43 insertions(+)
16  create mode 100644 arch/arm/boot/dts/bcm4709-linksys-ea9200.dts
17
18 --- a/arch/arm/boot/dts/Makefile
19 +++ b/arch/arm/boot/dts/Makefile
20 @@ -77,6 +77,7 @@ dtb-$(CONFIG_ARCH_BCM_5301X) += \
21         bcm47081-luxul-xwr-1200.dtb \
22         bcm4709-asus-rt-ac87u.dtb \
23         bcm4709-buffalo-wxr-1900dhp.dtb \
24 +       bcm4709-linksys-ea9200.dtb \
25         bcm4709-netgear-r7000.dtb \
26         bcm4709-netgear-r8000.dtb \
27         bcm4709-tplink-archer-c9-v1.dtb \
28 --- /dev/null
29 +++ b/arch/arm/boot/dts/bcm4709-linksys-ea9200.dts
30 @@ -0,0 +1,42 @@
31 +/*
32 + * Copyright (C) 2017 Rafał Miłecki <rafal@milecki.pl>
33 + *
34 + * Licensed under the ISC license.
35 + */
36 +
37 +/dts-v1/;
38 +
39 +#include "bcm4709.dtsi"
40 +#include "bcm5301x-nand-cs0-bch8.dtsi"
41 +
42 +/ {
43 +       compatible = "linksys,ea9200", "brcm,bcm4709", "brcm,bcm4708";
44 +       model = "Linksys EA9200";
45 +
46 +       chosen {
47 +               bootargs = "console=ttyS0,115200";
48 +       };
49 +
50 +       memory {
51 +               reg = <0x00000000 0x08000000
52 +                      0x88000000 0x08000000>;
53 +       };
54 +
55 +       gpio-keys {
56 +               compatible = "gpio-keys";
57 +               #address-cells = <1>;
58 +               #size-cells = <0>;
59 +
60 +               wps {
61 +                       label = "WPS";
62 +                       linux,code = <KEY_WPS_BUTTON>;
63 +                       gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
64 +               };
65 +
66 +               restart {
67 +                       label = "Reset";
68 +                       linux,code = <KEY_RESTART>;
69 +                       gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>;
70 +               };
71 +       };
72 +};