Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6689021rwr; Tue, 2 May 2023 04:16:36 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ58Gs7W2nPdl3sJMlb+EUsduJosYRikTMQf232tfAHvbHGmzEappBkXGhT19H5Shu/GGi/M X-Received: by 2002:a17:90b:4a91:b0:24d:ff53:464c with SMTP id lp17-20020a17090b4a9100b0024dff53464cmr6062836pjb.49.1683026196195; Tue, 02 May 2023 04:16:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683026196; cv=none; d=google.com; s=arc-20160816; b=ThnI1TJzQZPjXgkUi5+LQxxJCeIfhl8jMnut1uiLctaWg6fjdmPHvOUwhK+QrVudMC Lqk9IVnqk9ve+IoGBCK4ltXlN8DIp5sn5e5ts2mz+/sDSZJOSlNYycQ22px8MJ0xLKQ9 nks/UyEC76F3aLe+335JtOtCoPhSTPX0kjOzaMk65JRHGIKqk4Kz+Qc3cxEQfnLYmQrc 1ikFjW2PfqIHo3NsTtPlsjBFXkvTg+kOzT0+aiNQfd67JI9sc75rm8PXacbq0wUtZrcJ +1MMqKwvwpsHhaD/w+XoWAg6kdPptenvyMm0cmHA3UU427yyWQpVZK5uT6K7SA9LOeFA NEFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=nRRTwUe+8V8C3INWsF+uYeBnZ+q4L2TYyWhCbOPcdtw=; b=PAdUrZdsa5YcqVvb8//rxu0yjNPb8yV5cAU1yGYD14cU8B7HYSKmh96LPwtPAydveV pc6158zGKWi5/JfB4pWeCOkRGS8OCnx4YnW7y2B4lmT/FswlubMYRhYDqFRUY47I8/HU Zz8nWXppbTaOvvoUYgz8vAdMczecDrxtqM9F/gisxyLAgxHhl3sfs1lMi4eU74R5D4FN aiW3P48MwTDyAtZ6I6FgZFjDwyhZ7Hw5HAWa3oY+/5emyQyx9zaP2nFAkZ7ThNX4IvdW Dnh0F9FyU57+j3VHwR2bMPuZinX/yzccVqXcf/URepn/UdNzKgsIgODokddjh8Wn+eqw LnYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RW7ycB1m; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d12-20020a170903230c00b001a6dfb35f63si32687353plh.385.2023.05.02.04.16.24; Tue, 02 May 2023 04:16:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RW7ycB1m; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233705AbjEBLK7 (ORCPT + 99 others); Tue, 2 May 2023 07:10:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233541AbjEBLK5 (ORCPT ); Tue, 2 May 2023 07:10:57 -0400 Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1AF50E0 for ; Tue, 2 May 2023 04:10:55 -0700 (PDT) Received: by mail-ej1-x62b.google.com with SMTP id a640c23a62f3a-94f6c285d22so755433666b.2 for ; Tue, 02 May 2023 04:10:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1683025853; x=1685617853; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=nRRTwUe+8V8C3INWsF+uYeBnZ+q4L2TYyWhCbOPcdtw=; b=RW7ycB1m8VOj8uM1EfpHUvHLFgrI6VgDk9AXMg2jnDuKpDHc+0mxj0zGCso5vSTplt uGxiPhCniPgPeQLDilqbbwqR1DzB7U4l7/GIG9+Paq4Q2vx8n9m26fm1hCqJ56yemNI1 3LCd7tnpOC0fcifB4EoJivZLoWoOrIDuT6REKenvl17FFPvUTKwqTqzG4vxh0f5gXXES ReXVmATu4ShQRoF/ar+p7meW5jUkHdXINkkIgCbi1HDc9V4zm22DgwwrbXVU/RITg4vB wh/PxGIFC1AVfnDxT6nkumuHdDOv44NZcX9GbvapDbh7cWITS23J7QLIeAGMhVhEczDe JmSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683025853; x=1685617853; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=nRRTwUe+8V8C3INWsF+uYeBnZ+q4L2TYyWhCbOPcdtw=; b=kNACHZh7a/J4pI55gBut3zvoT8we2CH16f68W4Mr14YHl/L/sTNcFsWN3JO8JomZqQ pU/++Tei89yuu7NpHSy2CZx5Jv8zEIlszTy9qSOh+sf7GcxpIQ9fg+GbJnlv3j9SvZEc dU+6KVwKjq4mhfapwSMWxjIj60Ptr4BfUTN75QCEac5JnStBNOxN7o9lVAIEFlUWOctZ QfWAucIQ04r8wxNVjC8NcxA0Id+OL8ju1XfvVBluTQkS/zDvPltWRHs9tNzR3l3zSzfs TROaBwzn3zRXbpoyfAgl0i2XBLH35kaqXOWoZGx49gIzC4EdBeHOG3YxokWzWoTBDTXH ODMQ== X-Gm-Message-State: AC+VfDy7iGB+5aB6vr4q2WuZ7JHMlOvjIVSXNPSlSkvzItegVm+Z9XKi e63ZD2AyKBsj8N0HEhOWhq+Puw== X-Received: by 2002:a17:907:9716:b0:961:272d:bdbe with SMTP id jg22-20020a170907971600b00961272dbdbemr11408909ejc.35.1683025853547; Tue, 02 May 2023 04:10:53 -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 hz19-20020a1709072cf300b009629ffabe0asm838524ejc.224.2023.05.02.04.10.51 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 02 May 2023 04:10:53 -0700 (PDT) Message-ID: Date: Tue, 2 May 2023 13:10:50 +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 To: Michal Simek , "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" , "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> <59b9214a-19e6-fd4e-6982-6e8c28c7e4a8@linaro.org> <39d3e076-94ad-a349-5df6-b6e78714e407@amd.com> Content-Language: en-US From: Krzysztof Kozlowski In-Reply-To: <39d3e076-94ad-a349-5df6-b6e78714e407@amd.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 On 02/05/2023 12:57, Michal Simek wrote: > > > On 5/2/23 12:19, Krzysztof Kozlowski wrote: >> 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. > > Not really. Manual itself just shows picture of that connection if you are > interested. > On schematics it looks like that DE and /RE are just handle via one gpio. That's > why you need 3 wires instead of 4. Definitely it should be described better. By looking at commit reviewer did not figure out why do we need it. Referencing datasheet in a reply in LKML thread does not solve it because the next person reading the commit might have the same question. The commit must answer to "why" if this is not obvious. I don't find responses "Please check..." to this helpful. Best regards, Krzysztof