From patchwork Tue Jan 19 05:27:31 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: 12028749 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=-11.9 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,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 E5654C433DB for ; Tue, 19 Jan 2021 05:29: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 A5A47206DC for ; Tue, 19 Jan 2021 05:29:51 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A5A47206DC 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=GD9/BfjKl5BHqTonYd4a3YOuMJ9V6mFHTt2Xai+mnAs=; b=xoDpTHx2rNO89sCkSleHJ8ueMg OkCfG4WLH4VQqLCRfVWAQpw2INT/rjl/2eThQ3MFHT5zR7olskJ9XbAccX2BjudrdKni32xIkNvWM Scmqi1ekySzGfDk8v46gFDPj+NDrUOSzdh7bcTWXYAdDatUQMq4m9UEjRJ5Q7q+g/lcZUIRhGI4a4 E5djhu8wWChpOyVrFfVIa8u3fwJy7TEWKCzHd6BAnXMreZdbSNc+cScQdzCFYQK75z9BxOsPe08QG mg7qkDzzK2wLs/td1nT2tydD5Sg5/1uy59Mvs51GEIBUlJ3Ybo1gCHMDwIg+YuxrgUcC262eJZ16M C6mKY35A==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l1jYb-0008Gb-JX; Tue, 19 Jan 2021 05:27:57 +0000 Received: from mail-dm6nam11on2082.outbound.protection.outlook.com ([40.107.223.82] helo=NAM11-DM6-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l1jYX-0008GF-WF for linux-arm-kernel@lists.infradead.org; Tue, 19 Jan 2021 05:27:55 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NWBHPBABbU6ei02mevF8exMuUKpbIUs8/D8uwmR8nxGdkVJdiIsAv8ZUBs5R+qv3xRpDfrKPxkNLXV4rN8MXC53E137ETRrJOPBPtTMtCsSE9asWsB4RWU1qbGZONFwchApgNuCOHtDX7EEFKx3fssPJB8rLTz/1v4cXpTeeLA45iFK4ZxT3L6bI9lZQ+t6JA7hCXlvERlCj2Y4IAseoj6yFTDiXO3YqqcRjpFWipba5iqJijH/TyEBau1HiLBFI1hCm0K7I3vOZYi28lank1rX7RvCLXoTlxLXeZb0ZSoPus04oTScSUrzCC1tmP7ysG08CDM24lFqTbUhc3DhPSQ== 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=X/DbIy2PfTLqdgulH+VIgo9g3JsEtTLgh4puN30z2p4=; b=OVe2RFT51AHe/1K4zqM7mbBQZFD5nQv5M/m/O0Kep7AjYJV4jFLgSln7ACmSZ4WeoArvAMyveW0S9nPcICUjxcrTffxewFiETMnP4fKsyJ+2cY8M152dmT5582Xm0fkRn6Q/FXFA6oj3QcDP9ohtx/u09jTEKXA6FSgguTYzq2HQ1nrFC/8X4K7+fGyDzLkbYq2QNyHQO7VfVuG+L5MmDPjoUbfQVXWk8F9tHNrEEPr2OoYXEyndNycKLC95nYyCLSr1eHOGeWFIOz4U102Fi8Kuwg09BcblqWwcrOdcCNGsXtnS2+ceTVV/U9xIg1SO9eHgJ+0wtZsKra0+G7FRSg== 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=X/DbIy2PfTLqdgulH+VIgo9g3JsEtTLgh4puN30z2p4=; b=NOgXmc3d3xVkaWGuD9aC56vFpI809dqWV2vsNp9cWoI4coLFYOcNGO3umYq2XjxmT2wdJ0QcLTTBEivmWfeX2tTSHdfV6+eOr+2PTtXWuET8RiBALmTf353GFFQn1GfMu2LRK8vOf+UN93IKpt9JjDZc7AsE2HyMxBm2xFSwKG4= Received: from SN7PR04CA0012.namprd04.prod.outlook.com (2603:10b6:806:f2::17) by CH2PR02MB6070.namprd02.prod.outlook.com (2603:10b6:610:6::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3763.14; Tue, 19 Jan 2021 05:27:50 +0000 Received: from SN1NAM02FT005.eop-nam02.prod.protection.outlook.com (2603:10b6:806:f2:cafe::a0) by SN7PR04CA0012.outlook.office365.com (2603:10b6:806:f2::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3763.12 via Frontend Transport; Tue, 19 Jan 2021 05:27:50 +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 SN1NAM02FT005.mail.protection.outlook.com (10.152.72.117) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.3763.12 via Frontend Transport; Tue, 19 Jan 2021 05:27:50 +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; Mon, 18 Jan 2021 21:27:45 -0800 Received: from smtp.xilinx.com (172.19.127.95) by xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) with Microsoft SMTP Server id 15.1.1913.5 via Frontend Transport; Mon, 18 Jan 2021 21:27:45 -0800 Received: from [172.23.64.106] (port=37100 helo=xhdvnc125.xilinx.com) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1l1jYO-0003Z5-Pf; Mon, 18 Jan 2021 21:27:45 -0800 Received: by xhdvnc125.xilinx.com (Postfix, from userid 14964) id E2FCC1222CE; Tue, 19 Jan 2021 10:57:43 +0530 (IST) From: Sai Krishna Potthuri To: Linus Walleij , Rob Herring , Michal Simek , "Greg Kroah-Hartman" Subject: [PATCH v2 0/3] Added ZynqMP pinctrl driver Date: Tue, 19 Jan 2021 10:57:31 +0530 Message-ID: <1611034054-63867-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: e09fbb85-8e1c-4d97-7287-08d8bc3af680 X-MS-TrafficTypeDiagnostic: CH2PR02MB6070: X-Microsoft-Antispam-PRVS: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-Oob-TLC-OOBClassifiers: OLM:6430; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: oQpztlArkFSIItJSZ5MgkeKEdz03zJoQaBdQ0YkTxiNkakO7oq5VdqCyCgmPkVEST1Vewq6GGCFymREqfLiBha3kubzTSf9hfqj8bfoXSIw05R0KRRDfEuL6lCzceuQrYFjfjLieGpbzsucKpgj489OeaTp5860MCSUDtCapXYh6iEzSLZ94RZzlflM2ZNCX7Xj4VbRer6kh6WWDf7gI1e8LhHVZkORfO3sgzo2wc2ql5agZrAfIC08GdBYG8It2WsSKGKH6kzRb+ePi5WD3tsAeywgq1FlMnYMSkSlwdoVlkCabW6iwUw+x1OFIRog153/0tFdCyTJI5njccZBcuJFXTjaUWgT1z+5TL75aeLcqjvWX1DIPsOXqp/rtzbTeaD/aQjaLt9tX1aO4tcRaDtomM4WtefP4Sv9yah5V4mo1GJTxIEzP1B/2cTifmWIgMHP1o5abPupW+I85O9UT8wymwP1rRU+3vYSS1/QQCVr5EocQghLWOXLVE/PRFzDB 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)(136003)(376002)(346002)(396003)(39860400002)(46966006)(5660300002)(6266002)(426003)(2616005)(26005)(186003)(36756003)(4326008)(336012)(42186006)(107886003)(36906005)(478600001)(8936002)(6666004)(316002)(110136005)(54906003)(7636003)(356005)(82310400003)(70586007)(83380400001)(47076005)(2906002)(82740400003)(8676002)(70206006)(102446001); DIR:OUT; SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jan 2021 05:27:50.1849 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e09fbb85-8e1c-4d97-7287-08d8bc3af680 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: SN1NAM02FT005.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR02MB6070 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210119_002754_156021_6C7BFEDC X-CRM114-Status: GOOD ( 12.26 ) 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 Added support for Xilinx ZynqMP pinctrl driver support and also updated the Xilinx firmware driver to support pinctrl functionality. This driver will query the pin information from the firmware and allow configuring the pins as per the request. 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. This might be resend for some people, as i had some trouble with my email server earlier. Sai Krishna Potthuri (3): firmware: xilinx: Added pinctrl support dt-bindings: pinctrl: Added binding for ZynqMP pinctrl driver pinctrl: Added Xilinx ZynqMP pinctrl driver support .../bindings/pinctrl/xlnx,zynqmp-pinctrl.yaml | 337 ++++++ 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 | 23 + include/linux/firmware/xlnx-zynqmp.h | 90 ++ 7 files changed, 1609 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