From patchwork Sun Jan 20 22:33:27 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= X-Patchwork-Id: 10772523 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 6963417E9 for ; Sun, 20 Jan 2019 22:36:22 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4C42E223A1 for ; Sun, 20 Jan 2019 22:36:22 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 396B629D21; Sun, 20 Jan 2019 22:36:22 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 86913223A1 for ; Sun, 20 Jan 2019 22:36:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=gS2kkvlqwa5FCOkfWN3MUoygocSsOEjLJpCXfsQu75I=; b=jIzDvWdDEfdgRx LLG+80zUf9zZfvwG1aDeYtN9GPyhE2LhHW+R3LLGZtUzxO4UiunIQ0ghOpx5GN2brYyyHUyBzRhFG tN3p7aF2u1I6t3Dod+/X0y2+Siz/YLRZqbxrCNZ1HF0nKd7ieDMV8QwMPtGCRjLggzoGioTbO1wSC FzZUkGSjATMaiDMxRMwP0zpaREd2rb0BkKkILncHJFNSE189LmiU417bLhQP606OaFgPsPZZ1/k3e CijIjswBd5C+s1MeZhFLA+Pm9xREKllQShytqfDZNX6M82ASo+fbaT+BDPoaj/+8oQtGtmW/fZTE7 Rzya0JIGTsON63wZfkaw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1glLhP-0006Ks-U4; Sun, 20 Jan 2019 22:36:15 +0000 Received: from mail-lj1-x244.google.com ([2a00:1450:4864:20::244]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1glLhK-0006IQ-0c for linux-arm-kernel@lists.infradead.org; Sun, 20 Jan 2019 22:36:14 +0000 Received: by mail-lj1-x244.google.com with SMTP id k15-v6so15912008ljc.8 for ; Sun, 20 Jan 2019 14:36:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=2PNfJqZnuqYyuSsQxJa8/apCAvbAqst6HFn4GQprEEc=; b=kSaz4g+GOWD3WOIelL/FnLaFF80fkv0Wlzu4QPk0aromyLFYcNzhQAYQBLa7iRWqvf UBIW/gJCPwcoRpFEYXvfb9lm+8qq7HD7f7rbSN+F66GEBpp+YxefMLjDQjhOqK4BksaG 0VuYGKdEkcYh3y9Yj5XWsjJGHXQig9MR5BYtWMkpXxeGJ4P7Cw+IKE62+txSye+ov8iJ OmH7j/++Hk85huuUiVXaltwngV4Zeg1KrvoMJYln8eI9YPNItg8MZ0m0BXnJ9UPePOc+ vW9iTGTe8KCOapeoFfdEp7d+fP962S6WtPjF3DxH3Xhvf02uQbKJFGpp/2J0eXw4dUBp eqKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=2PNfJqZnuqYyuSsQxJa8/apCAvbAqst6HFn4GQprEEc=; b=RHeaDhCTNflu5NHfMOU+/F1cSWgc5TlmYleq/AVYPHuqo3zXzI2zBZcdsCdyslDZ0w t+VMH8Z71TddpGBK0rakklWUr68WncOBLDa8YeDyD0+Nb4XYniGDQrGHguwsau0QTteS H10o3S0QzP8yOnOpwMeuUdEMV9iQUgTQdWtfIorAh5aH7Tzb1FkkIYVpHktOZesq/HbU deQsmtC+7PE+kJogpxYBflFcz/RVxzIdSRmoMi41WQTJk7vZ52vka+tqhwXT0tnxULA8 AbBI9yGwtmNBwNd+ng5mcCFHGM7QryrQQAatyqyuygklDvlMjdcH8BkzPprsu4/MbNDA RueQ== X-Gm-Message-State: AJcUukfLIAI9qFKDIj1Vdz5i757skxG7IjAW/zL+qv9N3tk+Q9eOh9Yj cTKvssqvbB+YV77XkOGzabs= X-Google-Smtp-Source: ALg8bN7BQyNfAptH/3nqk6efc3EbBaM9L/w+fcUZA6dAwocFPF9d8/srsoprvTjAZrVM1ke0Vay7YA== X-Received: by 2002:a2e:5303:: with SMTP id h3-v6mr17481259ljb.35.1548023767365; Sun, 20 Jan 2019 14:36:07 -0800 (PST) Received: from elitebook.lan (ip-194-187-74-233.konfederacka.maverick.com.pl. [194.187.74.233]) by smtp.gmail.com with ESMTPSA id h203sm1972555lfe.44.2019.01.20.14.36.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 20 Jan 2019 14:36:06 -0800 (PST) From: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= To: Florian Fainelli Subject: [PATCH] ARM: dts: BCM5301X: Add basic DT for Phicomm K3 Date: Sun, 20 Jan 2019 23:33:27 +0100 Message-Id: <20190120223327.14999-1-zajec5@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190120_143610_084446_3109892D X-CRM114-Status: GOOD ( 14.78 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Hao Dong , Hauke Mehrtens , Rob Herring , bcm-kernel-feedback-list@broadcom.com, =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= , Hamster Tian , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Hao Dong 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. Signed-off-by: Hao Dong [rmilecki: drop chosen { }, fix whitespaces, update commit message] Signed-off-by: Rafał Miłecki --- I've taken OpenWrt submitted DTS and updated it to fit upstream standards: 1) Dropped chosen { } with duplicated console info 2) Fixed whitespaces 3) Dropped OpenWrt specific info from the commit message: * LCD software package * openwrt.org & 4366c0 firmware --- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/bcm47094-phicomm-k3.dts | 71 +++++++++++++++++++++++ 2 files changed, 72 insertions(+) create mode 100644 arch/arm/boot/dts/bcm47094-phicomm-k3.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index bd40148a15b2..bbc0f4527c39 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -115,6 +115,7 @@ dtb-$(CONFIG_ARCH_BCM_5301X) += \ 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 \ diff --git a/arch/arm/boot/dts/bcm47094-phicomm-k3.dts b/arch/arm/boot/dts/bcm47094-phicomm-k3.dts new file mode 100644 index 000000000000..ec09c0426d16 --- /dev/null +++ b/arch/arm/boot/dts/bcm47094-phicomm-k3.dts @@ -0,0 +1,71 @@ +// SPDX-License-Identifier: GPL-2.0-or-later OR MIT +/* + * Copyright (C) 2017 Hamster Tian + * Copyright (C) 2019 Hao Dong + */ + +/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 + 0x88000000 0x18000000>; + }; + + gpio-keys { + compatible = "gpio-keys"; + #address-cells = <1>; + #size-cells = <0>; + + restart { + label = "Reset"; + linux,code = ; + 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"; + }; + }; +};