From patchwork Wed Nov 13 13:40:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoph Fritz X-Patchwork-Id: 11241917 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 017E415AB for ; Wed, 13 Nov 2019 13:41:25 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id C14C722459 for ; Wed, 13 Nov 2019 13:41:24 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="MR6g3Ou3"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=googlemail.com header.i=@googlemail.com header.b="iakvQVh7" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C14C722459 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=googlemail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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=zb52o/rXl4warxoEmAgfkV7Ow/JiNn64Gq1iAa2IxQE=; b=MR6g3Ou3LcHCkFfc9si9Xtvycx NG4K79GJUouuK77fyblT+Kab0WFuPdnKnHIRzIcpS8BroxhK9RTGj0amEx/YVOyirCxzz1R6LL5H/ juZtavj0yIDGmrodnAYGFqdNwm4ZPwkkYESpStTxQeCR3L5O7TRB1E84JU0Vyac+sADZ0416DfyPR iyl8iMcSssrg/IXMgFjS1yYRYEm1VPvoO4KstrXwV+YGHvw0tPY4I8R8hBSFpMFk/z4y48EsyLBgy 7ACzGHklxHi50z7/wBWIdQOA873b5mlHhe+fIlQbhHUC1Xs1lutvXzWsG9RBoG9FungmZj+Ly8IEk Y4k6uwsw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iUste-0001xT-M9; Wed, 13 Nov 2019 13:41:22 +0000 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iUstN-0001kD-5V for linux-arm-kernel@lists.infradead.org; Wed, 13 Nov 2019 13:41:06 +0000 Received: by mail-wr1-x441.google.com with SMTP id r10so2428409wrx.3 for ; Wed, 13 Nov 2019 05:41:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=g0Reo92qEknJT+JrEapTAi5GfksVulSHB7AHlQhZpQI=; b=iakvQVh7cNx5bXD4bxwf7dkBIfVjeJlyqfsMagf2SWHTpbsocpW47MTVX/0M9nNseq M38FiXfEaEqR+CvoF6D3U38lBSRI/E3Taov1au7U9pwu6a6p6mNWy3huwbRdGB7JywSQ 8LTsIyk+zzgs33ptiNzzExcftKdq/nDU0L6prx2DhqQHJlcTOgJ7Fmjf7sjnbyItPmBr V3tWr6bNqfXgT/bjY3Zd+UZpRZ0gL+Sw+Qdmg7M0scahrcgkodqX+CcTGn1zR/TWLn6V o8qdr+Fr9eGf3P7IgfkNNGLHtUWK0E1RAYfPGA5xOA/7+K4ZFiJCAcHewHrwiNEovxFj QhTw== 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=g0Reo92qEknJT+JrEapTAi5GfksVulSHB7AHlQhZpQI=; b=nmaYXP3Oll86YM6z484yZR+LCbs57N5IIOp6OsMAT9YR86SJZIGpr9xEpiw6Zhb1bz avcorcDVLECdLMOAutqN5ccnovlAJ5AD7At6f23/HdJYckHNwKT0EROLRqZ4RJ1flFfd 7TZAC3x2LTh2pJrI+TTsibdkl+c+3LH69euUZX+UYcUlNMEXVHDPL/vsjq3tiLwX5rUU Tvu3FXnMQ+L1poVzNOYin09YDqyL7nJ1RXPBVw0UbDrqqLTfRiksKnFB6S/vyZoPENJA g2T3DYb/eG5LpPt5awa0HwMAqS9rmnDRYQaCHD7/ClUkL1npf0tYKMNHJOimwv1Ds+yT uwfw== X-Gm-Message-State: APjAAAWY69PBlIUm1a2jcsCwdb3RyKyMUTGsY1IBoMJ9d9sP1Erjh+Mi oSxtMo3X+yam+OVKXyHKVa4= X-Google-Smtp-Source: APXvYqxtB/tHkCWuTXTACCflWIufqfG0V13c5vDCKObyaNE35kyrkhilP05Y3h7O5l41adByy9fcvQ== X-Received: by 2002:adf:e94e:: with SMTP id m14mr3002351wrn.233.1573652463766; Wed, 13 Nov 2019 05:41:03 -0800 (PST) Received: from mars.home (HSI-KBW-109-192-080-035.hsi6.kabel-badenwuerttemberg.de. [109.192.80.35]) by smtp.googlemail.com with ESMTPSA id r15sm4195831wrc.5.2019.11.13.05.41.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 13 Nov 2019 05:41:03 -0800 (PST) From: Christoph Fritz To: Adam Thomson , Mark Brown , Fabio Estevam , Rob Herring , Mark Rutland , Shawn Guo Subject: [PATCH v2 1/4] regulator: da9062: refactor buck modes into header Date: Wed, 13 Nov 2019 14:40:13 +0100 Message-Id: <1573652416-9848-2-git-send-email-chf.fritz@googlemail.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1573652416-9848-1-git-send-email-chf.fritz@googlemail.com> References: <1573652416-9848-1-git-send-email-chf.fritz@googlemail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191113_054105_206982_5635D3C4 X-CRM114-Status: GOOD ( 18.42 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:441 listed in] [list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (chf.fritz[at]googlemail.com) -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Lee Jones , Liam Girdwood , linux-arm-kernel@lists.infradead.org, Support Opensource MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org This patch refactors buck modes into a header file so that device trees can make use of these mode constants. The new header filename uses da9063 because DA9063 was the earlier chip and its driver code will want updating at some point in a similar manner. Signed-off-by: Christoph Fritz Reviewed-by: Adam Thomson --- drivers/regulator/da9062-regulator.c | 28 ++++++++-------------- .../dt-bindings/regulator/dlg,da9063-regulator.h | 16 +++++++++++++ 2 files changed, 26 insertions(+), 18 deletions(-) create mode 100644 include/dt-bindings/regulator/dlg,da9063-regulator.h diff --git a/drivers/regulator/da9062-regulator.c b/drivers/regulator/da9062-regulator.c index 4b24518..601002e 100644 --- a/drivers/regulator/da9062-regulator.c +++ b/drivers/regulator/da9062-regulator.c @@ -16,6 +16,7 @@ #include #include #include +#include /* Regulator IDs */ enum { @@ -75,14 +76,6 @@ struct da9062_regulators { struct da9062_regulator regulator[0]; }; -/* BUCK modes */ -enum { - BUCK_MODE_MANUAL, /* 0 */ - BUCK_MODE_SLEEP, /* 1 */ - BUCK_MODE_SYNC, /* 2 */ - BUCK_MODE_AUTO /* 3 */ -}; - /* Regulator operations */ /* Current limits array (in uA) @@ -112,13 +105,13 @@ static int da9062_buck_set_mode(struct regulator_dev *rdev, unsigned mode) switch (mode) { case REGULATOR_MODE_FAST: - val = BUCK_MODE_SYNC; + val = DA9063_BUCK_MODE_SYNC; break; case REGULATOR_MODE_NORMAL: - val = BUCK_MODE_AUTO; + val = DA9063_BUCK_MODE_AUTO; break; case REGULATOR_MODE_STANDBY: - val = BUCK_MODE_SLEEP; + val = DA9063_BUCK_MODE_SLEEP; break; default: return -EINVAL; @@ -145,14 +138,13 @@ static unsigned da9062_buck_get_mode(struct regulator_dev *rdev) switch (val) { default: - case BUCK_MODE_MANUAL: /* Sleep flag bit decides the mode */ break; - case BUCK_MODE_SLEEP: + case DA9063_BUCK_MODE_SLEEP: return REGULATOR_MODE_STANDBY; - case BUCK_MODE_SYNC: + case DA9063_BUCK_MODE_SYNC: return REGULATOR_MODE_FAST; - case BUCK_MODE_AUTO: + case DA9063_BUCK_MODE_AUTO: return REGULATOR_MODE_NORMAL; } @@ -279,13 +271,13 @@ static int da9062_buck_set_suspend_mode(struct regulator_dev *rdev, switch (mode) { case REGULATOR_MODE_FAST: - val = BUCK_MODE_SYNC; + val = DA9063_BUCK_MODE_SYNC; break; case REGULATOR_MODE_NORMAL: - val = BUCK_MODE_AUTO; + val = DA9063_BUCK_MODE_AUTO; break; case REGULATOR_MODE_STANDBY: - val = BUCK_MODE_SLEEP; + val = DA9063_BUCK_MODE_SLEEP; break; default: return -EINVAL; diff --git a/include/dt-bindings/regulator/dlg,da9063-regulator.h b/include/dt-bindings/regulator/dlg,da9063-regulator.h new file mode 100644 index 00000000..1de710d --- /dev/null +++ b/include/dt-bindings/regulator/dlg,da9063-regulator.h @@ -0,0 +1,16 @@ +/* SPDX-License-Identifier: GPL-2.0 */ + +#ifndef _DT_BINDINGS_REGULATOR_DLG_DA9063_H +#define _DT_BINDINGS_REGULATOR_DLG_DA9063_H + +/* + * These buck mode constants may be used to specify values in device tree + * properties (e.g. regulator-initial-mode). + * A description of the following modes is in the manufacturers datasheet. + */ + +#define DA9063_BUCK_MODE_SLEEP 1 +#define DA9063_BUCK_MODE_SYNC 2 +#define DA9063_BUCK_MODE_AUTO 3 + +#endif From patchwork Wed Nov 13 13:40:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoph Fritz X-Patchwork-Id: 11241919 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E5AC31390 for ; Wed, 13 Nov 2019 13:41:43 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id C00C722459 for ; Wed, 13 Nov 2019 13:41:43 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="qQly1CQX"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=googlemail.com header.i=@googlemail.com header.b="JSZUvjnv" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C00C722459 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=googlemail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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=ovGQdTSWBjSdH47lo+q3sSFyD512Wn8oC9y+oZtIwQM=; b=qQly1CQX5YU9IjBKoYw3Ham7Wa h8sCNbyIJ7oQTeUOjRtA7ztt1T72+cMUhGAXXlrv2wEUDmfkKY+j15s+7nhIQyKy1UTXRDM73iLYb sbUq04LAuzUz9YEWg79PSTnzRunfIjF7iBAcb0dMHKL8nQfJZdWdhdruXoWY4/7ac0BM6lvPRRR3E f0Lv9v70pFizU9JJsErnpUNTlFyVQuOXFSPSeuvZPEteu1eEjlR7PEQncIMuspCKEQ6100jKvE10/ Bs4A3tC3W8GILry16sNrhkOj+hOxqXdnBjgXtJodJlE5AMD7nXdpaduY7jV/kA3k1fNxNu8Hg/1h2 xy5FsAmQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iUsts-00029x-MZ; Wed, 13 Nov 2019 13:41:36 +0000 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iUstO-0001kf-6P for linux-arm-kernel@lists.infradead.org; Wed, 13 Nov 2019 13:41:07 +0000 Received: by mail-wr1-x443.google.com with SMTP id i10so2405902wrs.7 for ; Wed, 13 Nov 2019 05:41:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=z396xoABmCvtIfoOGcHfju2S8iT7p9lme+ZFMQUZfmU=; b=JSZUvjnvfTYW2BqyR8frEbpl8m3LYdSvC4nMhWsl7+PbJ0sJe3ZjR+JgXsKsXxevcj TYAVmlGZcTuzkd6Fdd76ZbZY7OKLMcJ6xLK1D3iZiWpjylOBKmbhxlF8c4OvB3CkFzVY xqKJpJ8EfSZsVYaA0Mb2LC4mM8lIJ4r3UL208Ee1yiwyYKVUrw/qJD/DMVWgi02zAuel gFxazBCiVPbeDcCQ3B7v7VxlAEWqiGLu7ZiQbbXt22AdGporJXObdHgtJnq95pj6Fk6l 3jo+K0+RVrQugX9SWAQBV9/MsSSBACl+CFs/OeM9vqDFsUr7RoyYPsjyVH4uC17TMtlL nS7w== 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=z396xoABmCvtIfoOGcHfju2S8iT7p9lme+ZFMQUZfmU=; b=M2FfilXjnlCNFe/VuV5aMtpwevF4B2Xe2UWivRbWgPGh51cPM/N/YDWDDsOZvWpyRZ 09QaAOTISEZxDSbl/NT8tciy7hls8fGMbvVydkT1wAZCPHp1yKxxtjpjXkqqymLVA4pt CVgKLWr6bz/h38C1mgYBIPipfPNnSyZmQ4porHZEkANgE2cH1eyxIO5LslXMKtT2slyB 78pg+Dsi0wvwCMaQU2QieYOJKtgmaOLQ1ZzKA2Lf+t3vacqUqa7WeGB1NoS1q/76q4P0 OrukY/DcSecwphJAv6h1gWIWFnkW1nSl4WpfW3eKVE1a4haOcg9KL9ydsVwO0S68FpTr FwuQ== X-Gm-Message-State: APjAAAV1u9pC+bqea4ZV+mCesFXx52e4Sr9jPhNWe3r2w+pbzVqTD5Dd 0tEmbCPfkD6yAAEubaGgDcA= X-Google-Smtp-Source: APXvYqyNgmOe/bUP9uPtIIzi51yTDGJBVprgB7WW9ikZ+2AW1qATLCTa/Ucd4U5GSp13VyxbmcJVYA== X-Received: by 2002:a5d:4f06:: with SMTP id c6mr2947765wru.211.1573652464794; Wed, 13 Nov 2019 05:41:04 -0800 (PST) Received: from mars.home (HSI-KBW-109-192-080-035.hsi6.kabel-badenwuerttemberg.de. [109.192.80.35]) by smtp.googlemail.com with ESMTPSA id r15sm4195831wrc.5.2019.11.13.05.41.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 13 Nov 2019 05:41:04 -0800 (PST) From: Christoph Fritz To: Adam Thomson , Mark Brown , Fabio Estevam , Rob Herring , Mark Rutland , Shawn Guo Subject: [PATCH v2 2/4] regulator: da9062: add of_map_mode support for bucks Date: Wed, 13 Nov 2019 14:40:14 +0100 Message-Id: <1573652416-9848-3-git-send-email-chf.fritz@googlemail.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1573652416-9848-1-git-send-email-chf.fritz@googlemail.com> References: <1573652416-9848-1-git-send-email-chf.fritz@googlemail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191113_054106_231825_8A2AC1E7 X-CRM114-Status: GOOD ( 12.90 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:443 listed in] [list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (chf.fritz[at]googlemail.com) -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Support Opensource , Stefan Riedmueller , Liam Girdwood , Christian Hemp , Lee Jones , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org This patch adds of_map_mode support for bucks to set regulator modes from within regulator framework. Signed-off-by: Christoph Fritz Signed-off-by: Christian Hemp Signed-off-by: Stefan Riedmueller Reviewed-by: Adam Thomson --- drivers/regulator/da9062-regulator.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/drivers/regulator/da9062-regulator.c b/drivers/regulator/da9062-regulator.c index 601002e..29f4a60 100644 --- a/drivers/regulator/da9062-regulator.c +++ b/drivers/regulator/da9062-regulator.c @@ -98,6 +98,20 @@ static const unsigned int da9062_buck_b_limits[] = { 2300000, 2400000, 2500000, 2600000, 2700000, 2800000, 2900000, 3000000 }; +static unsigned int da9062_map_buck_mode(unsigned int mode) +{ + switch (mode) { + case DA9063_BUCK_MODE_SLEEP: + return REGULATOR_MODE_STANDBY; + case DA9063_BUCK_MODE_SYNC: + return REGULATOR_MODE_FAST; + case DA9063_BUCK_MODE_AUTO: + return REGULATOR_MODE_NORMAL; + default: + return -EINVAL; + } +} + static int da9062_buck_set_mode(struct regulator_dev *rdev, unsigned mode) { struct da9062_regulator *regl = rdev_get_drvdata(rdev); @@ -360,6 +374,7 @@ static const struct da9062_regulator_info local_da9061_regulator_info[] = { .desc.vsel_reg = DA9062AA_VBUCK1_A, .desc.vsel_mask = DA9062AA_VBUCK1_A_MASK, .desc.linear_min_sel = 0, + .desc.of_map_mode = da9062_map_buck_mode, .sleep = REG_FIELD(DA9062AA_VBUCK1_A, __builtin_ffs((int)DA9062AA_BUCK1_SL_A_MASK) - 1, sizeof(unsigned int) * 8 - @@ -396,6 +411,7 @@ static const struct da9062_regulator_info local_da9061_regulator_info[] = { .desc.vsel_reg = DA9062AA_VBUCK3_A, .desc.vsel_mask = DA9062AA_VBUCK3_A_MASK, .desc.linear_min_sel = 0, + .desc.of_map_mode = da9062_map_buck_mode, .sleep = REG_FIELD(DA9062AA_VBUCK3_A, __builtin_ffs((int)DA9062AA_BUCK3_SL_A_MASK) - 1, sizeof(unsigned int) * 8 - @@ -432,6 +448,7 @@ static const struct da9062_regulator_info local_da9061_regulator_info[] = { .desc.vsel_reg = DA9062AA_VBUCK4_A, .desc.vsel_mask = DA9062AA_VBUCK4_A_MASK, .desc.linear_min_sel = 0, + .desc.of_map_mode = da9062_map_buck_mode, .sleep = REG_FIELD(DA9062AA_VBUCK4_A, __builtin_ffs((int)DA9062AA_BUCK4_SL_A_MASK) - 1, sizeof(unsigned int) * 8 - @@ -604,6 +621,7 @@ static const struct da9062_regulator_info local_da9062_regulator_info[] = { .desc.vsel_reg = DA9062AA_VBUCK1_A, .desc.vsel_mask = DA9062AA_VBUCK1_A_MASK, .desc.linear_min_sel = 0, + .desc.of_map_mode = da9062_map_buck_mode, .sleep = REG_FIELD(DA9062AA_VBUCK1_A, __builtin_ffs((int)DA9062AA_BUCK1_SL_A_MASK) - 1, sizeof(unsigned int) * 8 - @@ -640,6 +658,7 @@ static const struct da9062_regulator_info local_da9062_regulator_info[] = { .desc.vsel_reg = DA9062AA_VBUCK2_A, .desc.vsel_mask = DA9062AA_VBUCK2_A_MASK, .desc.linear_min_sel = 0, + .desc.of_map_mode = da9062_map_buck_mode, .sleep = REG_FIELD(DA9062AA_VBUCK2_A, __builtin_ffs((int)DA9062AA_BUCK2_SL_A_MASK) - 1, sizeof(unsigned int) * 8 - @@ -676,6 +695,7 @@ static const struct da9062_regulator_info local_da9062_regulator_info[] = { .desc.vsel_reg = DA9062AA_VBUCK3_A, .desc.vsel_mask = DA9062AA_VBUCK3_A_MASK, .desc.linear_min_sel = 0, + .desc.of_map_mode = da9062_map_buck_mode, .sleep = REG_FIELD(DA9062AA_VBUCK3_A, __builtin_ffs((int)DA9062AA_BUCK3_SL_A_MASK) - 1, sizeof(unsigned int) * 8 - @@ -712,6 +732,7 @@ static const struct da9062_regulator_info local_da9062_regulator_info[] = { .desc.vsel_reg = DA9062AA_VBUCK4_A, .desc.vsel_mask = DA9062AA_VBUCK4_A_MASK, .desc.linear_min_sel = 0, + .desc.of_map_mode = da9062_map_buck_mode, .sleep = REG_FIELD(DA9062AA_VBUCK4_A, __builtin_ffs((int)DA9062AA_BUCK4_SL_A_MASK) - 1, sizeof(unsigned int) * 8 - From patchwork Wed Nov 13 13:40:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoph Fritz X-Patchwork-Id: 11241921 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8D16B1390 for ; Wed, 13 Nov 2019 13:41:56 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 6B5852245B for ; Wed, 13 Nov 2019 13:41:56 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="V054yOcV"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=googlemail.com header.i=@googlemail.com header.b="HHGRBnBM" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6B5852245B Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=googlemail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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=OoxSIm5VGrdUTy1xOjUAJVgiuZF53Yi5bpYWT1zePYs=; b=V054yOcVUm8j6XAhPCSYEf6oRk vQwddRmbXo9AVwZyPTPk3b3QBWP1beKTKlD7lqzs1shU66OuKMwimE5+4VGQSH2Wtz7CEtiqD3iGC lAWFScGeSTpJ0RvmHgGyr6Wyo4WN0k36qsl9Do8XnS19bRlUBHVQGEtlph8n6DAJtlF4Ws5eOM7Be 52a4Xu05EUWBZ3+RkUGkcU99WYE5mTSZw8nwE0uJ1K6tEO5d8AfvrbnMQkDObBoUQFWkHuRiQ19LQ hqKwOxLODFHVaxsh/WhPnt/miQQTdWePavK0fsTCvo/MeFdwY3Jm0mVxXOcn2OXvOr5ohN8PgxsTR bPmYn+tw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iUsuA-0002N7-QZ; Wed, 13 Nov 2019 13:41:54 +0000 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iUstP-0001l4-6b for linux-arm-kernel@lists.infradead.org; Wed, 13 Nov 2019 13:41:08 +0000 Received: by mail-wr1-x444.google.com with SMTP id f2so2391337wrs.11 for ; Wed, 13 Nov 2019 05:41:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=xUHBzoq9SNl+3pMWbPtXPGVnvUBANpVssHw7iXkIZIo=; b=HHGRBnBMg8+wCvJsMAvdrY+RFtcPOQsLzz0e965o3Dgf6Fna1KhJRssZaGQZTyaRVB mBNNFr/+L71bYiuVTRNz3zLbSISnN21FY+7qXByWD3ElAwpaNugL+Qvk47JXWiZFvYzi u+T5YKnANIkZsBVVF8X90vHRkNfNN1EfLvbElXT+YabV9Te3dePfF4lJk2CRNVQUEwIk LvzydLlHkRAxncmIVdUDHHmGKlOIATxU3m8YGPlZrru68/+1rONF7/geBxdKjOGXwJDg 69YenwXVro4CxYTfM4A8hZdwZjSRZWcBztn4U/MpErmsSIstiwTRV7DG2gKns1nDIbaU mp+Q== 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=xUHBzoq9SNl+3pMWbPtXPGVnvUBANpVssHw7iXkIZIo=; b=E7fNE7umNdpPTGC66eOXucl5d5vx7oiApAdiGPebdf/S2LmyudzqJWEPqvl38Qh6bu EinKItxPpFkED+pyQgZxpIvKFZO+ISjho/B9wKlgBsmLsYnaOVCxXzL/PXBC9pUiEBCJ td2teQyfMAFNtMl3YMiUH7oMs7yf52hieRLUvvznDOLVAuA9vchuQvKTFgFOdZvdSGaB B9aK9Ixkjkep109kSjquNhnNcVNYYfrgsvu4WcHcy90pmJOkNkco7YbfR5ufhiKDxi+F YS+ouIwO8QFM3fQehXnjKc0KnOiwsYIzaRw7qEYTaJ02NkjBBjvXgL3hjQH/iQ9tAr51 NLOw== X-Gm-Message-State: APjAAAVggwZCunK6ZXslmtgL2cB7hDawK1WFbkzvbqILSK5C6YDZKzWZ GioeK4k7IiSoOlK/d+1eBfbiyanY9us= X-Google-Smtp-Source: APXvYqzMeDEMOr6jJXevVw3EJPZivbRAyr1ynHZcgbxgkkqbWKe/6Xy9o/utpo+IKLlMcsg2v8kIcA== X-Received: by 2002:adf:e682:: with SMTP id r2mr2992493wrm.358.1573652465812; Wed, 13 Nov 2019 05:41:05 -0800 (PST) Received: from mars.home (HSI-KBW-109-192-080-035.hsi6.kabel-badenwuerttemberg.de. [109.192.80.35]) by smtp.googlemail.com with ESMTPSA id r15sm4195831wrc.5.2019.11.13.05.41.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 13 Nov 2019 05:41:05 -0800 (PST) From: Christoph Fritz To: Adam Thomson , Mark Brown , Fabio Estevam , Rob Herring , Mark Rutland , Shawn Guo Subject: [PATCH v2 3/4] dt-bindings: mfd: da9062: describe buck modes Date: Wed, 13 Nov 2019 14:40:15 +0100 Message-Id: <1573652416-9848-4-git-send-email-chf.fritz@googlemail.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1573652416-9848-1-git-send-email-chf.fritz@googlemail.com> References: <1573652416-9848-1-git-send-email-chf.fritz@googlemail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191113_054107_244746_47F38436 X-CRM114-Status: GOOD ( 11.28 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:444 listed in] [list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (chf.fritz[at]googlemail.com) -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Lee Jones , Liam Girdwood , linux-arm-kernel@lists.infradead.org, Support Opensource MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org This patch adds DT description of da9062 buck regulator modes. Signed-off-by: Christoph Fritz Reviewed-by: Adam Thomson --- Documentation/devicetree/bindings/mfd/da9062.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/mfd/da9062.txt b/Documentation/devicetree/bindings/mfd/da9062.txt index edca653..bc4b59d 100644 --- a/Documentation/devicetree/bindings/mfd/da9062.txt +++ b/Documentation/devicetree/bindings/mfd/da9062.txt @@ -66,6 +66,9 @@ Sub-nodes: details of individual regulator device can be found in: Documentation/devicetree/bindings/regulator/regulator.txt + regulator-initial-mode may be specified for buck regulators using mode values + from include/dt-bindings/regulator/dlg,da9063-regulator.h. + - rtc : This node defines settings required for the Real-Time Clock associated with the DA9062. There are currently no entries in this binding, however compatible = "dlg,da9062-rtc" should be added if a node is created. @@ -96,6 +99,7 @@ Example: regulator-max-microvolt = <1570000>; regulator-min-microamp = <500000>; regulator-max-microamp = <2000000>; + regulator-initial-mode = ; regulator-boot-on; }; DA9062_LDO1: ldo1 { From patchwork Wed Nov 13 13:40:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoph Fritz X-Patchwork-Id: 11241923 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 435DA15AB for ; Wed, 13 Nov 2019 13:42:19 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 2120B22459 for ; Wed, 13 Nov 2019 13:42:19 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="c6UAE1vH"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=googlemail.com header.i=@googlemail.com header.b="k2HbZ4e6" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2120B22459 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=googlemail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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=Z0y0TNj7/EHJg/yqHC8LFNFTNEEQL3tul2uaUj/6Ghw=; b=c6UAE1vHwRbhWyPqTF2vl2+NKN wA0XPPowWHWLL2lOMKB2SLmQJbpgAiBHQXzyol+fqzPtiL7d6yYAhjvk9l9Ej9MQhhpNYWRHLbpV5 Yv60NaTP0mg0l0QC+uZfCJuQuSisZ4r2U9gC97x3hlzu5LbGb0e4gt05DziAGyZ5R+hrJ0e/JQLOp 4cpgD38KNQ1jVmVtgDEulb1T6XbdkAQ+fZ04SMsVkLlWskcr5bUFzW6OlZX7yyDjvXhuf/tWlveT5 E5hPIB5gt0yGSkzNtMSFxHmriiRIlV9sfN605YWLgRIdiR9aFlIU+a8HEphAelrcUn5+SzKhzP5Rl bncx25uQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iUsuX-0002hg-2v; Wed, 13 Nov 2019 13:42:17 +0000 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iUstP-0001ll-VN for linux-arm-kernel@lists.infradead.org; Wed, 13 Nov 2019 13:41:10 +0000 Received: by mail-wr1-x441.google.com with SMTP id n1so2390527wra.10 for ; Wed, 13 Nov 2019 05:41:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=g2lD/Zhk10aEU/jv34FPJDsmkoPVsN84DE48zUMY4rY=; b=k2HbZ4e6sjvmBWQoY2Pe+72IYXI7kCB4Ng+pgaB+8dz45evIo4X+tazizhpNaJicuW wu9Loy/C6H1KAVbNc1dLto3ukDp2xzZX4B3EGV98R90cxh9kbeQMVoxzdxrHqW5d4v7t pqMpeN9O3+vMMei7IBZPhCnFIOBDaseMyS88qexO5BFiBCJv58I3m+pE2LDSgYdqpDhg cJUcdMaSPXyKUistFyhvPH3Q1KR4xLKlsILfHVpzZnHkuZdVkXfIekr94tn+MGJSQ+cx vYUgLWa+Jn3+nnVHgUFc9vMpzUBIQKkyO5D6ND2TSYAqY2k2QhpGCWin2gw++AmJBQon NiDw== 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=g2lD/Zhk10aEU/jv34FPJDsmkoPVsN84DE48zUMY4rY=; b=h1iENd682fnSngsn42OHTjpATQ1M7wwjKxWguKqgXE8nQKP+MzMz8SjgJ943k2gNTD vOSEHSsAKbOpFPGMOdhSCGg2/Y9bhc04XJoL4kXtnincyhQlaccD9Tvgj8O8Rm8l6fYP c+kTxzp7zvkOEDtSGYYmdjyYO6mSTqXgF2e7oyl3kAF+bA2OsPe7cl38GixqbkJSnDNU 3wEAb/WAhK275KLTQXXntF3/qGy0xVR1rlLPY1XUVqcQ4R/lgH/+Px8dlsnbAr8dhnZV QwX/Xs3dU8A0oocImFnRICeBmFV4zxWcjc+6nF1lHiJuS4G8mRufFKXxQ90qVYm/Sup1 nD6w== X-Gm-Message-State: APjAAAWDfqtMG+mcOAS1mC+d3DnJQWD5shZqfQF32rZ9EJ8ci4Eoy/wd cqHZlTpe8Q52G173FHWXPpc= X-Google-Smtp-Source: APXvYqycO5HiZc7MPLu7pM7pXGduRKfW/IStuxKimcQBGQLCOQcBh1dpMtENB6GL7jlCv07MW8MfXQ== X-Received: by 2002:adf:e701:: with SMTP id c1mr2929025wrm.166.1573652466781; Wed, 13 Nov 2019 05:41:06 -0800 (PST) Received: from mars.home (HSI-KBW-109-192-080-035.hsi6.kabel-badenwuerttemberg.de. [109.192.80.35]) by smtp.googlemail.com with ESMTPSA id r15sm4195831wrc.5.2019.11.13.05.41.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 13 Nov 2019 05:41:06 -0800 (PST) From: Christoph Fritz To: Adam Thomson , Mark Brown , Fabio Estevam , Rob Herring , Mark Rutland , Shawn Guo Subject: [PATCH v2 4/4] ARM: dts: phycore-imx6: set buck regulator modes explicitly Date: Wed, 13 Nov 2019 14:40:16 +0100 Message-Id: <1573652416-9848-5-git-send-email-chf.fritz@googlemail.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1573652416-9848-1-git-send-email-chf.fritz@googlemail.com> References: <1573652416-9848-1-git-send-email-chf.fritz@googlemail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191113_054108_049996_5A96F813 X-CRM114-Status: GOOD ( 11.37 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:441 listed in] [list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (chf.fritz[at]googlemail.com) -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Lee Jones , Liam Girdwood , linux-arm-kernel@lists.infradead.org, Support Opensource MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org This patch sets initial buck regulator modes explicitly to a state this hardware needs. So a wrong initial mode set by bootloader or pmic itself does not interfere anymore. Signed-off-by: Christoph Fritz Reviewed-by: Adam Thomson --- arch/arm/boot/dts/imx6qdl-phytec-phycore-som.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl-phytec-phycore-som.dtsi b/arch/arm/boot/dts/imx6qdl-phytec-phycore-som.dtsi index 6486df3..644625d 100644 --- a/arch/arm/boot/dts/imx6qdl-phytec-phycore-som.dtsi +++ b/arch/arm/boot/dts/imx6qdl-phytec-phycore-som.dtsi @@ -5,6 +5,7 @@ */ #include +#include / { aliases { @@ -109,6 +110,7 @@ regulator-name = "vdd_arm"; regulator-min-microvolt = <730000>; regulator-max-microvolt = <1380000>; + regulator-initial-mode = ; regulator-always-on; }; @@ -116,6 +118,7 @@ regulator-name = "vdd_soc"; regulator-min-microvolt = <730000>; regulator-max-microvolt = <1380000>; + regulator-initial-mode = ; regulator-always-on; }; @@ -123,6 +126,7 @@ regulator-name = "vdd_ddr3"; regulator-min-microvolt = <1500000>; regulator-max-microvolt = <1500000>; + regulator-initial-mode = ; regulator-always-on; }; @@ -130,6 +134,7 @@ regulator-name = "vdd_eth"; regulator-min-microvolt = <1200000>; regulator-max-microvolt = <1200000>; + regulator-initial-mode = ; regulator-always-on; };