beeeda7b95a1750073bd424e109d57460c66794e
[oweals/openwrt.git] / target / linux / bcm53xx / patches-5.4 / 130-ARM-dts-BCM5301X-Add-DT-for-Luxul-XWC-2000.patch
1 From: Dan Haab <dan.haab@legrand.com>
2 Date: Wed, 2 Oct 2019 09:57:26 -0600
3 Subject: [PATCH] ARM: dts: BCM5301X: Add DT for Luxul XWC-2000
4
5 It's a simple network device based on BCM47094 with just a single
6 Ethernet port.
7
8 Signed-off-by: Dan Haab <dan.haab@legrand.com>
9 ---
10  arch/arm/boot/dts/Makefile                    |  1 +
11  arch/arm/boot/dts/bcm47094-luxul-xwc-2000.dts | 53 +++++++++++++++++++
12  2 files changed, 54 insertions(+)
13  create mode 100644 arch/arm/boot/dts/bcm47094-luxul-xwc-2000.dts
14
15 --- a/arch/arm/boot/dts/Makefile
16 +++ b/arch/arm/boot/dts/Makefile
17 @@ -111,6 +111,7 @@ dtb-$(CONFIG_ARCH_BCM_5301X) += \
18         bcm47094-luxul-abr-4500.dtb \
19         bcm47094-luxul-xap-1610.dtb \
20         bcm47094-luxul-xbr-4500.dtb \
21 +       bcm47094-luxul-xwc-2000.dtb \
22         bcm47094-luxul-xwr-3100.dtb \
23         bcm47094-luxul-xwr-3150-v1.dtb \
24         bcm47094-netgear-r8500.dtb \
25 --- /dev/null
26 +++ b/arch/arm/boot/dts/bcm47094-luxul-xwc-2000.dts
27 @@ -0,0 +1,53 @@
28 +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
29 +/*
30 + * Copyright 2019 Legrand AV Inc.
31 + */
32 +
33 +/dts-v1/;
34 +
35 +#include "bcm47094.dtsi"
36 +#include "bcm5301x-nand-cs0-bch8.dtsi"
37 +
38 +/ {
39 +       compatible = "luxul,xwc-2000-v1", "brcm,bcm47094", "brcm,bcm4708";
40 +       model = "Luxul XWC-2000 V1";
41 +
42 +       chosen {
43 +               bootargs = "earlycon";
44 +       };
45 +
46 +       memory {
47 +               reg = <0x00000000 0x08000000
48 +                      0x88000000 0x18000000>;
49 +       };
50 +
51 +       leds {
52 +               compatible = "gpio-leds";
53 +
54 +               status  {
55 +                       label = "bcm53xx:green:status";
56 +                       gpios = <&chipcommon 18 GPIO_ACTIVE_LOW>;
57 +                       linux,default-trigger = "timer";
58 +               };
59 +       };
60 +
61 +       gpio-keys {
62 +               compatible = "gpio-keys";
63 +               #address-cells = <1>;
64 +               #size-cells = <0>;
65 +
66 +               restart {
67 +                       label = "Reset";
68 +                       linux,code = <KEY_RESTART>;
69 +                       gpios = <&chipcommon 19 GPIO_ACTIVE_LOW>;
70 +               };
71 +       };
72 +};
73 +
74 +&uart1 {
75 +       status = "okay";
76 +};
77 +
78 +&spi_nor {
79 +       status = "okay";
80 +};