Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp30937635rwd; Thu, 6 Jul 2023 13:01:16 -0700 (PDT) X-Google-Smtp-Source: APBJJlGWna5iXFJKlbzFE/YNZzvsD/tZgLUOldk0C2ioouqiePI2vgvfU7NXDLeSlep6v6+jI/gv X-Received: by 2002:a05:6870:a11a:b0:1b0:40b0:114c with SMTP id m26-20020a056870a11a00b001b040b0114cmr4421170oae.43.1688673676093; Thu, 06 Jul 2023 13:01:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688673676; cv=none; d=google.com; s=arc-20160816; b=eYOLGMxBeCrRulZpmF7TZF+QDlvZS0/QrDFfiL+Ya4yXT4wgh96kG001Hqlh/efgIG 3cIDWzvwkTijZmIKyhd8zhi2BbRj+fjvK49FDHMpQ3I19siPR65xyGadOATyx++1KNSI ITNB71Ixy3NSRT+x2fEqp+yKS7YMWq7xGeSk9gjcbJLiCu3gvHXFRSjCusxdLqa1w3nz bJME5XDezQ06quqd3w6iLxdYvCaUuBdtIuGInJ9hpDsjWaRPkpWi0NuZ81QKia+YuREl fWas2eNzYcYybq4reISe/ECOXyOo0tOK7hXRNg8camipk2EkvaF6t62pnVA5H6FlZhU/ Lezg== 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=NUuKYRwlFUzABWSf5+6iBwx53UilJyfRZ0D3hmTP1sA=; fh=aHjPez/IUu1c+JfA42/Vimf0rQ1mIHnG4H7G0pyWHrM=; b=YaTpZfcRtFmhl1Geua2BwZsAppxa0ExPV/i7lY4awy8XGJi+UruAhL9GU6GCpfp7rK 80zQyxGwiYpreb0U3Z9lzesKLw+7bcTlrpdbbz6hl1+b6lt1okTcM+N+Z663EPnJR5Vt 5JVsMEKWzNqxv5pvg5WDBhX3hxnzBtDEYLPmz91FKZK3ZlJ8l1LwUK6V8c/INo+v92T9 JyatvlkTsGQn4r82Mw2sRNcttVY5ZCoWmfzdJMf0wOGim3GQNLSEcXChZesv2VbrznZ/ X45cFFpqOHIf1aTFYRvcL7G1zmEAyDNe04GrVGoKxA7DPIXkI70eY0Na5joCMyZ6IST2 rIOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=wwjvOn7Z; 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 1-20020a630b01000000b0054ff5fb84dfsi2115148pgl.191.2023.07.06.13.00.59; Thu, 06 Jul 2023 13:01:16 -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=wwjvOn7Z; 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 S231465AbjGFTcm (ORCPT + 99 others); Thu, 6 Jul 2023 15:32:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46150 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229538AbjGFTcl (ORCPT ); Thu, 6 Jul 2023 15:32:41 -0400 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0063D1BD3 for ; Thu, 6 Jul 2023 12:32:39 -0700 (PDT) Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-3fbb07e7155so25295e9.0 for ; Thu, 06 Jul 2023 12:32:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1688671958; x=1691263958; 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=NUuKYRwlFUzABWSf5+6iBwx53UilJyfRZ0D3hmTP1sA=; b=wwjvOn7ZtmjHXgig4UwagIJ2tdWzskYb8d3pwKOsLO3XQC2hMvKfVEbHlAxbQquyfg XTssqv0UZAgHXIlofBZLjxpvJPK0bsuBxSZbBJ2gsTnopXsodSdtrgDiHJNDvUSH17SG fhSEn9sWYW4GtB4xe1P1MDS8PcSbCpTBgPMaBI8b1qZjY5XuLSoFLNVuEdgrzhV32NeM Q3QOE/jbOZoA2oHTEwJzlOczHylD6fav6AkRWAbveqGF7qOGfsyz9aKvn4D9sCc1CTuN fhtkgTIbrHC20wj4UnstqCYgbTu9x2V8YFQ2FyZsZlJ34A3ee9MoHh2iUxpsfzitgXlm qYJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688671958; x=1691263958; 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=NUuKYRwlFUzABWSf5+6iBwx53UilJyfRZ0D3hmTP1sA=; b=GRJEE/+jPupEFGpyPC0QfSkQqWIIXMJul+kSeGsVs3FtqoRcJ+etg8eyE5Yz4KJj5u zvL7uc5/IiwhmceHPeWKO++nXN0U3iNcLR3+PHG6Z7/joWDpWt92Ln0b6MR4I/EPJGJq E9h89Wl6Qc5ByroNd1oG7Bi2JEuNTWHQsS734TU6bhkSbKUyuHO+SbJrxp/zhpvMMVBo sV+U7sHyr7q7U7VvjYnCrh7WZdoNjWvAISF308RDH3INUtZpeG+WhEELkuWvacWF3Y+C +R1EnOeQZCpJVJptfE5yHFH65QAKGsgDVOEGqODzcXPbJFowgADVUNubmhZpzbfEQDuB 8pHQ== X-Gm-Message-State: ABy/qLY6o2G66fRLFdZDwZPUZh2DEPEKqlbiZUyKcrJoiw1/VDWVsJCL yBx9Prv6UYCBvfzji0bCIs9K8vsujpcUw3aLIupudg== X-Received: by 2002:a05:600c:5204:b0:3f1:73b8:b5fe with SMTP id fb4-20020a05600c520400b003f173b8b5femr16756wmb.3.1688671958285; Thu, 06 Jul 2023 12:32:38 -0700 (PDT) MIME-Version: 1.0 References: <20230704050744.1196293-1-yangcong5@huaqin.corp-partner.google.com> In-Reply-To: <20230704050744.1196293-1-yangcong5@huaqin.corp-partner.google.com> From: Doug Anderson Date: Thu, 6 Jul 2023 12:32:26 -0700 Message-ID: Subject: Re: [PATCH] drm/panel: Add avdd/avee delay for Starry-himax83102-j02 and Starry-ili9882t panel To: Cong Yang 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=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL 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 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 VSN > 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 of > 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. -Doug