2019-02-01 06:07:32 +00:00
|
|
|
From 40a17923367118e32e5e413a952736dd83635b32 Mon Sep 17 00:00:00 2001
|
2019-01-19 17:39:19 +00:00
|
|
|
From: Hao Dong <halbertdong@gmail.com>
|
2019-02-01 06:07:32 +00:00
|
|
|
Date: Sun, 20 Jan 2019 23:33:27 +0100
|
2019-01-19 17:39:19 +00:00
|
|
|
Subject: [PATCH] ARM: dts: BCM5301X: Add basic DT for Phicomm K3
|
2019-02-01 06:07:32 +00:00
|
|
|
MIME-Version: 1.0
|
|
|
|
Content-Type: text/plain; charset=UTF-8
|
|
|
|
Content-Transfer-Encoding: 8bit
|
2019-01-19 17:39:19 +00:00
|
|
|
|
2019-02-01 06:07:32 +00:00
|
|
|
This router has BCM4709C0 SoC, 128 MiB NAND flash (MX30LF1G18AC-TI),
|
|
|
|
512 MiB memory and 3 x LAN and 1 x WAN ports. WiFi chips are
|
|
|
|
BCM4366C0 x 2. The router has a small LCD and 3 capactive keys driven by
|
|
|
|
a PIC microcontroller, which is in turn wired to UART1 of main board.
|
2019-01-19 17:39:19 +00:00
|
|
|
|
|
|
|
Signed-off-by: Hao Dong <halbertdong@gmail.com>
|
2019-02-01 06:07:32 +00:00
|
|
|
[rmilecki: drop chosen { }, fix whitespaces, update commit message]
|
|
|
|
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
|
|
|
|
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
|
2019-01-19 17:39:19 +00:00
|
|
|
---
|
|
|
|
arch/arm/boot/dts/Makefile | 1 +
|
2019-02-01 06:07:32 +00:00
|
|
|
arch/arm/boot/dts/bcm47094-phicomm-k3.dts | 71 +++++++++++++++++++++++
|
|
|
|
2 files changed, 72 insertions(+)
|
2019-01-19 17:39:19 +00:00
|
|
|
create mode 100644 arch/arm/boot/dts/bcm47094-phicomm-k3.dts
|
|
|
|
|
|
|
|
--- a/arch/arm/boot/dts/Makefile
|
|
|
|
+++ b/arch/arm/boot/dts/Makefile
|
2019-02-01 06:07:32 +00:00
|
|
|
@@ -108,6 +108,7 @@ dtb-$(CONFIG_ARCH_BCM_5301X) += \
|
2019-01-19 17:39:19 +00:00
|
|
|
bcm47094-luxul-xwr-3100.dtb \
|
|
|
|
bcm47094-luxul-xwr-3150-v1.dtb \
|
|
|
|
bcm47094-netgear-r8500.dtb \
|
|
|
|
+ bcm47094-phicomm-k3.dtb \
|
|
|
|
bcm94708.dtb \
|
|
|
|
bcm94709.dtb \
|
|
|
|
bcm953012er.dtb \
|
|
|
|
--- /dev/null
|
|
|
|
+++ b/arch/arm/boot/dts/bcm47094-phicomm-k3.dts
|
2019-02-01 06:07:32 +00:00
|
|
|
@@ -0,0 +1,71 @@
|
2019-01-19 17:39:19 +00:00
|
|
|
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
|
|
|
+/*
|
2019-02-01 06:07:32 +00:00
|
|
|
+ * Copyright (C) 2017 Hamster Tian <haotia@gmail.com>
|
|
|
|
+ * Copyright (C) 2019 Hao Dong <halbertdong@gmail.com>
|
|
|
|
+ */
|
2019-01-19 17:39:19 +00:00
|
|
|
+
|
|
|
|
+/dts-v1/;
|
|
|
|
+
|
|
|
|
+#include "bcm47094.dtsi"
|
|
|
|
+#include "bcm5301x-nand-cs0-bch4.dtsi"
|
|
|
|
+
|
|
|
|
+/ {
|
|
|
|
+ compatible = "phicomm,k3", "brcm,bcm47094", "brcm,bcm4708";
|
|
|
|
+ model = "Phicomm K3";
|
|
|
|
+
|
|
|
|
+ memory {
|
|
|
|
+ reg = <0x00000000 0x08000000
|
2019-02-01 06:07:32 +00:00
|
|
|
+ 0x88000000 0x18000000>;
|
2019-01-19 17:39:19 +00:00
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ gpio-keys {
|
|
|
|
+ compatible = "gpio-keys";
|
|
|
|
+ #address-cells = <1>;
|
|
|
|
+ #size-cells = <0>;
|
|
|
|
+
|
|
|
|
+ restart {
|
|
|
|
+ label = "Reset";
|
|
|
|
+ linux,code = <KEY_RESTART>;
|
|
|
|
+ gpios = <&chipcommon 17 GPIO_ACTIVE_LOW>;
|
|
|
|
+ };
|
|
|
|
+ };
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+&uart1 {
|
|
|
|
+ status = "okay";
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+&usb3_phy {
|
|
|
|
+ status = "okay";
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+&nandcs {
|
|
|
|
+ partitions {
|
|
|
|
+ compatible = "fixed-partitions";
|
|
|
|
+ #address-cells = <1>;
|
|
|
|
+ #size-cells = <1>;
|
|
|
|
+
|
|
|
|
+ partition@0 {
|
|
|
|
+ label = "boot";
|
|
|
|
+ reg = <0x0000000 0x0080000>;
|
|
|
|
+ read-only;
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ partition@80000 {
|
|
|
|
+ label = "nvram";
|
|
|
|
+ reg = <0x0080000 0x0100000>;
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ partition@180000{
|
|
|
|
+ label = "phicomm";
|
|
|
|
+ reg = <0x0180000 0x0280000>;
|
|
|
|
+ read-only;
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ partition@400000 {
|
|
|
|
+ label = "firmware";
|
|
|
|
+ reg = <0x0400000 0x7C00000>;
|
|
|
|
+ compatible = "brcm,trx";
|
|
|
|
+ };
|
2019-02-01 06:07:32 +00:00
|
|
|
+ };
|
2019-01-19 17:39:19 +00:00
|
|
|
+};
|