From patchwork Tue Oct 24 14:48:46 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manikanta Guntupalli X-Patchwork-Id: 13434700 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 36849C07545 for ; Tue, 24 Oct 2023 14:49:44 +0000 (UTC) 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=WeZ5/vsBtJ32grDKQz9SMN6CgI4hFrOpTlbjkg0Gk+4=; b=Dye1paIj62JIFd 0rcrVBMPZzqtvO+T4bR5D9DmdJ+nriJmKX7ROn783qkHXoABw43yH9p/AfCCbwA90Ux8nGHhF2JE9 KkbghGUGJ8CECaI5dVn0Bl2zRtsiyy6BMVo+m8QQvtdCsbdkGr7vUo8pUWtfz08ZG0CmN9E1iqfZJ 8LDSWTTJm229J1w3YcVMkGte4ch+guLWp6aGkuRfZH6umEyU7WiX0BmMwZcMC3gittmxMa7R+6GHh aSQ7BVVE60VVXi+2FgCvOg740fkoYbgnot28OZ75zSn78Js2hYrIJnP0DCjpP+YOJ0ewH2iDx6Ybq U6u0B7AalzHeLnlNTX8Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qvIiZ-00AABc-0D; Tue, 24 Oct 2023 14:49:15 +0000 Received: from mail-dm6nam12on2061f.outbound.protection.outlook.com ([2a01:111:f400:fe59::61f] helo=NAM12-DM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qvIiV-00AA9s-2z for linux-arm-kernel@lists.infradead.org; Tue, 24 Oct 2023 14:49:13 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JFrp0KDRTAoD4VAMtz+eRLKF4VGdVw5hNP2n1ZRfTK792wtQ9dgKUnBH8ovTiVd4CCyodQLH8QIrf/6OD8ZOo7A07sOepqfAIUWt+SwXwolno4ll3QkaufLDG3xMPpOZNfd8T67s6IWAU8eS570XZ1I/t+/fQ3YtV7Hyfp59CW4PWGIYr8mufIPpcM//zsMXRmAM9sGRhTHOic4dCxbnEIx/RTVAtPzLY7EaDyvl9Dn5daVvcWY/JMSGLINjgiZHeVJ9B48pvqMYPNld2z+y2DdLzrlszz7Or8Va1IRbWV3xodB+ZoHKmSdiMiZPel3yW7xxeffChFpXcT4l3EGbHQ== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=a3P8x4kobXF5DqFDQVj07ztq3Gt7D4PMH0G+qH95Moo=; b=Vr4clNpZ6bnI0ztmwDaPbTIH/ZXitCGGrCZQTNECP1Brz+m27CbNF/eF56nhIZGQYmCpQSrdzgeiR5SgT8juu2Sx37Uf04b6X91ueZdRvsjmLuJphD0DCnbUZ3xO/YJX+w8eR/Z5ysrkIxrjruJiw7jZRIOr3q0lixaowYFIPoQFxiiNR9zKP7Ur6bJzF+t9cuTlL1SjuNaeI68xCLcIfrRQyl5QkWuq4va6ghtV+MV7ngSUJVkJbTsvjLtFAzZS7gyGpp5l5Uxr8UUKGNixD7dAk4VQiavySL+b4Ni0+GkhK74Vvl0A69iO86vkIfwbYTCWhSoHAteGlyGPjJjjfQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=linuxfoundation.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=a3P8x4kobXF5DqFDQVj07ztq3Gt7D4PMH0G+qH95Moo=; b=uQsFN8Vc2iDWVo6ODclKn/wYEUIbwv4f2qvbvIgCfVWAFFvxhOuS5klxFPuLQVtYPhqgKkdIEMtlF+GZxrOfUwTYKqcsZcj8vSNCxiZ5V3iBXY5c759sPr6MPn6uaCln3LPxmFh8s2c9YZw5Y+VABdGNhXG8lYa4Cdu7vKwOlsY= Received: from CY5P221CA0085.NAMP221.PROD.OUTLOOK.COM (2603:10b6:930:9::41) by IA0PR12MB7776.namprd12.prod.outlook.com (2603:10b6:208:430::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6933.19; Tue, 24 Oct 2023 14:49:01 +0000 Received: from CY4PEPF0000E9D0.namprd03.prod.outlook.com (2603:10b6:930:9:cafe::e0) by CY5P221CA0085.outlook.office365.com (2603:10b6:930:9::41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6907.33 via Frontend Transport; Tue, 24 Oct 2023 14:49:01 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by CY4PEPF0000E9D0.mail.protection.outlook.com (10.167.241.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6933.15 via Frontend Transport; Tue, 24 Oct 2023 14:49:01 +0000 Received: from SATLEXMB08.amd.com (10.181.40.132) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Tue, 24 Oct 2023 09:49:01 -0500 Received: from SATLEXMB03.amd.com (10.181.40.144) by SATLEXMB08.amd.com (10.181.40.132) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Tue, 24 Oct 2023 07:49:00 -0700 Received: from xhdsgoud40.xilinx.com (10.180.168.240) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server id 15.1.2507.27 via Frontend Transport; Tue, 24 Oct 2023 09:48:56 -0500 From: Manikanta Guntupalli To: , , , , , , , , , , CC: , , , , Manikanta Guntupalli Subject: [PATCH V3 1/2] dt-bindings: Add optional gpio property to uartps node to support rs485 Date: Tue, 24 Oct 2023 20:18:46 +0530 Message-ID: <20231024144847.2316941-2-manikanta.guntupalli@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20231024144847.2316941-1-manikanta.guntupalli@amd.com> References: <20231024144847.2316941-1-manikanta.guntupalli@amd.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY4PEPF0000E9D0:EE_|IA0PR12MB7776:EE_ X-MS-Office365-Filtering-Correlation-Id: e958edec-5d50-41b5-c5f9-08dbd4a05caa X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: KQfnZ3wvLhziTK9Ra/ev9u6jKLIxi9xHY4Xd0qL7ZZi7TE+ykbLN3iWfoPoaDTfK9DTfIwR+ycpn7mRO/XYRHNrqJ/4UgSvO0j1JBc/EYUH9TH3iYY9GOnTI8pydjIMLLYRz9WpTZLdGEoTly5Q2td6EcVaIAekx/r/isn15csuLrmO0SuDXCMXDzK8Bkm+gPQDc6rwENuxpGdbJaTaI/z7+Lme8zVDzeiWr70j325Fm8JsFUlkS+iIKVwiuJ8TRszmAV7ITKF37KDyKnLV7omyfvLwBPpZFZvIe03IKF0mvnhTjz4KkrLbxQnqVnN+ZHyU2iRi21Z1w2azXOXZE7NyziuvDJkBy5E3+HvXzQX07Tt+iOgzm+iOefDf+rdjrK/pGMSAJnHN3NV28HUYKTsA2M+Gd58fEYBHJFnhqWPpm9ZwV+UTpf0KEvH1Aoz68+ZFVJWpFrNXceTMgN9wY3p3dLlDJtpVzd92KsvJjp/fVt1DapL8EccbLy4H/37lX4aiJXnl+8PPXTyqiW0RuKgFg9DRrNI01j4ac+Mc2nrckfkN81hp5KLz3tx23YXHPZmMt1gNTpbS+UcdbSc9EiQDHv9sdEblu9gQStTaFKt9xQNch/5tRPPRWbvqoguCrSb9FjiqOC42s0TxCFsqiOtZ4ustsLukuHKZJGOUbovNWfps6+9kuqEfXI4hViWWkMkArikzFU8Y0cKxj/cwD+8Q8rB1sa/Izdi1TfZcyTDHK4KgNS03D1bnRuEkC+2YVfRbAIfTs4jp9FcPrcIrXgA== X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230031)(4636009)(346002)(396003)(376002)(136003)(39860400002)(230922051799003)(82310400011)(64100799003)(1800799009)(451199024)(186009)(36840700001)(46966006)(40470700004)(2906002)(7416002)(8676002)(8936002)(4326008)(44832011)(83380400001)(966005)(81166007)(356005)(82740400003)(41300700001)(5660300002)(47076005)(6666004)(86362001)(40480700001)(316002)(110136005)(336012)(426003)(1076003)(26005)(478600001)(921008)(2616005)(36756003)(70586007)(70206006)(40460700003)(54906003)(36860700001)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Oct 2023 14:49:01.6671 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e958edec-5d50-41b5-c5f9-08dbd4a05caa X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CY4PEPF0000E9D0.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA0PR12MB7776 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231024_074911_968955_557751D5 X-CRM114-Status: GOOD ( 12.62 ) 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 optional gpio property to uartps node and reference to rs485.yaml On Xilinx/AMD Kria SOM KD240 board rs485 connects via TI ISOW1432 Transceiver device, where one GPIO is used for driving DE/RE signals. With rs485 half duplex configuration, DE and RE are shorted to each other, and at a time, any node acts as either a driver or a receiver. Here, DE - Driver enable. If pin is floating, driver is disabled. RE - Receiver enable. If pin is floating, receiver buffer is disabled. For more deatils, please find below link which contains Transceiver device(ISOW1432) datasheet https://www.ti.com/lit/ds/symlink/isow1432.pdf?ts=1682607122706&ref_url=https%253A%252F%252Fwww.ti.com%252Fproduct%252FISOW1432%252Fpart-details%252FISOW1432DFMR%253FkeyMatch%253DISOW1432DFMR%2526tisearch%253Dsearch-everything%2526usecase%253DOPN rts-gpios is optional property, because it is not required for uart console node. Signed-off-by: Manikanta Guntupalli --- Changes for V2: Modify optional gpio name to xlnx,phy-ctrl-gpios. Update commit description. Changes for V3: Modify optional gpio name to rts-gpios. Update commit description. --- Documentation/devicetree/bindings/serial/cdns,uart.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/serial/cdns,uart.yaml b/Documentation/devicetree/bindings/serial/cdns,uart.yaml index e35ad1109efc..7ee305f9a45f 100644 --- a/Documentation/devicetree/bindings/serial/cdns,uart.yaml +++ b/Documentation/devicetree/bindings/serial/cdns,uart.yaml @@ -46,6 +46,11 @@ properties: power-domains: maxItems: 1 + rts-gpios: + description: Optional GPIO to control transmit/receive on RS485 phy + in halfduplex mode. + maxItems: 1 + required: - compatible - reg @@ -55,6 +60,7 @@ required: allOf: - $ref: serial.yaml# + - $ref: rs485.yaml# - if: properties: compatible: