From patchwork Tue Apr 2 19:25:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 10882213 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B5D231575 for ; Tue, 2 Apr 2019 19:26:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9A976207A7 for ; Tue, 2 Apr 2019 19:26:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8CD2728843; Tue, 2 Apr 2019 19:26:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 400DC2872E for ; Tue, 2 Apr 2019 19:26:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=HqrfpKVKFYH6+SIVagYfPUJG8gMXVzimHz+i/N9U548=; b=RArsUUkyKB7W3MaX0nW+wmZaWu 7v5l/DYCuqzx+zKX3Rb6Nyi33hEoSf96h7OcWi3JP+YMHSon3A5C386EwbGuhBYJ4IcOZvm9TxeC4 2zzFbwlo9dlmtG5yMOZAlM5bpyupGA/4iUOQTLtSlIFIXN6lY7IYnhrV88qUjgE45o3prwHVyl0KH q4ktDdzhGKEEuuXW/hnkffgNb0wRXdIgzp29GV1A5IorkgnOGZGlvbUz171wlrV6lw9/HVHpXG8Hl cN7DRhWMhH9Rb4ObWiOouAnWOwM4mpwyGGNkWrttoaDEBK44Jz2nYp0rtF6Mw55F2dZ9F/29k5mXA xBfQDXAw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hBP3E-00077a-Pm; Tue, 02 Apr 2019 19:26:28 +0000 Received: from mail-io1-xd42.google.com ([2607:f8b0:4864:20::d42]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hBP34-0006sg-SW for linux-arm-kernel@lists.infradead.org; Tue, 02 Apr 2019 19:26:25 +0000 Received: by mail-io1-xd42.google.com with SMTP id x3so11931553iol.10 for ; Tue, 02 Apr 2019 12:26:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=B46Cw1qbzXMWjWSpcrXmhPTWBXWbXfsMBCb1Y6DHbr0=; b=upvPhQDm5sP/kjtLd5stvhgLBMwDInWdl7C3oDjbc+Djy7w+ZapNIbwJ3dGDJoNPeW NhjqEdDibNkxzdIB+nZ3KW9vtNOdgpbYspo/mc2Kn9J0gTOAR4W4TFSZmk5TzW4FVaSB 04boZBIl+GPSGeP/BZpG8Z09a//vqxpzpC8rtBhg1PSSm7aftRnTY9/s1e0fUxppA7V7 iPEkeBUkhlr+NquKkPpf53+tYqlZ207Ke5tt1QPut+MIGd/SFdAJWSuGi7j2pnRMI8WB ZPRDhgK4lrGGm1L5XrGfsayDiGMR/o5YfzKIeAS8zZ1Jv5dKKYPwxO4xOU+IDCRf+kLP dr1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=B46Cw1qbzXMWjWSpcrXmhPTWBXWbXfsMBCb1Y6DHbr0=; b=HcIiGMcnmCgJxafEgcxZlzoL5GjBU+NbfH7G2G6TciEcbF/tgjawlUR+/gyNL7lcW/ PS9vzqiDFiShIZck3gtpVNkAK+om8NCC5KcCfb1OF/nFL0A9vob+/ROn3sgKP/57lL6W h1mxqK0bPzyZw8M4Hd63IJBQ8Y6EDs6oAdT8O4DPIkAZQvAtfkvg7P4LTrQoK1/4z7ps 9MIdioUAjQBiH3G9RgyjYtE/cj8u0V/Pb1aejuwsd5ZnFh4w4HXBwZxqjpqvBfmRXMcF +UKbA+vM5SlY+KAw2k+1gCAk9sTf2GkXoBJDIfx3/jPQLB7g8wp5Ivbzs8ExQfGqnCpS VibA== X-Gm-Message-State: APjAAAWRCyOmUVUfdT0il8jvrKUPFT0VHKhv0ills61H+5KaUFgy6w5U Cw8s5zpA/1LsiE6jv0D6IQC1EY2+cn8= X-Google-Smtp-Source: APXvYqyZfLZceO4asegvsNkno1BwSIVOTnldfR0reSklPB0sO3eb98HGifXRugnn19HXzmunN0tzgA== X-Received: by 2002:a6b:f211:: with SMTP id q17mr54110309ioh.242.1554233177551; Tue, 02 Apr 2019 12:26:17 -0700 (PDT) Received: from localhost.localdomain (c-73-37-219-234.hsd1.mn.comcast.net. [73.37.219.234]) by smtp.gmail.com with ESMTPSA id 139sm7328400itk.28.2019.04.02.12.26.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 02 Apr 2019 12:26:16 -0700 (PDT) From: Adam Ford To: linux-arm-kernel@lists.infradead.org Subject: [PATCH V2] ARM: dts: imx6q-logicpd: Shutdown LCD regulator during suspend Date: Tue, 2 Apr 2019 14:25:46 -0500 Message-Id: <20190402192547.4538-2-aford173@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190402192547.4538-1-aford173@gmail.com> References: <20190402192547.4538-1-aford173@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190402_122618_981686_ABF73C13 X-CRM114-Status: GOOD ( 11.91 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Fabio Estevam , adam.ford@logicpd.com, Sascha Hauer , linux-kernel@vger.kernel.org, Rob Herring , NXP Linux Team , Pengutronix Kernel Team , Shawn Guo , Adam Ford MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The LCD power sequencer is very finicky. The backlight cannot be driven until after the sequencer is done. Until now, the regulators were marked with 'regulator-always-on' to make sure it came up before the backlight. This patch allows the LCD regulators to power down and prevent the backlight from being used again until the sequencer is ready. This reduces standby power consumption by ~100mW. Signed-off-by: Adam Ford --- V2: Remove 'fixes' reference per Shawn's request diff --git a/arch/arm/boot/dts/imx6q-logicpd.dts b/arch/arm/boot/dts/imx6q-logicpd.dts index 45eb0b7f75f8..d96ae54be338 100644 --- a/arch/arm/boot/dts/imx6q-logicpd.dts +++ b/arch/arm/boot/dts/imx6q-logicpd.dts @@ -21,6 +21,8 @@ panel-lvds0 { compatible = "okaya,rs800480t-7x0gp"; + power-supply = <®_lcd_reset>; + backlight = <&backlight>; port { panel_in_lvds0: endpoint { @@ -38,7 +40,6 @@ regulator-max-microvolt = <3300000>; gpio = <&gpio4 17 GPIO_ACTIVE_HIGH>; enable-active-high; - regulator-always-on; vin-supply = <®_3v3>; startup-delay-us = <500000>; }; @@ -52,7 +53,6 @@ regulator-max-microvolt = <3300000>; gpio = <&gpio5 2 GPIO_ACTIVE_HIGH>; enable-active-high; - regulator-always-on; vin-supply = <®_lcd>; }; };