From patchwork Wed May 25 17:51:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William Zhang X-Patchwork-Id: 12861466 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3D331C433FE for ; Wed, 25 May 2022 17:53:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: MIME-Version:List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe :List-Id:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=xcdP1sy1EDvbrAkqv30Ws9xEc4kgAGUxkvpqIA2nUuk=; b=ZRhj37kzCu5B2l59X3wcCPzCQQ AiP9KuHtp39HomlQcsMXgmDDKkCpMWRUsqnji66NPfOdjEw7Zd4IVbADquhthzli4LXxIFswysz8i DbhlLd9mcoK1gxeY9h/Ty05l75So9UvHiPiax2SpXg04zpgp405mVps6KEq2eswv2E7/fIvrKLAIx Ut+8J7+JKSCmOy/3+U1NM3rTz9LccZs14XXr03LIxu0nfMhP2kw9K9Mc5yTTgmB8DCmt7P7W1vWTF MJMy7i9qZrKkA90dRgZFQZwilZNNGeF4lM5rJW7378Fo93K1d3yJn+6BMAsHgSuHKj4u/ufN4s2R0 pDYRkh4g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ntvBF-00C1wL-RM; Wed, 25 May 2022 17:52:21 +0000 Received: from mail-pg1-x531.google.com ([2607:f8b0:4864:20::531]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ntvAw-00C1n6-VE for linux-arm-kernel@lists.infradead.org; Wed, 25 May 2022 17:52:04 +0000 Received: by mail-pg1-x531.google.com with SMTP id c22so19511266pgu.2 for ; Wed, 25 May 2022 10:52:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Hvc5Vtr4un2R171nG2qW9YgwrFEW7nsxH4zSJ5g4wzk=; b=RVnao43hsaimBf4khAJDRU+dZfMN7hdx5X97tzAxwvnicqytPtud2+nCxpUj3XHUR4 +P5ihXsarQD5Dz09ROxU1JhKh+MzuFusvGhllHAh+0b2X/JptMeoz+3f2O0KfmfYC/P0 ozuJza10PaEUs6L5v5Rn2VmPlkIQGNGnArYmk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Hvc5Vtr4un2R171nG2qW9YgwrFEW7nsxH4zSJ5g4wzk=; b=NOVDfP2Rbze1FiHIq2vz8O6Y3jDc3NsnGSGVJefwiF/Kb+DdpkCSCPgAoUwIvXDC+W 76tnoj4UeGCOB4pMuXSYLWx2jvsGMBvFuYfT9/lM/wQ2Niiyqe+6COabFI5CTL+af39+ z1g2fIRK4mYuw0pNSKWG7vvGiOG5tX2+vGuEpEFTKhykGL3lo6qLlSAt1AY4KYcskgad piAOQDMY2WYXK9iKSXNkF5selN0cAncOSlRf5beARde1YzeSVUOIcWg+qvbSMPPK9K7q 6K8T0CNcdx3U3zMPTVRCEsx3RskJZuqIo8FuYXr8IJgvG8q9eFhUa4vz9kqN69Dv2eID DycQ== X-Gm-Message-State: AOAM533mDW21GVqP4+mGTzIBg66KWqXBo2stpuzhirMkd/bFwIKjkEjB w473uA5MHhDtOAfeqXbHFNkoe8jCkTcW91XtxCiACNFX9YvZPHrVcQl1dWDGNZbazdUCHfszkcS VU0QNn+fbhzUPGm9zm2aizOwvlAf1vjIEBHzlqIpDmdcoqiklho0qROCpxeRxfRoBBum++ZQJOQ K47M5hXhmiUODJD3uNG64= X-Google-Smtp-Source: ABdhPJzsCY9OasR6UypNMXYj4ptNrLxdEIEMvOf780TtCuJP3qxT/ryvNWN4YJoq4SIJAJ+P/Tp5Sw== X-Received: by 2002:a63:5d21:0:b0:3fa:387b:7b44 with SMTP id r33-20020a635d21000000b003fa387b7b44mr15537337pgb.48.1653501120865; Wed, 25 May 2022 10:52:00 -0700 (PDT) Received: from T3500-3.dhcp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id k14-20020a170902c40e00b0015e8d4eb27esm9824289plk.200.2022.05.25.10.51.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 May 2022 10:52:00 -0700 (PDT) From: William Zhang To: Linux ARM List Cc: tomer.yacoby@broadcom.com, kursad.oney@broadcom.com, dan.beygelman@broadcom.com, philippe.reynes@softathome.com, anand.gore@broadcom.com, joel.peshkin@broadcom.com, florian.fainelli@broadcom.com, samyon.furman@broadcom.com, William Zhang , Arnd Bergmann , Broadcom internal kernel review list , Krzysztof Kozlowski , Olof Johansson , Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, soc@kernel.org Subject: [PATCH v2 2/3] ARM: dts: add dts files for bcmbca SoC bcm6846 Date: Wed, 25 May 2022 10:51:23 -0700 Message-Id: <20220525175124.7524-3-william.zhang@broadcom.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220525175124.7524-1-william.zhang@broadcom.com> References: <20220525175124.7524-1-william.zhang@broadcom.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220525_105203_061216_938BBF32 X-CRM114-Status: GOOD ( 19.86 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add dts for ARMv7 based broadband SoC BCM6846. bcm6846.dtsi is the SoC description dts header and bcm96846.dts is a simple dts file for Broadcom BCM96846 Reference board that only enable the UART port. Signed-off-by: William Zhang --- (no changes since v1) arch/arm/boot/dts/Makefile | 3 +- arch/arm/boot/dts/bcm6846.dtsi | 103 +++++++++++++++++++++++++++++++++ arch/arm/boot/dts/bcm96846.dts | 30 ++++++++++ 3 files changed, 135 insertions(+), 1 deletion(-) create mode 100644 arch/arm/boot/dts/bcm6846.dtsi create mode 100644 arch/arm/boot/dts/bcm96846.dts diff --git a/arch/arm/boot/dts/Makefile b/arch/arm/boot/dts/Makefile index edfbedaa6168..b4143031860b 100644 --- a/arch/arm/boot/dts/Makefile +++ b/arch/arm/boot/dts/Makefile @@ -182,7 +182,8 @@ dtb-$(CONFIG_ARCH_BERLIN) += \ dtb-$(CONFIG_ARCH_BRCMSTB) += \ bcm7445-bcm97445svmb.dtb dtb-$(CONFIG_ARCH_BCMBCA) += \ - bcm947622.dtb + bcm947622.dtb \ + bcm96846.dtb dtb-$(CONFIG_ARCH_CLPS711X) += \ ep7211-edb7211.dtb dtb-$(CONFIG_ARCH_DAVINCI) += \ diff --git a/arch/arm/boot/dts/bcm6846.dtsi b/arch/arm/boot/dts/bcm6846.dtsi new file mode 100644 index 000000000000..e610c102498f --- /dev/null +++ b/arch/arm/boot/dts/bcm6846.dtsi @@ -0,0 +1,103 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright 2022 Broadcom Ltd. + */ + +#include +#include + +/ { + compatible = "brcm,bcm6846", "brcm,bcmbca"; + #address-cells = <1>; + #size-cells = <1>; + + interrupt-parent = <&gic>; + + cpus { + #address-cells = <1>; + #size-cells = <0>; + + CA7_0: cpu@0 { + device_type = "cpu"; + compatible = "arm,cortex-a7"; + reg = <0x0>; + next-level-cache = <&L2_0>; + enable-method = "psci"; + }; + + CA7_1: cpu@1 { + device_type = "cpu"; + compatible = "arm,cortex-a7"; + reg = <0x1>; + next-level-cache = <&L2_0>; + enable-method = "psci"; + }; + + L2_0: l2-cache0 { + compatible = "cache"; + }; + }; + + timer { + compatible = "arm,armv7-timer"; + interrupts = , + , + , + ; + arm,cpu-registers-not-fw-configured; + }; + + pmu: pmu { + compatible = "arm,cortex-a7-pmu"; + interrupts = , + ; + interrupt-affinity = <&CA7_0>, <&CA7_1>; + }; + + clocks: clocks { + periph_clk: periph-clk { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <200000000>; + }; + }; + + psci { + compatible = "arm,psci-0.2"; + method = "smc"; + cpu_off = <1>; + cpu_on = <2>; + }; + + axi@81000000 { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0 0x81000000 0x4000>; + + gic: interrupt-controller@1000 { + compatible = "arm,cortex-a7-gic"; + #interrupt-cells = <3>; + #address-cells = <0>; + interrupt-controller; + reg = <0x1000 0x1000>, + <0x2000 0x2000>; + }; + }; + + bus@ff800000 { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0 0xff800000 0x800000>; + + uart0: serial@640 { + compatible = "brcm,bcm6345-uart"; + reg = <0x640 0x1b>; + interrupts = ; + clocks = <&periph_clk>; + clock-names = "refclk"; + status = "disabled"; + }; + }; +}; diff --git a/arch/arm/boot/dts/bcm96846.dts b/arch/arm/boot/dts/bcm96846.dts new file mode 100644 index 000000000000..c70ebccabc19 --- /dev/null +++ b/arch/arm/boot/dts/bcm96846.dts @@ -0,0 +1,30 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright 2022 Broadcom Ltd. + */ + +/dts-v1/; + +#include "bcm6846.dtsi" + +/ { + model = "Broadcom BCM96846 Reference Board"; + compatible = "brcm,bcm96846", "brcm,bcm6846", "brcm,bcmbca"; + + aliases { + serial0 = &uart0; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x08000000>; + }; +}; + +&uart0 { + status = "okay"; +};