From patchwork Thu Nov 7 10:04:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoph Fritz X-Patchwork-Id: 11232439 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 8814213BD for ; Thu, 7 Nov 2019 10:05:14 +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 5AC26206C3 for ; Thu, 7 Nov 2019 10:05:14 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="QX8fYrcA"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=googlemail.com header.i=@googlemail.com header.b="diJNUb/i" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5AC26206C3 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=CnMmzaoK3ZwhHxZKv43BYIdX7CBCTf6o4vIpeJG7j5Q=; b=QX8fYrcAZD5plb/FMWhwdrFQcL 1OYA5gpvXr3oj13ogssxQoypuk/8CnZtcs6xNtPzQhGsmLOCAFH8iWHYnMD4TWItpyIgNjevDhjm+ 6B2sBvcvs6pBZ6uKgEmNtmLjhDyjS3Ce4tUSar87tXs7F+TmNMR14gek+5uZsYteXZ2VfMdclsWl7 /vkGQTdTGUS79Zh/rCKdvcuEawl8uidVLeImmfSnMIW3jxcXXvKIhW6cvAriThFNrvsfEwTUJ3y2f /UThl1TjvgX9vkAaa+9QIQpfr+LgKmMNW9P9iNixbo414k1gXBjKJ2kuvUD1IR1VrqsoyF2fzoGwo DoFWIaag==; 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 1iSefA-0000Yt-PS; Thu, 07 Nov 2019 10:05:12 +0000 Received: from mail-wm1-x343.google.com ([2a00:1450:4864:20::343]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iSeez-0000Q0-81 for linux-arm-kernel@lists.infradead.org; Thu, 07 Nov 2019 10:05:03 +0000 Received: by mail-wm1-x343.google.com with SMTP id z26so1771185wmi.4 for ; Thu, 07 Nov 2019 02:05:01 -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=1NFQx4M7emlsOeIvgOTsRMLDiElPASaNlDD1uGqCI9o=; b=diJNUb/iqjOHP2Xj1cSylihQV+7/r7MfJilAJ2oLrT8dh5354m1aWr0Fr3aSFuBHNY WFejV8e7dFIohZvEYGtLW3cW1dkGlurSFdnehO/gWkehDw7aWCOd3H1qbqd3Obx5HrOR gX9fSNqC9fNamh+pBS557hFiD32qre1Wr1+zFU5DehEUoDWCUO0wAfJ8Wg0r6RWa0iPI 5n3QvfI9OFzmRDqmWSMKgHKnB1Tr9GStM5EnFrU1fCnlrthkgjsed+ZIgJ0oVmonzG+R HxcBS8SVEcfnLq2MYd1rN9jDjoHY5hzM5OCfn6kI3yU6pWeaFObEOVqC/Y87KpfR6BiB Zogg== 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=1NFQx4M7emlsOeIvgOTsRMLDiElPASaNlDD1uGqCI9o=; b=JcAA30A+I73km3LN/aNHjxedztArI7ulXiHJNoT1HL3yBXcXsFmfoaFGrHf+1Udx0m qtz67JXlPqJa3ACOKSruV0h16fFGJ2rbHP7LbCO4I0U/uMFU43iGhltx3/j6N+Uxzi3O 8PCx2bwmj80XRtM8YxUI3F6IBd7rB/zICsdZfBWQ7932pX87fkn88u0mqVZNcd4UCZAO iLRbttPgANU1c3udjGrDevOGxmUQXtZZxFW0Mg1ARNhTu1V+MvX2SvxmLV1Tf8io/n5o s/Ff/stRgdHUo3nWkvpWc1SeuRHdbIExiZm6TLjwLVxft8/FAeYIb8fnWtv6gX9B13Vk 5NKQ== X-Gm-Message-State: APjAAAV8kUVRZdDSfoqmuwMRcuqyX0L7sFXiIC33ndhyyzxnxBfa6alo fQJwA1VpY01qt4RKLlgZRIk= X-Google-Smtp-Source: APXvYqw3uqt19gFI7raXLutn/B4OZcKPgyz5jJ1h81dP5ShmDytquJGh634QWG6In8rf3PzvJ9gfaQ== X-Received: by 2002:a1c:9d4a:: with SMTP id g71mr2146692wme.66.1573121099896; Thu, 07 Nov 2019 02:04:59 -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 v184sm2225860wme.31.2019.11.07.02.04.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 07 Nov 2019 02:04:59 -0800 (PST) From: Christoph Fritz To: Fabio Estevam , Mark Brown , Rob Herring , Mark Rutland , Shawn Guo Subject: [PATCH 1/4] regulator: da9062: refactor buck modes into header Date: Thu, 7 Nov 2019 11:04:07 +0100 Message-Id: <1573121050-4728-2-git-send-email-chf.fritz@googlemail.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1573121050-4728-1-git-send-email-chf.fritz@googlemail.com> References: <1573121050-4728-1-git-send-email-chf.fritz@googlemail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191107_020501_330550_C69584FB X-CRM114-Status: GOOD ( 18.15 ) 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:343 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (chf.fritz[at]googlemail.com) -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 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 so that device trees can make use of these mode constants. Signed-off-by: Christoph Fritz --- drivers/regulator/da9062-regulator.c | 28 ++++++++-------------- .../dt-bindings/regulator/dlg,da906x-regulator.h | 16 +++++++++++++ 2 files changed, 26 insertions(+), 18 deletions(-) create mode 100644 include/dt-bindings/regulator/dlg,da906x-regulator.h diff --git a/drivers/regulator/da9062-regulator.c b/drivers/regulator/da9062-regulator.c index 710e670..1a95982 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 = DA906X_BUCK_MODE_SYNC; break; case REGULATOR_MODE_NORMAL: - val = BUCK_MODE_AUTO; + val = DA906X_BUCK_MODE_AUTO; break; case REGULATOR_MODE_STANDBY: - val = BUCK_MODE_SLEEP; + val = DA906X_BUCK_MODE_SLEEP; break; default: return -EINVAL; @@ -145,15 +138,14 @@ static unsigned da9062_buck_get_mode(struct regulator_dev *rdev) switch (val) { default: - case BUCK_MODE_MANUAL: mode = REGULATOR_MODE_FAST | REGULATOR_MODE_STANDBY; /* Sleep flag bit decides the mode */ break; - case BUCK_MODE_SLEEP: + case DA906X_BUCK_MODE_SLEEP: return REGULATOR_MODE_STANDBY; - case BUCK_MODE_SYNC: + case DA906X_BUCK_MODE_SYNC: return REGULATOR_MODE_FAST; - case BUCK_MODE_AUTO: + case DA906X_BUCK_MODE_AUTO: return REGULATOR_MODE_NORMAL; } @@ -282,13 +274,13 @@ static int da9062_buck_set_suspend_mode(struct regulator_dev *rdev, switch (mode) { case REGULATOR_MODE_FAST: - val = BUCK_MODE_SYNC; + val = DA906X_BUCK_MODE_SYNC; break; case REGULATOR_MODE_NORMAL: - val = BUCK_MODE_AUTO; + val = DA906X_BUCK_MODE_AUTO; break; case REGULATOR_MODE_STANDBY: - val = BUCK_MODE_SLEEP; + val = DA906X_BUCK_MODE_SLEEP; break; default: return -EINVAL; diff --git a/include/dt-bindings/regulator/dlg,da906x-regulator.h b/include/dt-bindings/regulator/dlg,da906x-regulator.h new file mode 100644 index 00000000..848a4df --- /dev/null +++ b/include/dt-bindings/regulator/dlg,da906x-regulator.h @@ -0,0 +1,16 @@ +/* SPDX-License-Identifier: GPL-2.0 */ + +#ifndef __DLG_DA906X_REGULATOR_H +#define __DLG_DA906X_REGULATOR_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 DA906X_BUCK_MODE_SLEEP 1 +#define DA906X_BUCK_MODE_SYNC 2 +#define DA906X_BUCK_MODE_AUTO 3 + +#endif From patchwork Thu Nov 7 10:04:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoph Fritz X-Patchwork-Id: 11232441 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 D8FC013BD for ; Thu, 7 Nov 2019 10:05:36 +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 7A4D9206C3 for ; Thu, 7 Nov 2019 10:05:36 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="oZ9Wb45u"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=googlemail.com header.i=@googlemail.com header.b="LUugsRgu" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7A4D9206C3 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=U+Wr50NKo/cMgvMGsIISwCU41+KhHAUZGGA+J8q7olk=; b=oZ9Wb45ueVcNNXKoF32NtujYIE Hbf0UV7Q5r8gScvnSpVH8MzDLpgGSthj915KryDPdl+FgSMsEqUM/YcKyA96RPpK24K+0xhjxJxu0 rxHbTyRwfGyi576LHUXmGHS8HPRx9MeHOYn6ElDacXtog8xM47s7XCnM7eX25coSdYr7mFq5eMuAo bWkZw9ZkHTzukKCvUpXx9NNaspRS2KycGIOXi1wGBaeJbwMakxeZPVLW2nLRlD0m3faYmGa492PJj +MqptI83oE5ysLQ9AC29z2CEf7VMVOtsQcA4hcs+1hzaT1/lCDaKIRIZFQ1RpkIkSq+WQjsKXm2yd 3VDSSFcw==; 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 1iSefW-00022E-1r; Thu, 07 Nov 2019 10:05:34 +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 1iSef9-0000Zv-FY for linux-arm-kernel@lists.infradead.org; Thu, 07 Nov 2019 10:05:13 +0000 Received: by mail-wr1-x444.google.com with SMTP id r10so2318781wrx.3 for ; Thu, 07 Nov 2019 02:05:10 -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=kEhXMhXFOLLSIYkEe6y+Ps/9m3AxUyss8WITOvfYk3w=; b=LUugsRguvP4FPzIeQ8XTevKWhLPJFbtPz/2fcT7p66fIRtsK1IeZJlxpAl8TcdYpzw FZqOdmsNwF8/bIWHx/t7Rz4fzmliXqfaqycNruMxlPv1JLVy/ZzfxGPmJTr6O+g69u57 LwIzmX6VI6HfG8x1/cdjH9jS3U1R1oCdoOipPsLuxZzU4qdQyK62+h1OSfwgmJJkdJa8 +3PpPc5UZdFa/ojGNZwPYqIkP+A2rVMsUO+UbDvWEafLFBnvxD0YMYJimqAZItVaN52r lLLC6o2Gt4J0KlTOx8aVnnGMqhA4QDFzMkR3o/IoL9MNyWAA0aCthoKuKsD7JCy1ZqKx kFsg== 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=kEhXMhXFOLLSIYkEe6y+Ps/9m3AxUyss8WITOvfYk3w=; b=hZ4c6aLjURGvAGeXrtqnRG58FSU0WzEOUSeFuG/YAynpD9/Hen7ZCyh9QtahBO/4Mw awYidK9kXEogQLwnQPI4kjQUj8V+fObgbCeqRzZPwvJEYqrqqqQNxtf4+cSA9gisESae BhXW8F+bCGf6Z2gFIR3hqw94ylGpXLepdv/Jq2q4xEQWpdysILtiXEPqtOlYowMjFb3e ChM8O3yWfCpAUS2Wk7gjFt/jFwDHuKv4zN9D9TZy8vDMQbmW8n6I678+4SI0aTNyj5gS 4QAC/T6dwJN392QzAnjz6ASfx+Q9iOH4zpL8yCk/7CnBjPFWYPfUCZYFxoHW+hoS/2sL 5a9g== X-Gm-Message-State: APjAAAW3b6qZ9urLFCY3clSDykOIMHm7YloglcRFSWbrNUiAxlyrXvoD iMN0FH090FvhMVayp/hmLCc= X-Google-Smtp-Source: APXvYqy6v8CkZSM6HMXERGqlNin63tr1BgVsHiXp+80nR/V9jbbeocpl7GMXE8bBN6NCIERmTL/LGQ== X-Received: by 2002:adf:ef10:: with SMTP id e16mr1189636wro.58.1573121108302; Thu, 07 Nov 2019 02:05:08 -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 v184sm2225860wme.31.2019.11.07.02.05.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 07 Nov 2019 02:05:07 -0800 (PST) From: Christoph Fritz To: Fabio Estevam , Mark Brown , Rob Herring , Mark Rutland , Shawn Guo Subject: [PATCH 2/4] regulator: da9062: add of_map_mode support for bucks Date: Thu, 7 Nov 2019 11:04:08 +0100 Message-Id: <1573121050-4728-3-git-send-email-chf.fritz@googlemail.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1573121050-4728-1-git-send-email-chf.fritz@googlemail.com> References: <1573121050-4728-1-git-send-email-chf.fritz@googlemail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191107_020511_565033_6022C2E8 X-CRM114-Status: GOOD ( 13.19 ) 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 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (chf.fritz[at]googlemail.com) -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 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 --- 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 1a95982..f5f2ead 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 da906x_map_buck_mode(unsigned int mode) +{ + switch (mode) { + case DA906X_BUCK_MODE_SLEEP: + return REGULATOR_MODE_STANDBY; + case DA906X_BUCK_MODE_SYNC: + return REGULATOR_MODE_FAST; + case DA906X_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); @@ -363,6 +377,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 = da906x_map_buck_mode, .sleep = REG_FIELD(DA9062AA_VBUCK1_A, __builtin_ffs((int)DA9062AA_BUCK1_SL_A_MASK) - 1, sizeof(unsigned int) * 8 - @@ -399,6 +414,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 = da906x_map_buck_mode, .sleep = REG_FIELD(DA9062AA_VBUCK3_A, __builtin_ffs((int)DA9062AA_BUCK3_SL_A_MASK) - 1, sizeof(unsigned int) * 8 - @@ -435,6 +451,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 = da906x_map_buck_mode, .sleep = REG_FIELD(DA9062AA_VBUCK4_A, __builtin_ffs((int)DA9062AA_BUCK4_SL_A_MASK) - 1, sizeof(unsigned int) * 8 - @@ -607,6 +624,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 = da906x_map_buck_mode, .sleep = REG_FIELD(DA9062AA_VBUCK1_A, __builtin_ffs((int)DA9062AA_BUCK1_SL_A_MASK) - 1, sizeof(unsigned int) * 8 - @@ -643,6 +661,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 = da906x_map_buck_mode, .sleep = REG_FIELD(DA9062AA_VBUCK2_A, __builtin_ffs((int)DA9062AA_BUCK2_SL_A_MASK) - 1, sizeof(unsigned int) * 8 - @@ -679,6 +698,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 = da906x_map_buck_mode, .sleep = REG_FIELD(DA9062AA_VBUCK3_A, __builtin_ffs((int)DA9062AA_BUCK3_SL_A_MASK) - 1, sizeof(unsigned int) * 8 - @@ -715,6 +735,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 = da906x_map_buck_mode, .sleep = REG_FIELD(DA9062AA_VBUCK4_A, __builtin_ffs((int)DA9062AA_BUCK4_SL_A_MASK) - 1, sizeof(unsigned int) * 8 - From patchwork Thu Nov 7 10:04:09 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoph Fritz X-Patchwork-Id: 11232443 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 BD16C13BD for ; Thu, 7 Nov 2019 10:05:53 +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 9A86B206C3 for ; Thu, 7 Nov 2019 10:05:53 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="DgCY7KGz"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=googlemail.com header.i=@googlemail.com header.b="pCBjLTt1" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9A86B206C3 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=UFjVTbWHeQyY2L7pj2j7qWTOo8gCbHnuDAXEQcQr/KE=; b=DgCY7KGzw5iHENww2/iGmfhR8q /dZT26ucLBObUTUWkcCXBxVN9dX1gomkCbYYjXZOydY+r48k0VyeUDokpY+OVd3HpWa6hCzyJLo+m V3EHqAS8bjqeE3ucQruV/Km3173KB3wm/z6LS2XkuaRxI1nGutBfXV4m0Ecym4toBMM+I1Gu6w/U4 CMnqQZRvbLzt+FISzT07f2JICJTnBN+sAcjFQ1Io1u/xge4A7U4QM+JEpN6C9caotLqqA0il6qCXW ZIhEL6pC631LE7ASyKXutLkOUPbIRlsOCdyOU4uX3RxAAdhHQOYzVXcg7EqnXbkYHAolTo6yViFhj gzQwTDJQ==; 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 1iSefn-0002Im-E1; Thu, 07 Nov 2019 10:05:51 +0000 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iSefG-0001My-O6 for linux-arm-kernel@lists.infradead.org; Thu, 07 Nov 2019 10:05:21 +0000 Received: by mail-wm1-x344.google.com with SMTP id 8so1717177wmo.0 for ; Thu, 07 Nov 2019 02:05:17 -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=y4QrBSeK+hGh96w3EkNRr4uaK4vS4b4d9bYcu1vsj1I=; b=pCBjLTt1tKeJRanuVDAc9NiX/RFST88Q7X0GOtrWKOfAbTN8fyN8eQkx3HX7hLXysn i2CsPZeeY2FOvHN2AjMX/wQHwSeJCyNi4TEaWNR3MUYyOhNcbUr2OlfUP3DOoL9pIWi1 RIb8MsqHH+EXZhPAXEWWjexZ2Cl97Gx5um1qcUt4435RgQMkqX51AQPdfxE695WF6uY3 u05xs8nifHepL6hTjb1ARmrEmmjqeq4p/2MvK50zSoL1LKUJuXSU3KpYJg5gE3VdNQ8w KOPve6pVRIQLqM/XppO7ptHYpmjjDGgIbs5YX+5cGm/KoYTEkAoA7CtdXt7SYooBwfTy GFGQ== 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=y4QrBSeK+hGh96w3EkNRr4uaK4vS4b4d9bYcu1vsj1I=; b=Y+w1O13UVMvfDv6gBbSHvsph48FDZDQedbJncbq+HuHnUVy42+PyErjK790nEp4tiP eDThXrN+F4v0KspZuMQm4EoxEBZGXxt3rhtbtPuD26LkG9aDRtHc2HDiLOSmEjMmorBV dKUMmBU5LclafDze+WKYxy0MWagbC4UR0qdYaaNalRmaaaZXf5XKm1uUpFlbyDFjfMQm /mZfJ2JE+CXSnVd2hFkehYNauYUyLapVsfuUxKPKmhbntiLg0sup7BqXsHl4HJQO94Gg K6vxwcrEYcAfnKP7a3nZYzEOZ+C8UgMiGALQr9PV64pAktl7byLBpweSi1UgBW9FX4Xt qxMw== X-Gm-Message-State: APjAAAV6i+T6v+XkTQ3IBjw/Sg9q2uHJ6eFDeHRYG7C0i8EVVSl+AQsD MSFzjyKBR0UGATQRpyLEsnk= X-Google-Smtp-Source: APXvYqxzdHgmIC2FjgOq4HoxeBvcWfv1hR6LcFzdGk8UgnT53wvX8OUhBAvs6MO0TbQnVfT4xpfHKQ== X-Received: by 2002:a1c:a404:: with SMTP id n4mr1925909wme.135.1573121115871; Thu, 07 Nov 2019 02:05:15 -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 v184sm2225860wme.31.2019.11.07.02.05.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 07 Nov 2019 02:05:15 -0800 (PST) From: Christoph Fritz To: Fabio Estevam , Mark Brown , Rob Herring , Mark Rutland , Shawn Guo Subject: [PATCH 3/4] dt-bindings: regulator: describe da906x buck regulator modes Date: Thu, 7 Nov 2019 11:04:09 +0100 Message-Id: <1573121050-4728-4-git-send-email-chf.fritz@googlemail.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1573121050-4728-1-git-send-email-chf.fritz@googlemail.com> References: <1573121050-4728-1-git-send-email-chf.fritz@googlemail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191107_020519_264477_8EF700F4 X-CRM114-Status: GOOD ( 11.96 ) 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:344 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (chf.fritz[at]googlemail.com) -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 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 da906x buck regulator modes. Signed-off-by: Christoph Fritz Acked-by: Rob Herring --- 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..5989411 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,da906x-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 Thu Nov 7 10:04:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoph Fritz X-Patchwork-Id: 11232445 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 CDD0113BD for ; Thu, 7 Nov 2019 10:06:07 +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 A5AB2206C3 for ; Thu, 7 Nov 2019 10:06:07 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Tt/8Book"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=googlemail.com header.i=@googlemail.com header.b="jCMF/kyp" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A5AB2206C3 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=S0HzRrDR29mVTNZNh3gS3f+g6Iy8uJCIblsJVUTmfTg=; b=Tt/8Book9oGKDn2U5oeYZciYq4 u6KuNbZp4q6rdJvVj+g9iMpshsPzRmhC893APR3iALIHiK8PZUtnjxmedTAln2Sw4yVfvFeUBOPWK r5wR9bbXOrAC9ALqvCSYda2868AaOFxJBt/urDQHOWyxsklGslD8jSBZjw7any4XP4MYpJ9Ss+B0n DEvZC6F4/Yj2jCWf8bvT339omu39vS9ChsaRbj11o/W2xfLlJDsgWElJcwSFUoGe7XKBBQvNWbcD0 rkleTMdiFyN5MniI9YRAT+8qHJLlsPL/gi6RJFT13hwbvmaosHJtQhHEB9IEYeI3qFRDJ6Pbqtnp4 f6gQFVcw==; 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 1iSefy-0002Uv-T7; Thu, 07 Nov 2019 10:06:02 +0000 Received: from mail-wm1-x344.google.com ([2a00:1450:4864:20::344]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iSefK-0001l0-7U for linux-arm-kernel@lists.infradead.org; Thu, 07 Nov 2019 10:05:23 +0000 Received: by mail-wm1-x344.google.com with SMTP id z26so1772661wmi.4 for ; Thu, 07 Nov 2019 02:05:21 -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=khWGTMFVP7NY2n7izmIV3AsvSBCLzkWeN571KxpueAg=; b=jCMF/kypuGb0DacQuf+2CljxzKCgbDWzLNbiBVTCopCRzkXljblxe8Dc7v37kL3uXA hIH/fJP2WsD+iAfIKobKl8qMwNq0xiK/V6+qAQf2wz8FUs6Eu9qxNP/FmteO4oMkF4mh b73z+L7fjSp4AJTQtbaOvk8+oMo6bCefgkzyvvCz1UgalH3bY0wF3SCM3J/IdyhJoygj SCuZNNRcNQEPxx391ziJLmVokG6VYNMYt+RsderKRorMxP6s0P79G/Qit1pWrlOF1Vo8 iw/xsMGuK5swIT/ioTZFH+oqEQWzQnvAdNX4uEMeuOvPM13alnjEvbiw8WY9+2B+89Rh 7jOw== 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=khWGTMFVP7NY2n7izmIV3AsvSBCLzkWeN571KxpueAg=; b=Yoir1B0wFE92ujNQ5CI80PZyB7b73AoMGvERZKJzydCuUXaTqNjcxKyrhzsN31cwtq OOFqT1qUJXzlHSsz8l62MxpCU9Wj+cYAXfTTsdDUnzQC+ASEyyIeS4e57XcqWc3sdAds k6ER3fAC5Uy7ScJeBWpuh5x1kCiUDeV2vAFKEK4JUlMpNa3tKjDQ4+OGeIJEKRLrF7p7 +tc6EvlRVwdLytzZ82hDij1ke8nUQM2r6PKD7eky5DhlrFzNFYlZLv8klt6t4lQsCFZ/ BMbiVW1tF+FuGubM1GPrFQ7ssKsUGuJxDEdJ92/2jgss24LybQjFLM6do4/CZy4K+8BA 29Xw== X-Gm-Message-State: APjAAAWP89f6dr/WjC9DrqItzUn5jhXsLdI81uxqzpBAAGmfqyvP/V+k 6WXqDZETuyriepJf480bwiw= X-Google-Smtp-Source: APXvYqxK9N2z9ldVSRjttwUtDfr7ty7I992fBqsuEjVqQyS6ihq2UiTzHNOzguzrOJSon+I9EkogQA== X-Received: by 2002:a1c:20ce:: with SMTP id g197mr1892493wmg.99.1573121120730; Thu, 07 Nov 2019 02:05:20 -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 v184sm2225860wme.31.2019.11.07.02.05.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 07 Nov 2019 02:05:20 -0800 (PST) From: Christoph Fritz To: Fabio Estevam , Mark Brown , Rob Herring , Mark Rutland , Shawn Guo Subject: [PATCH 4/4] ARM: dts: phycore-imx6: set buck regulator modes explicitly Date: Thu, 7 Nov 2019 11:04:10 +0100 Message-Id: <1573121050-4728-5-git-send-email-chf.fritz@googlemail.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1573121050-4728-1-git-send-email-chf.fritz@googlemail.com> References: <1573121050-4728-1-git-send-email-chf.fritz@googlemail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191107_020522_292366_C2C965A8 X-CRM114-Status: GOOD ( 11.57 ) 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:344 listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (chf.fritz[at]googlemail.com) -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 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 --- 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..e3f2181 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; };