From patchwork Sat May 14 23:27:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William Zhang X-Patchwork-Id: 12849953 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 A08C0C433F5 for ; Sat, 14 May 2022 23:30:14 +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=+yK3O9k0bJ5MkgOG4Q1e0BJc8QMCi+adGgOweo5yRe8=; b=e+OZEjORip1JjFYpImqECd/q2w 6R7e8Nvy6b62LFGeO9sw8Ra3dK5LrjISt+2pDWREIndU8k0Q39cowpHXZK9Uihp3Ghhsi24RbmcO7 XiZ9cwd9v5utwdf+mh+SuPO3jit/P1Nr9yUI/ZYs6W5xQ4vCb7jZSoRa39y2nyJcagRyuTOJFLOO2 5/aL+MnnPyuE/ll87eFjTh1YwZToouRuDPdrlk7ETme2J+wiISj9xSS0rMyROi5jhcdDyPu44+HRX 6DNjzbeioUQtJaf/iT4w0n2HrUTkdTg14kCcCRn3lUTQlAsA/iEJBpDyBUwovSz+Ok321/vxEVq5Z SLlKibHg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nq1CA-002aDC-6A; Sat, 14 May 2022 23:29:10 +0000 Received: from mail-pl1-x632.google.com ([2607:f8b0:4864:20::632]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nq1Br-002Zzl-6b for linux-arm-kernel@lists.infradead.org; Sat, 14 May 2022 23:28:53 +0000 Received: by mail-pl1-x632.google.com with SMTP id n8so11226960plh.1 for ; Sat, 14 May 2022 16:28:50 -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=r7vBx4COTK+POmwWtuwtXOz2WPZEm2IwuH3FgNQksHw=; b=b//gZCieDqVUPYWQtSyBi3jh42AzK5J4RO6UsB1sy0broEhE6FInaYU8lBrzl4yVu8 TQaBLaxrI0IHurao7ejgPabjGZQ7Fb7aS4TIb68PgiOGFaQvwQeAfZWJptTAVNNlPRO5 tfPntJILrYMAAp9DY1Ha1cj1+4F+4Bmu+uOR8= 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=r7vBx4COTK+POmwWtuwtXOz2WPZEm2IwuH3FgNQksHw=; b=EdObfTp3pYk7564wK/+9m5dFSDvujllmXrXW9d2wg3foUdGlyGPnt70Ga49Kd9dsO6 DJX0YKGAutC2ie01buTXquAgd1UQBqwBCCJ1PyW2PHX7n9/DKrUzo/WO7nIgNIXT6MTa otXeJjTluEQx6xgMuHSwk3lzoa+rA2ijYDlJo53jT1c3spJZ+nn/NuwKZ3VaA2KaG8wN PjSsATRAeW3g/C1KgLyuPSz9bZyA9MZW7F3R4SoSNaiFLUoJO23ydIwmwR2+ulKS52Eg QBpw9EHsDuiWq1i5G/SYr2VjhZ/5Lnx4jODO3Z4K9JlinaE9oYj/odj+7NHoSXw61pBB fUmg== X-Gm-Message-State: AOAM531atzB3NrkCvoSen7pdH7deOKsl36W+PR5jxmtzngj54qYD/OTP pHkHobN3muF51mS5FeMvf09F9ALy3aum6xsodGm5fmg+UzscMt3a2tXe15trouTaR8GMChpEwYu dZT6l8ccR8vAJZVC0w5BjoD6dFtWxIGg4D+wnZP+ZZEOsAFOf4OdDDSVQceWZhrELlf8y81MIKl 8gO766KIJCXGmjktv7OY0= X-Google-Smtp-Source: ABdhPJz2b5SJhj6uFkp+wWP7bRXaYoRfspb6GFr2rRMUE0+GPPbY5c5N8zV89xyT//jQ0EyhQDzdww== X-Received: by 2002:a17:903:1205:b0:15e:8cbc:fd2b with SMTP id l5-20020a170903120500b0015e8cbcfd2bmr11190155plh.99.1652570929705; Sat, 14 May 2022 16:28:49 -0700 (PDT) Received: from T3500-3.dhcp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id k9-20020a170902d58900b0015e8d4eb2b8sm4165087plh.258.2022.05.14.16.28.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 May 2022 16:28:49 -0700 (PDT) From: William Zhang To: Linux ARM List , Broadcom Kernel List Cc: kursad.oney@broadcom.com, florian.fainelli@broadcom.com, joel.peshkin@broadcom.com, tomer.yacoby@broadcom.com, samyon.furman@broadcom.com, philippe.reynes@softathome.com, anand.gore@broadcom.com, dan.beygelman@broadcom.com, William Zhang , Florian Fainelli , Krzysztof Kozlowski , Nicolas Saenz Julienne , Rob Herring , Stefan Wahren , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/5] arm64: dts: add dts files for bcmbca soc 63158 Date: Sat, 14 May 2022 16:27:58 -0700 Message-Id: <20220514232800.24653-4-william.zhang@broadcom.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220514232800.24653-1-william.zhang@broadcom.com> References: <20220514232800.24653-1-william.zhang@broadcom.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220514_162851_300865_09F6A1D3 X-CRM114-Status: GOOD ( 18.22 ) 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 ARMv8 based broadband SoC BCM63158. bcm63158.dtsi is the SoC description dts header and bcm963158.dts is a simple dts file for Broadcom BCM963158 Reference board that only enable the UART port. Signed-off-by: William Zhang --- arch/arm64/boot/dts/broadcom/Makefile | 1 + arch/arm64/boot/dts/broadcom/bcmbca/Makefile | 2 + .../boot/dts/broadcom/bcmbca/bcm63158.dtsi | 128 ++++++++++++++++++ .../boot/dts/broadcom/bcmbca/bcm963158.dts | 30 ++++ 4 files changed, 161 insertions(+) create mode 100644 arch/arm64/boot/dts/broadcom/bcmbca/Makefile create mode 100644 arch/arm64/boot/dts/broadcom/bcmbca/bcm63158.dtsi create mode 100644 arch/arm64/boot/dts/broadcom/bcmbca/bcm963158.dts diff --git a/arch/arm64/boot/dts/broadcom/Makefile b/arch/arm64/boot/dts/broadcom/Makefile index 5082fcd1fea5..e8584d3b698f 100644 --- a/arch/arm64/boot/dts/broadcom/Makefile +++ b/arch/arm64/boot/dts/broadcom/Makefile @@ -9,5 +9,6 @@ dtb-$(CONFIG_ARCH_BCM2835) += bcm2711-rpi-400.dtb \ bcm2837-rpi-zero-2-w.dtb subdir-y += bcm4908 +subdir-y += bcmbca subdir-y += northstar2 subdir-y += stingray diff --git a/arch/arm64/boot/dts/broadcom/bcmbca/Makefile b/arch/arm64/boot/dts/broadcom/bcmbca/Makefile new file mode 100644 index 000000000000..d5f89245336c --- /dev/null +++ b/arch/arm64/boot/dts/broadcom/bcmbca/Makefile @@ -0,0 +1,2 @@ +# SPDX-License-Identifier: GPL-2.0 +dtb-$(CONFIG_ARCH_BCMBCA) += bcm963158.dtb diff --git a/arch/arm64/boot/dts/broadcom/bcmbca/bcm63158.dtsi b/arch/arm64/boot/dts/broadcom/bcmbca/bcm63158.dtsi new file mode 100644 index 000000000000..cfa235d99a32 --- /dev/null +++ b/arch/arm64/boot/dts/broadcom/bcmbca/bcm63158.dtsi @@ -0,0 +1,128 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright 2022 Broadcom Ltd. + */ + +#include +#include + +/ { + compatible = "brcm,bcm63158", "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"; + }; + + B53_2: cpu@2 { + compatible = "brcm,brahma-b53"; + device_type = "cpu"; + reg = <0x0 0x2>; + next-level-cache = <&L2_0>; + enable-method = "psci"; + }; + + B53_3: cpu@3 { + compatible = "brcm,brahma-b53"; + device_type = "cpu"; + reg = <0x0 0x3>; + next-level-cache = <&L2_0>; + enable-method = "psci"; + }; + + L2_0: l2-cache0 { + compatible = "cache"; + }; + }; + + timer { + compatible = "arm,armv8-timer"; + interrupts = , + , + , + ; + }; + + pmu: pmu { + compatible = "arm,armv8-pmuv3"; + interrupts = , + , + , + ; + interrupt-affinity = <&B53_0>, <&B53_1>, + <&B53_2>, <&B53_3>; + }; + + 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"; + cpu_off = <1>; + cpu_on = <2>; + }; + + axi@81000000 { + compatible = "simple-bus"; + #address-cells = <2>; + #size-cells = <2>; + ranges = <0x0 0x0 0x0 0x81000000 0x0 0x4000>; + + gic: interrupt-controller@1000 { + compatible = "arm,gic-400"; + #interrupt-cells = <3>; + #address-cells = <0>; + interrupt-controller; + reg = <0x0 0x1000 0x0 0x1000>, + <0x0 0x2000 0x0 0x2000>; + }; + }; + + bus@ff800000 { + compatible = "simple-bus"; + #address-cells = <2>; + #size-cells = <2>; + ranges = <0x0 0x0 0x0 0xff800000 0x0 0x800000>; + + uart0: serial@12000 { + compatible = "arm,pl011", "arm,primecell"; + reg = <0x0 0x12000 0x0 0x1000>; + interrupts = ; + clocks = <&uart_clk>, <&uart_clk>; + clock-names = "uartclk", "apb_pclk"; + status = "disabled"; + }; + }; +}; diff --git a/arch/arm64/boot/dts/broadcom/bcmbca/bcm963158.dts b/arch/arm64/boot/dts/broadcom/bcmbca/bcm963158.dts new file mode 100644 index 000000000000..eba07e0b1ca6 --- /dev/null +++ b/arch/arm64/boot/dts/broadcom/bcmbca/bcm963158.dts @@ -0,0 +1,30 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright 2022 Broadcom Ltd. + */ + +/dts-v1/; + +#include "bcm63158.dtsi" + +/ { + model = "Broadcom BCM963158 Reference Board"; + compatible = "brcm,bcm963158", "brcm,bcm63158", "brcm,bcmbca"; + + aliases { + serial0 = &uart0; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x0 0x0 0x08000000>; + }; +}; + +&uart0 { + status = "okay"; +};