bcm53xx: backport the first bunch of 4.18 BCM5301X patches
[openwrt/staging/chunkeey.git] / target / linux / bcm53xx / patches-4.4 / 051-v4.18-0005-ARM-dts-BCM5301X-Add-DT-for-Luxul-XAP-1610.patch
1 From 6054cb5788072e214af582c42d9bd8c5ffa6e288 Mon Sep 17 00:00:00 2001
2 From: Dan Haab <riproute@gmail.com>
3 Date: Fri, 4 May 2018 10:08:44 -0600
4 Subject: [PATCH] ARM: dts: BCM5301X: Add DT for Luxul XAP-1610
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 It's an access point based on BCM47094 SoC with two BCM4366E wireless
10 chipsets.
11
12 Signed-off-by: Dan Haab <dan.haab@luxul.com>
13 Acked-by: Rafał Miłecki <rafal@milecki.pl>
14 Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
15 ---
16 arch/arm/boot/dts/Makefile | 1 +
17 arch/arm/boot/dts/bcm47094-luxul-xap-1610.dts | 57 +++++++++++++++++++++++++++
18 2 files changed, 58 insertions(+)
19 create mode 100644 arch/arm/boot/dts/bcm47094-luxul-xap-1610.dts
20
21 --- a/arch/arm/boot/dts/Makefile
22 +++ b/arch/arm/boot/dts/Makefile
23 @@ -86,6 +86,7 @@ dtb-$(CONFIG_ARCH_BCM_5301X) += \
24 bcm47094-dlink-dir-885l.dtb \
25 bcm47094-linksys-panamera.dtb \
26 bcm47094-luxul-abr-4500.dtb \
27 + bcm47094-luxul-xap-1610.dtb \
28 bcm47094-luxul-xbr-4500.dtb \
29 bcm47094-luxul-xwr-3100.dtb \
30 bcm47094-luxul-xwr-3150-v1.dtb \
31 --- /dev/null
32 +++ b/arch/arm/boot/dts/bcm47094-luxul-xap-1610.dts
33 @@ -0,0 +1,57 @@
34 +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
35 +/*
36 + * Copyright 2018 Luxul Inc.
37 + */
38 +
39 +/dts-v1/;
40 +
41 +#include "bcm47094.dtsi"
42 +
43 +/ {
44 + compatible = "luxul,xap-1610-v1", "brcm,bcm47094", "brcm,bcm4708";
45 + model = "Luxul XAP-1610 V1";
46 +
47 + chosen {
48 + bootargs = "earlycon";
49 + };
50 +
51 + memory {
52 + reg = <0x00000000 0x08000000>;
53 + };
54 +
55 + leds {
56 + compatible = "gpio-leds";
57 +
58 + status {
59 + label = "bcm53xx:green:status";
60 + gpios = <&chipcommon 0 GPIO_ACTIVE_LOW>;
61 + linux,default-trigger = "timer";
62 + };
63 +
64 + 2ghz {
65 + label = "bcm53xx:blue:2ghz";
66 + gpios = <&chipcommon 13 GPIO_ACTIVE_LOW>;
67 + };
68 +
69 + 5ghz {
70 + label = "bcm53xx:blue:5ghz";
71 + gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>;
72 + };
73 + };
74 +
75 + gpio-keys {
76 + compatible = "gpio-keys";
77 + #address-cells = <1>;
78 + #size-cells = <0>;
79 +
80 + restart {
81 + label = "Reset";
82 + linux,code = <KEY_RESTART>;
83 + gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>;
84 + };
85 + };
86 +};
87 +
88 +&spi_nor {
89 + status = "okay";
90 +};