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