Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp2487145rwl; Mon, 27 Mar 2023 00:26:32 -0700 (PDT) X-Google-Smtp-Source: AK7set8bWwkCRXVbjph7ZcHDrlvr+ImHO5tKfdfMKVl41sH257ia6Q1AVY+/FM9cybtdaAltrLag X-Received: by 2002:a05:6a20:4d90:b0:d6:c9e2:17a1 with SMTP id gj16-20020a056a204d9000b000d6c9e217a1mr9072032pzb.62.1679901992514; Mon, 27 Mar 2023 00:26:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679901992; cv=none; d=google.com; s=arc-20160816; b=IkVWMrSMffsaO9cnk2NqA7HZ04lJ/OvslnbybQPgzTl87HEsw10+ERWfQulKY5OKYp LCqvzElTihKGhAlBiETTQy/T+uikdIyf6Tsaj+V9O0jzfXJ5nZFPt4nB9kwERnM94h9/ 9c2eg9PQITsvmp02rKBo+cjmwKFqxZE5QmggKOfdhI1tWxeLxd54U9dmhgDivVNR7anR +SadwwYP9jAvARsjFWF2/yP9p1/+mfl2IAfW5dvO0HEGLrQQal/uBZoZXQTzV3Tobl3D p4ApcjT88fM2yT2TyWldJhs1YAUECW84Z6w1uRUcjMlXhlkjBYe/a9rAtcDhZchVb19q dxiw== 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 :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=CFNarKRRJksS00saRO6cxhezfG372oWTTPfol9sWbtI=; b=GOC/hM7q0U9USBVhTSLSC9/8UZsyJvd1DGPR6GP/5HnRon1EeANRwp/kZz0hCP5S0w JfmMPym2yfGcaJlMnMHCBWwTwnfQk4yrWrjxUbjZ1cMMiB/6zWhLw2chwcGJecwM0wtu pxd7hECZbStQEF21sItyxEEhG7pQkUgY+8lP93AYJ40kNxp0jxzsY9KIuVVnWo1/14lC jrBPdFwm1jSHiiP/jC9tc0ATJU0qZP3/ARQyhD3em5TsSzR/bY/IMD8Ep2jhe2fRBYDW 7gSNMwq9Ru4nan7YazPLIb1biJKbmIt18Jf0LxzpXkyDU1ZjembdduJdMFGbdiQV1b4Q sBJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DmU9nnEK; 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 r126-20020a632b84000000b0050bdc2e7efdsi26305118pgr.42.2023.03.27.00.26.20; Mon, 27 Mar 2023 00:26:32 -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=DmU9nnEK; 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 S232484AbjC0HWw (ORCPT + 99 others); Mon, 27 Mar 2023 03:22:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232487AbjC0HWu (ORCPT ); Mon, 27 Mar 2023 03:22:50 -0400 Received: from mail-ed1-x534.google.com (mail-ed1-x534.google.com [IPv6:2a00:1450:4864:20::534]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F401422F for ; Mon, 27 Mar 2023 00:22:48 -0700 (PDT) Received: by mail-ed1-x534.google.com with SMTP id cn12so31811846edb.4 for ; Mon, 27 Mar 2023 00:22:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1679901767; 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=CFNarKRRJksS00saRO6cxhezfG372oWTTPfol9sWbtI=; b=DmU9nnEK7bNf/dHFFm/RQKVsvo497gWyF+EyPJw/LoUyZkSQoD0EfLmkuDq7LvWRQ/ SBm3OmC7v+/8mmMRlg8kxatMTs99xVsiIkndFPKNafuVgtFLmKDff3VDbKVywayGPIFL MEdULSg/WAmCXQxPqqeL8iao6Z16Nb5BAHIck7IjxB+F7lvfj0UkzyLR0h+ebLLtYsCP m+GlHsFc5CN6ZfVrbJDhVAwjbd4lzB8WdUMuSba04Qfi2ICqA9YX5oX7L1wD2I3Wcv4N 2UJddfIsEOdsHIR9UblfBaXP6T5RjdCiEz8hW0CGpUpauGlkQdXkwUiPTZjP6it/k3Fh IPSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679901767; 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=CFNarKRRJksS00saRO6cxhezfG372oWTTPfol9sWbtI=; b=qM5FzNP4A4jCHWq04xTaupi8hzCA6RoUfQsbFxgTE6WB2E/svUSOOGAd9RRRjjN03A WM19O6yew9IF0OA5sANp6ppwj//5xSmxIBky1/nQzJRG7QW6TiuUPaJQ+7mAWYkNAyv1 6NR+1lKBO15y+VER8FA6FqjDSQFyYcnZE0grYdKTytDblMQ1J01AYHqUNXV3WudcwmPa SMdCF7S+6eA+LzeJfVggi2ZtizPMPWhTzgOJVUSA8aMgpYRkuj7oHnmuNAa5Xdin4vZm QT2D5iGcKCEzaRNkpwQBpD3se390gS2NIv0AhRuuQZtpylUuFCrxeYzh+uVYMDAIi4Ds iIPg== X-Gm-Message-State: AAQBX9dHm88znAsLOPQ6jokaiZFtmSutvungmRFvRzHYd047lIEKu/n/ yZyaL2J487huJ18WTBWKWbpaFQ== X-Received: by 2002:a17:906:f143:b0:933:4c93:69ee with SMTP id gw3-20020a170906f14300b009334c9369eemr11864771ejb.45.1679901767018; Mon, 27 Mar 2023 00:22:47 -0700 (PDT) Received: from ?IPV6:2a02:810d:15c0:828:198e:c1a5:309b:d678? ([2a02:810d:15c0:828:198e:c1a5:309b:d678]) by smtp.gmail.com with ESMTPSA id g12-20020a170906198c00b00930c7b642d0sm13732976ejd.166.2023.03.27.00.22.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 27 Mar 2023 00:22:46 -0700 (PDT) Message-ID: <510cf7ac-3f7f-49e2-b384-424c931b2750@linaro.org> Date: Mon, 27 Mar 2023 09:22:45 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 Subject: Re: [PATCH 07/14] dt-bindings: pinctrl: qcom: Add output-enable Content-Language: en-US To: Douglas Anderson , Bjorn Andersson , Rob Herring , Krzysztof Kozlowski , Mark Brown , Linus Walleij Cc: Matthias Kaehlcke , Konrad Dybcio , linux-gpio@vger.kernel.org, Stephen Boyd , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-spi@vger.kernel.org, Andy Gross , linux-kernel@vger.kernel.org References: <20230323173019.3706069-1-dianders@chromium.org> <20230323102605.7.I7874c00092115c45377c2a06f7f133356956686e@changeid> From: Krzysztof Kozlowski In-Reply-To: <20230323102605.7.I7874c00092115c45377c2a06f7f133356956686e@changeid> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, 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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 23/03/2023 18:30, Douglas Anderson wrote: > In the patch ("dt-bindings: pinctrl: qcom: tlmm should use > output-disable, not input-enable") we allowed setting "output-disable" > for TLMM pinctrl states. Let's also add "output-enable". > > At first blush this seems a needless thing to do. Specifically: > - In Linux (and presumably any other OSes using the same device trees) > the GPIO/pinctrl driver knows to automatically enable the output > when a GPIO is changed to an output. Thus in most cases specifying > "output-enable" is superfluous and should be avoided. > - If we need to set a pin's default state we already have > "output-high" and "output-low" and these properties already imply > "output-enabled" (at least on the Linux Qualcomm TLMM driver). > > However, there is one instance where "output-enable" seems like it > could be useful: sleep states. It's not uncommon to want to configure > pins as inputs (with appropriate pulls) when the driver controlling > them is in a low power state. Then we want the pins back to outputs > when the driver wants things running normally. To accomplish this we'd > want to be able to use "output-enable". Then the "default" state could > have "output-enable" and the "sleep" state could have > "output-disable". > > NOTE: in all instances I'm aware of, we'd only want to use > "output-enable" on pins that are configured as "gpio". The Qualcomm > documentation that I have access to says that "output-enable" only > does something useful when in GPIO mode. > > Signed-off-by: Douglas Anderson Reviewed-by: Krzysztof Kozlowski Best regards, Krzysztof