Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp31243073rwd; Thu, 6 Jul 2023 18:35:35 -0700 (PDT) X-Google-Smtp-Source: APBJJlE0hTghwyK6X5NBisMdMQEOjS+vk276sJoKO+S0J6FUX4ec/a/IBlJJ3LUmD17SV1ussX4w X-Received: by 2002:a17:90a:880b:b0:263:f9c8:9d9e with SMTP id s11-20020a17090a880b00b00263f9c89d9emr2915304pjn.46.1688693735354; Thu, 06 Jul 2023 18:35:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688693735; cv=none; d=google.com; s=arc-20160816; b=dICQDqFazwyO9kcgrq/2VTKSZ+/orccmacs0CSG9PVQAaWiIz0JInbxd9+Ewo2tCO+ 1lD/LxgpgN5mvJiSr2k660dsrsuQqlLLNkZ8pORhQ2LuWegQh6X37dr70i4DiNCO8AWn EH8ViQcGync+6tMVke+1qvZkEt8hdqlbL0BR230nIWOcVcH+Ycia30WHwN5ENQEyS1rj OoeYWlwWciI9yo7OTne0jzM+f9NsFC4KBTKXlg5EiGN8u4cSNHlmicrq+1I4OuFqm3Kk MKNzBSyaFoE6N7W0ev81LNQ9lJIaPqEyP37xYy9S1J6HkvlI280T+dRm9Ocaug0A9Z1K o+pQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=e2UKbsXjIV8t0bNo3+5XMu9R1qmCrIyv3QUJNj0OXNA=; fh=Te9Y0aQxmtfrPAb06otIa3rD/FJdRRA0VJTDszE03ic=; b=OUqH7b1Hl0cRT2tKSVYwG+vipWkb6oiCpyFrTYxte0vSWDdyy1lOLnFCnnmdVmMcte d9mpZeTJJIkapHPHAbnnEY4g+ALhH/Y9Nx5eQM6GUwM4fSzOotwASWolopZvoahhnxB9 ci+UKJNrWfyI8sn2AZBtXyDdC4o/ZtU3aO80xScGDCToLJ2OMFQNZRdVGAiNHbtoksdW g6E083ESJibbQeh5rtrbkChEWeWqF1ger2H22eaJGf3pj8+YsQTW/sdgkUBbObqnc99E EWK4kC2ddi5UVjIec7Gpy/Z4+oATg0b1Ayb8gq2kTzayZtJhLlPUE8Tkh+BcQIBxiYTG nW6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=ctLmSZEp; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v20-20020a634814000000b0055b6a717367si2645429pga.45.2023.07.06.18.35.21; Thu, 06 Jul 2023 18:35:35 -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=@google.com header.s=20221208 header.b=ctLmSZEp; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231557AbjGGBU7 (ORCPT + 99 others); Thu, 6 Jul 2023 21:20:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38594 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231147AbjGGBU5 (ORCPT ); Thu, 6 Jul 2023 21:20:57 -0400 Received: from mail-qk1-x733.google.com (mail-qk1-x733.google.com [IPv6:2607:f8b0:4864:20::733]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3CEE419A0 for ; Thu, 6 Jul 2023 18:20:56 -0700 (PDT) Received: by mail-qk1-x733.google.com with SMTP id af79cd13be357-7653bd3ff2fso136695585a.3 for ; Thu, 06 Jul 2023 18:20:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1688692855; x=1691284855; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=e2UKbsXjIV8t0bNo3+5XMu9R1qmCrIyv3QUJNj0OXNA=; b=ctLmSZEpEcHsA8HF3QPA3OqInZwbAZJXzU0OJ3YK/RcPJLE7NmUbpxsfsnWop9L+BT 7FK8pLuBU51M4V8uXnZx0UnUFBByZ48cNxu4EZ4gGsECUKw6wrLRMtlHXRPta+RgcLFN rP2GPR4COtW9JcWdW+zPcszEDAAYs492W5qspxnAt5sHSO1LTQsP8QIMthdSLWv2IMgV T8Tvj1LiiBTk7wrDKOe7T3x0bVxZAtLaD9P5uEYV1WvI4EGP06NXtFvOUvgwz3H7EMFg PpMLx9gRl9PRGVLmuaB8XTmkHAqRiPQldNDJRSOk2JAvCoXI+KWnz3+GYZopUOI8ibSo pBpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688692855; x=1691284855; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=e2UKbsXjIV8t0bNo3+5XMu9R1qmCrIyv3QUJNj0OXNA=; b=WH0xxHcnYuX5eCAZ5IfOtVDPCAAS0sGcVLBf4bUnfohtmWZrlwDap851NrCe/B2X+4 1iU4panqZ75ar3ZO/Y3pyYXPOjqYIKtykQFAv9sUoNpaAdVi2ICNUiJHk9D7I14fs6Qa yio9AvTEj/NhxitQFaB4PO39GGbvgHOZJB7hIjht9Nmb6hlzoYfW8UMSJqcJTsGcSCnt mXEVJLNwO8yA1tGJUMRCf3jukKbUOU6quZiIeTdlQFy7kWXrND9SKRDYKftrfANYgTp1 EDMtouP12yDgUOf1xgO0os03vhaVz+6wb4tFbuwMEbT2VR+pjD5K/0NyHhZ/VpcBzLRA Ty0w== X-Gm-Message-State: ABy/qLZCCCctb3YpIOaUJUDXwdG4DfGgVLpR+K81Zag+p0txIfopgFyx ULo4k2k0LRFTHwiITfwjO7OLkvw4drU9QcYWSDN01w== X-Received: by 2002:a05:620a:2b24:b0:765:ab7c:895e with SMTP id do36-20020a05620a2b2400b00765ab7c895emr3870451qkb.24.1688692855395; Thu, 06 Jul 2023 18:20:55 -0700 (PDT) MIME-Version: 1.0 References: <20230704050744.1196293-1-yangcong5@huaqin.corp-partner.google.com> In-Reply-To: From: cong yang Date: Fri, 7 Jul 2023 09:20:43 +0800 Message-ID: Subject: Re: [PATCH] drm/panel: Add avdd/avee delay for Starry-himax83102-j02 and Starry-ili9882t panel To: Doug Anderson Cc: sam@ravnborg.org, neil.armstrong@linaro.org, daniel@ffwll.ch, airlied@gmail.com, hsinyi@google.com, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Hi, On Fri, Jul 7, 2023 at 3:32=E2=80=AFAM Doug Anderson = wrote: > > Hi, > > On Mon, Jul 3, 2023 at 10:07=E2=80=AFPM Cong Yang > wrote: > > > > From power on/off sequence for panel data sheet[1], T2 timing VSP to VS= N > > needs 1ms delay when power on, and VSN to VSP also needs 1ms delay when > > power off. Some pmic may not be able to adjust the delay internally, so > > let's add a delay between avdd/avee regulator gpio to meet the timing o= f > > panel. > > Unless I'm mistaken, all of this is best handled via regulator > constraints in the device tree. See the file: > > Documentation/devicetree/bindings/regulator/regulator.yaml > > Specifically, any delays related to actually ramping up / down the > regulator can be specified in the device tree. Nominally, you could > argue that the 1 ms delay actually _does_ belong in the driver, but > IMO the 1 ms number there is really just there because someone thought > it was weird to specify a delay of 0 ms. Given that you already need > remp delays in the device tree, it feels OK to me to just include the > 1 ms there. The regulator device tree has only the power on attribute "regulator-enable-ramp-delay", not has power off attribute. The regulator delay looks more like the HW voltage requirement of the power ic itself, and I just want to meet the panel spec requirement. I add regulator-enable-ramp-delay in dts he can also meet my requirement, but I have no way to control the power off delays. Thanks Doug. > > -Doug