Received: by 2002:a05:7412:f584:b0:e2:908c:2ebd with SMTP id eh4csp1939793rdb; Tue, 5 Sep 2023 09:20:00 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEgWZkhqskjrDMq6AM83HXLh3lW+JzIQX4LRLzvWy94NTqXPPOdp8jGpMNd4fHXfjGdw9ih X-Received: by 2002:a17:907:7808:b0:9a2:143e:a061 with SMTP id la8-20020a170907780800b009a2143ea061mr276033ejc.28.1693930800170; Tue, 05 Sep 2023 09:20:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693930800; cv=none; d=google.com; s=arc-20160816; b=x6E52Zv9NuXsi1QljTT2ihFxidpJ7VCtEv0Qoq4cJzSfCquNE7kXAtiK8qCTVyCL+y 01+cgsKffZFc3Yryn2kL+GJvSqxWOZPoLINJoTGSnyMcfMjAr9borPAbvKBH29byXze6 xpVakoQb8Fz/8TJcNEi8fean0zcF8NWn/ITXqv6blAjrAYO3vgrwFavSXqJGX/LiMOXE 7XZxrBKqwucikeWTwCto9Rxj8HQVe2Qw6O2R9oEh8E1iDOR7S4PQUMurSKYrWt9QfWla OOEC+qGIrG8l80vOpWG9XACvnVgDMcxz+1hTEgeLiwP2/Y24u7Ii57bXeXWQKFWvxuK9 tdaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=aos/hZG2kxxhYMB7Cd7Cd6lWeMYzVwziNvlCKk5Ckbo=; fh=VP4+Ie7ps/c8btAO2jZdEFofOHo6iIa/kDBXUhte0aA=; b=TseE5fcu3mG53rznOQGPEAfNfews0W8rpeYqs5ouXLB49cBq2lYVzHy67HX+EE18F7 dJBAWWltLMI75C6iZwbT7j7HbtGwnm7xCfVyXlafS7C0fw5jJP1yOTG7EJ8A7eUgDqRZ r5MDk9qWIe2FU5d7hdFcYrMzjTdQPpfvaECOALOet+8iW2mvk6t3KuSjGi209oCkFb/0 CfDk2H4P42ADSYdYzvOE/iRbIvbMdNTrMCFGUHvUQ/ptXD7ZvUAkw1N56ZG1/a6CixP7 /39e1oBcbrOnU9QQRkT88uwpMg7pic9AiL6Liu03HTOkE8Bbu6wjsEYbvwJEjQxi/Afh 7K/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XsrYlRRd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lt14-20020a170906fa8e00b0099c49a11e74si7695680ejb.972.2023.09.05.09.19.34; Tue, 05 Sep 2023 09:20:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=XsrYlRRd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233765AbjIDRsf (ORCPT + 20 others); Mon, 4 Sep 2023 13:48:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39558 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231313AbjIDRse (ORCPT ); Mon, 4 Sep 2023 13:48:34 -0400 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A91E0DA for ; Mon, 4 Sep 2023 10:48:30 -0700 (PDT) Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-3ff1c397405so17427435e9.3 for ; Mon, 04 Sep 2023 10:48:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1693849709; x=1694454509; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=aos/hZG2kxxhYMB7Cd7Cd6lWeMYzVwziNvlCKk5Ckbo=; b=XsrYlRRd52rQNQ5rzBtEDKv5ZkEEkcnLpM7Em68LGMYQSlB72PdrANRBH0M6mJMb8U 4sgogmbIbhorX4AoKeoEh4tFDYVF5SPC+BeluAhdWRnKHMHtQEmBl1YWbMivWna4DNdW oVhwChBn4DMpcKQWGM+V4aDnaXCrHwzBz2HWf0rVg420fsFhbBH9VdUERl9uBvejB+vt FsNNvl3d85tc1tE2lwwxqmTvfgMePJt2LLi/Ey+YErMmTa/e8o/gVTVNruOW2TctDQAe 50uGlsfkqBXH0+SugTRrufSAPf+eK8SpwhT03J1deFDKQGnhP8RE0V7TDxQGT3bQAnoB jdfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693849709; x=1694454509; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=aos/hZG2kxxhYMB7Cd7Cd6lWeMYzVwziNvlCKk5Ckbo=; b=HpgWIG/T4qz16iEI1JYF46CsF0nyZ80YzoPRjsN3Fja/fnZgp97WuA7N1d/0Uny/cq TtoO1lbhZXV1O6DiGKOYgek/nqLPwv3mHBBT9klg0TNRGS0p6Qn4yQtl/FlBLuTJwl/v iLY+AZhHHjbvsAZwvrRPnkvNFleAIghaWp473H76aCjJWVLFE8EzwShQ/8VP55VehUA5 Cdbry4Xwi9Maui2rfwcsmDvh2tdI3p97VkROiyShj3JD02p/OvNIhB1oGtLQwhvQccSe bHoUt4E4mu8CG/C7w9f9PcEAqPYo74kiGlmzopomtD8SQetu/6Jgm4BGoI0q/xip9u5G Msuw== X-Gm-Message-State: AOJu0Yzl/trFcAMI5+De7Cu2IPhXRNtfo5dQ+WPDYUuwsUXn2cT7ASI3 6ZPwfNdAGOZi39LaY7XqLDnudsAKjt5GnXUepNeU0A== X-Received: by 2002:adf:f7c1:0:b0:314:1ce9:3c86 with SMTP id a1-20020adff7c1000000b003141ce93c86mr8302488wrq.0.1693849709037; Mon, 04 Sep 2023 10:48:29 -0700 (PDT) MIME-Version: 1.0 References: <20230901080935.14571-1-tinghan.shen@mediatek.com> <20230901080935.14571-15-tinghan.shen@mediatek.com> In-Reply-To: <20230901080935.14571-15-tinghan.shen@mediatek.com> From: Mathieu Poirier Date: Mon, 4 Sep 2023 11:48:18 -0600 Message-ID: Subject: Re: [PATCH v17 14/14] arm64: dts: mediatek: mt8195: Add SCP 2nd core To: Tinghan Shen Cc: Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Matthias Brugger , AngeloGioacchino Del Regno , linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Project_Global_Chrome_Upstream_Group@mediatek.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 Hey Matthias - will you pick up this one or should I get it through the remoteproc tree? On Fri, 1 Sept 2023 at 02:10, Tinghan Shen wrote: > > Rewrite the MT8195 SCP device node as a cluster and > add the SCP 2nd core in it. > > Since the SCP device node is changed to multi-core structure, > enable SCP cluster to enable probing SCP core 0. > > Signed-off-by: Tinghan Shen > Reviewed-by: AngeloGioacchino Del Regno > --- > .../boot/dts/mediatek/mt8195-cherry.dtsi | 6 +++- > arch/arm64/boot/dts/mediatek/mt8195.dtsi | 34 ++++++++++++++----- > 2 files changed, 30 insertions(+), 10 deletions(-) > > diff --git a/arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi b/arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi > index 37a3e9de90ff..4584077d3a4c 100644 > --- a/arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi > +++ b/arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi > @@ -991,7 +991,11 @@ > interrupts-extended = <&pio 222 IRQ_TYPE_LEVEL_HIGH>; > }; > > -&scp { > +&scp_cluster { > + status = "okay"; > +}; > + > +&scp_c0 { > status = "okay"; > > firmware-name = "mediatek/mt8195/scp.img"; > diff --git a/arch/arm64/boot/dts/mediatek/mt8195.dtsi b/arch/arm64/boot/dts/mediatek/mt8195.dtsi > index 48b72b3645e1..7809118f74fb 100644 > --- a/arch/arm64/boot/dts/mediatek/mt8195.dtsi > +++ b/arch/arm64/boot/dts/mediatek/mt8195.dtsi > @@ -922,14 +922,30 @@ > clocks = <&infracfg_ao CLK_INFRA_AO_GCE2>; > }; > > - scp: scp@10500000 { > - compatible = "mediatek,mt8195-scp"; > - reg = <0 0x10500000 0 0x100000>, > - <0 0x10720000 0 0xe0000>, > - <0 0x10700000 0 0x8000>; > - reg-names = "sram", "cfg", "l1tcm"; > - interrupts = ; > + scp_cluster: scp@10500000 { > + compatible = "mediatek,mt8195-scp-dual"; > + reg = <0 0x10720000 0 0xe0000>, <0 0x10700000 0 0x8000>; > + reg-names = "cfg", "l1tcm"; > + #address-cells = <1>; > + #size-cells = <1>; > + ranges = <0 0 0x10500000 0x100000>; > status = "disabled"; > + > + scp_c0: scp@0 { > + compatible = "mediatek,scp-core"; > + reg = <0x0 0xa0000>; > + reg-names = "sram"; > + interrupts = ; > + status = "disabled"; > + }; > + > + scp_c1: scp@a0000 { > + compatible = "mediatek,scp-core"; > + reg = <0xa0000 0x20000>; > + reg-names = "sram"; > + interrupts = ; > + status = "disabled"; > + }; > }; > > scp_adsp: clock-controller@10720000 { > @@ -2374,7 +2390,7 @@ > > video-codec@18000000 { > compatible = "mediatek,mt8195-vcodec-dec"; > - mediatek,scp = <&scp>; > + mediatek,scp = <&scp_c0>; > iommus = <&iommu_vdo M4U_PORT_L21_VDEC_MC_EXT>; > #address-cells = <2>; > #size-cells = <2>; > @@ -2540,7 +2556,7 @@ > <&iommu_vdo M4U_PORT_L19_VENC_REF_LUMA>, > <&iommu_vdo M4U_PORT_L19_VENC_REF_CHROMA>; > interrupts = ; > - mediatek,scp = <&scp>; > + mediatek,scp = <&scp_c0>; > clocks = <&vencsys CLK_VENC_VENC>; > clock-names = "venc_sel"; > assigned-clocks = <&topckgen CLK_TOP_VENC>; > -- > 2.18.0 >