From mboxrd@z Thu Jan 1 00:00:00 1970 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 A9BA3C77B73 for ; Tue, 2 May 2023 10:20:09 +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:In-Reply-To:From:References:Cc:To: Subject:MIME-Version:Date:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=1y5cD2NyIrdMZ3eB+4TrrslxnQ5WR3qbx51JezkXzK0=; b=ylvHCU2Hg1ZAl0 BUAzEK79gHeUfYpTqJ9OPR5WQUDA29sdhjbZAcsGAHGXemOB8GEFxkQG+fLdfGQ/AEZnl0u+KAI4J X+jwoUY6xizZN9xQ4xvbCQqdxMDhYuT0xNpKG1QIkXLcHojljwceu/9rENEc5rD4uszwY/lphJ0VX km4OjpDcOHS7QzT9HS1v0nSNaMZvXMhpKVqM3/5ypqQ2+OGtfARJ/kj68lm5a4Wa79aSijeHz/oUr WFFViirFkVbgKTAcxK0nmAmuGFfjGSdwtR1oNYHBTDPbHJfXB0Zhrse2s2LAytldldSRaLlncZJN8 7GWdLP67FG9isGv4/VVA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1ptn6J-000uSN-2t; Tue, 02 May 2023 10:19:15 +0000 Received: from mail-ed1-x52d.google.com ([2a00:1450:4864:20::52d]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1ptn6H-000uRQ-0b for linux-arm-kernel@lists.infradead.org; Tue, 02 May 2023 10:19:14 +0000 Received: by mail-ed1-x52d.google.com with SMTP id 4fb4d7f45d1cf-50bc3a2d333so3812186a12.0 for ; Tue, 02 May 2023 03:19:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683022749; x=1685614749; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=PSOQWv5cIhWugBKgY0Tf8haO/+bAiIBjy0ljcFCS7pE=; b=sU4YH9jOZeGVjyZ1m4F/RektzfkMf2vg9+4cIdsuJaEOX/tAdSZjMllV324DlTO4is 3BVDhUi3OnaY5mVCoDnuClb/yZ+UXhfMtl8Hw0Hw9LRhwxvcVWx/Jgu+DHUxr/rxFIo6 j38ucgy3ttImNwyrLZzyaSQv2VPW7ugbSoaw+zAleDh1lepsNQXyENSYJXEvDzQ9r2xi Ra7ptpkuNvOZjqkh7EH5yboRJ/5veLuJr2nOB98dSWOpxlWjrPctyxwgoBj3l+ytl4jn HvAOE5WdLxZECWEO4aoKxzZivNqaP+6P3way5gkg5/pL9AfdZz1nRqNLYwpKrZbDtbbh BnQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683022749; x=1685614749; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=PSOQWv5cIhWugBKgY0Tf8haO/+bAiIBjy0ljcFCS7pE=; b=Lm6seu6dU0TJvfUaJd/S0py8Y71KR7L02Hd15ooHQhjJGOJHs2AfHpoOhxn0U0F/NX vEwUM3+IRF9wPz+V+X3toFtdN94xm0VOHYGMrH6UpdFwsRBIWdnW5E0ngZyTi/UH+hwq ZQdIkrE8FpL9u65H6Ie+UgY8r/9W/FJfSUOR6QfFqZUhNZSzY1EX+G8nHadBH1E3NYEY vjsyePTCGOwIYNSYgRDK6bXtoYs0vfDr0YWN0/1lRK3UgcnGUpgd59EGbiqA4mEh/2kt Of2z/KbA2Mik+fWWzkE+aoNMvlt57Vqu+UoEUl7yZGfmZM9JrCFlVl5LYog+fcCMxMoR Sy/g== X-Gm-Message-State: AC+VfDzQsWaRmaDALs8rNY9dF/IC1zdVTwslW4uPJ0DsAXXI4Gi/X6sc s7L4m09pFIy8KhPIx42r9bl0/g== X-Google-Smtp-Source: ACHHUZ7tLdRIYdOi6QjvP8Fn9gC7J1+rSZR+Ue+G/TFVdN8qdNoXM1jyPVQaYKSzGHlTX9Pdknpw7Q== X-Received: by 2002:a05:6402:8:b0:504:8c1a:70db with SMTP id d8-20020a056402000800b005048c1a70dbmr7705427edu.32.1683022749367; Tue, 02 May 2023 03:19:09 -0700 (PDT) Received: from ?IPV6:2a02:810d:15c0:828:bafd:1283:b136:5f6a? ([2a02:810d:15c0:828:bafd:1283:b136:5f6a]) by smtp.gmail.com with ESMTPSA id u10-20020a056402064a00b00506addaaab0sm13225333edx.32.2023.05.02.03.19.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 02 May 2023 03:19:08 -0700 (PDT) Message-ID: <59b9214a-19e6-fd4e-6982-6e8c28c7e4a8@linaro.org> Date: Tue, 2 May 2023 12:19:07 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.1 Subject: Re: [PATCH 1/2] dt-bindings: Add optional gpio property to uartps node to support rs485 Content-Language: en-US To: "Guntupalli, Manikanta" , Rob Herring Cc: "gregkh@linuxfoundation.org" , "krzysztof.kozlowski+dt@linaro.org" , "michal.simek@xilinx.com" , "linux-serial@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "jirislaby@kernel.org" , "linux-arm-kernel@lists.infradead.org" , "Simek, Michal" , "git (AMD-Xilinx)" , "Pandey, Radhey Shyam" , "Datta, Shubhrajyoti" , "Goud, Srinivas" , "manion05gk@gmail.com" References: <1682512187-8828-1-git-send-email-manikanta.guntupalli@amd.com> <1682512187-8828-2-git-send-email-manikanta.guntupalli@amd.com> <20230427164351.GA3146210-robh@kernel.org> From: Krzysztof Kozlowski In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230502_031913_237935_C5BD19C4 X-CRM114-Status: GOOD ( 19.06 ) 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 02/05/2023 12:14, Guntupalli, Manikanta wrote: > Hi Rob Herring, > >> -----Original Message----- >> From: Rob Herring >> Sent: Thursday, April 27, 2023 10:14 PM >> To: Guntupalli, Manikanta >> Cc: gregkh@linuxfoundation.org; krzysztof.kozlowski+dt@linaro.org; >> michal.simek@xilinx.com; linux-serial@vger.kernel.org; >> devicetree@vger.kernel.org; linux-kernel@vger.kernel.org; >> jirislaby@kernel.org; linux-arm-kernel@lists.infradead.org; Simek, Michal >> ; git (AMD-Xilinx) ; Pandey, >> Radhey Shyam ; Datta, Shubhrajyoti >> ; Goud, Srinivas ; >> manion05gk@gmail.com >> Subject: Re: [PATCH 1/2] dt-bindings: Add optional gpio property to uartps >> node to support rs485 >> >> On Wed, Apr 26, 2023 at 05:59:46PM +0530, Manikanta Guntupalli wrote: >>> Add optional gpio property to uartps node and add reference to rs485.yaml >> >> The diff tells me that already. Why? > Please check Figure 11-3 (Page number 37) in the below mentioned data sheet, It shows PMOD (ISOW14x2) devices used in half duplex configuration. Driver outputs Y and Z are shorted to A and B respectively. This reduces overall cabling requirements. Also DE/RE are shorted to each other, and at a time, any node acts as either a driver or a receiver. > Using above optional GPIO controlling driver or a receiver. This GPIO is optional because it is not required for uart console node. > > Here, > DE - Driver enable. If pin is floating, driver is disabled (internal pull-down resistor) > RE - Receiver enable. If pin is floating, receiver buffer is disabled (internal pull-up resistor) > > 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 Your request for us to get into some datasheet somewhere, to get the answer to the basic question, is not reasonable. Commit must justify its existence, not some external source. > >> >>> >>> Signed-off-by: Manikanta Guntupalli >>> --- >>> Documentation/devicetree/bindings/serial/cdns,uart.yaml | 5 +++++ >>> 1 file changed, 5 insertions(+) >>> >>> diff --git a/Documentation/devicetree/bindings/serial/cdns,uart.yaml >> b/Documentation/devicetree/bindings/serial/cdns,uart.yaml >>> index a8b323d7bf94..34ed0d80b923 100644 >>> --- a/Documentation/devicetree/bindings/serial/cdns,uart.yaml >>> +++ b/Documentation/devicetree/bindings/serial/cdns,uart.yaml >>> @@ -46,6 +46,10 @@ properties: >>> power-domains: >>> maxItems: 1 >>> >>> + txrx-gpios: >>> + description: Optional GPIO to switch transmit and receive modes via >> pmod. >> >> What's pmod? > Pmod is galvanically-isolated RS-485/RS-422 transceivers with a built-in isolated > DC-DC converter, that eliminates the need for a separate isolated power supply in > space constrained isolated designs. It's not about explaining it here, but making your changes justified and obvious once implemented. Best regards, Krzysztof _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel