From patchwork Wed Dec 9 08:44:11 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sai Krishna Potthuri X-Patchwork-Id: 11960923 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.8 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 15055C433FE for ; Wed, 9 Dec 2020 08:42:56 +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 AF22122D07 for ; Wed, 9 Dec 2020 08:42:55 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AF22122D07 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=OXffLWxJaPFQQe1ckm/bFfxcDBWfDBVsFoDH28eRFTU=; b=zCZMN2DAdI3Ya7JIGUw0pPddjc JGOi5KPZlFUfFiJCQh3eRvXeoIiy3t74Mxj50AFIPYV0+/dtqjF4CskBrI/yMEFvlBotsdgXF2q2x V22hW2M5O7MWj4kVuk94oZ9NHDrZ7k7uSQzAqMNIBFPsMZieJ7GMEA0wotriYWpn80YUmQWBmNFEc +Uwamgqg7W2D/IqvCiz7bW1u7uQ5XdWbRpsmj3rD0eWdut3nIa2v7Qzwmvbf9HMwyS9uevsmlYYBg eg++SSoV6zklvdnjFJoOh4rKa1/kWqsvm09LGpsdyLYAPixRCJIBCwXlaolvqdemYJ8aBvNzSH78b rLiT3wPg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kmv2E-0005Ry-4b; Wed, 09 Dec 2020 08:41:18 +0000 Received: from mail-eopbgr700069.outbound.protection.outlook.com ([40.107.70.69] helo=NAM04-SN1-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kmv2B-0005RU-N8 for linux-arm-kernel@lists.infradead.org; Wed, 09 Dec 2020 08:41:16 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MzSDu1QV3VLGGqI3taTx1NwXO1cwn5Tnv25XINfJdXh7vfEIKrnAPTDCCgcZ9tEZf43hO0J+dvqe4Jk7qaJD+JNArTjzdGdFGGtyu3KscrfhrcJA9TZlkp6nyZICx5Bc+fL6z+HdCjLlYeYsGLUKPAKL29W3yVU3cWuTNDVeoewhQyb8+AkoDy+Nw4HEuXgYkqHk3irfXiRXMpF5MQ3P1Tk3cPVWxMbou1Vo6AMjRiue5cd/VfV/I0ofy9MU7GHluSgIbEFNS/Q5tL7EAI33BqlkLjK0G+CmncKobg8PNvj+NzIlpPIDBcfBsv6eA1+MigpofMmW0kgtSv5grie1GA== 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=HZQL3EU54eQDSMQdOqm8eIojTn/YopMcFFfutxyoHu0=; b=PQZDEn4r181nFcSQBrejz28giOrEsOQhoboTsQOCg/wtssdKX5IYs1pWwGDZCxmDi77UofvIj1pQNcXbF2Og5klAFcRMYJI00bBdGg9fSAQ06U61R9ndSHUPVeeYN8sog6BQopsHyu23TWpGB6j6eCAZBInZcj2R3aZSjdLTU8EOYySi85UiPzEqK7TeQP5/SK1vm8mesxZpWhGHvUBwjPZpzwRrHfj8mhsjaLwVmC5BWfSG4HEP03Qy6jivxlAhLxn7C4ZIKmVrOF0lHgEtIysV2CAtgBg9EAXUGRt+kwlBaxarG4IuBkSkEb9Gl83c4q/jIuuKS8biTnTmE/TNQw== 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=HZQL3EU54eQDSMQdOqm8eIojTn/YopMcFFfutxyoHu0=; b=FTDybxLfSxy/brvrVDTzpk8sVEMBtuZpOgDBa8aO4l9nPTgAIwdfpo93+GTHTOZOTdT7qd69jTglfEChLqN8sOyUBqI0wX6zUo+t3++Ie/hgNNTGwXwbJAEbf/dxOyjH+tjt8iYIdm02OyTW9Fhx04XjCJeTwNUVIXxoOvLtWPc= Received: from SN4PR0401CA0006.namprd04.prod.outlook.com (2603:10b6:803:21::16) by BYAPR02MB4199.namprd02.prod.outlook.com (2603:10b6:a02:fa::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3632.21; Wed, 9 Dec 2020 08:41:12 +0000 Received: from SN1NAM02FT063.eop-nam02.prod.protection.outlook.com (2603:10b6:803:21:cafe::f3) by SN4PR0401CA0006.outlook.office365.com (2603:10b6:803:21::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3654.12 via Frontend Transport; Wed, 9 Dec 2020 08:41:12 +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 SN1NAM02FT063.mail.protection.outlook.com (10.152.72.213) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.3632.21 via Frontend Transport; Wed, 9 Dec 2020 08:41:11 +0000 Received: from xsj-pvapexch01.xlnx.xilinx.com (172.19.86.40) 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; Wed, 9 Dec 2020 00:41:05 -0800 Received: from smtp.xilinx.com (172.19.127.96) by xsj-pvapexch01.xlnx.xilinx.com (172.19.86.40) with Microsoft SMTP Server id 15.1.1913.5 via Frontend Transport; Wed, 9 Dec 2020 00:41:05 -0800 Received: from [10.140.6.35] (port=50856 helo=xhdsaipava40.xilinx.com) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1kmv21-0004Mw-0n; Wed, 09 Dec 2020 00:41:05 -0800 Received: by xhdsaipava40.xilinx.com (Postfix, from userid 14964) id C027F13C043D; Wed, 9 Dec 2020 14:15:20 +0530 (IST) From: Sai Krishna Potthuri To: Linus Walleij , Rob Herring , Michal Simek , "Greg Kroah-Hartman" Subject: [PATCH 0/3] pinctrl: Added ZynqMP pinctrl driver Date: Wed, 9 Dec 2020 14:14:11 +0530 Message-ID: <1607503454-26503-1-git-send-email-lakshmi.sai.krishna.potthuri@xilinx.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 208b8168-f1c5-4412-0b28-08d89c1e2eb4 X-MS-TrafficTypeDiagnostic: BYAPR02MB4199: 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: atsdzKB9fVSSejpDabL3lxONpWBA0zJkiNluZAz+IqzCOS3tQD9zVHyw2gGeSRw705T3QuqAXZJtVKAaFWfwcn4BGjUky8sB+9oPvXp78VR/vprhsE9yF2UZxb9lLmkuI+kZ2kPY7upCa6ymWD5iKF9xjeM8RCaNtIROAS75oPz0YDWvRliWEosNK4wDpvxzdjgiTPworcxJoHv9Rka3Yd78IHGEjMz4lkbQdZdQh2uTf8bDdOpurHiS5H7IgpYjmTE1v0T1hgrqqw5rNhuS3QDT6Dnd11FtZUJNW7+4f1Smd++fZ3XIMWe14tG9OU4ErvsV4y8P7QoHjG5um/54PI9Ql+fhlYpV6BeDcBYAksIyOj3vRxSV87i2jiTzPgXcK0SlBvI/3tkJqILHn9XTdYKalnaQd5U139fUtkRnzf0= 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)(46966005)(36906005)(186003)(107886003)(47076004)(6666004)(2616005)(8936002)(70206006)(110136005)(8676002)(42186006)(83380400001)(426003)(508600001)(5660300002)(356005)(4744005)(36756003)(336012)(2906002)(6266002)(7636003)(26005)(82310400003)(54906003)(70586007)(4326008)(102446001); DIR:OUT; SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Dec 2020 08:41:11.8618 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 208b8168-f1c5-4412-0b28-08d89c1e2eb4 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: SN1NAM02FT063.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR02MB4199 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201209_034115_779583_524A28DB X-CRM114-Status: GOOD ( 11.02 ) 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. 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 | 329 ++++++ 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 | 29 + 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