ramips: refresh patches
[oweals/openwrt.git] / target / linux / bcm53xx / patches-4.14 / 036-v5.1-0002-ARM-dts-BCM5301X-Add-basic-DT-for-Phicomm-K3.patch
1 From 40a17923367118e32e5e413a952736dd83635b32 Mon Sep 17 00:00:00 2001
2 From: Hao Dong <halbertdong@gmail.com>
3 Date: Sun, 20 Jan 2019 23:33:27 +0100
4 Subject: [PATCH] ARM: dts: BCM5301X: Add basic DT for Phicomm K3
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 This router has BCM4709C0 SoC, 128 MiB NAND flash (MX30LF1G18AC-TI),
10 512 MiB memory and 3 x LAN and 1 x WAN ports. WiFi chips are
11 BCM4366C0 x 2. The router has a small LCD and 3 capactive keys driven by
12 a PIC microcontroller, which is in turn wired to UART1 of main board.
13
14 Signed-off-by: Hao Dong <halbertdong@gmail.com>
15 [rmilecki: drop chosen { }, fix whitespaces, update commit message]
16 Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
17 Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
18 ---
19  arch/arm/boot/dts/Makefile                |  1 +
20  arch/arm/boot/dts/bcm47094-phicomm-k3.dts | 71 +++++++++++++++++++++++
21  2 files changed, 72 insertions(+)
22  create mode 100644 arch/arm/boot/dts/bcm47094-phicomm-k3.dts
23
24 --- a/arch/arm/boot/dts/Makefile
25 +++ b/arch/arm/boot/dts/Makefile
26 @@ -108,6 +108,7 @@ dtb-$(CONFIG_ARCH_BCM_5301X) += \
27         bcm47094-luxul-xwr-3100.dtb \
28         bcm47094-luxul-xwr-3150-v1.dtb \
29         bcm47094-netgear-r8500.dtb \
30 +       bcm47094-phicomm-k3.dtb \
31         bcm94708.dtb \
32         bcm94709.dtb \
33         bcm953012er.dtb \
34 --- /dev/null
35 +++ b/arch/arm/boot/dts/bcm47094-phicomm-k3.dts
36 @@ -0,0 +1,71 @@
37 +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
38 +/*
39 + * Copyright (C) 2017 Hamster Tian <haotia@gmail.com>
40 + * Copyright (C) 2019 Hao Dong <halbertdong@gmail.com>
41 + */
42 +
43 +/dts-v1/;
44 +
45 +#include "bcm47094.dtsi"
46 +#include "bcm5301x-nand-cs0-bch4.dtsi"
47 +
48 +/ {
49 +       compatible = "phicomm,k3", "brcm,bcm47094", "brcm,bcm4708";
50 +       model = "Phicomm K3";
51 +
52 +       memory {
53 +               reg = <0x00000000 0x08000000
54 +                      0x88000000 0x18000000>;
55 +       };
56 +
57 +       gpio-keys {
58 +               compatible = "gpio-keys";
59 +               #address-cells = <1>;
60 +               #size-cells = <0>;
61 +
62 +               restart {
63 +                       label = "Reset";
64 +                       linux,code = <KEY_RESTART>;
65 +                       gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>;
66 +               };
67 +       };
68 +};
69 +
70 +&uart1 {
71 +       status = "okay";
72 +};
73 +
74 +&usb3_phy {
75 +       status = "okay";
76 +};
77 +
78 +&nandcs {
79 +       partitions {
80 +               compatible = "fixed-partitions";
81 +               #address-cells = <1>;
82 +               #size-cells = <1>;
83 +
84 +               partition@0 {
85 +                       label = "boot";
86 +                       reg = <0x0000000 0x0080000>;
87 +                       read-only;
88 +               };
89 +
90 +               partition@80000 {
91 +                       label = "nvram";
92 +                       reg = <0x0080000 0x0100000>;
93 +               };
94 +
95 +               partition@180000{
96 +                       label = "phicomm";
97 +                       reg = <0x0180000 0x0280000>;
98 +                       read-only;
99 +               };
100 +
101 +               partition@400000 {
102 +                       label = "firmware";
103 +                       reg = <0x0400000 0x7C00000>;
104 +                       compatible = "brcm,trx";
105 +               };
106 +       };
107 +};