From patchwork Tue Jul 30 06:55:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Potthuri, Sai Krishna" X-Patchwork-Id: 13746770 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 AA5DEC3DA49 for ; Tue, 30 Jul 2024 06:56:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding:MIME-Version: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:In-Reply-To:References:List-Owner; bh=YNs2E5d2EGUSGgelOWvS/f0+Lqux8G+nwil0sNfzc8c=; b=hMk6Sz6xh1bo9rJl0Cyr2Bw+JJ iY+0COqvgZ5Kw2NUR1bb0l2kpnApWCtdlMO69Ov9JLaqhB2rw5m8MVCbfy+aIL+adUMYKmaIXJ9Xd JYi/tUrM61lGzj9jhUpYYsMISW21GZzqylOY2GzqrrkX8Nrxk8jSUaCpmMfXq3jLrUoRHLx3YGd7l g9fxrjYIXN0yQMxRxhSY9KVoMY+vVMpD1XsxEptHDTYG5KAYm/cd1qYCTYWuu5XuCPhwoAdLs4ywU kbrSI1adY1NOpA7YDm+m6iY6AmHnnudlMck+Uq+qoePmL04QuNCwZYo7UWvpIz5SFyDIFOSWUm9L1 CnL4XqbA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sYgma-0000000DuoH-2Ivh; Tue, 30 Jul 2024 06:56:28 +0000 Received: from mail-dm6nam10on2061e.outbound.protection.outlook.com ([2a01:111:f400:7e88::61e] helo=NAM10-DM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sYgm8-0000000Duhg-1HdZ for linux-arm-kernel@lists.infradead.org; Tue, 30 Jul 2024 06:56:01 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=fM1CwQVa9qY9WJgPiVjuD071H0WWpvmTp/2hDrdRQy0nBm/E/Sk4RcH/me7/idfvhPWklFVOSKl9VoPjuHCBsK40cyAtMY9FPWaFug0NErsJsUOrxhE9QwvHyoW5de5UluGfam8r+IGibmTZY+vm73z0abfsZjiikPIQwRcaJoukWW2FGaz9KcZxAzI5l/ag5ANgfx46K+T1klct/9iQ3GKQYmtHgr6zcoYHa9dIbuPRg8R5095dwwJYV+u5cnhkQsIpfRwiG+uqIn6SNvtwns8bHuRDGVH7fuYo6KEwfO0se4p3ojRuArjxCVs3SUH+Duu/0AUXhFj3ZKqkzeGoog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=YNs2E5d2EGUSGgelOWvS/f0+Lqux8G+nwil0sNfzc8c=; b=Fxt6SPAUsRe+wEQsd573NjpGQ/PXoE8AkOaO/9d1vTpFowE+tOFumat4afj2QZYn3/JW2bAjm8xUSUTFwL7DPNYAQyD6O6CADMdxJmYqGMd/ZxfmQqiS1z+mHXpDxeirnvW5KytqDEXAohyVCslo87snoRDtxq8YtUnV8GoVj5yg7F42+uYfm0lPrnW4Zog0ulF6Sl9ZuLfJqEr51w6gUrUA1BykE1frIAq6yeP/uSh4qgHKdzkZsQzcp4ttmWEqac+Q5joObCVBCTdSVV9gCrZu5iy78CC86XWmNsLOsKyo5hg5gQNEPnNUnOUoIN+hWB4mmfSjOR4IWcORtx9IJg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=linaro.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=YNs2E5d2EGUSGgelOWvS/f0+Lqux8G+nwil0sNfzc8c=; b=IP/zOgQ1mKYEc8+NIDvEjkaKIPZpU6cJRsz+9GFm9fYsfhX7kKZIgFX9Ei8qfP5Hl5OL46qJU91ozqiWPgFFwgVRfhX+NYsjIChl7XwHXfMSWojJF3o6+wmktylYk9E/YSGyck0oFGqlJ/+wVBpwf36Yhkv4wy+LUKtffSYJ7wE= Received: from DS7PR03CA0021.namprd03.prod.outlook.com (2603:10b6:5:3b8::26) by CH3PR12MB8911.namprd12.prod.outlook.com (2603:10b6:610:169::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7807.30; Tue, 30 Jul 2024 06:55:54 +0000 Received: from DS2PEPF0000343D.namprd02.prod.outlook.com (2603:10b6:5:3b8:cafe::69) by DS7PR03CA0021.outlook.office365.com (2603:10b6:5:3b8::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7784.34 via Frontend Transport; Tue, 30 Jul 2024 06:55:54 +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 DS2PEPF0000343D.mail.protection.outlook.com (10.167.18.40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7828.19 via Frontend Transport; Tue, 30 Jul 2024 06:55:54 +0000 Received: from SATLEXMB04.amd.com (10.181.40.145) 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.39; Tue, 30 Jul 2024 01:55:53 -0500 Received: from xhdlakshmis40.xilinx.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server id 15.1.2507.39 via Frontend Transport; Tue, 30 Jul 2024 01:55:49 -0500 From: Sai Krishna Potthuri To: Linus Walleij , Michal Simek , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "Jay Buddhabhatti" , Praveen Teja Kundanala , Greg Kroah-Hartman CC: , , , , , , Sai Krishna Potthuri Subject: [PATCH v2 0/3] pinctrl: pinctrl-zynqmp: Add Versal platform support Date: Tue, 30 Jul 2024 12:25:45 +0530 Message-ID: <20240730065548.1371518-1-sai.krishna.potthuri@amd.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Received-SPF: None (SATLEXMB03.amd.com: sai.krishna.potthuri@amd.com does not designate permitted sender hosts) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DS2PEPF0000343D:EE_|CH3PR12MB8911:EE_ X-MS-Office365-Filtering-Correlation-Id: 16272b02-71a8-4c8c-9796-08dcb064a808 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|36860700013|82310400026|1800799024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kBQVNhUTILURzHKv9U4ZGpLtdkGi38iXsZjZQ6wUbv5PS0brClOWfn0EDCl/Ppk/1apiJGioSgnO2C/ESRmZ7etjXqoKvsI5LtbwkgJBSioTiFUdrGeDK1uDH32RRVptYcpbpaORghwLwJDoEBgBLAsq1EneqWE2orgKRKMRuwG5y9wnk59gyvkEqjQaSX7EnDoSRtYyE8ZxSB8oseXZyaBw7wCvtIj+4rb3Kk/lClLGRc56wxjNoOKQn6Tfx4XT3SFKUdNof2x4A1CXld2qfXHQrRbmfn1knCYlPYgyD1OdgPJqeCB4JgRU1rKRNscHzYZWil95LyqS7tAeeOjjARz0rnSR4Yaw1F7lixlwxAWeMqPSjK1PpLHZYXQzcMlnb9+8NqxgPekb+Ps9z+Sq3dwwEOqraBou8lsnJNzzD6 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:(13230040)(36860700013)(82310400026)(1800799024)(7416014)(376014);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Jul 2024 06:55:54.1027 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 16272b02-71a8-4c8c-9796-08dcb064a808 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: DS2PEPF0000343D.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR12MB8911 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240729_235600_422107_83CFED57 X-CRM114-Status: GOOD ( 12.36 ) 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 Update the binding and pinctrl-zynqmp driver to add Versal platform support. Add Get Attribute ID in the Xilinx/AMD firmware driver to get the pin information from Xilinx/AMD Platform Management Firmware. Changes in v2: -> 1/3 - Created new binding doc for Versal platform (suggested by Rob). -> 1/3 - Update regex for pins properties to make sure it always starts with "LPD" or "PMC" string. -> 3/3 - Used firmware API to get platform information to differentiate platform specific code (suggested by Jay). Sai Krishna Potthuri (3): dt-bindings: pinctrl: Add support for Xilinx Versal platform firmware: xilinx: Add Pinctrl Get Attribute ID pinctrl: pinctrl-zynqmp: Add support for Versal platform .../bindings/pinctrl/xlnx,versal-pinctrl.yaml | 289 ++++++++++++++++++ drivers/pinctrl/pinctrl-zynqmp.c | 97 +++++- include/linux/firmware/xlnx-zynqmp.h | 1 + 3 files changed, 382 insertions(+), 5 deletions(-) create mode 100644 Documentation/devicetree/bindings/pinctrl/xlnx,versal-pinctrl.yaml