From patchwork Wed May 29 14:47:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 1941384 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=amd.com header.i=@amd.com header.a=rsa-sha256 header.s=selector1 header.b=smN8cDKl; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VqFKG44S9z20Pq for ; Thu, 30 May 2024 02:32:18 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3791388627; Wed, 29 May 2024 18:32:02 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=amd.com header.i=@amd.com header.b="smN8cDKl"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id EEC018860D; Wed, 29 May 2024 16:48:14 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on20601.outbound.protection.outlook.com [IPv6:2a01:111:f403:2416::601]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 4AECF883F6 for ; Wed, 29 May 2024 16:48:12 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=michal.simek@amd.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iwHaahn5cSFq8YVrxGkLZC9dr5xe+IxXVJJLscffVRY3YsvzHT76QP2UySFMJcBM4B5jILAs+6JwjymYB+PiZ1X6rhYWMEvat0Tz+XsJyCEAAipMDRpjbflWKlLjzgYamnn454aeGrqCMLlaflIFJ5ha1K3kMK4m5D2a+K9+AmRVlThvNkcp4l47xlpAqQQgjxhhBlDKLdwoFD8vckYHWvPYN5c+/ys4LA2gvgrNGp2WqRWhktHB7z1EVFLLZ/OjMEKGq8ujEBodGZvWA8YyCZSQSpeT3uVo2jNxVoAkdLgvVg/7q9M5qqBaHHslsEeGok1iM8OgxGu5RALN8/v+yw== 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=sNdRXCTj45L3hYcYEAmGB4xuvIrWtRIuBQ/owhbd6QY=; b=Mkay/zVVUA5HNLJIkElKiCF5c28R8hWvz1Mti/vEKARLt0Jk6OV/mtKNbvXWcRttYuUlpy66JolJ88TevGirNGUfwWmbL4cQ1AoNqydr6v7tm0C7aICUoy8eOdzZig/o6Q2oWoh90AVYaxz/F8D7Ygrc7if1jZIxtvGHroRxs6yFFRSu4S0Dijq+/GMGiImaZKdu4zD4qg7/7BC3JejlocpE8FlMXSkNU++8i37FHenkXpW0sauSP6x+eNGaeotvL57txKEcCAUab5n4L/zR148A2rmBMq9XV3p/U+JyZ9Fo1KYZiF+k/zJSNcTM7OYvZZYk4x/2kr3og09V4LkwEw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.denx.de 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=sNdRXCTj45L3hYcYEAmGB4xuvIrWtRIuBQ/owhbd6QY=; b=smN8cDKlLgmjXDUyLK0mAn0/WsDRdfjqbL7s/yRMBamvPIr/MxjfUxTl7HGsP3VfxQlUbb/3Z7qLGS4US+RTje/a52dmSNStkP28ieQDqiB159wYUITIfyWI8xcvh1y9dkRgXpuSXIVlZoMnJBMZCEVzQl23jxazl3/0jf0QPtQ= Received: from MN2PR14CA0029.namprd14.prod.outlook.com (2603:10b6:208:23e::34) by BL3PR12MB6449.namprd12.prod.outlook.com (2603:10b6:208:3b8::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.17; Wed, 29 May 2024 14:48:08 +0000 Received: from MN1PEPF0000ECD5.namprd02.prod.outlook.com (2603:10b6:208:23e:cafe::15) by MN2PR14CA0029.outlook.office365.com (2603:10b6:208:23e::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.55 via Frontend Transport; Wed, 29 May 2024 14:48:08 +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 MN1PEPF0000ECD5.mail.protection.outlook.com (10.167.242.133) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7633.15 via Frontend Transport; Wed, 29 May 2024 14:48:07 +0000 Received: from localhost (10.180.168.240) 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; Wed, 29 May 2024 09:48:04 -0500 From: Michal Simek To: , CC: Algapally Santosh Sagar , Alper Nebi Yasak , Andre Przywara , "Andrew Davis" , Angelo Dureghello , "Arturs Artamonovs" , Ashok Reddy Soma , Biju Das , "Caleb Connolly" , Chanho Park , Christophe Leroy , =?utf-8?b?Q3PDs2vDoXMgQmVu?= =?utf-8?b?Y2U=?= , =?utf-8?q?C=C3=A9dric_Le_Goater?= , Emmanuel Di Fede , Eugen Hristev , Fabio Estevam , Hai Pham , "Ibai Erkiaga" , Igor Prusov , Jaehoon Chung , Jagan Teki , Joe Hershberger , "Jonas Karlman" , Kever Yang , "Kongyang Liu" , Laurentiu Tudor , Leo Yu-Chi Liang , =?utf-8?q?Marek_Beh=C3=BAn?= , Marek Vasut , "Minkyu Kang" , Nathan Barrett-Morrison , Neil Armstrong , Padmarao Begari , Patrice Chotard , Paul Barker , Peng Fan , Peter Robinson , "Piotr Wojtaszczyk" , "Polak, Leszek" , Rayagonda Kokatanur , "Sam Protsenko" , Sean Anderson , Simon Glass , Stefan Roese , Sumit Garg , Svyatoslav Ryhel , Tejas Bhumkar , Tim Harvey , Tom Rini , Tony Dinh , Udit Kumar , Venkatesh Yadav Abbarapu , William Zhang Subject: [PATCH 0/4] arm64: versal2: Add support for new AMD Versal Gen 2 SoC Date: Wed, 29 May 2024 16:47:57 +0200 Message-ID: X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3081; i=michal.simek@amd.com; h=from:subject:message-id; bh=ZZyd0RH7qFr0A0hLvPwgpLlLuwee4duc+CodSB8I1rs=; b=owGbwMvMwCR4yjP1tKYXjyLjabUkhrRwB8mPR9mVeHgOSnTu3ZUetcr61vQDN7kMj+01F+6Ir udbdNq7I5aFQZCJQVZMkUXa5sqZvZUzpghfPCwHM4eVCWQIAxenAEzk0C2G+S7/rXW+W1m817Z4 PpVrSwjvPm5mcYb5Ac/lgw6e00wo91gSeEblYjb3/BwNAA== X-Developer-Key: i=michal.simek@amd.com; a=openpgp; fpr=67350C9BF5CCEE9B5364356A377C7F21FE3D1F91 X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB03.amd.com (10.181.40.144) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MN1PEPF0000ECD5:EE_|BL3PR12MB6449:EE_ X-MS-Office365-Filtering-Correlation-Id: 27312129-6270-42a1-7892-08dc7fee5a9d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230031|36860700004|376005|1800799015|82310400017|7416005; X-Microsoft-Antispam-Message-Info: ic9qXI+FLYfvPWYluHPN82RkHN1IEJsP6Nol9GIQ3Js2/XzipShoV5c2bXsYWoCt91x9Jysy6ryNFTnhOBo2W+3iCNiUNHyT5tQBFwahUM4QyVHZzjyvaAGRovoGKYDi98D/VLDmgDwFpyUghj/d6oDltvmtcH47awqRlO99uY54NujuPzwVecXH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URPUwZRQWYTUM3HCqA5T21Llwymc9L53zmEe1yL9ggtEW2COx4ixFKAZ+B3dU2zJXk7ZsywrM3rbVu3 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)(82310400017)(7416005); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 May 2024 14:48:07.7887 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 27312129-6270-42a1-7892-08dc7fee5a9d 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: MN1PEPF0000ECD5.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL3PR12MB6449 X-Mailman-Approved-At: Wed, 29 May 2024 18:32:00 +0200 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Hi, I am sending patches for adding initial support for new AMD Versal Gen 2 SoC. If you want to find out more information please take a look at this page: https://www.amd.com/en/products/adaptive-socs-and-fpgas/versal.html Thanks, Michal Michal Simek (4): arm64: versal2: Add support for AMD Versal Gen 2 soc: versal2: Add SoC driver for AMD Versal Gen 2 mmc: versal2: Update zynq_sdhci driver to support AMD Versal Gen 2 spi: versal2: Enable spi drivers for Versal Gen 2 arch/arm/Kconfig | 14 + arch/arm/Makefile | 1 + arch/arm/dts/Makefile | 2 + arch/arm/dts/amd-versal2-virt.dts | 11 + arch/arm/mach-versal2/Kconfig | 55 +++ arch/arm/mach-versal2/Makefile | 10 + arch/arm/mach-versal2/clk.c | 34 ++ arch/arm/mach-versal2/cpu.c | 93 +++++ arch/arm/mach-versal2/include/mach/hardware.h | 97 +++++ .../arm/mach-versal2/include/mach/sys_proto.h | 9 + board/amd/common | 1 + board/amd/versal2/Kconfig | 16 + board/amd/versal2/MAINTAINERS | 7 + board/amd/versal2/Makefile | 11 + board/amd/versal2/board.c | 343 ++++++++++++++++++ board/amd/versal2/cmds.c | 81 +++++ board/xilinx/Kconfig | 6 +- configs/amd_versal2_virt_defconfig | 150 ++++++++ drivers/gpio/Kconfig | 2 +- drivers/mailbox/Kconfig | 2 +- drivers/mmc/zynq_sdhci.c | 22 +- drivers/soc/Kconfig | 8 + drivers/soc/Makefile | 1 + drivers/soc/soc_amd_versal2.c | 77 ++++ drivers/spi/Kconfig | 2 +- drivers/spi/cadence_qspi.c | 3 +- drivers/spi/zynqmp_gqspi.c | 6 +- env/Kconfig | 6 +- include/configs/amd_versal2.h | 143 ++++++++ 29 files changed, 1193 insertions(+), 20 deletions(-) create mode 100644 arch/arm/dts/amd-versal2-virt.dts create mode 100644 arch/arm/mach-versal2/Kconfig create mode 100644 arch/arm/mach-versal2/Makefile create mode 100644 arch/arm/mach-versal2/clk.c create mode 100644 arch/arm/mach-versal2/cpu.c create mode 100644 arch/arm/mach-versal2/include/mach/hardware.h create mode 100644 arch/arm/mach-versal2/include/mach/sys_proto.h create mode 120000 board/amd/common create mode 100644 board/amd/versal2/Kconfig create mode 100644 board/amd/versal2/MAINTAINERS create mode 100644 board/amd/versal2/Makefile create mode 100644 board/amd/versal2/board.c create mode 100644 board/amd/versal2/cmds.c create mode 100644 configs/amd_versal2_virt_defconfig create mode 100644 drivers/soc/soc_amd_versal2.c create mode 100644 include/configs/amd_versal2.h