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