bcm53xx: update pinctrl driver
[oweals/openwrt.git] / target / linux / bcm53xx / patches-4.14 / 035-v4.15-0002-ARM-dts-BCM5301X-Add-DT-for-Luxul-XBR-4500.patch
1 From 1f4b0d5596d2e3ea8e953d578ab8444ce860d35d Mon Sep 17 00:00:00 2001
2 From: Dan Haab <dhaab@luxul.com>
3 Date: Mon, 9 Oct 2017 09:46:22 -0600
4 Subject: [PATCH] ARM: dts: BCM5301X: Add DT for Luxul XBR-4500
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 This is BCM47094 (AKA BCM4709C0) based router with ports-on-the-front
10 board design.
11
12 Signed-off-by: Dan Haab <dhaab@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-xbr-4500.dts | 63 +++++++++++++++++++++++++++
18  2 files changed, 64 insertions(+)
19  create mode 100644 arch/arm/boot/dts/bcm47094-luxul-xbr-4500.dts
20
21 --- a/arch/arm/boot/dts/Makefile
22 +++ b/arch/arm/boot/dts/Makefile
23 @@ -101,6 +101,7 @@ dtb-$(CONFIG_ARCH_BCM_5301X) += \
24         bcm4709-tplink-archer-c9-v1.dtb \
25         bcm47094-dlink-dir-885l.dtb \
26         bcm47094-linksys-panamera.dtb \
27 +       bcm47094-luxul-xbr-4500.dtb \
28         bcm47094-luxul-xwr-3100.dtb \
29         bcm47094-netgear-r8500.dtb \
30         bcm94708.dtb \
31 --- /dev/null
32 +++ b/arch/arm/boot/dts/bcm47094-luxul-xbr-4500.dts
33 @@ -0,0 +1,63 @@
34 +/*
35 + * Copyright (C) 2017 Luxul Inc.
36 + *
37 + * Licensed under the ISC license.
38 + */
39 +
40 +/dts-v1/;
41 +
42 +#include "bcm4708.dtsi"
43 +#include "bcm5301x-nand-cs0-bch8.dtsi"
44 +
45 +/ {
46 +       compatible = "luxul,xbr-4500-v1", "brcm,bcm47094", "brcm,bcm4708";
47 +       model = "Luxul XBR-4500 V1";
48 +
49 +       chosen {
50 +               bootargs = "earlycon";
51 +       };
52 +
53 +       memory {
54 +               reg = <0x00000000 0x08000000
55 +                      0x88000000 0x18000000>;
56 +       };
57 +
58 +       leds {
59 +               compatible = "gpio-leds";
60 +
61 +               status {
62 +                       label = "bcm53xx:green:status";
63 +                       gpios = <&chipcommon 20 GPIO_ACTIVE_HIGH>;
64 +                       linux,default-trigger = "timer";
65 +               };
66 +
67 +               usb3 {
68 +                       label = "bcm53xx:green:usb3";
69 +                       gpios = <&chipcommon 19 GPIO_ACTIVE_HIGH>;
70 +                       trigger-sources = <&ohci_port1>, <&ehci_port1>,
71 +                               <&xhci_port1>;
72 +                       linux,default-trigger = "usbport";
73 +               };
74 +
75 +       };
76 +
77 +       gpio-keys {
78 +               compatible = "gpio-keys";
79 +               #address-cells = <1>;
80 +               #size-cells = <0>;
81 +
82 +               restart {
83 +                       label = "Reset";
84 +                       linux,code = <KEY_RESTART>;
85 +                       gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>;
86 +               };
87 +       };
88 +};
89 +
90 +&usb3 {
91 +       vcc-gpio = <&chipcommon 18 GPIO_ACTIVE_HIGH>;
92 +};
93 +
94 +&spi_nor {
95 +       status = "okay";
96 +};