From patchwork Wed Jun 1 02:22:12 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William Zhang X-Patchwork-Id: 12866303 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 39215C433EF for ; Wed, 1 Jun 2022 02:24:35 +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: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: MIME-Version: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=/DS5eoz4PwARHfYiynuethbwP8FE/3nXMv4IJ0Q49kY=; b=Lw7xbdJlNF/Zp0mv5LCxTDXT0a XTqpWQtXFjUreS3PZRWWKPJu1thnHIbaEoDID9uM4Io2yfdkzj3OaMpQm/yk3F6VTwMq5OXO5PHNp BLw8XzX0FvZc2/lcYb48A6YJvt+7DY6RFblpIY1qmQsD5takG5PusPBnGZTRKtmBCncHaQ0qpthEg /TZqZTwvwfxrOoRo2I9neGnmgTMjn5LF7erOqiEZlEXH194h88vrw2tCSn3r+ZIlAKegkWNr00tVR 9YNMo+iK+Isjr/dKU8z7EFdx+Kvb/1s5RFve7B8m+kctYl6s6jLNY2yq+C0v0pgEuDpvfWorqYnw+ COQyxKYA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nwE12-00DOa8-Sw; Wed, 01 Jun 2022 02:23:21 +0000 Received: from mail-pl1-x62f.google.com ([2607:f8b0:4864:20::62f]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nwE0r-00DOV6-28 for linux-arm-kernel@lists.infradead.org; Wed, 01 Jun 2022 02:23:10 +0000 Received: by mail-pl1-x62f.google.com with SMTP id s14so442060plk.8 for ; Tue, 31 May 2022 19:23:08 -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 :mime-version; bh=Xo0/4InyNnJ/PBFX5HTUsKmGPcWcKbHxP0AF8oalh9A=; b=fyDeur2nYx2FmobsO4p8Wpnm/iiY+9vOC/zHbAXGlKoT+AbWIi/Gwqh/rUiKK/Vmwi WsRkmRKPEmfQ22HfLflgiXNWFRgb4zmJ6Fpeh1zTBLK4gWdeLJTsR0nZiu2wRUObXkPw UucQ0xgpezy+NU2fWT7cWF3zbZWm3dM2Y+TnQ= 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:mime-version; bh=Xo0/4InyNnJ/PBFX5HTUsKmGPcWcKbHxP0AF8oalh9A=; b=2k3kgdN0FV33QlHXzF+FGIuICHVv5I55JtU38QyaSWlmgSVDt3jYOW0gZY6nRk07VU 91MT5OAxQTXXkWcHpK0ApGnd4iwVnqb/tIK59x2BDGHjW8SgzLu/vuLtOxMSnkPbSC4K svRwAPkwWCgOyWwIfFVV7VgA/4apIJ9tjjLNCm5qkeicFrwkahV9eaqqf3cdLn5vGByR 5uwJgdh1bvW8ohWWUjDMuDvd0LyQaZnsBgGuCIaGV0OoFrpd24u3p0lh451EjuxFvoie jUQkSlKe3sOo7U9/TnOIhDM1Jz9MwQPYt5WkEPkLtwA7+AI1Xqiyg/RFSpZKO0MgwGFx k5Cw== X-Gm-Message-State: AOAM532jdU9Vmmk7o8CYSdQEs93meD2K2sfbFNAJkDusINWiv2/V+9rR eEa2wFhr4tzuHyYS966wXAkADAUlk7BpWkt9vEA6PTerknO/+GaPewu5QFez0kEMC96qV7gG4Ws vSk025owNwpi13V6yhT1ONrN9P5/8Aea7LglHDV/1Xt5i4P3GHS6h/HSsEJabE7X/5FUABVH6zj DpXOU55wHtMwKOCtl/6BU= X-Google-Smtp-Source: ABdhPJyVQ6BqRjO2+eKFo69VmqoB1DX6OTBsxsQd9r7b+eZsy8UYi5iI7eTY0iz6DFs/x08U3RGPZg== X-Received: by 2002:a17:90a:fe8f:b0:1e3:1dcd:7f94 with SMTP id co15-20020a17090afe8f00b001e31dcd7f94mr10568867pjb.23.1654050187319; Tue, 31 May 2022 19:23:07 -0700 (PDT) Received: from T3500-3.dhcp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id v24-20020a634658000000b003fad46ceb85sm157824pgk.7.2022.05.31.19.23.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 May 2022 19:23:06 -0700 (PDT) From: William Zhang To: Linux ARM List Cc: anand.gore@broadcom.com, dan.beygelman@broadcom.com, florian.fainelli@broadcom.com, joel.peshkin@broadcom.com, tomer.yacoby@broadcom.com, kursad.oney@broadcom.com, samyon.furman@broadcom.com, philippe.reynes@softathome.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 v3 2/3] ARM: dts: add dts files for bcmbca SoC bcm6846 Date: Tue, 31 May 2022 19:22:12 -0700 Message-Id: <20220601022215.32494-3-william.zhang@broadcom.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220601022215.32494-1-william.zhang@broadcom.com> References: <20220601022215.32494-1-william.zhang@broadcom.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220531_192309_175340_A8802966 X-CRM114-Status: GOOD ( 20.59 ) 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: , 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 --- Changes in v3: - Fix timer PPI interrupt cpu mask for dual core cpu - Remove unnecessary cpu_on and cpu_off properties from psci node - Add the missing gic registers and interrupts property to gic node 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 03f5b3a15415..2f20dcf74858 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..8aa47a2583b2 --- /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"; + }; + + axi@81000000 { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0 0x81000000 0x8000>; + + gic: interrupt-controller@1000 { + compatible = "arm,cortex-a7-gic"; + #interrupt-cells = <3>; + interrupt-controller; + interrupts = ; + reg = <0x1000 0x1000>, + <0x2000 0x2000>, + <0x4000 0x2000>, + <0x6000 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"; +};