From patchwork Mon Nov 14 23:39:36 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tanmay Shah X-Patchwork-Id: 13042959 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 9574CC4332F for ; Mon, 14 Nov 2022 23:42:12 +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=02ULuVlyU1ZsseOb52NEbiJ/0qSxabAULqWIKzQ0rIw=; b=rzIbf2dyHsLYTa l6Mq5V7Z8lzp7pJ5UDH6B68yZMqJmr8BHlB4/qNQA9FXtDRbQOWv0QVYZAQOe4hQUqdyme6FFQLHw +76th1MCNF/WYEXks4Enoo23aWcatWpsy+EfRyZOZ5MIVVkUzYAVNX/S3mKodWrRdLWdsEht96LUQ 2D7bbeyiLfdB8NOEs0AogSUEYyOFB9ZdPMVAqRoG6V9V0yOEBvYPWLsxpQrnHid5+K5gEaVcVmTnY IYP7k+mg0KU1xZgvbrJjlCwikwdHPQv44oFO+Q8p0c1JTf28DROgRenW5QFSSs8rFVqQzpaF1Uqv/ 8U+Pw7oO2w/oTBCEwZZQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ouj4Y-005rn7-SS; Mon, 14 Nov 2022 23:41:03 +0000 Received: from mail-mw2nam04on2088.outbound.protection.outlook.com ([40.107.101.88] helo=NAM04-MW2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ouj4M-005riY-3b for linux-arm-kernel@lists.infradead.org; Mon, 14 Nov 2022 23:40:51 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jkyL5ya1S6r+QEhGEEMCH2qoLSJcJFHJj9I6DzrPDlePqo68BCiW2rLRYhoukR8Hu9EjTgttprG92w2uQ25aLQn1W3I1mTvyWTDEfFxQLo39GE6njJd4tGDfohGMX0yUoq8EUOw2pAnsNFs2TKr39d97n6j+xN0El34damMN7XFeIDN7+9+al08+CZcc2cFAd92HPStncCGPMfpLFsMFC56h9q+SH99ePoUIDjF6qeqH0BfscKE60DBkymEPdEtbhmgGGwmBjQy+ZEvtZ6WPyBfOFNLZP86WXDphe2kDtJhOAZ8vW4m20hq1bz07RTJ5fkc6tim8FOrGTNKvfh2lew== 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=YQAqUUEDfoFQHSL1LSSwTe8XScwj5IknDOcwkdo8sNM=; b=IJE4Ofg6TAk+c5wMgV4c4NxsVwmXfu4Zsg14oXdme5tZEJHp8X+k4i2QxU1mflO4FSAxbFUcdXRroOZx7DaTDlYCVkziKAtWo0WvSRCh5kNp2xiR8P3GnL+Nm28VoKyoizOkv1MtOGVSEc+1nf94OTGtBvdAonha4ZvBvEWAIh9L2Op4N8p7Hb0a0g7GAKoSjR+VwYlqpUMx3IIUR0b8oEaUbZ3KCeIPLW7UiEP7K948OQ85cfDyrHo0W9GeTPuxaB7D+5HFw95OjmruT1mDtwmDAdlUDGeHlTvT1ZnXgWMfMskrjP2Pa4N8fAmoK3x6XOgjkg1imGiEJ9sLtwuKzg== 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 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=YQAqUUEDfoFQHSL1LSSwTe8XScwj5IknDOcwkdo8sNM=; b=vZOSnHrJChlTIE5nCN3mL0bTiVy9xLi7rjdNSI7N+aUgL+B/TXf3lE6JNfCFi1PcHEjX1hJKd4X2JkVW2dMVEKXIIXoAIfxryuaQ4xjTwcf8fEgpYHMpbaZJmaN3980S0Qpaj0WN2ZD9WT+dfFdud8LjoAtP/s7eETA32MEqXoc= Received: from DS7PR03CA0136.namprd03.prod.outlook.com (2603:10b6:5:3b4::21) by DM4PR12MB6663.namprd12.prod.outlook.com (2603:10b6:8:bb::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5813.16; Mon, 14 Nov 2022 23:40:46 +0000 Received: from DM6NAM11FT047.eop-nam11.prod.protection.outlook.com (2603:10b6:5:3b4:cafe::22) by DS7PR03CA0136.outlook.office365.com (2603:10b6:5:3b4::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5813.17 via Frontend Transport; Mon, 14 Nov 2022 23:40:46 +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 DM6NAM11FT047.mail.protection.outlook.com (10.13.172.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5813.12 via Frontend Transport; Mon, 14 Nov 2022 23:40:46 +0000 Received: from SATLEXMB06.amd.com (10.181.40.147) 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.2375.34; Mon, 14 Nov 2022 17:40:45 -0600 Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB06.amd.com (10.181.40.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Mon, 14 Nov 2022 17:40:44 -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.2375.34 via Frontend Transport; Mon, 14 Nov 2022 17:40:43 -0600 From: Tanmay Shah To: , , , , CC: , , , , , Tanmay Shah Subject: [PATCH v11 2/6] arm64: dts: xilinx: zynqmp: Add RPU subsystem device node Date: Mon, 14 Nov 2022 15:39:36 -0800 Message-ID: <20221114233940.2096237-3-tanmay.shah@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221114233940.2096237-1-tanmay.shah@amd.com> References: <20221114233940.2096237-1-tanmay.shah@amd.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6NAM11FT047:EE_|DM4PR12MB6663:EE_ X-MS-Office365-Filtering-Correlation-Id: a9954407-4771-46c7-e3a2-08dac699a72c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: FQ1Lhr1gCUd5HohwKUtfa6BEu9/fAxWidFfrafNOmFVgQlgn503ZGglCpyNSYWcZvMuxyDlWpmsjnGXjWuSXrf64UuWgPablGihOQHfwP626JcLiyk+qvvdEvgbYBClJlHwZPph2ljCZMN8VepAtahJqpvE2LakZ9yJcBdbWmfic2K+GEoKp8/7nkyUicvz9Trr5i0MeImkOCYkrbP6Rakm+jPM0eUSNmZpe+EorIDZD4cr20zXLIcpBAGgyK90VeN3eMbT0cGXOG3PpnrZXlBPAxP0AEYDFvonuEyfvwiYnWagB6RYsfAlnQ37xYfemWDIT+giALV4xbZLk61dI9S6sQ4xhAzFZf26ItwZohkeIhEn6M0QEhiXiYxhhVZbgfI6gTcstRTPudh1n/kx1xLb5MlEo5G/9gugDOcDoYuaSA76kRQYIXH5dskATaZ9h07lZ+DM+h2qnzIbqjnUYYPWP0BoXDyVxbB2RGm/2MVONxIlcL0KiKC1I0DegzbGaP+R/lokvFHsKZwKYVSzzZEFj+yZ9rsGz8vLBtgdLUImeGDxHAqpf3lNR7lFNiPVBfarhahMjAUIlGn0j4W1vXInb0mgY/H45o9d0TNT1VQ3i4KU76y8pvB6Fe3giuQ0I+LGP1n8UryUlCd7t6P21B+E5VPWMGjce5eILdJZ0aTBQ4qB6NZXH9ZnRtukBs4BrZpOQr9d5L4mUco8CR+3S1ZWviFFCfrbKHts4hpvWrIzMXAQCFHt/dPLauuGVbODv9ZmgSUIUCagGLEHbZkrtiZWzxPK/MeT35AzeIA7Do7ABxfl461+VGK3QZeMuedhy 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:(13230022)(4636009)(346002)(136003)(376002)(39860400002)(396003)(451199015)(40470700004)(46966006)(36840700001)(40480700001)(82310400005)(110136005)(36756003)(6636002)(186003)(336012)(2906002)(1076003)(54906003)(6666004)(478600001)(47076005)(36860700001)(41300700001)(86362001)(426003)(26005)(70586007)(8676002)(82740400003)(70206006)(356005)(81166007)(4326008)(316002)(5660300002)(83380400001)(44832011)(2616005)(40460700003)(8936002)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Nov 2022 23:40:46.2598 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a9954407-4771-46c7-e3a2-08dac699a72c 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: DM6NAM11FT047.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB6663 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221114_154050_168754_4A00358E X-CRM114-Status: GOOD ( 10.06 ) 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 RPU subsystem can be configured in cluster-mode or split mode. Also each r5 core has separate power domains. Signed-off-by: Tanmay Shah Acked-by: Michal Simek --- Changes in v11: - None Changes in v10: - Rename node name to remoteproc Changes in v9: - remove unused labels Changes in v8: - None Changes in v7: - None Changes in v6: - None Changes in v5: - Remove optional reg property from r5fss node - Move r5fss node out of axi node Changes in v4: - Add reserved memory region node and use it in RPU subsystem node Changes in v3: - Fix checkpatch.pl style warning arch/arm64/boot/dts/xilinx/zynqmp.dtsi | 33 ++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/arch/arm64/boot/dts/xilinx/zynqmp.dtsi b/arch/arm64/boot/dts/xilinx/zynqmp.dtsi index a549265e55f6..c0f60833c0ae 100644 --- a/arch/arm64/boot/dts/xilinx/zynqmp.dtsi +++ b/arch/arm64/boot/dts/xilinx/zynqmp.dtsi @@ -100,6 +100,22 @@ opp03 { }; }; + reserved-memory { + #address-cells = <2>; + #size-cells = <2>; + ranges; + + rproc_0_fw_image: memory@3ed00000 { + no-map; + reg = <0x0 0x3ed00000 0x0 0x40000>; + }; + + rproc_1_fw_image: memory@3ef00000 { + no-map; + reg = <0x0 0x3ef00000 0x0 0x40000>; + }; + }; + zynqmp_ipi: zynqmp_ipi { compatible = "xlnx,zynqmp-ipi-mailbox"; interrupt-parent = <&gic>; @@ -203,6 +219,23 @@ fpga_full: fpga-full { ranges; }; + remoteproc { + compatible = "xlnx,zynqmp-r5fss"; + xlnx,cluster-mode = <1>; + + r5f-0 { + compatible = "xlnx,zynqmp-r5f"; + power-domains = <&zynqmp_firmware PD_RPU_0>; + memory-region = <&rproc_0_fw_image>; + }; + + r5f-1 { + compatible = "xlnx,zynqmp-r5f"; + power-domains = <&zynqmp_firmware PD_RPU_1>; + memory-region = <&rproc_1_fw_image>; + }; + }; + amba: axi { compatible = "simple-bus"; #address-cells = <2>;