From patchwork Wed Mar 6 14:03:59 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Ford X-Patchwork-Id: 10841157 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 C0EB5922 for ; Wed, 6 Mar 2019 14:04:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A81152BC0D for ; Wed, 6 Mar 2019 14:04:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9B4032DB49; Wed, 6 Mar 2019 14:04:33 +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 4EBF82BC0D for ; Wed, 6 Mar 2019 14:04:33 +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: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:In-Reply-To: References:List-Owner; bh=RSWdCLIwb0EwkKvlQX6IDTDfgMHirshodgd4/k4A5Eg=; b=OFm MqsHfV4fS8qYuvHdux53cSjy4hsA9rGDCijvOiSYXR546i3t6+9WCMQIlSNPFi5OyGYEpJhqp3nWp /Wz7bBzju3vGCPHFbYggHorqFdGyTQpaIJRufY4g9gWX848rG3/xbawql7G5CjJ9RxgJY91sjIMlZ DjbDAWynF+MbOwUgyT55TXpu3xe3qITYnqBWEW1kP6xojEKoldadLDBY6szUaF1DGShmIediBFdNe UITadgXNSEbJ9Q1dtU/EyBSJUW+wIdgXO8hMwkaKw+smWy7JqvbFyaoQEL4Ti/GVRl8z8Tm3jpw+W 6f7fLFQlsgGZv/04cQM0q2KNWjpTXqg==; 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 1h1X9n-0004q9-Hk; Wed, 06 Mar 2019 14:04:27 +0000 Received: from mail-yw1-xc44.google.com ([2607:f8b0:4864:20::c44]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h1X9k-0004pN-CZ for linux-arm-kernel@lists.infradead.org; Wed, 06 Mar 2019 14:04:25 +0000 Received: by mail-yw1-xc44.google.com with SMTP id i204so10017714ywb.0 for ; Wed, 06 Mar 2019 06:04:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=0h4/ZRuSltaePP2jL4/jUGCwjsf/sfoTJ3RQ5Ua+2lg=; b=JlqnX8lVBGsFQPMnsLYFXmTZExWN77To+PpE1KY3AzWbo92r+u3Mz/B/T2bfBfyzgC nBUI9uyoHuq9Ga8h/ryD5znWHSA+zO8UvnlVmolkpE0CPhH7/fMcU1dInPFP5WI1Soz4 us3Q0lCiMyMt3l1lPN/u8bhhTnVej935/u7heWjAiVEpcjtdBYXAVh+gbyHlJmumVCPQ VYvWiZ36a4r5jTYrMyeSpiro/n8thaCiFZrykTvv4/AkBxt3kg0UyGUD8GrwrNrJoVF4 Roz8Vw6q5WwLTvLyGxPllNipxeb98KD9vJzkDGlwBj3drY2Alz7nMYxrwcXoOfHBbFXI JvNA== 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; bh=0h4/ZRuSltaePP2jL4/jUGCwjsf/sfoTJ3RQ5Ua+2lg=; b=j698U9YjHK8Fp/aYPUb6TfUdhSEL7aniI5klk7GGuq+lf3j73KBK1nyrL2z1sLl6LM G0vsCjLxMftCGAEgKVlI9DW9Cx/cx5ILP3sNDro4y1Ux7paMmf05gPOtIkEx5L2ThXrZ a0Ek07S6Df/trUQe1mRYFq5JQb44Q9q8L0xBSwkEn8X3JVUSUmblJNuFUm9UnPxcRtKw 0PMSPESvSt6X6JxFgJ3pBByI89Q+dpDZWtgJovX/akFVD3KSGOoC6dqTiBF/Woai8wI/ ciQE9sJC6MD9ZPcXhvXX3evIKsMqVAOrkqR9zzKbNKla/Mf9NKafShfy36CYjcmdWZDB KEKQ== X-Gm-Message-State: APjAAAXH6P0MBHWnMh9GOFwktrs7+ijLlHa240PCjiCF2jZLZ5bj7yJ9 KKFzXHvCVj2gRCPpjs140ObdME/AA5I= X-Google-Smtp-Source: APXvYqyRkEwzhPkludsy1G7cccKP4Q+kG3KEvGPTHWCFfYOq8xcrdhPSplC5kjzhCkr3SvnWHbbsbw== X-Received: by 2002:a81:9bd0:: with SMTP id s199mr5242502ywg.446.1551881062349; Wed, 06 Mar 2019 06:04:22 -0800 (PST) Received: from localhost.localdomain (c-73-37-219-234.hsd1.mn.comcast.net. [73.37.219.234]) by smtp.gmail.com with ESMTPSA id r205sm859112ywb.70.2019.03.06.06.04.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Mar 2019 06:04:21 -0800 (PST) From: Adam Ford To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 1/3] ARM: dts: imx6q-logicpd: Shutdown LCD regulator during suspend Date: Wed, 6 Mar 2019 08:03:59 -0600 Message-Id: <20190306140402.17122-1-aford173@gmail.com> X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190306_060424_449341_A8678705 X-CRM114-Status: GOOD ( 10.72 ) 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 , Sascha Hauer , linux-kernel@vger.kernel.org, Rob Herring , NXP Linux Team , Pengutronix Kernel Team , Shawn Guo 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. Fixes: 1c207f911fe9 ("ARM: dts: imx: Add support for Logic PD i.MX6QD EVM") Signed-off-by: Adam Ford 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>; }; };