All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tim Harvey <tharvey@gateworks.com>
To: Stefano Babic <sbabic@denx.de>,
	Fabio Estevam <festevam@gmail.com>,
	"NXP i . MX U-Boot Team" <uboot-imx@nxp.com>
Cc: U-Boot Mailing List <u-boot@lists.denx.de>,
	Tim Harvey <tharvey@gateworks.com>
Subject: [PATCH 06/11] imx: ventana: put PFUZ100 regulators in continuous mode
Date: Fri, 11 Jun 2021 12:46:23 -0700	[thread overview]
Message-ID: <20210611194628.5572-6-tharvey@gateworks.com> (raw)
In-Reply-To: <20210611194628.5572-1-tharvey@gateworks.com>

In the default 'auto' mode regulators that are very lightly loaded
can be put in PFM mode and fail to regulator properly. Switching them
to always use continuous PWM mode has a neglibable affect on system
power and garuntees proper regulation under lightly loaded circumstances.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
---
 board/gateworks/gw_ventana/common.c | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/board/gateworks/gw_ventana/common.c b/board/gateworks/gw_ventana/common.c
index 9f5f20f781..b5a0162c5e 100644
--- a/board/gateworks/gw_ventana/common.c
+++ b/board/gateworks/gw_ventana/common.c
@@ -1596,6 +1596,32 @@ void setup_pmic(void)
 				pmic_reg_write(p, PFUZE100_VGEN6VOL, reg);
 			}
 		}
+
+		/* put all switchers in continuous mode */
+		pmic_reg_read(p, PFUZE100_SW1ABMODE, &reg);
+		reg &= ~(SW_MODE_MASK);
+		reg |= PWM_PWM;
+		pmic_reg_write(p, PFUZE100_SW1ABMODE, reg);
+
+		pmic_reg_read(p, PFUZE100_SW2MODE, &reg);
+		reg &= ~(SW_MODE_MASK);
+		reg |= PWM_PWM;
+		pmic_reg_write(p, PFUZE100_SW2MODE, reg);
+
+		pmic_reg_read(p, PFUZE100_SW3AMODE, &reg);
+		reg &= ~(SW_MODE_MASK);
+		reg |= PWM_PWM;
+		pmic_reg_write(p, PFUZE100_SW3AMODE, reg);
+
+		pmic_reg_read(p, PFUZE100_SW3BMODE, &reg);
+		reg &= ~(SW_MODE_MASK);
+		reg |= PWM_PWM;
+		pmic_reg_write(p, PFUZE100_SW3BMODE, reg);
+
+		pmic_reg_read(p, PFUZE100_SW4MODE, &reg);
+		reg &= ~(SW_MODE_MASK);
+		reg |= PWM_PWM;
+		pmic_reg_write(p, PFUZE100_SW4MODE, reg);
 	}
 
 	/* configure LTC3676 PMIC */
-- 
2.17.1


  parent reply	other threads:[~2021-06-11 19:47 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-11 19:46 [PATCH 01/11] imx: ventana: remove USB_KEYBOARD support Tim Harvey
2021-06-11 19:46 ` [PATCH 02/11] imx: ventana: remove unneeded includes Tim Harvey
2021-07-10 15:52   ` sbabic
2021-07-10 19:35   ` sbabic
2021-06-11 19:46 ` [PATCH 03/11] imx: ventana: increase SYS_BOOTM_LEN Tim Harvey
2021-07-10 15:53   ` sbabic
2021-07-10 19:36   ` sbabic
2021-06-11 19:46 ` [PATCH 04/11] imx: ventana: add legacy uboot image support Tim Harvey
2021-07-10 15:53   ` sbabic
2021-07-10 19:36   ` sbabic
2021-06-11 19:46 ` [PATCH 05/11] imx: ventana: add PMIC fix for GW54xx-G Tim Harvey
2021-07-10 15:53   ` sbabic
2021-07-10 19:36   ` sbabic
2021-06-11 19:46 ` Tim Harvey [this message]
2021-07-10 15:53   ` [PATCH 06/11] imx: ventana: put PFUZ100 regulators in continuous mode sbabic
2021-07-10 19:36   ` sbabic
2021-06-11 19:46 ` [PATCH 07/11] imx: ventana: put LTC3676 " Tim Harvey
2021-07-10 15:54   ` sbabic
2021-07-10 19:37   ` sbabic
2021-06-11 19:46 ` [PATCH 08/11] imx: ventana: add DP83867 PHY LED configuration Tim Harvey
2021-07-10 15:52   ` sbabic
2021-07-10 19:34   ` sbabic
2021-06-11 19:46 ` [PATCH 09/11] imx: ventana: display neteowrk PHY Tim Harvey
2021-07-10 15:52   ` sbabic
2021-07-10 19:34   ` sbabic
2021-06-11 19:46 ` [PATCH 10/11] imx: ventana: add support for DLC0700XDP21LF LCD display Tim Harvey
2021-07-10 15:52   ` sbabic
2021-07-10 19:35   ` sbabic
2021-06-11 19:46 ` [PATCH 11/11] imx: ventana: display 'none' for MMC if board does not have it Tim Harvey
2021-07-10 15:54   ` sbabic
2021-07-10 19:37   ` sbabic
2021-07-10 15:53 ` [PATCH 01/11] imx: ventana: remove USB_KEYBOARD support sbabic
2021-07-10 19:35 ` sbabic

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210611194628.5572-6-tharvey@gateworks.com \
    --to=tharvey@gateworks.com \
    --cc=festevam@gmail.com \
    --cc=sbabic@denx.de \
    --cc=u-boot@lists.denx.de \
    --cc=uboot-imx@nxp.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.