From patchwork Wed Jun 8 18:04:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William Zhang X-Patchwork-Id: 12874469 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 7BA80C433EF for ; Wed, 8 Jun 2022 18:06:44 +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=e+KVamXHOH1auSaCQAGhrISUpy7wNUOvcCjrxNRVTF4=; b=bwWtkySiZpM84FfJiGpzgaR7Z1 2tMD7O/wh3+X7oHYNw+c5tLdj064W4RC1tXg017/L/0Z/WEypLwd92WM1/T4JRp6PG33Sp/tDCgH9 Bd1tmvEDQaQXrGLV8paieUwCVHYIP4kyaOF5XJTVLNjUTGU511RtPFvJhsGJudXFrIekAR0zzY/ks T9KF9uEJNuMOCk30eTBmQFDKgVt5+0MeppAYJmlGYYYUADLJPZTfX9xGviM94SZ0Eel60BbSsmF3r ZhlK7Lo/sxV+yGi2M7b4BMM2q+9JTAzwqwxlG5Agc6UXrI9rqS5KSpQ+9N87rKcmCY73CkD4cyQMt 8BOajBgQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nz03j-00Ec7v-OK; Wed, 08 Jun 2022 18:05:35 +0000 Received: from mail-pj1-x102f.google.com ([2607:f8b0:4864:20::102f]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nz03U-00Ec2p-OS for linux-arm-kernel@lists.infradead.org; Wed, 08 Jun 2022 18:05:22 +0000 Received: by mail-pj1-x102f.google.com with SMTP id o6-20020a17090a0a0600b001e2c6566046so24594259pjo.0 for ; Wed, 08 Jun 2022 11:05:20 -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=qVrSPqw7PWhhP3Zey/IFcMocK2+Qszl3UZzr4n5MuUo=; b=fCBz+wwAA3NVdYEa/pYyAJ/02uCkipznCT5r6tcgkAW4KhSWRvc0tiQV5UugODDYu5 eep6kztY0sOVssqaT6dgS2VtVc5ZwaKjt8ko6KeuTYvxXuPa6Wmy4TIDJ3DG6HhZKbUn oHq0z7zBmbf6XK7K3PG0wi4KQLfbl8cV5irxg= 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=qVrSPqw7PWhhP3Zey/IFcMocK2+Qszl3UZzr4n5MuUo=; b=g3X5W+ldp5rnrObGNGdIy7+W6jIO+DCgwX0ZuY8mAHDctf00pPTAtVAD43QpIco/uL F0bq7xJmA9Fi+cUCW3vSzZRUZCJTObh3W1Cc/rE8a5hA9NIUEp6UaCWnppN71jhNXppH MbwF41I4iKVFcB2PlTnKCFCNsOMMu/DcB5TcUWEkcOxLpm5IwFdDzr3YCpiD3LzhdU9L zr4TA1YCMYzLzgksGaMJsOBMAVNbpxpv8XNwZek3NjTyXikihJld6sg5UzCzGc+PtYyd /0PtyO9aGcktATboQ6EeTIJS12gG15PyWWNgSUaCTPPNHpg/lgI6da0+1g5ElQkeafCx PZnA== X-Gm-Message-State: AOAM533Y76C7uVcrd2cnDB8YvHtrA8/uM2xCDrR8o8Z1yCknKv9OzsRZ RL5h8M83Ggn/OY7WLgEag0zFt0KsXRKQzapTHkVFeG8KdowwhYcwgU5uke496Z2yO8oM4aEp2yy E3N2PokGG5qAyv8gzZmUX096Q8nvuSgCO1tgazo8PgHAVqtb7ZS4+5oya8MRYOKYgOHYsxdLiQ+ h4CRcQeMFYTcDFKWpzoQQ= X-Google-Smtp-Source: ABdhPJxBmUUaKIpTOGzict4ExV+nDYENmdjWM4NVB6CmAHxf3emJhZEGYS/9QpQxEFxKML0TMrM7lg== X-Received: by 2002:a17:902:da8d:b0:165:7c1b:6803 with SMTP id j13-20020a170902da8d00b001657c1b6803mr35199763plx.157.1654711519677; Wed, 08 Jun 2022 11:05:19 -0700 (PDT) Received: from T3500-3.dhcp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id m6-20020a62a206000000b0051c505e1703sm2338903pff.86.2022.06.08.11.05.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jun 2022 11:05:19 -0700 (PDT) From: William Zhang To: Linux ARM List Cc: samyon.furman@broadcom.com, Broadcom Kernel List , dan.beygelman@broadcom.com, tomer.yacoby@broadcom.com, philippe.reynes@softathome.com, kursad.oney@broadcom.com, f.fainelli@gmail.com, anand.gore@broadcom.com, joel.peshkin@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 BCM6856 Date: Wed, 8 Jun 2022 11:04:36 -0700 Message-Id: <20220608180437.31971-3-william.zhang@broadcom.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220608180437.31971-1-william.zhang@broadcom.com> References: <20220608180437.31971-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_110520_964662_29D26709 X-CRM114-Status: GOOD ( 18.61 ) 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 BCM6856. bcm6856.dtsi is the SoC description DTS header and bcm96856.dts is a simple DTS file for Broadcom BCM96956 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/bcm6856.dtsi | 103 ++++++++++++++++++ .../boot/dts/broadcom/bcmbca/bcm96856.dts | 30 +++++ 3 files changed, 135 insertions(+), 1 deletion(-) create mode 100644 arch/arm64/boot/dts/broadcom/bcmbca/bcm6856.dtsi create mode 100644 arch/arm64/boot/dts/broadcom/bcmbca/bcm96856.dts diff --git a/arch/arm64/boot/dts/broadcom/bcmbca/Makefile b/arch/arm64/boot/dts/broadcom/bcmbca/Makefile index 427299b8e63f..cee920bea124 100644 --- a/arch/arm64/boot/dts/broadcom/bcmbca/Makefile +++ b/arch/arm64/boot/dts/broadcom/bcmbca/Makefile @@ -2,4 +2,5 @@ dtb-$(CONFIG_ARCH_BCMBCA) += bcm963158.dtb \ bcm96858.dtb \ bcm94912.dtb \ - bcm963146.dtb + bcm963146.dtb \ + bcm96856.dtb diff --git a/arch/arm64/boot/dts/broadcom/bcmbca/bcm6856.dtsi b/arch/arm64/boot/dts/broadcom/bcmbca/bcm6856.dtsi new file mode 100644 index 000000000000..0bce6497219f --- /dev/null +++ b/arch/arm64/boot/dts/broadcom/bcmbca/bcm6856.dtsi @@ -0,0 +1,103 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright 2022 Broadcom Ltd. + */ + +#include +#include + +/ { + compatible = "brcm,bcm6856", "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>; + }; + }; + + 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>, /* GICD */ + <0x2000 0x2000>, /* GICC */ + <0x4000 0x2000>, /* GICH */ + <0x6000 0x2000>; /* GICV */ + interrupts = ; + }; + }; + + bus@ff800000 { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x0 0x0 0xff800000 0x800000>; + + uart0: serial@640 { + compatible = "brcm,bcm6345-uart"; + reg = <0x640 0x18>; + interrupts = ; + clocks = <&periph_clk>; + clock-names = "refclk"; + status = "disabled"; + }; + }; +}; diff --git a/arch/arm64/boot/dts/broadcom/bcmbca/bcm96856.dts b/arch/arm64/boot/dts/broadcom/bcmbca/bcm96856.dts new file mode 100644 index 000000000000..032aeb75c983 --- /dev/null +++ b/arch/arm64/boot/dts/broadcom/bcmbca/bcm96856.dts @@ -0,0 +1,30 @@ +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) +/* + * Copyright 2022 Broadcom Ltd. + */ + +/dts-v1/; + +#include "bcm6856.dtsi" + +/ { + model = "Broadcom BCM96856 Reference Board"; + compatible = "brcm,bcm96856", "brcm,bcm6856", "brcm,bcmbca"; + + aliases { + serial0 = &uart0; + }; + + chosen { + stdout-path = "serial0:115200n8"; + }; + + memory@0 { + device_type = "memory"; + reg = <0x0 0x0 0x0 0x08000000>; + }; +}; + +&uart0 { + status = "okay"; +};