mac80211: move (& update) upstream accepted brcmfmac patches
[oweals/openwrt.git] / target / linux / bcm53xx / patches-4.4 / 130-0003-ARM-BCM5301X-Add-DT-for-Luxul-XWR-1200.patch
1 From: Dan Haab <dhaab@luxul.com>
2 Subject: [PATCH] ARM: BCM5301X: Add DT for Luxul XWR-1200
3
4 Luxul XWR-1200 in a dual-band router based on BCM47081. It uses serial
5 flash (for bootloader and NVRAM) and NAND flash (for firmware).
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-xwr-1200.dts | 107 ++++++++++++++++++++++++++
11  2 files changed, 108 insertions(+)
12  create mode 100644 arch/arm/boot/dts/bcm47081-luxul-xwr-1200.dts
13
14 --- a/arch/arm/boot/dts/Makefile
15 +++ b/arch/arm/boot/dts/Makefile
16 @@ -74,6 +74,7 @@ dtb-$(CONFIG_ARCH_BCM_5301X) += \
17         bcm47081-buffalo-wzr-600dhp2.dtb \
18         bcm47081-buffalo-wzr-900dhp.dtb \
19         bcm47081-luxul-xap-1410.dtb \
20 +       bcm47081-luxul-xwr-1200.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-xwr-1200.dts
26 @@ -0,0 +1,107 @@
27 +/*
28 + * Copyright 2017 Luxul Inc.
29 + *
30 + * Licensed under the ISC license.
31 + */
32 +
33 +/dts-v1/;
34 +
35 +#include "bcm47081.dtsi"
36 +#include "bcm5301x-nand-cs0-bch4.dtsi"
37 +
38 +/ {
39 +       compatible = "luxul,xwr-1200v1", "brcm,bcm47081", "brcm,bcm4708";
40 +       model = "Luxul XWR-1200 V1";
41 +
42 +       chosen {
43 +               bootargs = "console=ttyS0,115200";
44 +       };
45 +
46 +       memory {
47 +               reg = <0x00000000 0x08000000>;
48 +       };
49 +
50 +       leds {
51 +               compatible = "gpio-leds";
52 +
53 +               power {
54 +                       label = "bcm53xx:green:power";
55 +                       gpios = <&chipcommon 0 GPIO_ACTIVE_LOW>;
56 +                       linux,default-trigger = "default-on";
57 +               };
58 +
59 +               lan3 {
60 +                       label = "bcm53xx:green:lan3";
61 +                       gpios = <&chipcommon 1 GPIO_ACTIVE_LOW>;
62 +                       linux,default-trigger = "none";
63 +               };
64 +
65 +               lan4 {
66 +                       label = "bcm53xx:green:lan4";
67 +                       gpios = <&chipcommon 2 GPIO_ACTIVE_LOW>;
68 +                       linux,default-trigger = "none";
69 +               };
70 +
71 +               wan {
72 +                       label = "bcm53xx:green:wan";
73 +                       gpios = <&chipcommon 3 GPIO_ACTIVE_LOW>;
74 +                       linux,default-trigger = "none";
75 +               };
76 +
77 +               lan2 {
78 +                       label = "bcm53xx:green:lan2";
79 +                       gpios = <&chipcommon 6 GPIO_ACTIVE_LOW>;
80 +                       linux,default-trigger = "none";
81 +               };
82 +
83 +               usb {
84 +                       label = "bcm53xx:green:usb";
85 +                       gpios = <&chipcommon 8 GPIO_ACTIVE_LOW>;
86 +                       linux,default-trigger = "none";
87 +               };
88 +
89 +               status {
90 +                       label = "bcm53xx:green:status";
91 +                       gpios = <&chipcommon 10 GPIO_ACTIVE_LOW>;
92 +                       linux,default-trigger = "timer";
93 +               };
94 +
95 +               2ghz {
96 +                       label = "bcm53xx:green:2ghz";
97 +                       gpios = <&chipcommon 13 GPIO_ACTIVE_LOW>;
98 +                       linux,default-trigger = "none";
99 +               };
100 +
101 +               5ghz {
102 +                       label = "bcm53xx:green:5ghz";
103 +                       gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>;
104 +                       linux,default-trigger = "none";
105 +               };
106 +
107 +               lan1 {
108 +                       label = "bcm53xx:green:lan1";
109 +                       gpios = <&chipcommon 15 GPIO_ACTIVE_LOW>;
110 +                       linux,default-trigger = "none";
111 +               };
112 +       };
113 +
114 +       gpio-keys {
115 +               compatible = "gpio-keys";
116 +               #address-cells = <1>;
117 +               #size-cells = <0>;
118 +
119 +               restart {
120 +                       label = "Reset";
121 +                       linux,code = <KEY_RESTART>;
122 +                       gpios = <&chipcommon 11 GPIO_ACTIVE_LOW>;
123 +               };
124 +       };
125 +};
126 +
127 +&usb2 {
128 +       vcc-gpio = <&chipcommon 9 GPIO_ACTIVE_HIGH>;
129 +};
130 +
131 +&spi_nor {
132 +       status = "okay";
133 +};