4285a59a6da081ee9edac8c56d591379415c3a9a
[oweals/openwrt.git] /
1 From 2e2105a1578172eaf61e3b59a2c10c4fe04c21b9 Mon Sep 17 00:00:00 2001
2 From: Dan Haab <riproute@gmail.com>
3 Date: Fri, 4 May 2018 10:08:43 -0600
4 Subject: [PATCH] ARM: dts: BCM5301X: Add DT for Luxul XWR-3150 V1
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 Luxul XWR-3150 is a wireless router similar to the XWR-3100 except:
10 1) It has more RAM
11 2) Its NAND controller in running in BCH8 mode
12 3) LAN ports LEDs are hardware controlled
13
14 Signed-off-by: Dan Haab <dan.haab@luxul.com>
15 Acked-by: Rafał Miłecki <rafal@milecki.pl>
16 Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
17 ---
18  arch/arm/boot/dts/Makefile                       |  1 +
19  arch/arm/boot/dts/bcm47094-luxul-xwr-3150-v1.dts | 77 ++++++++++++++++++++++++
20  2 files changed, 78 insertions(+)
21  create mode 100644 arch/arm/boot/dts/bcm47094-luxul-xwr-3150-v1.dts
22
23 --- a/arch/arm/boot/dts/Makefile
24 +++ b/arch/arm/boot/dts/Makefile
25 @@ -104,6 +104,7 @@ dtb-$(CONFIG_ARCH_BCM_5301X) += \
26         bcm47094-luxul-abr-4500.dtb \
27         bcm47094-luxul-xbr-4500.dtb \
28         bcm47094-luxul-xwr-3100.dtb \
29 +       bcm47094-luxul-xwr-3150-v1.dtb \
30         bcm47094-netgear-r8500.dtb \
31         bcm94708.dtb \
32         bcm94709.dtb \
33 --- /dev/null
34 +++ b/arch/arm/boot/dts/bcm47094-luxul-xwr-3150-v1.dts
35 @@ -0,0 +1,77 @@
36 +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
37 +/*
38 + * Copyright 2018 Luxul Inc.
39 + */
40 +
41 +/dts-v1/;
42 +
43 +#include "bcm47094.dtsi"
44 +#include "bcm5301x-nand-cs0-bch8.dtsi"
45 +
46 +/ {
47 +       compatible = "luxul,xwr-3150-v1", "brcm,bcm47094", "brcm,bcm4708";
48 +       model = "Luxul XWR-3150 V1";
49 +
50 +       chosen {
51 +               bootargs = "earlycon";
52 +       };
53 +
54 +       memory {
55 +               reg = <0x00000000 0x08000000
56 +                      0x88000000 0x18000000>;
57 +       };
58 +
59 +       leds {
60 +               compatible = "gpio-leds";
61 +
62 +               power   {
63 +                       label = "bcm53xx:green:power";
64 +                       gpios = <&chipcommon 0 GPIO_ACTIVE_LOW>;
65 +                       linux,default-trigger = "default-on";
66 +               };
67 +
68 +               usb3    {
69 +                       label = "bcm53xx:green:usb3";
70 +                       gpios = <&chipcommon 8 GPIO_ACTIVE_LOW>;
71 +                       trigger-sources = <&ohci_port1>, <&ehci_port1>,
72 +                                         <&xhci_port1>;
73 +                       linux,default-trigger = "usbport";
74 +               };
75 +
76 +               status  {
77 +                       label = "bcm53xx:green:status";
78 +                       gpios = <&chipcommon 10 GPIO_ACTIVE_LOW>;
79 +                       linux,default-trigger = "timer";
80 +               };
81 +
82 +               2ghz {
83 +                       label = "bcm53xx:green:2ghz";
84 +                       gpios = <&chipcommon 13 GPIO_ACTIVE_LOW>;
85 +               };
86 +
87 +               5ghz {
88 +                       label = "bcm53xx:green:5ghz";
89 +                       gpios = <&chipcommon 14 GPIO_ACTIVE_LOW>;
90 +               };
91 +       };
92 +
93 +       gpio-keys {
94 +               compatible = "gpio-keys";
95 +               #address-cells = <1>;
96 +               #size-cells = <0>;
97 +
98 +               restart {
99 +                       label = "Reset";
100 +                       linux,code = <KEY_RESTART>;
101 +                       gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>;
102 +               };
103 +       };
104 +};
105 +
106 +&usb3 {
107 +       vcc-gpio = <&chipcommon 18 GPIO_ACTIVE_HIGH>;
108 +};
109 +
110 +&spi_nor {
111 +       status = "okay";
112 +};