Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp4850811rwl; Mon, 3 Apr 2023 10:26:24 -0700 (PDT) X-Google-Smtp-Source: AKy350bNRsNrrTS/eMt33kif9J/Psbc8FWyfUv3XsYowtvemP3Gjjc2oC3cqz83p3Zq455bZ5zUB X-Received: by 2002:aa7:ccce:0:b0:500:5627:a20a with SMTP id y14-20020aa7ccce000000b005005627a20amr31971707edt.25.1680542784307; Mon, 03 Apr 2023 10:26:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680542784; cv=none; d=google.com; s=arc-20160816; b=L2aYdIQm044rb8NF3DCFAA0zZIik8CR4F8Cg/zg1dfsG8CStkq9xoQNHU/oFqseYEW /JD47zGwG3Hw8cGYCZgrpEvRAmCyxgwl/UmlMdSHgH69qUteWMCx5Qxqnr/2GqwWtQSg LWNHbya1oaCRSpzQriasYR9ZLObAoamj28ET2Z/FVKlu6SLAtJWeT36OoGGOP8UWWTwE is5vZPw+DPNmbCWwa9hZrfbVgN263m9tv8uwvGurNCGsHIBiBz5fo4bovg31oStEMQF+ yvB6wkp2fwdBNVPN15S3nJyIF+3scjeHGBmFv6Fo6lagXKSss9bs0fub9ppBZyqe6N/R yr4Q== 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=uJI+R7Z2OIlFqVuwYWesbGzyliYONi9PcdnjVEKDM1o=; b=DLJ2WlfWuBYVbA9FcfdXZndERlSY4Varpv7y8eTSrjKozAKi2qHdVhALBxMYcVNZP6 Iiri9l4CrLQfhmyiJWZU7sOocOQdgbbocIk9xxTIpiRLgZfDzR6Ml9+uH7XdY7pbif7i 8JXWwxw9NtZ9sp1YdMNGV5yTftjkfGBQfPnex72HQ7HTNcq9IBWNn7PnzZMmPGQzlTi6 1BArOQWg5NFflVhD4zb7yT5SyjVhwsk/1FAVkpdJTunkjQ7r5v/pml5UKXiOVtNgmcHy UKNwV2F4hQyA+fYODwdHZRxts1D6PVE5r1BywABLIDkJf3NTgIVDndV1feS0n8v6gJLH DDiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=n1quY7Qq; 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 h25-20020aa7c619000000b004fc3796b401si7932697edq.337.2023.04.03.10.26.00; Mon, 03 Apr 2023 10:26:24 -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=n1quY7Qq; 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 S233087AbjDCRZX (ORCPT + 99 others); Mon, 3 Apr 2023 13:25:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233079AbjDCRZV (ORCPT ); Mon, 3 Apr 2023 13:25:21 -0400 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D37CEB for ; Mon, 3 Apr 2023 10:25:19 -0700 (PDT) Received: by mail-wm1-x32e.google.com with SMTP id o24-20020a05600c511800b003ef59905f26so18547603wms.2 for ; Mon, 03 Apr 2023 10:25:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1680542718; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=uJI+R7Z2OIlFqVuwYWesbGzyliYONi9PcdnjVEKDM1o=; b=n1quY7QqUla1CplzUDYkiQ/27vTXjJRjzVQEvjeb+uaNXP/M7Phaim99ZCXxkMShMp YqRhsALQleSLEIbfBWl/lOOhFUJI7S6j73gamrYhmjuYBJ9Sr/ORnl+h4hJ4kpbzue2r tsENu+oE1gOY4u1+Gn2gigXmGtZoH4zbri/qRhjXykYLaVXx9rEhKTL4ng/LaIGwCzbI awQczryb4NoalCjVLGre6jrV0N5fWV9PH84TuulLReYJXlL0xo1QBumUlI2Z2k2fN2k7 takPOyr9GQFYMLIbcoHybFP/YvG44IXLlmxPcuzja0I+FCOuHdZSn1BVdaJlhrlUnNG6 oybg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680542718; 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=uJI+R7Z2OIlFqVuwYWesbGzyliYONi9PcdnjVEKDM1o=; b=iWVHYTv6W+yki9PBN4xp/akNHKgEgsg+BAoZfZTGpo8X+gy7XddPmsBkbzDZfIS+N3 DwuSNorplHVpn99q9CVHdsSQqMbZ+sliWy0Q8O0XwNRG82zaEBDa3t4VsWF0NIIVwkW4 q9wYhFKsZ4HFNYLXguAfpEsFykws7q4qeyv1NlYiwO1+3QQ2zxiqNeDEZdZLrzWgAFH+ JExXcDZHkkXLFsWwovwOrE2NSBD2DNtTlVnk9e6geQ82UFhWMHULrzg/Q0XkIsXfHH65 T+jFtCdNVQG3bBJ2Aa3ZKjRK8cFWkGQ9AWj1P/PpWu950iUPFBP5SQfsHpSw8TFKlg1D dN1Q== X-Gm-Message-State: AAQBX9dPaDJaitCYsSzRsRX1I+nI5aptXcLvMn30Qmtw9o38/uIr0lwH mFCk2HPK3GHXeKKNzxBcF7XmMkqRoQoJjeZUuEF/BQ== X-Received: by 2002:a05:600c:291:b0:3f0:4429:2eb5 with SMTP id 17-20020a05600c029100b003f044292eb5mr59662wmk.5.1680542718041; Mon, 03 Apr 2023 10:25:18 -0700 (PDT) MIME-Version: 1.0 References: <20230328022733.29910-1-tinghan.shen@mediatek.com> <20230328022733.29910-12-tinghan.shen@mediatek.com> <848971ea-b142-d088-df6f-74ee2d807950@gmail.com> In-Reply-To: <848971ea-b142-d088-df6f-74ee2d807950@gmail.com> From: Mathieu Poirier Date: Mon, 3 Apr 2023 11:25:07 -0600 Message-ID: Subject: Re: [PATCH v9 11/11] arm64: dts: mediatek: mt8195: Add SCP 2nd core To: Matthias Brugger Cc: Tinghan Shen , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , 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=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS 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 Fri, 31 Mar 2023 at 05:00, Matthias Brugger wrote: > > > > On 28/03/2023 04:27, 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 > > As this is a bigger change I'd prefer to take it through my tree once the driver > and dt-bindings changes are merged. Given the fact, maybe it would make sense to > take 2/11 through my tree as well. > Might as well take the whole thing through your tree, which I'm totally fine with. But when that happens, you will also have to pick up other potential patches that touch these files. We'll sort it out. > Regards, > Matthias > > > --- > > .../boot/dts/mediatek/mt8195-cherry.dtsi | 6 +++- > > arch/arm64/boot/dts/mediatek/mt8195.dtsi | 32 ++++++++++++++----- > > 2 files changed, 29 insertions(+), 9 deletions(-) > > > > diff --git a/arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi b/arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi > > index 56749cfe7c33..31415d71b6a4 100644 > > --- a/arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi > > +++ b/arch/arm64/boot/dts/mediatek/mt8195-cherry.dtsi > > @@ -933,7 +933,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 8fc527570791..5fe5fb32261e 100644 > > --- a/arch/arm64/boot/dts/mediatek/mt8195.dtsi > > +++ b/arch/arm64/boot/dts/mediatek/mt8195.dtsi > > @@ -826,14 +826,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 { > > @@ -2309,7 +2325,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>;