Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp463569lqg; Fri, 1 Mar 2024 10:18:41 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCX+Nfd2PbjAjYdBfKnVzvawWjYG83fPOVis1AzrX1MvXYDzlX+62S4bw6cPdht9K/ZW0CVfgT0gfQqUGNir+sN5gIaxtOZ/ZXvTMBGCYw== X-Google-Smtp-Source: AGHT+IHulTLerV8xYRdNlF52zlYdOznEUdXRPGM5OKsHQJ0RfHNxsaGjziADXKyBf0syaoJixSa2 X-Received: by 2002:a17:903:234f:b0:1d9:a15:615d with SMTP id c15-20020a170903234f00b001d90a15615dmr3637270plh.1.1709317121121; Fri, 01 Mar 2024 10:18:41 -0800 (PST) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id cp6-20020a170902e78600b001dccec27e71si3809310plb.384.2024.03.01.10.18.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Mar 2024 10:18:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-88894-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=4i2WKggf; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-88894-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-88894-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id EE45228B2DA for ; Fri, 1 Mar 2024 18:17:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A689A39FD0; Fri, 1 Mar 2024 18:17:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="4i2WKggf" Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11on2041.outbound.protection.outlook.com [40.107.236.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0501B27701; Fri, 1 Mar 2024 18:17:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.236.41 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709317036; cv=fail; b=hxvF2Zb0F4rI6BeWho8rAnrp9DzlgWztzZTfmqr5m9INgHLF/+mVLfS4dSySdxkYE+bhTwQICdhDV3kfiXuLdvfjMnriBEXNMGKH39qLu/BSBb+5pqC4u5iZRTaBw86PWkVhrtEH3d87fwoIMkDYa0bTyT6x2NZRyOAAEJVG8EU= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709317036; c=relaxed/simple; bh=PNG2yGTVDqAX54+DzLfreLsxA5XONm73RBqez1IitUQ=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=uBiCExLBDaiMhy+3OlWtwn0wWRhutIpbDeG/44UmwRcHpnNvp55W12JNKPSsRbO0vlAAY/9DrF5UH6E5SLAzBs0DqWMju4tdBgHp34sarVsQcui+EhSpafsu+v+ipy2cdyxSuqfGkBbaJTjugBcXrArC+MxJKq5kNzI6REEuFOU= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=4i2WKggf; arc=fail smtp.client-ip=40.107.236.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XcBdS6QCPhTXDklFIqNacxvb/DcNwvM5wgGGuhNmpMPlecrZWbcIB70IWfAfU8PLfYjB2ZYVvf7wuWsw6ItSZrfSR8ugO+71o2k11Gt+l6z7ccpiZEWrYDPvjXBIX/rAlUinuVabl7rpBfqLDwyy1ax2VysPKhhW++x8lxIuQGdZpBCdl4d9TXuMP0Ky53EWGPihGzONeQLNcciBGlSPEO7E71JcW2KxzlcrxcIjXch5S7rAEAylHqq/3JPCvH+OVKpcTGh0ymR71uEmydp3y4p6rTTx8znlLGDUEkXC5UNu+NxHTVdAPlT9o9VhE636LDrBBd/Ml51aQ0z2eqPEYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=MreDkp+FxtXut9dSZ/EM5Nwd8OWHoGBIM13dERcOSmM=; b=LoZcmQDA1T3KTxRIEjPytYMGo+z7EvRI+q641LsiuDNnD1eJJm/6yW+uL7UlPTHoO7vDIsjAlUIG+RiLrVPD2KpwIfbbLno7g6Flg8CiFocVWOSu3Eq2XJj2TGF9X7xq8uMxQt52kw3zKeJPZFb+KOiYwWSz6Q/J5qyDGWSx1oIYtCJt3B3EIn4keA29k4WgoMrrnkjO3xKUOiP8kFeWOj3Nqg4Owx/mKWeNbKd+oWL9lPKqD9aKtXaFlfQNvy60+eICLB74sxouo4zalfGNuy2BeyrZX7/m0PdriymdhSsCUzElPphJamr11WsPZ5EaycxMA90mnXdT5gPlrAQfnw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=kernel.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=MreDkp+FxtXut9dSZ/EM5Nwd8OWHoGBIM13dERcOSmM=; b=4i2WKggfR2Jq2VLPSyMh7dUQzsXmNIoQN7MPIXfBbh67+lBgl9BcVVA05L/VvVcL663T7PxbW7JWRVBa6iIOj19uLL25PBTkuGz96rUQKYQdK+61ALpjgHLjEm1YcUX/MMEroCkelY68/eMdAhveIrwHz3DZvZUwI3ZfjRwaygQ= Received: from BN9PR03CA0663.namprd03.prod.outlook.com (2603:10b6:408:10e::8) by BY5PR12MB4194.namprd12.prod.outlook.com (2603:10b6:a03:210::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7316.41; Fri, 1 Mar 2024 18:17:10 +0000 Received: from BN3PEPF0000B06B.namprd21.prod.outlook.com (2603:10b6:408:10e:cafe::17) by BN9PR03CA0663.outlook.office365.com (2603:10b6:408:10e::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7339.32 via Frontend Transport; Fri, 1 Mar 2024 18:17:10 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB03.amd.com; pr=C Received: from SATLEXMB03.amd.com (165.204.84.17) by BN3PEPF0000B06B.mail.protection.outlook.com (10.167.243.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7362.0 via Frontend Transport; Fri, 1 Mar 2024 18:17:10 +0000 Received: from SATLEXMB05.amd.com (10.181.40.146) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Fri, 1 Mar 2024 12:17:09 -0600 Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB05.amd.com (10.181.40.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Fri, 1 Mar 2024 12:17:09 -0600 Received: from xsjtanmays50.xilinx.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Fri, 1 Mar 2024 12:17:08 -0600 From: Tanmay Shah To: , , , , , , , CC: , , , Subject: [PATCH v12 3/4] dts: zynqmp: add properties for TCM in remoteproc Date: Fri, 1 Mar 2024 10:16:37 -0800 Message-ID: <20240301181638.814215-4-tanmay.shah@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240301181638.814215-1-tanmay.shah@amd.com> References: <20240301181638.814215-1-tanmay.shah@amd.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain Received-SPF: None (SATLEXMB05.amd.com: tanmay.shah@amd.com does not designate permitted sender hosts) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN3PEPF0000B06B:EE_|BY5PR12MB4194:EE_ X-MS-Office365-Filtering-Correlation-Id: f89d3418-a6cc-4ca1-5db4-08dc3a1bcfdd X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 94hBiPxkpUNauf4otxL2zeXiPKxtiVsiJVOcF+hRpJjwih1E5rcC8+QwgMpZrOftSbcWWUcUuwfC1+/OlH6WJ4AxQ6M9XFg5eIVD4DA4QSfOZKHnIBphwxuYs4HZgBRMAiWLDVUALwC+daJLVq4WxQgUTqoJCUBqnGCX6wyO6+QlFDB6f8kVlMPU5Ehshg/pKuYqsa/Pzq6epJADgczGPQEX0RLuY81Q3TLd1Hui4CYdYHjnFnAvHqGguAiqcLBWsgNpKKERmKM5wfUVaS87xU6oIJR8jaF5HajKfHDq+TVTubFXeFRYj+e+PBEodE4MFqNtXSuXdXiKcki5WKOpr0W5Gs/aRNi8hcU7uR9Onqjbn4q32kJsERoy+Lp/+2wxHRJ2p7EXSXdbZJ14+SQvcdEUh3C6v7pHpAK5/zMcXMN+iqDbnDEDiWprExWAlFMNjwj6Ze19ccdIjIrYv55SKJGlsqpl9pJflzh0eyGD78/2OF42gLNpePC0s9ie1NWH6gpmHqcVwCSHeAjNBwJdiljXGbslJ4JapNGAhWDzvt7fe6tFX9bGRjRgucMSSZltn0PaRFZLG6Z6xXkJS55KVb6K8Gw7MRuq6CkSiENr83PzuVbNRi9glDIFbrKOEMEEAAx61Y57mCWEutAEL1ffGBpbX54YVCOwbV/rvkjtNU1OQE782gZcifvHioRkfmVFftFcC8z74HOECThqZfwB99MYOsUEDeQOmvan1hUyaxWPL6xb1MKkr/YI61RB7wyY X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB03.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230031)(82310400014)(36860700004);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Mar 2024 18:17:10.4280 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f89d3418-a6cc-4ca1-5db4-08dc3a1bcfdd X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB03.amd.com] X-MS-Exchange-CrossTenant-AuthSource: BN3PEPF0000B06B.namprd21.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR12MB4194 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 | 65 +++++++++++++++++-- 2 files changed, 68 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 eaba466804bc..c8a7fd0f3a1e 100644 --- a/arch/arm64/boot/dts/xilinx/zynqmp.dtsi +++ b/arch/arm64/boot/dts/xilinx/zynqmp.dtsi @@ -248,19 +248,74 @@ 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 0x10000>, + <0x0 0x20000 0x0 0xffe20000 0x0 0x10000>, + <0x0 0x10000 0x0 0xffe10000 0x0 0x10000>, + <0x0 0x30000 0x0 0xffe30000 0x0 0x10000>; + + r5f@0 { + compatible = "xlnx,zynqmp-r5f"; + reg = <0x0 0x0 0x0 0x10000>, + <0x0 0x20000 0x0 0x10000>, + <0x0 0x10000 0x0 0x10000>, + <0x0 0x30000 0x0 0x10000>; + reg-names = "atcm0", "btcm0", "atcm1", "btcm1"; + power-domains = <&zynqmp_firmware PD_RPU_0>, + <&zynqmp_firmware PD_R5_0_ATCM>, + <&zynqmp_firmware PD_R5_0_BTCM>, + <&zynqmp_firmware PD_R5_1_ATCM>, + <&zynqmp_firmware PD_R5_1_BTCM>; + memory-region = <&rproc_0_fw_image>; + }; + + r5f@1 { + compatible = "xlnx,zynqmp-r5f"; + reg = <0x1 0x0 0x0 0x10000>, <0x1 0x20000 0x0 0x10000>; + reg-names = "atcm0", "btcm0"; + 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 = "atcm0", "btcm0"; + 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 = "atcm0", "btcm0"; + 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>; }; }; -- 2.25.1