Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp2437208ioo; Sat, 28 May 2022 13:39:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwFH5B2wGsPLuFO7X/jvb/Ec8YvlrwUAxgGKDlPD5nZYse2rcZTpxJWif95yLMf9uySU6wl X-Received: by 2002:a17:902:a502:b0:151:8289:b19 with SMTP id s2-20020a170902a50200b0015182890b19mr48910452plq.149.1653770391693; Sat, 28 May 2022 13:39:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653770391; cv=none; d=google.com; s=arc-20160816; b=zj4vpy0NymWV+Xjd8s3/UGejUNzGATnJA/yXHPDPwavObAJU5J0ijclOI0dqrB1zEb 87bn1saCCggB6TYj41WUivMN7bF57I1IWr74yxetmNyuSj2cwaWB0ERE7//Ed4JqS1NQ C7Q5C6U5hQhJl7AwB7/sA1uqIx2Cl4nQ2Y8UOIZHxgE5X5giBpG66C7q9IyU0HZhuk4v Yo1BUcw+puP30rlNoeyCOl0jI2/47558bsg3qSu3IVTTxoNeqw283bmnfkr+eQsgjDyv 6MxkFaQLbrj4KKNTa8ASmHUXw1pk9bDM94agCNrkwuNB9q5GYRpCJF8ppnsa7PMQiarW baUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:user-agent :references:in-reply-to:subject:cc:to:from:date:mime-version :dkim-signature; bh=aN0UK/KgdIlGkZYIFBEZCu6DDr5ef9SZvHB8OrFAvsE=; b=fA5+KuwJiqsjyopegEiU4a/2ujeGD1sOlnzURHGYlI0/fzgbh/7HAHZAdcnPwXs1s0 Nny3oViSntXPamcWhD3TbYDLIt8Oe5fxByHh1XxHQYsmXDuQRHwDkN7usf0MGXRCcsjB YXttPO6xmkLVqyoZLb5vrl6BHLN2hoH5DyFoVjThPMktnRHIDWAy97/o8hQKgdtSqbDD I8IlQV1BI6Cavj/uozp6RhqVnCFv5AK//1zIMKi1Nd8OOq9Y1bB8M2yroHswmexZ2Um3 R9VsjniUOD27qgDY9TiEQ5wlu643MHiRyhLZlCIIa2lJMPib+FttkYuRPZKCIXkaQiAI COOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BHMvYrex; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id r4-20020a17090aa08400b001e25e39526fsi6440652pjp.29.2022.05.28.13.39.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 May 2022 13:39:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=BHMvYrex; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B8460192C61; Sat, 28 May 2022 12:42:36 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234005AbiE1KhK (ORCPT + 99 others); Sat, 28 May 2022 06:37:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233853AbiE1KhJ (ORCPT ); Sat, 28 May 2022 06:37:09 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B10522182C; Sat, 28 May 2022 03:37:04 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0CCC460C7E; Sat, 28 May 2022 10:37:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5A9CDC34100; Sat, 28 May 2022 10:37:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1653734223; bh=SuKmmY28pKiTzovsqJhz5fPRfTzVYcOhutqCxn2HdxM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=BHMvYrexpNW29pfbkhTvPixlvgZptkB5VK+gG+uxxMl0gmUAWMCPwc4Hqh5ciGyf/ +OSZpCR21DxBKvvk3OqsPy9mWrUURtQDLCas7WU0isrLJVgHxFrS1M29L1AGjlNe+Q 1E0lrXuQWOxVeBMnhofq3ttGtcrI4vLqecvuuPILw73uHAfXhxMYgufUQXpyPTX/K1 sLWBeIKMt9edn75Hf0aWU+KhP4ECNLg/uZyM6OHhla917uPl4E24Pi1ap5GUIf92uX OY/sW8mCKoe6KJaWiQ6hNvdo+bcVSpkySZWWHN6Hqc+MhOjoP5uUmr6P3CN0QUMyEA k3hx9edB9rwjA== Received: from disco-boy.misterjones.org ([51.254.78.96] helo=www.loen.fr) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nutoa-00EDuu-MA; Sat, 28 May 2022 11:37:00 +0100 MIME-Version: 1.0 Date: Sat, 28 May 2022 11:37:00 +0100 From: Marc Zyngier To: Anand Gore Cc: Linux ARM List , dan.beygelman@broadcom.com, samyon.furman@broadcom.com, florian.fainelli@broadcom.com, William Zhang , tomer.yacoby@broadcom.com, kursad.oney@broadcom.com, joel.peshkin@broadcom.com, Broadcom internal kernel review list , Florian Fainelli , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/3] ARM64: dts: add dts files for bcmbca SoC bcm6858 In-Reply-To: <20220527101336.1.I66ae43da75911b704f02a759f70d66bc7e542885@changeid> References: <20220527171356.2461297-1-anand.gore@broadcom.com> <20220527101336.1.I66ae43da75911b704f02a759f70d66bc7e542885@changeid> User-Agent: Roundcube Webmail/1.4.13 Message-ID: X-Sender: maz@kernel.org Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-SA-Exim-Connect-IP: 51.254.78.96 X-SA-Exim-Rcpt-To: anand.gore@broadcom.com, linux-arm-kernel@lists.infradead.org, dan.beygelman@broadcom.com, samyon.furman@broadcom.com, florian.fainelli@broadcom.com, william.zhang@broadcom.com, tomer.yacoby@broadcom.com, kursad.oney@broadcom.com, joel.peshkin@broadcom.com, bcm-kernel-feedback-list@broadcom.com, f.fainelli@gmail.com, krzysztof.kozlowski+dt@linaro.org, robh+dt@kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2022-05-27 18:13, Anand Gore wrote: > Add dts for ARMv8 based broadband SoC BCM6858. > bcm6858.dtsi is the SoC description dts header > and bcm96858.dts is a simple dts file for Broadcom > BCM96858 Reference board that only enables the UART port. > > Signed-off-by: Anand Gore > > --- > > arch/arm64/boot/dts/broadcom/bcmbca/Makefile | 3 +- > .../boot/dts/broadcom/bcmbca/bcm6858.dtsi | 120 ++++++++++++++++++ > .../boot/dts/broadcom/bcmbca/bcm96858.dts | 30 +++++ > 3 files changed, 152 insertions(+), 1 deletion(-) > create mode 100644 arch/arm64/boot/dts/broadcom/bcmbca/bcm6858.dtsi > create mode 100644 arch/arm64/boot/dts/broadcom/bcmbca/bcm96858.dts > > diff --git a/arch/arm64/boot/dts/broadcom/bcmbca/Makefile > b/arch/arm64/boot/dts/broadcom/bcmbca/Makefile > index d5f89245336c..7d98b0787b8c 100644 > --- a/arch/arm64/boot/dts/broadcom/bcmbca/Makefile > +++ b/arch/arm64/boot/dts/broadcom/bcmbca/Makefile > @@ -1,2 +1,3 @@ > # SPDX-License-Identifier: GPL-2.0 > -dtb-$(CONFIG_ARCH_BCMBCA) += bcm963158.dtb > +dtb-$(CONFIG_ARCH_BCMBCA) += bcm963158.dtb \ > + bcm96858.dtb > diff --git a/arch/arm64/boot/dts/broadcom/bcmbca/bcm6858.dtsi > b/arch/arm64/boot/dts/broadcom/bcmbca/bcm6858.dtsi > new file mode 100644 > index 000000000000..664b8f399d69 > --- /dev/null > +++ b/arch/arm64/boot/dts/broadcom/bcmbca/bcm6858.dtsi > @@ -0,0 +1,120 @@ > +// SPDX-License-Identifier: (GPL-2.0+ OR MIT) > +/* > + * Copyright 2022 Broadcom Ltd. > + */ > + > +#include > +#include > + > +/ { > + compatible = "brcm,bcm6858", "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 = IRQ_TYPE_LEVEL_LOW)>, > + , > + , > + ; > + }; > + > + 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>; > + }; > + }; > + > + psci { > + compatible = "arm,psci-0.2"; > + method = "smc"; > + cpu_off = <1>; > + cpu_on = <2>; No. Either this is PSCI 0.2 (and inventing your own function numbers is pointless), or this isn't. Either way, this is wrong. > + }; > + > + 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>; GIC400 has another two regions for GICH and GICV, and a maintenance interrupt. Please add both. Thanks, M. -- Jazz is not dead. It just smells funny...