Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp1432482rdb; Sat, 23 Dec 2023 06:34:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IH3im99xOq6K7Go/aZZHggxK0eQFiUHcceHIJCvLhqy8sUz2zzgWWzOI9y+qPqR/Uammbub X-Received: by 2002:a05:622a:12:b0:425:4554:ee53 with SMTP id x18-20020a05622a001200b004254554ee53mr6002144qtw.64.1703342074870; Sat, 23 Dec 2023 06:34:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703342074; cv=none; d=google.com; s=arc-20160816; b=dReWlULfAPea61Y52Njbeb87r3J3MgTO8TMLTsEOvrLA8N1Sw3f97HZUWa6TfPRXo9 vYLpiiRVAn8vDTvTrVF2fZo4frgmLRGjVdIkiUqRi3eEbYgIZP8Sp3sQqLZSWIYv4OvW mEW8s4vxqCULo2jgQo28MW3bOC6uRPgYHXLixvkhFVPTovzjPJ+j1z5mg/dXqHcl/EH3 QxcEcM6Yeem2leObt1YP8cEfdMCABLUCuDH09PMA2pglD36pb89kZbzlDzh3I+s0aX/v Ez6YSXFE0M7BdRHgUtyqX8HBmkSiHsS0u8r/QUh1L2iYmX0CxomovknvDb1kRoze9dkd 6ZQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=BV1PEntNocE2IBL12A6TgxaD4fskw5gPnZjQ1f85ecE=; fh=v1gEavGpbn7KNjTB7Qp0aNGJbKO8cBMKuEr6y6OHuGA=; b=Wq49hb6Q/0FQJt4Dfi7aBVeVq+EY13QbYG9htJSeKjbBFP+ZMKnE2oGDGwVtrYmH5h 9cuFec/7ml81kpdZUPv+7HW+3fjFYavRaSkRwffTa4eWobhHQkvMIKLFiAQlciOMyHuD 7mHxvAG2g3STGIgzlFRnaxFflY9rorA1P2dPH0PK+cH6vaAVLesUWQMwFNogNmx7CXDs o5zNFvt9Q8zaZMl7H5BJt2X8BjKIyE0dKaPR4Q8ZS6saCph2YoxvNy7rGEZO986oTmv9 oAhKluGgqhI04vW9hNoiXWzDkr4O0mxTvfMRZMtNiysXKL50PnGGltSrsXgizw2oBmmG VTZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IS1BFi1i; spf=pass (google.com: domain of linux-kernel+bounces-10459-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-10459-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id e19-20020ac84e53000000b0042577287d94si6717164qtw.556.2023.12.23.06.34.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Dec 2023 06:34:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-10459-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IS1BFi1i; spf=pass (google.com: domain of linux-kernel+bounces-10459-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-10459-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 8D9CA1C211A8 for ; Sat, 23 Dec 2023 14:34:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 90942F9F7; Sat, 23 Dec 2023 14:34:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="IS1BFi1i" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-wr1-f44.google.com (mail-wr1-f44.google.com [209.85.221.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 22233F4FC for ; Sat, 23 Dec 2023 14:34:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wr1-f44.google.com with SMTP id ffacd0b85a97d-3367f8f8cb0so2606277f8f.2 for ; Sat, 23 Dec 2023 06:34:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1703342055; x=1703946855; 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=BV1PEntNocE2IBL12A6TgxaD4fskw5gPnZjQ1f85ecE=; b=IS1BFi1iiqE7r4gJUnpKdFbmjm5hbXaER8eZhUSYPvlc1rBluum0a0F6gMNSduPudE 4I8ayQikoLjuXPjk4ewStXdkU0oVgco9EARyukz/tWuOzu6QEkK4B6Z9Dcj8FVbgc0N+ /WoGZV6bRWbXXWNDqh5c/5uVB/OMJ8gPqFKn1sBLIeGnewGdhI5e/uCXLa/PIR/DRAxo 42KvbBxsJye9K/2WVVfGx5/8dDwGn1Pi0PPP8PC/oP+rMrlnSg/jwwAKcRghH2ZaP0/n EujInoZ60UIqfE4Mwwt7Ctlcuy9IUU+kAw0hvfp0m2N10koJjN0YZtupq8dhSwr27dVy 5Iug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703342055; x=1703946855; 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=BV1PEntNocE2IBL12A6TgxaD4fskw5gPnZjQ1f85ecE=; b=ggJY+XiqBP4EaYcWwxjCf/K60qjgcNIPKzobvh233Pvx8nWLfdqs3m/1Oeg3hwQX5M np1W+waNoTb9vLZfuR9vXQayYgD2+BLY/dbH5B9aTGWgz42d0ZfGCf14LEbFip5jE0av 6q4zYmQOMqPdXnLQtZ4vmfljWCm5SI+Jcn8SJGohgKzsRia0eVEIDhj4W5HKUjhN7pa1 YlX/hskhHmzsZLcyrgR1uow3USs+OJf0Yx8krrhBbuY4zNeZYw5luXDmev6zDBDq4QX7 YCS07zAPvzTSz4SA4MC3y3JfqHfZYrmYp+1kPqBcaDgKPXseynvKonug29C043TjL2P8 58MA== X-Gm-Message-State: AOJu0YyasTta+bYqNK7f0XZpKEFKYSlD+hX/EuvB5mTQISNZ80sb28ea qogXx0Vi/kLtmhTXP/+PLGUGz6VEC0uGB7b9pLxaAq9kx5itTA== X-Received: by 2002:a5d:4609:0:b0:336:6d62:7647 with SMTP id t9-20020a5d4609000000b003366d627647mr1642900wrq.5.1703342055201; Sat, 23 Dec 2023 06:34:15 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20231215235725.1247350-1-tanmay.shah@amd.com> <20231215235725.1247350-3-tanmay.shah@amd.com> <6ab19ceb-38ed-4e4c-aabc-a959bc123cf2@amd.com> In-Reply-To: From: Mathieu Poirier Date: Sat, 23 Dec 2023 07:34:02 -0700 Message-ID: Subject: Re: [PATCH v8 2/3] dts: zynqmp: add properties for TCM in remoteproc To: Tanmay Shah Cc: Michal Simek , andersson@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, ben.levinsky@amd.com, linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" On Wed, 20 Dec 2023 at 07:45, Tanmay Shah wrote: > > > On 12/20/23 7:14 AM, Michal Simek wrote: > > > > On 12/16/23 00:57, Tanmay Shah wrote: > > > Add properties as per new bindings in zynqmp remoteproc node > > > to represent TCM address and size. > > > > > > This patch also adds alternative remoteproc node to represent > > > remoteproc cluster in split mode. By default lockstep mode is > > > enabled and users should disable it before using split mode > > > dts. Both device-tree nodes can't be used simultaneously one > > > of them must be disabled. For zcu102-1.0 and zcu102-1.1 board > > > remoteproc split mode dts node is enabled and lockstep mode > > > dts is disabled. > > > > > > Signed-off-by: Tanmay Shah > > > --- > > > .../boot/dts/xilinx/zynqmp-zcu102-rev1.0.dts | 8 +++ > > > arch/arm64/boot/dts/xilinx/zynqmp.dtsi | 60 +++++++++++++++++-- > > > 2 files changed, 63 insertions(+), 5 deletions(-) > > > > > > diff --git a/arch/arm64/boot/dts/xilinx/zynqmp-zcu102-rev1.0.dts b/arch/arm64/boot/dts/xilinx/zynqmp-zcu102-rev1.0.dts > > > index c8f71a1aec89..495ca94b45db 100644 > > > --- a/arch/arm64/boot/dts/xilinx/zynqmp-zcu102-rev1.0.dts > > > +++ b/arch/arm64/boot/dts/xilinx/zynqmp-zcu102-rev1.0.dts > > > @@ -14,6 +14,14 @@ / { > > > compatible = "xlnx,zynqmp-zcu102-rev1.0", "xlnx,zynqmp-zcu102", "xlnx,zynqmp"; > > > }; > > > > > > +&rproc_split { > > > + status = "okay"; > > > +}; > > > + > > > +&rproc_lockstep { > > > + status = "disabled"; > > > +}; > > > + > > > &eeprom { > > > #address-cells = <1>; > > > #size-cells = <1>; > > > diff --git a/arch/arm64/boot/dts/xilinx/zynqmp.dtsi b/arch/arm64/boot/dts/xilinx/zynqmp.dtsi > > > index b61fc99cd911..602e6aba7ac5 100644 > > > --- a/arch/arm64/boot/dts/xilinx/zynqmp.dtsi > > > +++ b/arch/arm64/boot/dts/xilinx/zynqmp.dtsi > > > @@ -247,19 +247,69 @@ fpga_full: fpga-full { > > > ranges; > > > }; > > > > > > - remoteproc { > > > + rproc_lockstep: remoteproc@ffe00000 { > > > compatible = "xlnx,zynqmp-r5fss"; > > > xlnx,cluster-mode = <1>; > > > > > > - r5f-0 { > > > + #address-cells = <2>; > > > + #size-cells = <2>; > > > + > > > + ranges = <0x0 0x0 0x0 0xffe00000 0x0 0x20000>, > > > + <0x0 0x20000 0x0 0xffe20000 0x0 0x20000>, > > > + <0x1 0x0 0x0 0xffe90000 0x0 0x10000>, > > > + <0x1 0x20000 0x0 0xffeb0000 0x0 0x10000>; > > > + > > > + r5f@0 { > > > + compatible = "xlnx,zynqmp-r5f"; > > > + reg = <0x0 0x0 0x0 0x20000>, <0x0 0x20000 0x0 0x20000>; > > > + reg-names = "atcm", "btcm"; > > > + power-domains = <&zynqmp_firmware PD_RPU_0>, > > > + <&zynqmp_firmware PD_R5_0_ATCM>, > > > + <&zynqmp_firmware PD_R5_0_BTCM>; > > > + memory-region = <&rproc_0_fw_image>; > > > + }; > > > + > > > + r5f@1 { > > > + compatible = "xlnx,zynqmp-r5f"; > > > + reg = <0x1 0x0 0x0 0x10000>, <0x1 0x20000 0x0 0x10000>; > > > + reg-names = "atcm", "btcm"; > > > + power-domains = <&zynqmp_firmware PD_RPU_1>, > > > + <&zynqmp_firmware PD_R5_1_ATCM>, > > > + <&zynqmp_firmware PD_R5_1_BTCM>; > > > + memory-region = <&rproc_1_fw_image>; > > > + }; > > > + }; > > > + > > > + rproc_split: remoteproc-split@ffe00000 { > > > + status = "disabled"; > > > + compatible = "xlnx,zynqmp-r5fss"; > > > + xlnx,cluster-mode = <0>; > > > + > > > + #address-cells = <2>; > > > + #size-cells = <2>; > > > + > > > + ranges = <0x0 0x0 0x0 0xffe00000 0x0 0x10000>, > > > + <0x0 0x20000 0x0 0xffe20000 0x0 0x10000>, > > > + <0x1 0x0 0x0 0xffe90000 0x0 0x10000>, > > > + <0x1 0x20000 0x0 0xffeb0000 0x0 0x10000>; > > > + > > > + r5f@0 { > > > compatible = "xlnx,zynqmp-r5f"; > > > - power-domains = <&zynqmp_firmware PD_RPU_0>; > > > + reg = <0x0 0x0 0x0 0x10000>, <0x0 0x20000 0x0 0x10000>; > > > + reg-names = "atcm", "btcm"; > > > + power-domains = <&zynqmp_firmware PD_RPU_0>, > > > + <&zynqmp_firmware PD_R5_0_ATCM>, > > > + <&zynqmp_firmware PD_R5_0_BTCM>; > > > memory-region = <&rproc_0_fw_image>; > > > }; > > > > > > - r5f-1 { > > > + r5f@1 { > > > compatible = "xlnx,zynqmp-r5f"; > > > - power-domains = <&zynqmp_firmware PD_RPU_1>; > > > + reg = <0x1 0x0 0x0 0x10000>, <0x1 0x20000 0x0 0x10000>; > > > + reg-names = "atcm", "btcm"; > > > + power-domains = <&zynqmp_firmware PD_RPU_1>, > > > + <&zynqmp_firmware PD_R5_1_ATCM>, > > > + <&zynqmp_firmware PD_R5_1_BTCM>; > > > memory-region = <&rproc_1_fw_image>; > > > }; > > > }; > > > > Acked-by: Michal Simek > > > > Let me know if you want me to take this via my tree. > > Hi Michal, > > Thanks for reviews. I will ping you once driver changes are approved. I'll pick this up with the rest of the driver. It will be easier that way. > > Or Mathieu can take this in remoteproc tree, either way is fine. > > But I would like to wait till driver changes are approved. > > Tanmay > > > > > Thanks, > > Michal