Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1314011pxu; Thu, 17 Dec 2020 07:15:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJys0rtS448FGH2Ix6qbefnpefZ3Lens9D7BDqu6TGQm4QIDLYOI9DKZCPrGEmL/SsFyRtA0 X-Received: by 2002:a17:906:b0d2:: with SMTP id bk18mr21223821ejb.508.1608218103565; Thu, 17 Dec 2020 07:15:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608218103; cv=none; d=google.com; s=arc-20160816; b=Gm2hzAxdggDNqvP8YBXMRAFCbHuyZ/u09rsEGOYsLB6Ky/VE+ntDOHWD4B+WSwsvuJ Ol8kTqz+OY70LcIpL3GaOH98J8W9mcgAxsX7/4GxghPwLqSwd2UFDVHh5sphAujh4e9N N6OZPyUSQa9BiW7G+2+p/07w/QWrOYAZWALWYCyJD/Xb7DmlZxw/YKV19HwwbYAUMwAS lHSHPir/W1xssWC52C4R5FNepuGNCJhtZ/hM+mBdZ//j/Gbtq0UxRKmiPEdlmBtNhC6a aI126J94ndTwHpbUD94h156q9guDl7V95qQOOQbbZB1/BQfVP73R/0jyFqoVHLrjBqxZ G2RQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from; bh=ycbXa75XGuaEFmxWM19xD21WE1gsro257dH4XVD4tc0=; b=gLMvO6ae+sTt08zUagoZMI8RTRegNoYA0r2lfJWnMe6q31FD1NCHuMGOo6OBlScUIi 9NeMYmZWWNVtOTR8c83VxSrLT8jwv7pLTv1OpyF5p4m+AtV60AjfPqJ3k84O1pk6R3Ho E/6ARzXVu1z5gv6nIMPBMD0nyBHzbzM+6ZPf7N1dX1vJOEmfvJ56LacF6ilNFYop0KBu qw6Ut/LByiej3YAzPXcdQpLM/cYirT6IdiaYZTVDsR52SN7Oh6Gk5qbbFfFPNyerfbMg Q7i9bG28j8kwEtNxv4nf8LTyC0ptMabjcLRZeTaAjAXD6qfBp8/bS9wiEB9fwVmz8zw9 4KhA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l14si5389704edv.597.2020.12.17.07.14.39; Thu, 17 Dec 2020 07:15:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728695AbgLQPOE (ORCPT + 99 others); Thu, 17 Dec 2020 10:14:04 -0500 Received: from honk.sigxcpu.org ([24.134.29.49]:42102 "EHLO honk.sigxcpu.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727303AbgLQPOD (ORCPT ); Thu, 17 Dec 2020 10:14:03 -0500 Received: from localhost (localhost [127.0.0.1]) by honk.sigxcpu.org (Postfix) with ESMTP id 5ABC9FB08; Thu, 17 Dec 2020 16:13:20 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at honk.sigxcpu.org Received: from honk.sigxcpu.org ([127.0.0.1]) by localhost (honk.sigxcpu.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YVIQaQbupJXF; Thu, 17 Dec 2020 16:13:17 +0100 (CET) Received: by bogon.sigxcpu.org (Postfix, from userid 1000) id F1D9C40261; Thu, 17 Dec 2020 16:13:15 +0100 (CET) From: =?UTF-8?q?Guido=20G=C3=BCnther?= To: Rob Herring , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Catalin Marinas , Will Deacon , Martin Kepplinger , Angus Ainslie , Krzysztof Kozlowski , Bjorn Andersson , Li Yang , Geert Uytterhoeven , Vinod Koul , Anson Huang , Michael Walle , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, phone-devel@vger.kernel.org Subject: [PATCH v2 2/4] arm64: dts: imx8mq-librem5-devkit: Tweak pmic regulators Date: Thu, 17 Dec 2020 16:13:13 +0100 Message-Id: X-Mailer: git-send-email 2.29.2 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org BUCK3 needs a regulator-enable-ramp-delay since otherwise the board freezes on etnaviv probe. With this pgc_gpu suspends and resumes as expected. This must have been always broken since gpcv2 support was enabled. We also enable all the regulators needed for Deep Sleep Mode (DSM) as always-on: - VDD_SOC supplied by BUCK1 - VDDA_1P8 supplied by BUCK7 - VDDA_0P9 supplied by LDO4 - VDDA_DRAM supplied by LDO3 - NVCC_DRAM supplied by BUCK8 - VDD_DRAM supplied by BUCK5 Finally LDO5 and LDO6 provide VDD_PHY_1V8 and VDD_PHY_0V9 used by the SOCs MIPI, HDMI and USB IP cores. While we would in theory be able to turn these off (and I've tested that or LDO6 and mipi with USB disabled) it is of little practical use atm since USB doesn't runtime suspend so let's revisit this at a later point. Signed-off-by: Guido Günther --- .../boot/dts/freescale/imx8mq-librem5-devkit.dts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts b/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts index af139b283daf..f35d6897fbf7 100644 --- a/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts +++ b/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts @@ -298,6 +298,7 @@ buck1_reg: BUCK1 { regulator-min-microvolt = <700000>; regulator-max-microvolt = <1300000>; regulator-boot-on; + regulator-always-on; regulator-ramp-delay = <1250>; rohm,dvs-run-voltage = <900000>; rohm,dvs-idle-voltage = <850000>; @@ -319,6 +320,7 @@ buck3_reg: BUCK3 { regulator-min-microvolt = <700000>; regulator-max-microvolt = <1300000>; regulator-boot-on; + regulator-enable-ramp-delay = <200>; rohm,dvs-run-voltage = <900000>; }; @@ -334,6 +336,7 @@ buck5_reg: BUCK5 { regulator-min-microvolt = <700000>; regulator-max-microvolt = <1350000>; regulator-boot-on; + regulator-always-on; }; buck6_reg: BUCK6 { @@ -341,6 +344,7 @@ buck6_reg: BUCK6 { regulator-min-microvolt = <3000000>; regulator-max-microvolt = <3300000>; regulator-boot-on; + regulator-always-on; }; buck7_reg: BUCK7 { @@ -348,6 +352,7 @@ buck7_reg: BUCK7 { regulator-min-microvolt = <1605000>; regulator-max-microvolt = <1995000>; regulator-boot-on; + regulator-always-on; }; buck8_reg: BUCK8 { @@ -355,6 +360,7 @@ buck8_reg: BUCK8 { regulator-min-microvolt = <800000>; regulator-max-microvolt = <1400000>; regulator-boot-on; + regulator-always-on; }; ldo1_reg: LDO1 { @@ -380,6 +386,7 @@ ldo3_reg: LDO3 { regulator-min-microvolt = <1800000>; regulator-max-microvolt = <3300000>; regulator-boot-on; + regulator-always-on; }; ldo4_reg: LDO4 { @@ -387,12 +394,14 @@ ldo4_reg: LDO4 { regulator-min-microvolt = <900000>; regulator-max-microvolt = <1800000>; regulator-boot-on; + regulator-always-on; }; ldo5_reg: LDO5 { regulator-name = "ldo5"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <3300000>; + regulator-always-on; }; ldo6_reg: LDO6 { @@ -400,6 +409,7 @@ ldo6_reg: LDO6 { regulator-min-microvolt = <900000>; regulator-max-microvolt = <1800000>; regulator-boot-on; + regulator-always-on; }; ldo7_reg: LDO7 { @@ -407,6 +417,7 @@ ldo7_reg: LDO7 { regulator-min-microvolt = <1800000>; regulator-max-microvolt = <3300000>; regulator-boot-on; + regulator-always-on; }; }; }; -- 2.29.2