Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp499278rdg; Thu, 12 Oct 2023 11:36:44 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH2ICf6S0dIASV2EkT1dhib1tGmC1UMXWVDDuXsiaIrtASE9NOhPj27NIg15Vz26oSMGf1Q X-Received: by 2002:a17:902:c94f:b0:1c9:dcea:33e5 with SMTP id i15-20020a170902c94f00b001c9dcea33e5mr3590879pla.67.1697135803646; Thu, 12 Oct 2023 11:36:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697135803; cv=none; d=google.com; s=arc-20160816; b=wVcClqCoGDBnLoUjhvGU15UWuaoeJzEAMk8KEnZFDQOw5fKiFhD5F1Y8BeVfOKFzxc +IEhAdKBxXs7fGJNu7sz9JKP7VdwWiZlRUJEqIFcZetEoEPc9QuiOa/gJkbv1/cFPkly Qu+QchO8P1bynpc/JFivzy3qvH6q/I03OWiFjuJCX7sujfeJWIpmm5aDHc1Fdpw72wgG fpar5x1YeaUq1KEndzh20d/coAKOZ9HbCzBRM7n8IfFsmarVL7EUV4P4FQB/73FbC86r +fd2XJmLJXJVpR2pl0QYOjzZJFm9q0bxHQel38FbaxP+om3bDMim5kcWUUyagmUe+1g9 MBtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:message-id:references :in-reply-to:subject:cc:to:from:date:mime-version; bh=Ua/wJvDD+Uq2nsK4UpN+zQE3zzPT1exf7jRup6VlhLk=; fh=kIKSXYqsb8/ShL1tUChtNnhp5lV3pnhORsO3H88Nx4o=; b=ckXhrQMn7QSjRdhDLAg1SKCylIJZ42tsHsVxYxKb4HnryuZAcI/KWUx2DjHlOpAqkd x9D5cy0Zbc09ARqMeotKTaqnC05qpbDDPWqbAd2SBED3I9le2gSgpDQCaBxsQ1D4XKpH 5ID/YdDgr+HGAVu2Xfh9bYHoH8HSy5O1ti1Il332KBrU78MhM6orcnnDOZphg9JEaAZ7 mEBrGdoxgaGbEOKExFlj/88uOfv107U83Jd8xuqxxqzGNo1iS7RkE4LQ4l4sIYR5VZR0 Vzn2ORi88usFRlIQaJFhdef01U6+nYtpUwQR8uLl6QngjkZ4lxu7dTOSH3EvQUmYILg+ LXzg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id c15-20020a170903234f00b001c72c258f82si2765058plh.99.2023.10.12.11.36.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 11:36:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id A70B983E1AEC; Thu, 12 Oct 2023 11:36:40 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1441897AbjJLSgU (ORCPT + 99 others); Thu, 12 Oct 2023 14:36:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52664 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379707AbjJLSgQ (ORCPT ); Thu, 12 Oct 2023 14:36:16 -0400 Received: from connect.vanmierlo.com (fieber.vanmierlo.com [84.243.197.177]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09360D7; Thu, 12 Oct 2023 11:36:11 -0700 (PDT) X-Footer: dmFubWllcmxvLmNvbQ== Received: from roundcube.vanmierlo.com ([192.168.37.37]) (authenticated user m.brock@vanmierlo.com) by connect.vanmierlo.com (Kerio Connect 9.4.2) with ESMTPA; Thu, 12 Oct 2023 20:35:59 +0200 MIME-Version: 1.0 Date: Thu, 12 Oct 2023 20:35:59 +0200 From: m.brock@vanmierlo.com To: Manikanta Guntupalli Cc: git@amd.com, michal.simek@amd.com, gregkh@linuxfoundation.org, robh+dt@kernel.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 In-Reply-To: <20231011145602.3619616-2-manikanta.guntupalli@amd.com> References: <20231011145602.3619616-1-manikanta.guntupalli@amd.com> <20231011145602.3619616-2-manikanta.guntupalli@amd.com> Message-ID: X-Sender: m.brock@vanmierlo.com Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email 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 (morse.vger.email [0.0.0.0]); Thu, 12 Oct 2023 11:36:40 -0700 (PDT) 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. Maarten