From patchwork Fri Feb 12 12:07:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sai Krishna Potthuri X-Patchwork-Id: 12085119 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.3 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6C9BAC433DB for ; Fri, 12 Feb 2021 12:09:51 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2C50A61494 for ; Fri, 12 Feb 2021 12:09:51 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2C50A61494 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=xilinx.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject: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=Tj0w0o8rp/MfXPjAXBNTQ0bynudWSv6fmdYJt/k9iFg=; b=ORPlqqqGA3C1qYkkGVCtrf/OyE 0IDpNOQSj4Vm9aXrXkIQtIhCVaz0DcXFN3aSlZrMBgRDolFoY7Dmyx4h/R92s+D0oeu+8c+pfnd6y IU9v3xmeBVvWBnwv0Yf9BezJ+jhP6bQVLBg56X2WNJBmUDuhcKB76hc14tcPFteGfInlnwxjvjArn 3W5wk4IwX71lrrxT/kIoqn/iZ9YWlmXCTIjYzs5qAoLPEofNTRIS2YHqkb4JVBP8hqX/Hdd0Wi6wa qOd60NdVMXb603SZqLqpY89eufSvSdUuCYueucd6VfROqGfPlV8sHMqs+07GMUwGWuyx504Ia/jiv Awkh+NnQ==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1lAXFT-0005GE-6d; Fri, 12 Feb 2021 12:08:35 +0000 Received: from mail-bn8nam11on2045.outbound.protection.outlook.com ([40.107.236.45] helo=NAM11-BN8-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1lAXFN-0005Fm-Lk for linux-arm-kernel@lists.infradead.org; Fri, 12 Feb 2021 12:08:33 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NRcdOnIGKWqkDtALKS9PvNVKYQmNCNO1a1dIO5U5q/N+WwRYJaOjfrGrT0KaFfDqOHQBD9GsYzB4c4ZG4wncxHgc08RhFs3NEiVEz2GrlyTRqPgx2/RFfVxqFcTuiNeGxT+isOZxsVocvRuNuGQ0zpZWTYpWtjl0IU3qoeXJxRA8j20/W+FC7z7ZO6hetxvDtGqNRmoO3z/HmaWBMjjtQ30WEbOkK138Eg8yX6drNuhUhIAd5lXKgG3+ZhSZIQ1jLufN2oWaqRdmt9WbK/x0N244xgbL5ULcEOcME7NSyG1UziPbbbyWHd87R9H8l0NiMZAZcgPI86J3T7reqZipdA== 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-SenderADCheck; bh=ETtCIIgTT0lD7mkStZLR4kBDZP6Lp5NBM4hZYdDaPic=; b=LETCF7bAZ2oZvgJQ0j6FzRzkl7sqnfAuJeLBpHxZIeEGmPYifa74qSsmeLFUSI9JvDTe8SInTIFxl6QXp76nXF+axcO1pEs5HdK4XBdl7iojcQKiHUP8ftX1YqnbXaJGBVWp/hwl0dzR5ylvBY+Ze8kqjgaHTor4PXT/mUTS5FEcTuxD7XzSxVVmmZYdbkslBGl45MMJ5qYcze2hLUICEF+rrxynyN//0AJsg3feZ//R72h9uZdOCwMg8FIlqv0nCxo3rdRmkjhgU6G3+f9v4d6/Yj1Vh/maQqLpaObaS0cHpdQ6RcGpeOcw/uVuRCt+5rQViL2hCKQJI8kspFaPjA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.62.198) smtp.rcpttodomain=gmail.com smtp.mailfrom=xilinx.com; dmarc=bestguesspass action=none header.from=xilinx.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ETtCIIgTT0lD7mkStZLR4kBDZP6Lp5NBM4hZYdDaPic=; b=Go3hAnRSrCIvFIzhwn6gmbY/RQWYel8z1ka7JLJmau9zgZ0dgA9RVgJoN5WPt4E5SoxTJr0/IqFc6MGBK5cj7oIJoX7O90lARXms4GOC2vXFbZ7frPOlm47qtul10ZXkEMYCY1qw7ryw4vVDMo/coBA1xQ8uTt0rllxFauUxgNY= Received: from MN2PR01CA0040.prod.exchangelabs.com (2603:10b6:208:23f::9) by SN6PR02MB4416.namprd02.prod.outlook.com (2603:10b6:805:a4::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3846.26; Fri, 12 Feb 2021 12:08:27 +0000 Received: from BL2NAM02FT056.eop-nam02.prod.protection.outlook.com (2603:10b6:208:23f:cafe::16) by MN2PR01CA0040.outlook.office365.com (2603:10b6:208:23f::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3846.25 via Frontend Transport; Fri, 12 Feb 2021 12:08:27 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.199.62.198) smtp.mailfrom=xilinx.com; gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=bestguesspass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.62.198 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.62.198; helo=xsj-pvapexch02.xlnx.xilinx.com; Received: from xsj-pvapexch02.xlnx.xilinx.com (149.199.62.198) by BL2NAM02FT056.mail.protection.outlook.com (10.152.77.221) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.3846.25 via Frontend Transport; Fri, 12 Feb 2021 12:08:26 +0000 Received: from xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1913.5; Fri, 12 Feb 2021 04:08:11 -0800 Received: from smtp.xilinx.com (172.19.127.96) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server id 15.1.1913.5 via Frontend Transport; Fri, 12 Feb 2021 04:08:11 -0800 Received: from [172.23.64.106] (port=53718 helo=xhdvnc125.xilinx.com) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1lAXF4-000326-3l; Fri, 12 Feb 2021 04:08:10 -0800 Received: by xhdvnc125.xilinx.com (Postfix, from userid 14964) id 3A80B1211F7; Fri, 12 Feb 2021 17:38:09 +0530 (IST) From: Sai Krishna Potthuri To: Linus Walleij , Rob Herring , Michal Simek , "Greg Kroah-Hartman" Subject: [PATCH v3 0/3] Add ZynqMP pinctrl driver Date: Fri, 12 Feb 2021 17:37:20 +0530 Message-ID: <1613131643-60062-1-git-send-email-lakshmi.sai.krishna.potthuri@xilinx.com> X-Mailer: git-send-email 2.1.1 MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6b05c541-3d4d-4892-64e2-08d8cf4ee765 X-MS-TrafficTypeDiagnostic: SN6PR02MB4416: X-Microsoft-Antispam-PRVS: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-Oob-TLC-OOBClassifiers: OLM:949; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: cA9JiqpKzIBCR63F8dvfTKCliGx6E4k6pZpB7OIWbjZUbS7oNxcrDu+4gc4bm+FjfOTNsRCl0PBl+S4eunNbtZ9PRtgT8sfwB9puw9m4ppO1prMXbC9jCQHLEk3LGh6xJ5qQjnbWdgv5WHk9QU9j1Rnyr+jbpOoACLckhGLceOdvyELI433Es360/9yuHYaI0QguIC2joYQ+bAfNcNBP3Q7yRwIGSUH2v2M1s+YmwZ9DfQhipLaxQ6J0R0bri2XjGZwUf0weeyaNRLKFVnJ1Rbvfc5Gwnj4sDYKMyGKX341Z3jW1ci51DcbMeUckMqSo5F4jGzSDDxjjZleH77462Sp3Rh6my4PGse+XpLP336DdYysseoFcKOIeW8/RFzEuCr7SNO2Oda3NsKgwEcFQc0cRTNx2PV9q95ZWh5aj9WKcTeRc8D2d/De96RzlkPnpt8xidjafB/QjnHoj5muLRlPe97gEGpeh23Vy+gV8fZ/lp8jWeKEYmmWIxeBhfkqDg/BzAEvVxIWnXsRQy37z8Z0dnDeKELz23hUKsRuAeIb1W/sA4NdTYInCCq6I7BbqMxUNIqn49gNhvDYlQVr6eih4C3m3AYG8eQEtlEo/bKJlIOklhG6Zxf2LnRF1jLOliXuLgVleqnLpVVlDInQE0ml99yLoq69rBA4UUoZGgEHkptRfBdOyRltZaQaHR0RK X-Forefront-Antispam-Report: CIP:149.199.62.198; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:xsj-pvapexch02.xlnx.xilinx.com; PTR:unknown-62-198.xilinx.com; CAT:NONE; SFS:(4636009)(396003)(39860400002)(136003)(346002)(376002)(36840700001)(46966006)(5660300002)(70586007)(36906005)(316002)(70206006)(7636003)(6266002)(2906002)(47076005)(4326008)(36860700001)(107886003)(54906003)(42186006)(110136005)(83380400001)(82740400003)(426003)(336012)(478600001)(6666004)(82310400003)(2616005)(26005)(356005)(8676002)(36756003)(8936002)(186003)(102446001); DIR:OUT; SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Feb 2021 12:08:26.8096 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 6b05c541-3d4d-4892-64e2-08d8cf4ee765 X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.62.198]; Helo=[xsj-pvapexch02.xlnx.xilinx.com] X-MS-Exchange-CrossTenant-AuthSource: BL2NAM02FT056.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR02MB4416 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210212_070829_844244_73FFFF89 X-CRM114-Status: GOOD ( 13.74 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: saikrishna12468@gmail.com, devicetree@vger.kernel.org, Sai Krishna Potthuri , linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, git@xilinx.com, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add support for Xilinx ZynqMP pinctrl driver and also update the Xilinx firmware driver to support pinctrl functionality. This driver queries the pin information from the firmware and allow configuring the pins as per the request. changes in v3: - Fixed binding doc comments from Rob. - Used 'maxItems' for groups and pins properties. - Updated commit subject and description to have present tense statements. changes in v2: - Use pattern for pin names in yaml file. - Updated to support multiple groups and pins. - Added type ref for the vendor specific properties. - Removed 'schmitt-cmos', instead used common properties. - Removed macros for drive-strength property. Sai Krishna Potthuri (3): firmware: xilinx: Add pinctrl support dt-bindings: pinctrl: Add binding for ZynqMP pinctrl driver pinctrl: Add Xilinx ZynqMP pinctrl driver support .../bindings/pinctrl/xlnx,zynqmp-pinctrl.yaml | 339 ++++++ drivers/firmware/xilinx/zynqmp.c | 114 ++ drivers/pinctrl/Kconfig | 13 + drivers/pinctrl/Makefile | 1 + drivers/pinctrl/pinctrl-zynqmp.c | 1031 +++++++++++++++++ include/dt-bindings/pinctrl/pinctrl-zynqmp.h | 19 + include/linux/firmware/xlnx-zynqmp.h | 90 ++ 7 files changed, 1607 insertions(+) create mode 100644 Documentation/devicetree/bindings/pinctrl/xlnx,zynqmp-pinctrl.yaml create mode 100644 drivers/pinctrl/pinctrl-zynqmp.c create mode 100644 include/dt-bindings/pinctrl/pinctrl-zynqmp.h