mac80211: move (& update) upstream accepted brcmfmac patches
[openwrt/openwrt.git] / target / linux / bcm53xx / patches-4.4 / 130-0002-ARM-BCM5301X-Add-DT-for-Luxul-XAP-1410.patch
1 From: Dan Haab <dhaab@luxul.com>
2 Subject: [PATCH] ARM: BCM5301X: Add DT for Luxul XAP-1410
3
4 Luxul XAP-1410 in a dual-band access point device based on BCM47081 with
5 serial flash. It has 3 LEDs and just one (reset) button.
6
7 Signed-off-by: Dan Haab <dhaab@luxul.com>
8 ---
9 arch/arm/boot/dts/Makefile | 1 +
10 arch/arm/boot/dts/bcm47081-luxul-xap-1410.dts | 60 +++++++++++++++++++++++++++
11 2 files changed, 61 insertions(+)
12 create mode 100644 arch/arm/boot/dts/bcm47081-luxul-xap-1410.dts
13
14 --- a/arch/arm/boot/dts/Makefile
15 +++ b/arch/arm/boot/dts/Makefile
16 @@ -73,6 +73,7 @@ dtb-$(CONFIG_ARCH_BCM_5301X) += \
17 bcm47081-asus-rt-n18u.dtb \
18 bcm47081-buffalo-wzr-600dhp2.dtb \
19 bcm47081-buffalo-wzr-900dhp.dtb \
20 + bcm47081-luxul-xap-1410.dtb \
21 bcm4709-asus-rt-ac87u.dtb \
22 bcm4709-buffalo-wxr-1900dhp.dtb \
23 bcm4709-netgear-r7000.dtb \
24 --- /dev/null
25 +++ b/arch/arm/boot/dts/bcm47081-luxul-xap-1410.dts
26 @@ -0,0 +1,60 @@
27 +/*
28 + * Copyright 2017 Luxul Inc.
29 + *
30 + * Licensed under the ISC license.
31 + */
32 +
33 +/dts-v1/;
34 +
35 +#include "bcm47081.dtsi"
36 +
37 +/ {
38 + compatible = "luxul,xap-1410v1", "brcm,bcm47081", "brcm,bcm4708";
39 + model = "Luxul XAP-1410 V1";
40 +
41 + chosen {
42 + bootargs = "console=ttyS0,115200";
43 + };
44 +
45 + memory {
46 + reg = <0x00000000 0x08000000>;
47 + };
48 +
49 + leds {
50 + compatible = "gpio-leds";
51 +
52 + 5ghz {
53 + label = "bcm53xx:blue:5ghz";
54 + gpios = <&chipcommon 13 GPIO_ACTIVE_LOW>;
55 + linux,default-trigger = "none";
56 + };
57 +
58 + 2ghz {
59 + label = "bcm53xx:blue:2ghz";
60 + gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>;
61 + linux,default-trigger = "none";
62 + };
63 +
64 + status {
65 + label = "bcm53xx:green:status";
66 + gpios = <&chipcommon 15 GPIO_ACTIVE_LOW>;
67 + linux,default-trigger = "timer";
68 + };
69 + };
70 +
71 + gpio-keys {
72 + compatible = "gpio-keys";
73 + #address-cells = <1>;
74 + #size-cells = <0>;
75 +
76 + restart {
77 + label = "Reset";
78 + linux,code = <KEY_RESTART>;
79 + gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
80 + };
81 + };
82 +};
83 +
84 +&spi_nor {
85 + status = "okay";
86 +};