From patchwork Wed Jul 21 11:52:32 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: 12390757 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=-18.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, 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 EE7C7C636CA for ; Wed, 21 Jul 2021 11:58:09 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id B0BC660E08 for ; Wed, 21 Jul 2021 11:58:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org B0BC660E08 Authentication-Results: mail.kernel.org; dmarc=fail (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=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: 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: List-Owner; bh=Xj5NbBkYHkCDVijBfYdInEWnN31+sjZmaXP9ic2SZyc=; b=xRTrgIrSILJP3x tKASt9KY5tMpZ0uk1n7HWimdgnI0O2N8UrjKoGkZ8yzm3gu6FXmxkyr6tZuc/GV8NUMyZhc3wOUXD WdZbtrg0YVQd5jX89JUB3TCcvKkz1NPhGB72ASxZYjy5AQNPUtigeH2TKTqOIP3Y/6KPEO6l4A4QU y7mnnH5wVoRw5yIPY8tpmFglYTMyo1oRpDgDD3WluPStKdREmbZhGn7LTf3L2qwRgq1DvQAQL/NRI JaVRX3E+m5+5Z4h2YZLLT6gfW/bPEXtP2EFX2rFbcqe72j+mkUMMYqhY7bI84O00PY7FpdZMcmSi5 Y76ME/F5x2Zse+xxJf4Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m6Ap8-00FXP2-LN; Wed, 21 Jul 2021 11:55:39 +0000 Received: from mail-dm6nam10on2053.outbound.protection.outlook.com ([40.107.93.53] helo=NAM10-DM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1m6Aoj-00FXHw-Mo for linux-arm-kernel@lists.infradead.org; Wed, 21 Jul 2021 11:55:15 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QtN5vqxZFPLUiE0GMRl5w19WgH5+4zovJgd3yxB9UQqgMtnpmErM9L/aod7rKgx4qVHA0kSQalxR6fnUJ64WUnCOBPvwZyLLIz4Ecx9/v0ewN2M6W/26hQ7u6h22CFKwKOT6kLBEdp6R9mzZY3Mj39SOSjOkH/ArffNPYY3vmzPyG/pqOyM61RTyn1Lk5woNjlNmIJTHlvwODdjDUj4+837B/w47EeMb4dsXElIJPZWAq8/Ulc2YeQiCDYUe69Kmsa3MtXtsuVHQgZlfZEclGW9iqR6uvdbjsrZULT8p/WCcecXDoEHFl4lMAMEHJt96O5ZWLKnIZlX0I+uf1tAl8g== 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=VpEiMkbGmC6tuLK1fehKlRJhMqIVl8VjA9meM30GduE=; b=RtUcHfzHHsiIFNoMiUZudkMqN8WlgXGC2KQSXWGkep/Tw9McsY0YpVnPyaO3R4tTEetz7GOnEGc0q0xTI6XCU9riR/yEqUrKoJFXFhSFcsQZT5zGrwz5JO+LtippFhPsKNlXo82gVWAmZ2yDBjJdtawV8I9lD9Y2vZtrrmwqr47whrbj3IEGN+/27OJflqWt3W18gOiQIlia14E2JW22Rpt0GVghitZlDm1wAek7nlH5lC5ky/RP3V8KeivI3k86j700OJ29jOgiq4T1SIMnmChROIdjJ7ZHDh+60sRki3Q8SZa4ZL94UiAR8uAAetjph5xKPQzNmpCC+W9Zm6816w== 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=pass (p=none sp=none pct=100) 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=VpEiMkbGmC6tuLK1fehKlRJhMqIVl8VjA9meM30GduE=; b=eIZdLb4EEeL7gC6f3ZqIA8IHk3C3wzhc3hUNwJbfPVU6QqzmFZfSP4iIE6us8XW5IqjpQEMH38Ns/ZtuIkiwj0tF8XLuR3wmOPGUWs3izon/dKC5nUkmgUci5XBcJ2iEVe+LQPU4KKBU6ZIjd7ng3nZ7q1jn5ryxsa1romHCByA= Received: from SA0PR11CA0180.namprd11.prod.outlook.com (2603:10b6:806:1bb::35) by DM5PR02MB3193.namprd02.prod.outlook.com (2603:10b6:4:62::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.29; Wed, 21 Jul 2021 11:55:10 +0000 Received: from SN1NAM02FT0059.eop-nam02.prod.protection.outlook.com (2603:10b6:806:1bb:cafe::6d) by SA0PR11CA0180.outlook.office365.com (2603:10b6:806:1bb::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4352.24 via Frontend Transport; Wed, 21 Jul 2021 11:55:10 +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=pass 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-pvapexch01.xlnx.xilinx.com; Received: from xsj-pvapexch01.xlnx.xilinx.com (149.199.62.198) by SN1NAM02FT0059.mail.protection.outlook.com (10.97.5.175) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.4352.24 via Frontend Transport; Wed, 21 Jul 2021 11:55:09 +0000 Received: from xsj-pvapexch02.xlnx.xilinx.com (172.19.86.41) by xsj-pvapexch01.xlnx.xilinx.com (172.19.86.40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Wed, 21 Jul 2021 04:55:05 -0700 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.2176.2 via Frontend Transport; Wed, 21 Jul 2021 04:55:05 -0700 Received: from [172.23.64.106] (port=50903 helo=xhdvnc125.xilinx.com) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1m6Aoa-000142-8i; Wed, 21 Jul 2021 04:55:04 -0700 Received: by xhdvnc125.xilinx.com (Postfix, from userid 14964) id B687212180B; Wed, 21 Jul 2021 17:24:23 +0530 (IST) From: Sai Krishna Potthuri To: Linus Walleij , Rob Herring , Michal Simek , "Greg Kroah-Hartman" CC: , , , , , , Sai Krishna Potthuri Subject: [PATCH 3/4] pinctrl: pinctrl-zynq: Add support for 'power-source' parameter Date: Wed, 21 Jul 2021 17:22:32 +0530 Message-ID: <1626868353-96475-4-git-send-email-lakshmi.sai.krishna.potthuri@xilinx.com> X-Mailer: git-send-email 2.1.1 In-Reply-To: <1626868353-96475-1-git-send-email-lakshmi.sai.krishna.potthuri@xilinx.com> References: <1626868353-96475-1-git-send-email-lakshmi.sai.krishna.potthuri@xilinx.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 24459db2-85e1-4dc0-c389-08d94c3e6407 X-MS-TrafficTypeDiagnostic: DM5PR02MB3193: X-Microsoft-Antispam-PRVS: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-Oob-TLC-OOBClassifiers: OLM:1850; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: BmxHsvp+1Xbk/DLh3dsSAgc+HDz0BNVb95opB/RIayL99SZLsXqZ3eEIg6XHuVss7WF89NWWXrKgN6wM7/1qK8SSl2YZpWfWbZQF7BQbXwbhYTYBsWsGxawq1tRVZvWN5NJBCk6Q+pfEisQsBZ31gPhAqBbiYiZKiqQuV1eKV6VAqJNM/K00ZeJ/+HOnjBwKH3KC41MYuJrFa9q0at7lfolCFHWQ7FEVm4R8Yin5Uc09jzYdhDMSx41cU/+n7iAoK6Gn6TsE+IvmKY8TH3ZrJws8Yj9SlNStUrlFz8AXbPLTcLngcy4/HFxo/7NYflo4EEhCD3ulPBZKlpD+PdwVd4GpcMbCuokBGCuPLFtA2ynA/eHu3Y1Qrj42Zm4sbk/lx5zXPm7tiNp3+2cyza+Co/16T6P+qNx0ONVd1Y6Rs+dclPH+25o6VFcHhtsRN/RVCNnathZeA1CXIERnSzhIXwZutuXsQPEbCK+VZ3633DKLGZWsuBQK2vhuvE4a1/nbTzJFo1NFJdkTjRxq0OcRsZqlYJjg1fp6Jd1yVdR9D0IfZL1GeW7gw7F1bA3pJbxwLPxHWaJ89xw30e2WCeFcKyfpYoh1tRea+2AU1R0q8CiJqkl4J2wDUXzJ/Di2KuUSCK7fkYNJZcsErsgDxU6M0tHy5VZT6VBHx3bblrGY6jekPmmLCXXaDE3izOQ8PzTTCvR2IAqpmBwdlkcJYVwFNHxZUQeCEMBsvHW1jZ+uLEw= X-Forefront-Antispam-Report: CIP:149.199.62.198; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:xsj-pvapexch01.xlnx.xilinx.com; PTR:unknown-62-198.xilinx.com; CAT:NONE; SFS:(4636009)(39860400002)(136003)(346002)(376002)(396003)(46966006)(36840700001)(110136005)(4326008)(47076005)(7636003)(8676002)(70206006)(82740400003)(8936002)(356005)(70586007)(2616005)(107886003)(36906005)(186003)(36860700001)(426003)(5660300002)(316002)(336012)(42186006)(6266002)(54906003)(478600001)(6666004)(36756003)(26005)(2906002)(4744005)(82310400003)(102446001); DIR:OUT; SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jul 2021 11:55:09.8729 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 24459db2-85e1-4dc0-c389-08d94c3e6407 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-pvapexch01.xlnx.xilinx.com] X-MS-Exchange-CrossTenant-AuthSource: SN1NAM02FT0059.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR02MB3193 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210721_045513_819262_17464654 X-CRM114-Status: GOOD ( 11.66 ) 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 Add support for generic pin parameter 'power-source'. To maintain the backward compatibility, 'io-standard' parameter is still supported in the driver. Signed-off-by: Sai Krishna Potthuri --- drivers/pinctrl/pinctrl-zynq.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/pinctrl/pinctrl-zynq.c b/drivers/pinctrl/pinctrl-zynq.c index 5fb924a2eedd..a96af8a76a7a 100644 --- a/drivers/pinctrl/pinctrl-zynq.c +++ b/drivers/pinctrl/pinctrl-zynq.c @@ -1028,6 +1028,7 @@ static int zynq_pinconf_cfg_get(struct pinctrl_dev *pctldev, break; } case PIN_CONFIG_IOSTANDARD: + case PIN_CONFIG_POWER_SOURCE: arg = zynq_pinconf_iostd_get(reg); break; default: @@ -1078,6 +1079,7 @@ static int zynq_pinconf_cfg_set(struct pinctrl_dev *pctldev, break; case PIN_CONFIG_IOSTANDARD: + case PIN_CONFIG_POWER_SOURCE: if (arg <= zynq_iostd_min || arg >= zynq_iostd_max) { dev_warn(pctldev->dev, "unsupported IO standard '%u'\n",