Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp4693573pxb; Tue, 28 Sep 2021 01:44:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxHr1uj2WtnRyhwB16wIawQ6MPr5hN44bGD4zy2xVhDTSI7QKp6F/sL3u/lvhMsRNKB8NY9 X-Received: by 2002:a17:90a:5b0d:: with SMTP id o13mr4164432pji.117.1632818663978; Tue, 28 Sep 2021 01:44:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632818663; cv=none; d=google.com; s=arc-20160816; b=XvF53nExrXKRdag64InopKjiELS7PkVT3SljnRYE9B1byhNkJ/tjo42dKOrDYI7DY3 oRknTIrjCDy/p4spcwMUEdLxQ3XsPM4WDIlDcG27vkoS32O19GjVh3bCqtUdUEXwTDKw YpX03FoafJ0lcj89FvBwVwncLFAZjIOD1qLBB7btovewm4s5w2wwwTVDD1TV7fuOcn4I r4m15sXr4ELQr569ucGWqWEnHLubVFMJGRG4RpGQo5+9l7MNYsvo9Lm6Y+8Qj/SAbc9Q z0ltsm1h+4edRZT5YivPh78PID62wUlr8gCF8/t7pP8FlfFZGOjEGdT6q7mqQok6+87G 7i+g== 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:cc:to:from :ironport-sdr:dkim-signature; bh=RrYLEpBRIsGYyOsx9zG4QLMhNbqGGYoG+G3I9aq+VfY=; b=p1jC53gQ25r1ku1X2gb1wpGt3o22DtR4l83Oaad3o+Jfqe9dlQpYnF+7Zc6TgLDA2Z 5ewkSPtu7/TFiurXN+KfEOOfTPWCpwD/zymTGNtEMrVvKT1M4Bj23Xc3vpJiwPJlaOEw 8i6L/15BmZZNrTCTTMUL62j7UwP6rloup+i8+gwHKG1LeT1A7bAg8bG3pl0JUy0otuLL VrlVv5VLXgBEpNFEoBpw85UxeYlrJg4KT2SQwmV8SyYuCYvqiM22bCjm16f9/oOtnQEx zxLruxm3Xv9+v/+OW5pi/RGaNxeGRI7U7kJ8xAZ9iWgx5hyjHlOt0uroWXQM2xqIqCXH rG1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@microchip.com header.s=mchp header.b="UhUAsFk/"; 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ob15si2810966pjb.1.2021.09.28.01.44.11; Tue, 28 Sep 2021 01:44:23 -0700 (PDT) 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; dkim=fail header.i=@microchip.com header.s=mchp header.b="UhUAsFk/"; 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; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=microchip.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239642AbhI1IpB (ORCPT + 99 others); Tue, 28 Sep 2021 04:45:01 -0400 Received: from esa.microchip.iphmx.com ([68.232.154.123]:59247 "EHLO esa.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239639AbhI1Iow (ORCPT ); Tue, 28 Sep 2021 04:44:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1632818593; x=1664354593; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=YvsqvIz8zOr3ivUKTHHuuOf1oT832h6IMldyet80HTk=; b=UhUAsFk/7ApYgISq6OzedkzBGEYU+JexIwLCgvFhov+oCnc2r9+/ugHJ v17nLUdZtaLKBGuLXtXG1ww+gZI+i0f6bh9bUgfXTKfN6KR3/+JCEvY8G mzu1YZsLgpq4/oteLHXQcqFdOKqlXP44KYk1yyweHWXZ1TnoXx6Fpb2ag uInn+6NAnozqvMcdmVAKweD95pJAfal9zuERB08ddCphUeP7VlEtla21h KY1QLq61XV8Iy6ct2xaVzf2us9JOsDxSzdpf79RK6rDuHQTFJp0bP46RC cMaOv9tFXYTqQBN5bZFIObM/pjZx0DyNOFWRo7DQI0y61XAcduNZRIvSy w==; IronPort-SDR: i36tkYAydb6Qyx0pWKDoUlWxa087eANuG50jHtCZzZWiXdh84gTInLQTCn9YqRMv779t9unDEo +OYCIU8kY/Rl6bt7+a6xJ9DBDKJR1JtfFSP9/DY+1Tq03vD2hQKnFRkWbsJmR4mn0O7UdVS8Cr /fZIW16BHR+SZ30qyelZPP0Nsw4gFNzrVIdz6cvhKuAz4Y1s17pUzI5im25L2CPOwN5f84KT5j J5V2wr916v1DN/ITtR85fpRd5/yZYT3EG/4PH5aOpdLrlUQar2isNaUHs0j83qs/J5zynyNJT+ aRUlEOF2xrOJ8iUV6E4rKy+K X-IronPort-AV: E=Sophos;i="5.85,329,1624345200"; d="scan'208";a="70895818" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa6.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 28 Sep 2021 01:43:12 -0700 Received: from chn-vm-ex01.mchp-main.com (10.10.85.143) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Tue, 28 Sep 2021 01:43:11 -0700 Received: from rob-dk-mpu01.microchip.com (10.10.115.15) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Tue, 28 Sep 2021 01:43:09 -0700 From: Claudiu Beznea To: , , , , CC: , , , Claudiu Beznea Subject: [PATCH 1/3] ARM: dts: at91: sama7g5ek: add suspend voltage for ddr3l rail Date: Tue, 28 Sep 2021 11:42:55 +0300 Message-ID: <20210928084257.2188017-2-claudiu.beznea@microchip.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20210928084257.2188017-1-claudiu.beznea@microchip.com> References: <20210928084257.2188017-1-claudiu.beznea@microchip.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SAMA7G5-EK board has DDR3L type of memory soldered. This needs 1.35V. The 1.35V for DDR3L rail at run-time is selected by the proper configuration on SELV2 pin (for 1.35V it needs to be in high-z state). When suspended the MCP16502 PMIC soldered on SAMA7G5-EK will use different sets of configuration registers to provide proper voltages on its rail. Run-time configuration registers could be configured differently than suspend configuration register for MCP16502 (VSEL2 affects only run-time configuration). In suspend states the DDR3L memory soldered on SAMA7G5-EK switches to self-refresh. Even on self-refresh it needs to be powered by a 1.35V rail. Thus, make sure the PMIC is configured properly when system is suspended. Fixes: 7540629e2fc7 (ARM: dts: at91: add sama7g5 SoC DT and sama7g5-ek") Signed-off-by: Claudiu Beznea --- arch/arm/boot/dts/at91-sama7g5ek.dts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/at91-sama7g5ek.dts b/arch/arm/boot/dts/at91-sama7g5ek.dts index 4e6bcb7fdfd4..be905eb1da31 100644 --- a/arch/arm/boot/dts/at91-sama7g5ek.dts +++ b/arch/arm/boot/dts/at91-sama7g5ek.dts @@ -206,11 +206,13 @@ vddioddr: VDD_DDR { regulator-state-standby { regulator-on-in-suspend; + regulator-suspend-microvolt = <1350000>; regulator-mode = <4>; }; regulator-state-mem { regulator-on-in-suspend; + regulator-suspend-microvolt = <1350000>; regulator-mode = <4>; }; }; -- 2.25.1