From patchwork Wed Jun 8 18:00:59 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William Zhang X-Patchwork-Id: 12874464 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 4DE71C433EF for ; Wed, 8 Jun 2022 18:02:57 +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=wW67Qd+YbchZO8SbkLDwM93C4rIgxjbQeX8o85TbS/I=; b=TwLWI3rW0QveqWJGr7xxLjDPLZ F+anwSxOK/JuY/txsBzCFmrWAhtTWsRQTm9cYFthlt03P8zyRSU6Kd441c7K9DliwJYDw15EaEB47 wYcybetOkxh4jgMH1Oas4nGWgorKVAUVN2y1twLyvd+a76kHBsbwmJXh+yjFXqcKdSYwuh9qzUgDD 0F8tKEBG0q8YWApcyGydHXEK2SMAKqLsv2NB9uedxhyVuq0Qt0XuXomRCne1/7PHUArW68DsiQNXX LxI6eDU7u1DD34q+sSZbEQrXRBueP6xE7GF40EM5HeBmkDEKNgX56FK8il8YUpjYrqeIo/c91PW2d Y56pOfKw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nz003-00Eaqm-46; Wed, 08 Jun 2022 18:01:47 +0000 Received: from mail-pl1-x629.google.com ([2607:f8b0:4864:20::629]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nyzzi-00Eaib-3R for linux-arm-kernel@lists.infradead.org; Wed, 08 Jun 2022 18:01:27 +0000 Received: by mail-pl1-x629.google.com with SMTP id i15so1533748plr.1 for ; Wed, 08 Jun 2022 11:01:23 -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=BfcwGf61lAZ9U7943A75grIwyhnj/JzTcQcew1+jK0w=; b=I7OEAVy/03eCdCsn2aDarSTn+hdSOcueXytna3vpOd2Sy+BK9LBGLRCs/9GgVN4Jvx 30mhEqAFr3YsTWiIjOrRkYF9Bh139xjBCKLC2td7VUL9qnedOyUYd7XMUyQllCXqGuKs pAFHd/QYf1xX7hk9CdOsogwf7RHO2JFLNCAU4= 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=BfcwGf61lAZ9U7943A75grIwyhnj/JzTcQcew1+jK0w=; b=wL3Ni5fjK76vK0IuAsKKsZWI97zTor9+jy2iBWQr9pVuaTLtNmULCQyxyVqICqPrMO 0k4yBp46zC5gThNQKo3MOSpnaiH19+Q72U8lI/ENkw4YrUfEMmUl5DxNfDM9DE1a7phQ V+qdMgEwknbOV3r7aVrMgmr9LEQXKeCtjM/NYP7uSp6BhZI+dzM4XWBisLfJmJ2h0ViQ AR/3l7DHlbO0gJViWJqTq0c/LdGu5WMwIcqqYAc81xijwQyKofs8y6qQAiHqsV1xDwPO GRpvUFdXcvJWkYZItmsy2HV/hXPE82vT9iGLvx25/yyASdyNB5b7RTpUoKY4RXmhop5k Rl4A== X-Gm-Message-State: AOAM532C/gAcVfzSv9/bA4JKlBjC2cutxcl14RSFLC97nrZnEy7HtGQa iW/vaJ7271SGu5tW/H+RyfBmdWQw95wMn7sj5sUhE/mh1IfqslsrrzOdLA/+2wBRBymuNusvmnS FX7KB7ES/u6kV2v5m+KMn3tktEhMRXy/5epPlbSKW3Ak4T8ez0A9o1xV68tyI07aYFDV7hsLA3L FRgVKMldCDULlnGW0CNJk= X-Google-Smtp-Source: ABdhPJxyRjxNyO+YeTjMdDKCjI/rGK+MufzrEhFWNSV/btgY1L0R8Arof42vRPy2XJL1NFMaYffl4w== X-Received: by 2002:a17:903:1013:b0:163:e8b9:2429 with SMTP id a19-20020a170903101300b00163e8b92429mr35491759plb.74.1654711282911; Wed, 08 Jun 2022 11:01:22 -0700 (PDT) Received: from T3500-3.dhcp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id a70-20020a639049000000b003fd55608671sm9698397pge.27.2022.06.08.11.01.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jun 2022 11:01:22 -0700 (PDT) From: William Zhang To: Linux ARM List Cc: f.fainelli@gmail.com, Broadcom Kernel List , samyon.furman@broadcom.com, tomer.yacoby@broadcom.com, philippe.reynes@softathome.com, joel.peshkin@broadcom.com, dan.beygelman@broadcom.com, kursad.oney@broadcom.com, anand.gore@broadcom.com, William Zhang , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/3] arm64: dts: Add DTS files for bcmbca SoC BCM63146 Date: Wed, 8 Jun 2022 11:00:59 -0700 Message-Id: <20220608180100.31749-3-william.zhang@broadcom.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220608180100.31749-1-william.zhang@broadcom.com> References: <20220608180100.31749-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-20220608_110126_201075_9641EBED X-CRM114-Status: GOOD ( 18.83 ) 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 ARMv8 based broadband SoC BCM63146. bcm63146.dtsi is the SoC description DTS header and bcm963146.dts is a simple DTS file for Broadcom BCM963146 Reference board that only enable the UART port. Signed-off-by: William Zhang --- arch/arm64/boot/dts/broadcom/bcmbca/Makefile | 3 +- .../boot/dts/broadcom/bcmbca/bcm63146.dtsi | 110 ++++++++++++++++++ .../boot/dts/broadcom/bcmbca/bcm963146.dts | 30 +++++ 3 files changed, 142 insertions(+), 1 deletion(-) create mode 100644 arch/arm64/boot/dts/broadcom/bcmbca/bcm63146.dtsi create mode 100644 arch/arm64/boot/dts/broadcom/bcmbca/bcm963146.dts diff --git a/arch/arm64/boot/dts/broadcom/bcmbca/Makefile b/arch/arm64/boot/dts/broadcom/bcmbca/Makefile index 8c11d90dc7ca..427299b8e63f 100644 --- a/arch/arm64/boot/dts/broadcom/bcmbca/Makefile +++ b/arch/arm64/boot/dts/broadcom/bcmbca/Makefile @@ -1,4 +1,5 @@ # SPDX-License-Identifier: GPL-2.0 dtb-$(CONFIG_ARCH_BCMBCA) += bcm963158.dtb \ bcm96858.dtb \ - bcm94912.dtb + bcm94912.dtb \ + bcm963146.dtb diff --git a/arch/arm64/boot/dts/broadcom/bcmbca/bcm63146.dtsi b/arch/arm64/boot/dts/broadcom/bcmbca/bcm63146.dtsi new file mode 100644 index 000000000000..04de96bd0a03 --- /dev/null +++ b/arch/arm64/boot/dts/broadcom/bcmbca/bcm63146.dtsi @@ -0,0 +1,110 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright 2022 Broadcom Ltd. + */ + +#include +#include + +/ { + compatible = "brcm,bcm63146", "brcm,bcmbca"; + #address-cells = <2>; + #size-cells = <2>; + + interrupt-parent = <&gic>; + + cpus { + #address-cells = <2>; + #size-cells = <0>; + + B53_0: cpu@0 { + compatible = "brcm,brahma-b53"; + device_type = "cpu"; + reg = <0x0 0x0>; + next-level-cache = <&L2_0>; + enable-method = "psci"; + }; + + B53_1: cpu@1 { + compatible = "brcm,brahma-b53"; + device_type = "cpu"; + reg = <0x0 0x1>; + next-level-cache = <&L2_0>; + enable-method = "psci"; + }; + + L2_0: l2-cache0 { + compatible = "cache"; + }; + }; + + timer { + compatible = "arm,armv8-timer"; + interrupts = , + , + , + ; + }; + + pmu: pmu { + compatible = "arm,cortex-a53-pmu"; + interrupts = , + ; + interrupt-affinity = <&B53_0>, <&B53_1>; + }; + + clocks: clocks { + periph_clk: periph-clk { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <200000000>; + }; + uart_clk: uart-clk { + compatible = "fixed-factor-clock"; + #clock-cells = <0>; + clocks = <&periph_clk>; + clock-div = <4>; + clock-mult = <1>; + }; + }; + + psci { + compatible = "arm,psci-0.2"; + method = "smc"; + }; + + axi@81000000 { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x0 0x0 0x81000000 0x8000>; + + gic: interrupt-controller@1000 { + compatible = "arm,gic-400"; + #interrupt-cells = <3>; + interrupt-controller; + reg = <0x1000 0x1000>, + <0x2000 0x2000>, + <0x4000 0x2000>, + <0x6000 0x2000>; + interrupts = ; + }; + }; + + bus@ff800000 { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x0 0x0 0xff800000 0x800000>; + + uart0: serial@12000 { + compatible = "arm,pl011", "arm,primecell"; + reg = <0x12000 0x1000>; + interrupts = ; + clocks = <&uart_clk>, <&uart_clk>; + clock-names = "uartclk", "apb_pclk"; + status = "disabled"; + }; + }; +}; diff --git a/arch/arm64/boot/dts/broadcom/bcmbca/bcm963146.dts b/arch/arm64/boot/dts/broadcom/bcmbca/bcm963146.dts new file mode 100644 index 000000000000..e39f1e6d4774 --- /dev/null +++ b/arch/arm64/boot/dts/broadcom/bcmbca/bcm963146.dts @@ -0,0 +1,30 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright 2022 Broadcom Ltd. + */ + +/dts-v1/; + +#include "bcm63146.dtsi" + +/ { + model = "Broadcom BCM963146 Reference Board"; + compatible = "brcm,bcm963146", "brcm,bcm63146", "brcm,bcmbca"; + + aliases { + serial0 = &uart0; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x0 0x0 0x08000000>; + }; +}; + +&uart0 { + status = "okay"; +};