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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5D67BC05027 for ; Wed, 8 Feb 2023 08:17:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229972AbjBHIRe (ORCPT ); Wed, 8 Feb 2023 03:17:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55100 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229909AbjBHIR1 (ORCPT ); Wed, 8 Feb 2023 03:17:27 -0500 Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3B7DB46A for ; Wed, 8 Feb 2023 00:17:24 -0800 (PST) Received: by mail-ej1-x632.google.com with SMTP id sa10so18827298ejc.9 for ; Wed, 08 Feb 2023 00:17:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=mgNVLPP81e/ZJyUA32o0ZH9mBi/iQe4yk7ouaJGZuy0=; b=ycOguIPKYX/vFlY/CaadB5taIqR8a5Z90ZR+FhhA0KfrTvQx7qS75v4O4A91qx+Ss2 Qe2J2ZreNR8NHh7Ezzwwuvp9J2s3ea3G+ZC1fzhQmzgaN2xs33AC3qOL1YqWIUZw9XPe ENkoROCgHPYZvl55g7AQ1IzABLWOp0vAw3Go9Ti2Dx6YYEtqKuv4Fiagu+8l+VuORyO9 Ih7tuU2LzAGgbY2znBewTxo1ulYH5lahSn+Y7WkecAa8+eukNAGlMYSlP70N28Oq81wr 7Nb8pwcs706J+8BcOrV2fl9MBh4RUmEmeTAS5aD/Zgd6aMK/IU3deGZX9u6LVHQqZ0Mv +RqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=mgNVLPP81e/ZJyUA32o0ZH9mBi/iQe4yk7ouaJGZuy0=; b=NEKFb5fmEcLAI7IJQvwUR0y7lTWEQE6sNzmwSo9qLzt9e7bPa+bromiY+GEMhbRkJV 1eLNomZ+/uOy0MnbwdfdUc1MAT2n/+W1qSbr2JHiGVq6M09yyfBHh/ssVwP5dcGkCev8 h8CuSYfTynuGdnotRdlhb2IYSI8zdyOGGWGVX3wwfrQrZ865KwoBywDFXJ06SuekCyNW k6GtTt2u90HMDWv4o9SGxyFJfWQzayHVfXFuicIT3vGZjL31l7deSsSxhvWI9PrPH0HN /GTgh1BC/3JxkazIRb9sWzsJwxIv5H+DAXR/vKx9Y4GCI/nhZfT8VSiUACnOQOl1yfZl XWQw== X-Gm-Message-State: AO0yUKUY8eTHgq022HyRGBn5bQXNB6Tyf4ZC6Qoa5dN7MU+bztrlIXkX F3Ls8D5zWXx0VpuQOK01ZZeYjw== X-Google-Smtp-Source: AK7set+WYZqi41ew+EAKbO82xbTbuL+1CayQDZfUvoUbK1GE7bTWHRU6wKzSpURzm1/aC0UeSRXiCg== X-Received: by 2002:a17:906:7952:b0:884:b467:ae4a with SMTP id l18-20020a170906795200b00884b467ae4amr8205385ejo.64.1675844243558; Wed, 08 Feb 2023 00:17:23 -0800 (PST) Received: from [192.168.1.101] (abxh117.neoplus.adsl.tpnet.pl. [83.9.1.117]) by smtp.gmail.com with ESMTPSA id g4-20020a170906348400b007add62dafbasm7954162ejb.157.2023.02.08.00.17.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 08 Feb 2023 00:17:23 -0800 (PST) Message-ID: <79c1cc0e-137d-af37-0069-f01f9a25e99b@linaro.org> Date: Wed, 8 Feb 2023 09:17:21 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: [PATCH] arm64: dts: qcom: sc7280: Power herobrine's 3.3 eDP/TS rail more properly Content-Language: en-US To: Douglas Anderson , Bjorn Andersson Cc: mka@chromium.org, Andy Gross , Krzysztof Kozlowski , Rob Herring , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230207163550.1.I5ff72b7746d5fca8f10ea61351bde4150ed1a7f8@changeid> From: Konrad Dybcio In-Reply-To: <20230207163550.1.I5ff72b7746d5fca8f10ea61351bde4150ed1a7f8@changeid> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8.02.2023 01:36, Douglas Anderson wrote: > This is the equivalent of commit f5b4811e8758 ("arm64: dts: qcom: > sc7180: Add trogdor eDP/touchscreen regulator off-on-time") and commit > 23ff866987de ("arm64: dts: qcom: sc7180: Start the trogdor > eDP/touchscreen regulator on"), but for herobrine instead of trogdor. > > The motivations for herobrine are the same as for trogdor. > > NOTES: > * Currently for herobrine all boards are eDP, not MIPI. If/when we > have herobrine derivatives that are MIPI they we can evaluate > whether the same off-on-delay makes sense for them. For trogdor we > didn't add the delay to MIPI panels because the problem was found > late and nobody had complained about it. For herobrine defaulting to > assuming the same 500ms makes sense and if we find we need to > optimize later we can. > * Currently there are no oddball herobrine boards like homestar where > the panel really likes to be power cycled. If we have an oddball > board it will need to split the eDP and touchscreen rail anyway > (like homestar did) and we'll have to delete the "regulator-boot-on" > from that board. > > Signed-off-by: Douglas Anderson > --- Reviewed-by: Konrad Dybcio Konrad > This patch should be applied atop my recent series adjusting the > herobrine touchscreen rails [1]. If I need to send a v2 of that series > I will add this at the end of it as patch #8. > > [1] https://lore.kernel.org/all/20230207024816.525938-1-dianders@chromium.org/ > > arch/arm64/boot/dts/qcom/sc7280-herobrine.dtsi | 16 ++++++++++++++++ > 1 file changed, 16 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sc7280-herobrine.dtsi b/arch/arm64/boot/dts/qcom/sc7280-herobrine.dtsi > index ded36b5d28c7..312cc0e1cbc7 100644 > --- a/arch/arm64/boot/dts/qcom/sc7280-herobrine.dtsi > +++ b/arch/arm64/boot/dts/qcom/sc7280-herobrine.dtsi > @@ -110,6 +110,22 @@ pp3300_left_in_mlb: pp3300-left-in-mlb-regulator { > > regulator-enable-ramp-delay = <3000>; > > + /* > + * eDP panel specs nearly always have a spec that says you > + * shouldn't turn them off an on again without waiting 500ms. > + * Add this as a board constraint since this rail is shared > + * between the panel and touchscreen. > + */ > + off-on-delay-us = <500000>; > + > + /* > + * Stat the regulator on. This has the advantage of starting > + * the slow process of powering the panel on as soon as we > + * probe the regulator. It also avoids tripping the > + * off-on-delay immediately on every bootup. > + */ > + regulator-boot-on; > + > vin-supply = <&pp3300_z1>; > }; >