Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp562501rdg; Thu, 12 Oct 2023 13:52:34 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFh8Hq/NlpkyD39mfj9bp/YUWdwenD1mQNXc77wrV/Gix0tarnABpTDM5QxrfZODgVN/52p X-Received: by 2002:a05:6a00:2d01:b0:68a:6d34:474b with SMTP id fa1-20020a056a002d0100b0068a6d34474bmr32430261pfb.15.1697143953643; Thu, 12 Oct 2023 13:52:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697143953; cv=none; d=google.com; s=arc-20160816; b=sFyQ75I1ShuUfWhpoXpGnHKwIJrEGiZUJAOt3AVxRNHgJqr5xxhYIK6vI9j+xktm6q PAfxl0CTDBDs4kXU0q/0nB6KN45sT4Curjyf07OKeAkyMYKcNJ3Zf0QaIe4eQ00CwnVI uyUayZzXAnPglKoYXGIIaOvH3mAcevMZMB5dRxMw5O5xVbpOTNo5xNPm53bKXEMHsdea +8QFgQktWPVAzxjSB88Ijyy6wRdpbv/6itumNloW3Dh4vBIAMmGJq4xkxtrGJIK8o0T4 mbKagI3gEb8J5ICVYwS6gPlVL7Mel4GC6w7sZGDDA5Z/6n60eFlpdSzp/stJJwrZo2Y3 PFvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=kV9LL4NwCYklQ1HK19rWJknSZweoG7mBglIO6hSy7WE=; fh=WDxexqPpO6AhyT9ayQNmfjXlBXlqSpSCZOhUZS2ikmI=; b=SEdXv3FqAEuvonMrajA3ZMsoHTI0bZHHejk3fFn/e1i39+BtipKPD0AW0PREaVlk/H SLYjQdSWG3cnqEkrNTBE6PFh8z1lrxaxxBYEWAD6n4Mc/3+1964VBfmt1O+O7F2pPwf+ ep/Z2zohRBOXqRgtmnuP/qYIMbfCSINvBAOnPzIunwzKXxwFP3ErqB+APhupOOXHI4+8 hAbwWsCAcV8I+k7Vf7ZVbYUXPoMKHbuaYaA0jwTsV3cSA0K2/7MJCvNX3p53YUhFByms T2uFfpp+3UmkBxraxLVSCe797n0Cizqs8iXz21SgI8XJBFzPoa7JvS21S611YR+Y6HqV 1KNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JVBN+IAM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id h15-20020a056a00218f00b00690b8833ccbsi1560611pfi.270.2023.10.12.13.52.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 13:52:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JVBN+IAM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 3AB01809ABEA; Thu, 12 Oct 2023 13:52:23 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347444AbjJLUwT (ORCPT + 99 others); Thu, 12 Oct 2023 16:52:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1442748AbjJLUwP (ORCPT ); Thu, 12 Oct 2023 16:52:15 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3D51D7; Thu, 12 Oct 2023 13:52:00 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EE15DC433C8; Thu, 12 Oct 2023 20:51:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697143920; bh=QLs1pQ7YnOXiEEeiGiyU7dSYjD9NCXqhv5FGAzmT5HI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JVBN+IAMIg9EyB1dJcneervIqpzfHli4MH53ttxXxE0EtlW7bklb/57VAlXHHVFMa NE0W4KrMNamD4LfVYR5zGyviIUaSqrD4iEl9u7UA6T+JjwarFR2WCf7yU1OCGWQY8t 60Ijpgeq/JQKyJy3J1RwQLQ8LSuTwraLiQ95vhxlRa7MIEzk7uHQQ1a3cavD+/RML3 hLwSpd1GRF5GdR6GPqK3zVTFiJgDn3Lkv7dg+PFcLV4M9I8izLZM9CvLRpq/DXq2qw e8fT34ziGMUfe6+pU8FlJ13wZCSt5n3KNe6gnEgxKRB8O767aQ1D/szUG+7MVCJth0 q7eEDYgdX1XCg== Received: (nullmailer pid 1717618 invoked by uid 1000); Thu, 12 Oct 2023 20:51:58 -0000 Date: Thu, 12 Oct 2023 15:51:58 -0500 From: Rob Herring To: m.brock@vanmierlo.com Cc: Manikanta Guntupalli , git@amd.com, michal.simek@amd.com, gregkh@linuxfoundation.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, linux-serial@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, jirislaby@kernel.org, linux-arm-kernel@lists.infradead.org, radhey.shyam.pandey@amd.com, srinivas.goud@amd.com, shubhrajyoti.datta@amd.com, manion05gk@gmail.com Subject: Re: [PATCH V2 1/2] dt-bindings: Add optional gpio property to uartps node to support rs485 Message-ID: <20231012205158.GA1714449-robh@kernel.org> References: <20231011145602.3619616-1-manikanta.guntupalli@amd.com> <20231011145602.3619616-2-manikanta.guntupalli@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Thu, 12 Oct 2023 13:52:23 -0700 (PDT) On Thu, Oct 12, 2023 at 08:35:59PM +0200, m.brock@vanmierlo.com wrote: > Manikanta Guntupalli wrote on 2023-10-11 16:56: > > 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 shorts to each other, > > s/shorts/are connected > > > 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. > > Please use DE and /RE to indicate DE is active high and /RE is active low. > > > xlnx,phy-ctrl-gpios is optional property, because it is not required > > for uart console node. > > How about introducing an rs485 generic gpios property instead of xlnx > private one? See also rs485-term-gpios and rs485-rx-during-tx-gpios. > > Also note that every kernel driver expects to use RTS for this purpose. > So why not give this driver the option to choose a gpio instead of its > native RTS? And from there on use the rts route? > What if someone wants to use normal (non-rs485) RTS on a GPIO instead > of the native pin? > > @Rob Herring > I am curious to know how the rs485 maintainers look at this. Ask them. We already have 'rts-gpios'. If that's what's always used, then perhaps we should use that in the RS485 case too? Rob