From patchwork Fri Mar 15 21:15:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tanmay Shah X-Patchwork-Id: 13594066 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7036BC54E69 for ; Fri, 15 Mar 2024 21:16:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=a0nPqJwkSlmOVLVpk0RYpUd0d+uNSbfLBeoTjQTci6c=; b=Tovy81f3SNsdLo //Ojdky1/56817TA4xcL1keYTJIfQA70GRynaf8T2T1x5N3LeOYgvSMbsWATFdYtU0Px29DdTccR8 agFdjHyRYW7Zl16n07j0/JWteq72hGQFAGtHf61PSAcDcXUN41z7MnlVThuNroRMDyNgh0euifyZA 59+pjgBq8QblrcRwYjGGek7PY0RYg1YSya3WeAJyCWUUZv96RSnKY7M6gtXShQsBifUfawjMmIUep 7AOadczHAUouf7oKd/4xggKQGX+CpdzCVOFSbBzFm+YK4+c7yEfz+0I7+tgmDo6tcJv1Nl5gEGm/I t5klu61VoMsnVcMynAVA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rlEul-00000001c2q-0p08; Fri, 15 Mar 2024 21:16:31 +0000 Received: from mail-dm6nam12on20600.outbound.protection.outlook.com ([2a01:111:f403:2417::600] helo=NAM12-DM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rlEuf-00000001c14-15F3 for linux-arm-kernel@lists.infradead.org; Fri, 15 Mar 2024 21:16:29 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MqEK/a7pajDMQNNiF5eWaduyuRL+Q7bzkJRTiDM4qPkS48bVxsdPx3Tupkv51lUXntgpDIXq651aalWFBM/eOga0XY7Eqb8mnPWotzK3DYD3zOE4FgBnsTMM9ULYwm9y+9KZpG68c9PWorqAoIeup2DJMEYcg7Qz29iXuvxzoniM+iqdFcP8LFn7zsKtS81R0sj+3ERCI3vLXkV9iZL3iM0KNlZ18YY+5qWSF38kLOpKuGZi0omZnQi5VaaOSIP8bPgnPb+1p10JYkMPor8azMLrMcrejDRm625eA0Mw7lgcK/2NWvZy7Me8JmiHvXUEG0Hay24AZoQUZdv2V02bow== 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=fXglosEm1/uXHZN1v2o5jUrGABE3+HbTQArZbktGcEo=; b=N8sUM+R+ffYbW2JnmqUwzax4Bl/iCD/lpO55EWKl3ko3xFndM2asZd/qeVRrtHtSnihm/yrlft7UgX7qVIPU8WUExzwtef0y2fb0UaCTZQE9kGmCFskopGbvinx8T7g0Uiy6XgmrKcQ68nut8VnL2qCRXqOoWsAOcJM8UQ1HgRdOa/Dy6dIbYN4WMwzDieYTgEW14Uzs6L641bs96QP0no+/9pwxQJaX1fj2LXK+t1O0YMEEU8GyZPKlR9Gv4EFL5BdfRiavELlJsOH51AhYNKps64D7EpHJr6+U62VQxNiVLp6Dz51AmuElbLMNiEtLKFwYw7oMvR1EcwyeRMEIsQ== 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=fXglosEm1/uXHZN1v2o5jUrGABE3+HbTQArZbktGcEo=; b=xDD3cOalDpleSorbN0i+mV7ZlR2KLj313ZJb3K6z5MRTfqcVONGzlkUiBzZtc4YFg/88XVu+6Rbr5/JH+lrE+nzEm+ICCHuSFc2BmfLoHlORKTjC/YfiOzUktqob09oxjBQ3N3VjIZX1NsB6tEstZAtzv4Mpd+4ybubsND/G+IY= Received: from DS7PR06CA0020.namprd06.prod.outlook.com (2603:10b6:8:2a::21) by IA0PR12MB8893.namprd12.prod.outlook.com (2603:10b6:208:484::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.22; Fri, 15 Mar 2024 21:16:14 +0000 Received: from CY4PEPF0000FCC5.namprd03.prod.outlook.com (2603:10b6:8:2a:cafe::2d) by DS7PR06CA0020.outlook.office365.com (2603:10b6:8:2a::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.22 via Frontend Transport; Fri, 15 Mar 2024 21:16:14 +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=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by CY4PEPF0000FCC5.mail.protection.outlook.com (10.167.242.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7386.12 via Frontend Transport; Fri, 15 Mar 2024 21:16:14 +0000 Received: from SATLEXMB05.amd.com (10.181.40.146) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Fri, 15 Mar 2024 16:16:14 -0500 Received: from SATLEXMB03.amd.com (10.181.40.144) 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, 15 Mar 2024 16:16:13 -0500 Received: from xsjtanmays50.xilinx.com (10.180.168.240) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server id 15.1.2507.35 via Frontend Transport; Fri, 15 Mar 2024 16:16:12 -0500 From: Tanmay Shah To: , , , , , , , CC: , , , Subject: [PATCH 1/3] dt-bindings: remoteproc: add Versal platform support Date: Fri, 15 Mar 2024 14:15:31 -0700 Message-ID: <20240315211533.1996543-2-tanmay.shah@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240315211533.1996543-1-tanmay.shah@amd.com> References: <20240315211533.1996543-1-tanmay.shah@amd.com> MIME-Version: 1.0 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: CY4PEPF0000FCC5:EE_|IA0PR12MB8893:EE_ X-MS-Office365-Filtering-Correlation-Id: b000f914-8009-44d5-3583-08dc453525a4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: COPB4pwMqRLVgeZBBQELsYBaLV+4HJ29mE73lSePpMSt186coy28mI2kRAakfDnszhV++TTr73PpQoa5SaZc8e0ttRmY5gZPw33TzB0Re7PH1tg9sBXr9Y360tdbgyeHy9jEZhmSkGcKcFA3vLQ6qcVCJOK4DEj2N+4ND45ajjtpC2oJy4Pj3XfKUXDMXqSbasyBb/jlqwghUxhL/wAAnXHxXD2speEbLkvomyEodxdlkiIMPG2fPJsN5X21aQe6JqVM3bh0BRNjI4qbmm5SCETIrXFWAJyhEgqMTHxdNma4VmNymKiG0aR9go6Y54n4YNcduXLYcpw9hYhh+ltSt418EmrFagGDF60XDtvTB3YvpNRhpVnTJBDx2ujm9RHzNFm0N4U4pF2yvDYswbQVRLniTnxMNC3EM72EUL5gjc1ebM5oflJ7e1laX8bNafxhY9PjoNUHUX1tFcECZfjpMMbEfigrSV9VYpY7Z4IQfLC59QppkfrSz9MdrZPZ7inOajQxjN4rz1Il6jcHjyq4fpDZkS3RdFbbSG+stQ0YHw2zoWS8c7EMsAUzEecMDxrECERadwYT+sxMS6ZkRUErpH8y9MkCcvv2Lyx9pCAtQpnFvJPRSMMiQRPR1nvpSGoTjrUu+nV2ejC0hGYAYF6gzy9kU0AZ0DqIs0poqUk00QXQ9lfRwcpRoQLIYfiIVVCxew/nnyHY7CToJq4LUTOegeFce0X7DTA2GvQx0H3m3nAEV6FM4lmgbOM0pPu6Nhxm X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230031)(36860700004)(376005)(1800799015)(82310400014);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Mar 2024 21:16:14.5775 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b000f914-8009-44d5-3583-08dc453525a4 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=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CY4PEPF0000FCC5.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA0PR12MB8893 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240315_141625_649655_B149EF7C X-CRM114-Status: GOOD ( 10.16 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org AMD-Xilinx Versal platform is successor of ZynqMP platform. Real-time Processor Unit R5 cluster IP on Versal is same as of ZynqMP Platform. Only difference is power-domains ID needed by power management firmware. Hence, keeping the compatible property same as of zynqmp node. Signed-off-by: Tanmay Shah --- .../remoteproc/xlnx,zynqmp-r5fss.yaml | 93 +++++++++++++++++++ 1 file changed, 93 insertions(+) diff --git a/Documentation/devicetree/bindings/remoteproc/xlnx,zynqmp-r5fss.yaml b/Documentation/devicetree/bindings/remoteproc/xlnx,zynqmp-r5fss.yaml index 629084a84ce6..711da0272250 100644 --- a/Documentation/devicetree/bindings/remoteproc/xlnx,zynqmp-r5fss.yaml +++ b/Documentation/devicetree/bindings/remoteproc/xlnx,zynqmp-r5fss.yaml @@ -293,4 +293,97 @@ examples: }; }; }; + + - | + // Versal Split mode configuration + soc { + #address-cells = <2>; + #size-cells = <2>; + + remoteproc@ffe00000 { + 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"; + reg = <0x0 0x0 0x0 0x10000>, <0x0 0x20000 0x0 0x10000>; + reg-names = "atcm0", "btcm0"; + power-domains = <&versal_firmware 0x18110005>, + <&versal_firmware 0x1831800b>, + <&versal_firmware 0x1831800c>; + memory-region = <&rproc_0_fw_image>, <&rpu0vdev0buffer>, + <&rpu0vdev0vring0>, <&rpu0vdev0vring1>; + mboxes = <&ipi_mailbox_rpu0 0>, <&ipi_mailbox_rpu0 1>; + mbox-names = "tx", "rx"; + }; + + r5f@1 { + compatible = "xlnx,zynqmp-r5f"; + reg = <0x1 0x0 0x0 0x10000>, <0x1 0x20000 0x0 0x10000>; + reg-names = "atcm0", "btcm0"; + power-domains = <&versal_firmware 0x18110006>, + <&versal_firmware 0x1831800d>, + <&versal_firmware 0x1831800e>; + memory-region = <&rproc_1_fw_image>, <&rpu1vdev0buffer>, + <&rpu1vdev0vring0>, <&rpu1vdev0vring1>; + mboxes = <&ipi_mailbox_rpu1 0>, <&ipi_mailbox_rpu1 1>; + mbox-names = "tx", "rx"; + }; + }; + }; + + - | + // Versal Lockstep configuration + soc { + #address-cells = <2>; + #size-cells = <2>; + + remoteproc@ffe00000 { + compatible = "xlnx,zynqmp-r5fss"; + xlnx,cluster-mode = <1>; + + #address-cells = <2>; + #size-cells = <2>; + ranges = <0x0 0x0 0x0 0xffe00000 0x0 0x20000>, + <0x0 0x20000 0x0 0xffe20000 0x0 0x20000>; + + 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 = <&versal_firmware 0x18110005>, + <&versal_firmware 0x1831800b>, + <&versal_firmware 0x1831800c>, + <&versal_firmware 0x1831800d>, + <&versal_firmware 0x1831800e>; + memory-region = <&rproc_0_fw_image>, <&rpu0vdev0buffer>, + <&rpu0vdev0vring0>, <&rpu0vdev0vring1>; + mboxes = <&ipi_mailbox_rpu0 0>, <&ipi_mailbox_rpu0 1>; + mbox-names = "tx", "rx"; + }; + + r5f@1 { + compatible = "xlnx,zynqmp-r5f"; + reg = <0x1 0x0 0x0 0x10000>, <0x1 0x20000 0x0 0x10000>; + reg-names = "atcm0", "btcm0"; + power-domains = <&versal_firmware 0x18110006>, + <&versal_firmware 0x1831800d>, + <&versal_firmware 0x1831800e>; + memory-region = <&rproc_1_fw_image>, <&rpu1vdev0buffer>, + <&rpu1vdev0vring0>, <&rpu1vdev0vring1>; + mboxes = <&ipi_mailbox_rpu1 0>, <&ipi_mailbox_rpu1 1>; + mbox-names = "tx", "rx"; + }; + }; + }; ...