From patchwork Mon Apr 17 12:39:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pin-yen Lin X-Patchwork-Id: 13213810 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9B258C77B70 for ; Mon, 17 Apr 2023 12:41:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=8ogfB5VDh+O7fszGdfJ9HbWdRNdyIdwcurbq91+K6a0=; b=1PLfeUZtaLQgcM g4UwYOgHAjNNLr+6dtNCJ+vMlNHr2DWvj1H8UxxXC71aA4kKmVNqe0esE/UF3dz9cIiP+Y+vvpJ4s avcAgSr+y13lkSK3s7hEIfve33L828/V2ejOCelEIjOylm8aNotTtQm5426Xl1r4FUFPF6/XPnEpL ZpDCJSXALT22ci6OnF1ZwdhNA8o1XLFRICHwy5V1cjw/0wbf0oNTMIiTL7+6SZsfcCLwOSjN8mgEL YIHcXYN3ET5e6YBKmB85nmqTH9pSX+954u+WHgWSPnLIr7+7oj/Bo0/7MHRZxh2K3RYlXFmV1ljRG XmUuuXhi6TWT+2FOG51g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1poO9S-00GAVH-32; Mon, 17 Apr 2023 12:40:10 +0000 Received: from mail-pl1-x62b.google.com ([2607:f8b0:4864:20::62b]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1poO9Q-00GATx-1y for linux-arm-kernel@lists.infradead.org; Mon, 17 Apr 2023 12:40:09 +0000 Received: by mail-pl1-x62b.google.com with SMTP id o2so25465913plg.4 for ; Mon, 17 Apr 2023 05:40:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1681735205; x=1684327205; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=9wZohT/rXRJ7RxEfPJSlKRsC6xJ8iy8PXX3oqB2TB2A=; b=L5kG2yNcDDrg4gc3IALK+Yb2SB9Q4uN8X3KQqJhb41hm0SKz2nxeH/xReR+dIyPsWd mHdkLsagwuVp+SqIAqUQfvU4w5Rwnc5l5r1JBnfrI0OGf01GCi3zz7YUwah4nUtfDYeZ rHBDB3tgAKpSyZc87VWKGyTaUoF+O3orNj0pI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681735205; x=1684327205; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=9wZohT/rXRJ7RxEfPJSlKRsC6xJ8iy8PXX3oqB2TB2A=; b=Hg+NUufQcy6lSHjNlJSeN21sc+k6aEEUavG565MeP3pTOrbsxKgdxrElgQzrWJgy3W X6QlcO10Lr3s7U74/7CgaMu3XL3iCGDOVJI71IRqv4bZnuAqU8KP0FWDF/2hkDm2y7g1 S+tgYzhqHKbOwiDI+fsTlzwc4EZkVpM3APc7nNF42LCCGf3eNDQ8WIJsyp1Ow0uGSE0h BAsNnZDD2uUh+yindMdfUc0KNbfbWqIxwb1RUNjeA6nqsYZ7gsW8foiXwbsullBmg8T7 qLwq4zHp6tcSz/PzKCoGoFkuamg+j0ocpOzJwiFpNAcQzF9rOA6MdJc9gxgms8uNVPfq ygRA== X-Gm-Message-State: AAQBX9dQMFQsjW9mSrHHFpW0fiE54exfEvM5CFmR+CuaZ5gTT9NTNQQV xi3aC9bWhB6qFSzfb7Hp2UXehA== X-Google-Smtp-Source: AKy350amnx4vQZWZh+xVgxnz5F9g1Ghxm0KeskyBP72RnpTiQW5hibRE3/bNwwAs389ftS5nG+HdUw== X-Received: by 2002:a17:902:e811:b0:1a5:898:37aa with SMTP id u17-20020a170902e81100b001a5089837aamr15105552plg.15.1681735205392; Mon, 17 Apr 2023 05:40:05 -0700 (PDT) Received: from treapking.tpe.corp.google.com ([2401:fa00:1:10:c8e2:dd4:3c45:24e2]) by smtp.gmail.com with ESMTPSA id p11-20020a1709026b8b00b001a6467cfbeasm7595361plk.53.2023.04.17.05.40.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Apr 2023 05:40:04 -0700 (PDT) From: Pin-yen Lin To: Rob Herring , Krzysztof Kozlowski , Matthias Brugger , AngeloGioacchino Del Regno Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Doug Anderson , Pin-yen Lin Subject: [PATCH] arm64: dts: mt8173: Power on panel regulator on boot Date: Mon, 17 Apr 2023 20:39:56 +0800 Message-ID: <20230417123956.926266-1-treapking@chromium.org> X-Mailer: git-send-email 2.40.0.634.g4ca3ef3211-goog MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230417_054008_654659_09B8D08F X-CRM114-Status: GOOD ( 11.01 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add "regulator-boot-on" to "panel_fixed_3v3" to save time on powering the regulator during boot. Also add "off-on-delay-us" to the node to make sure the regulator never violates the panel timing requirements. Signed-off-by: Pin-yen Lin Reviewed-by: Douglas Anderson --- arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi b/arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi index d77f6af19065..03d1ab2ca820 100644 --- a/arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi +++ b/arch/arm64/boot/dts/mediatek/mt8173-elm.dtsi @@ -96,6 +96,8 @@ panel_fixed_3v3: regulator1 { regulator-min-microvolt = <3300000>; regulator-max-microvolt = <3300000>; enable-active-high; + regulator-boot-on; + off-on-delay-us = <500000>; gpio = <&pio 41 GPIO_ACTIVE_HIGH>; pinctrl-names = "default"; pinctrl-0 = <&panel_fixed_pins>;