From patchwork Wed Jul 21 11:52: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: 12390755 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 CCAE7C12002 for ; Wed, 21 Jul 2021 11:57:44 +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 9A7056109F for ; Wed, 21 Jul 2021 11:57:44 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9A7056109F 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=3xirsJRBJUFxXQ8mFe/2O5ZvRDfKI/3/W497MfUBkZk=; b=gr/mH7oxdghrRL baahMYt2q2oNW1flJ0Gs3BD1FERM6XkTHJdQ32gAvb5CAAJdQzCkFOJS/BdVeFzqEY6XTlc5/VZ9I 8u8eHi/cucxO4Y+em2Ht31e218LBd2+AHtSwjwUS9/7QHo4BOUSMGGPibeG6K5cni/HWZ5e49V7LA pJr+95rVVkOcj49apVBqtHh6meDhM/bPR+sUdBuwSUR6rkaBMYT3oUYM/ucscYE78+HUfeDI6CY4t LzJive7FF9a+KJACDTpqq2EESM8IU3xWaiKGLKzHy90G7XRtSKZeXphyaW7XyzLIC6pDK6QZX7FEs I+5wBc0es8GhkHXBmvCg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1m6Aoi-00FXGu-DS; Wed, 21 Jul 2021 11:55:12 +0000 Received: from mail-dm6nam10on2085.outbound.protection.outlook.com ([40.107.93.85] helo=NAM10-DM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1m6AoR-00FXBQ-Sd for linux-arm-kernel@lists.infradead.org; Wed, 21 Jul 2021 11:54:57 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Tscy2W9EbrE7PtRtGdAF+oiLW566GHXxX1UZUbe4wHOohTYd+0CY912kxGLTkpiVYO4eoF9gZm72kJgUSkSjJUs8Zmg4HsHrVWC5IqKIgTyJ18yLtxfQRbbQg2wWSnxMiKNPLIt0/SgwPxx23dv+cdDfWy+AHqa2dVSoqdqFIXLAxM9EJub4XzbdWQYm097blbMuMqlwjhgH9E//Nott8n6OcRYxncvC8D1pMePHV1GivSNlrAx7QzZjf2NXaxmc/b9hdOYvbZtoenKiYtcQ0g75SsRoMfzz/7WyHjbdi3GhrwFiyfO9Kpon/ZTZUecVaCjxA5HKtknTb47Vw+0JUA== 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=XPVKjMqMM92v3uDtuPf4XrRmpi/gonyWH1hx059fn6s=; b=F91smfmEhxXNppJS5uwSyT1Ou2GVwP4MY0JmKl3UgD75SNtq+EPG9I2ajwq1QOdrm38JPS3L3GZ4cfkDqiNDcHniThGgys5/P7U5btQ7IWIJmakZ4lR/tEZDvY+kl9H5IGWXkhJ4IMgkt3cYQl4xPWBeHUkBM9maezrka8lSZz78506PP2G8b7nxuYcGhIZzpN1b6s/c0heOVlT/R7ZzK5K5DDPQ9vvswROiaia9hORWe5SdFFENfbfBPQmULLkj83eggoamg1b4GNEhc86M+D/K0gZwfWKIJc/HytcK0RpNE164ipKxR9oO3svjC9EiXeDOcOGGIgcxs0T1VfeHxQ== 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=XPVKjMqMM92v3uDtuPf4XrRmpi/gonyWH1hx059fn6s=; b=cQ9JVRxoSJ9lZb0OGbreAH1OhN4QOVgF5T0OM+qvzRkjk0gwecWTclZ97xxoe2qMbn9TgClUYp0E6u+fNdo/OyjBX76aQP7WwxhX2koPhhOn9mp/TyZMY7o3aG2vGPymZdzxHwxIvlcmhhCahZyg1aSdNXnA5dhFsOO0KgtoLwU= Received: from SN4PR0501CA0084.namprd05.prod.outlook.com (2603:10b6:803:22::22) by DM5PR02MB2380.namprd02.prod.outlook.com (2603:10b6:3:56::15) 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:54:53 +0000 Received: from SN1NAM02FT0056.eop-nam02.prod.protection.outlook.com (2603:10b6:803:22:cafe::d9) by SN4PR0501CA0084.outlook.office365.com (2603:10b6:803:22::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4352.11 via Frontend Transport; Wed, 21 Jul 2021 11:54:53 +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 SN1NAM02FT0056.mail.protection.outlook.com (10.97.4.111) 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:54:53 +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:54:52 -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:54:52 -0700 Received: from [172.23.64.106] (port=50895 helo=xhdvnc125.xilinx.com) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1m6AoN-0000zY-10; Wed, 21 Jul 2021 04:54:51 -0700 Received: by xhdvnc125.xilinx.com (Postfix, from userid 14964) id AFC2512175A; 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 2/4] dt-bindings: pinctrl-zynq: Replace 'io-standard' with 'power-source' Date: Wed, 21 Jul 2021 17:22:31 +0530 Message-ID: <1626868353-96475-3-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: f0344817-34c7-4c10-0e2c-08d94c3e5a3d X-MS-TrafficTypeDiagnostic: DM5PR02MB2380: X-Microsoft-Antispam-PRVS: X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-MS-Oob-TLC-OOBClassifiers: OLM:2803; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: iOasmq0J/s2hmX4dwDIiZXAsQh3sWc6NoxsjcQDqH+Ko0PeshMLwFoe6LQ87gYXOlOmu809TIGAHKl2RmMVenqxeOl1/aIL06Ozlt3kVULj2PcIxIGDaxO5zI08Z9FaiXEBQGeIoMI0XgAT3/W70U3EpUWDkf5mtPl302DTa2lyGumtA+CC/3L8RhUTLlwnl2MlQIaYHlMsjcqWIjRgMkKqH4WlO4dRY7smZnFwiEvFlxTuVDQyFjDbCDdiraA/S+qFoxsIvDO4T0yIrnDnZc9KYRB+AF/1kbF3qIxDSvJDSghKQXODvO+7HR66yIKSMbqYWYskEo7JDUETWFVhXu0VUTGciYnFMnSXyM/jyl9xC006iS0w7Ms4AKZaQYHbAIC6fy2UNa6qhbu6jY/17sJ9jnw6K02vyb9yU9nfxyhNP3WuHXiv4HH0CyDvYGuqp7ysdrCMyuFzt8lsg8BCmNvitsuZy4/Qld7zxeP+v0aM2kdfSu522NnXXC4iQ8WcO97MTOjG1gAPDyrvO2Bn7Je9R/5aQakj2kXtyf3k6/C3etE3DUj+4s1vis+VyXDA99z1QLBm3Lqw6W1CcoeB+HbiySWUhJE/IyJf0oETTJ184idSE9FTmXMisi95h+CkhNmw3LQENC6uM7z20/fCR2+Cq+IZx1fNKpyb0wdmeqSlc9NSluMTpUqNHHvcAnhjXh+5KIyl73EmP5l2SBn4nyRIzP8InZmDDUZDJSuSQC3Q= 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)(376002)(136003)(346002)(396003)(46966006)(36840700001)(26005)(2906002)(8676002)(5660300002)(83380400001)(6266002)(6666004)(70206006)(356005)(186003)(4326008)(8936002)(70586007)(47076005)(36906005)(7636003)(110136005)(316002)(42186006)(36756003)(82310400003)(54906003)(107886003)(478600001)(336012)(82740400003)(426003)(2616005)(36860700001)(102446001); DIR:OUT; SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jul 2021 11:54:53.4460 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f0344817-34c7-4c10-0e2c-08d94c3e5a3d 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: SN1NAM02FT0056.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR02MB2380 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210721_045456_015443_580CEAB8 X-CRM114-Status: GOOD ( 14.51 ) 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 Replace custom pin configuration option 'io-standard' with generic property 'power-source' for Zynq pinctrl also add dt-binding file contains pin configuration defines for Zynq pinctrl. Signed-off-by: Sai Krishna Potthuri --- .../bindings/pinctrl/xlnx,zynq-pinctrl.yaml | 8 +++----- include/dt-bindings/pinctrl/pinctrl-zynq.h | 17 +++++++++++++++++ 2 files changed, 20 insertions(+), 5 deletions(-) create mode 100644 include/dt-bindings/pinctrl/pinctrl-zynq.h diff --git a/Documentation/devicetree/bindings/pinctrl/xlnx,zynq-pinctrl.yaml b/Documentation/devicetree/bindings/pinctrl/xlnx,zynq-pinctrl.yaml index 2da1969e02ec..ac97dbf6998e 100644 --- a/Documentation/devicetree/bindings/pinctrl/xlnx,zynq-pinctrl.yaml +++ b/Documentation/devicetree/bindings/pinctrl/xlnx,zynq-pinctrl.yaml @@ -156,10 +156,7 @@ patternProperties: slew-rate: enum: [0, 1] - io-standard: - description: - Selects the IO standard for MIO pins, this is driver specific. - $ref: "/schemas/types.yaml#/definitions/uint32" + power-source: enum: [1, 2, 3, 4] oneOf: @@ -179,6 +176,7 @@ additionalProperties: false examples: - | + #include pinctrl0: pinctrl@700 { compatible = "xlnx,zynq-pinctrl"; reg = <0x700 0x200>; @@ -193,7 +191,7 @@ examples: conf { groups = "uart1_10_grp"; slew-rate = <0>; - io-standard = <1>; + power-source = ; }; conf-rx { diff --git a/include/dt-bindings/pinctrl/pinctrl-zynq.h b/include/dt-bindings/pinctrl/pinctrl-zynq.h new file mode 100644 index 000000000000..bbfc345f017d --- /dev/null +++ b/include/dt-bindings/pinctrl/pinctrl-zynq.h @@ -0,0 +1,17 @@ +/* SPDX-License-Identifier: GPL-2.0 */ +/* + * MIO pin configuration defines for Xilinx Zynq + * + * Copyright (C) 2021 Xilinx, Inc. + */ + +#ifndef _DT_BINDINGS_PINCTRL_ZYNQ_H +#define _DT_BINDINGS_PINCTRL_ZYNQ_H + +/* Configuration options for different power supplies */ +#define IO_STANDARD_LVCMOS18 1 +#define IO_STANDARD_LVCMOS25 2 +#define IO_STANDARD_LVCMOS33 3 +#define IO_STANDARD_HSTL 4 + +#endif /* _DT_BINDINGS_PINCTRL_ZYNQ_H */