diff mbox series

[v1,7/9] verdin-imx8mm: spl: enable pca9450 i2c level translator

Message ID 20201028095816.23906-7-igor.opaniuk@gmail.com
State New
Delegated to: Stefano Babic
Headers show
Series [v1,1/9] toradex: tdx-cfg-clock: add new i.mx 8m mini/plus skus | expand

Commit Message

Igor Opaniuk Oct. 28, 2020, 9:58 a.m. UTC
From: Max Krummenacher <max.krummenacher@toradex.com>

Enable PCA9450 i2c level translator, as this is used for the
on module ADC.

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
---

 board/toradex/verdin-imx8mm/spl.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Marcel Ziswiler Oct. 29, 2020, 2:49 p.m. UTC | #1
On Wed, 2020-10-28 at 11:58 +0200, Igor Opaniuk wrote:
> From: Max Krummenacher <max.krummenacher@toradex.com>
> 
> Enable PCA9450 i2c level translator, as this is used for the
> on module ADC.
> 
> Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>

Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>

> ---
> 
>  board/toradex/verdin-imx8mm/spl.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/board/toradex/verdin-imx8mm/spl.c b/board/toradex/verdin-imx8mm/spl.c
> index 9562cdeb35..72e2e09e25 100644
> --- a/board/toradex/verdin-imx8mm/spl.c
> +++ b/board/toradex/verdin-imx8mm/spl.c
> @@ -124,6 +124,8 @@ int power_init_board(void)
>                 /* set WDOG_B_CFG to cold reset */
>                 pmic_reg_write(dev, PCA9450_RESET_CTRL, 0xA1);
>  
> +               pmic_reg_write(dev, PCA9450_CONFIG2, 0x1);
> +
>                 return 0;
>         }
Oleksandr Suvorov Oct. 29, 2020, 4:16 p.m. UTC | #2
On Thu, Oct 29, 2020 at 4:49 PM Marcel Ziswiler
<marcel.ziswiler@toradex.com> wrote:
>
> On Wed, 2020-10-28 at 11:58 +0200, Igor Opaniuk wrote:
> > From: Max Krummenacher <max.krummenacher@toradex.com>
> >
> > Enable PCA9450 i2c level translator, as this is used for the
> > on module ADC.
> >
> > Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
>
> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Reviewed-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
>
> > ---
> >
> >  board/toradex/verdin-imx8mm/spl.c | 2 ++
> >  1 file changed, 2 insertions(+)
> >
> > diff --git a/board/toradex/verdin-imx8mm/spl.c b/board/toradex/verdin-imx8mm/spl.c
> > index 9562cdeb35..72e2e09e25 100644
> > --- a/board/toradex/verdin-imx8mm/spl.c
> > +++ b/board/toradex/verdin-imx8mm/spl.c
> > @@ -124,6 +124,8 @@ int power_init_board(void)
> >                 /* set WDOG_B_CFG to cold reset */
> >                 pmic_reg_write(dev, PCA9450_RESET_CTRL, 0xA1);
> >
> > +               pmic_reg_write(dev, PCA9450_CONFIG2, 0x1);
> > +
> >                 return 0;
> >         }
diff mbox series

Patch

diff --git a/board/toradex/verdin-imx8mm/spl.c b/board/toradex/verdin-imx8mm/spl.c
index 9562cdeb35..72e2e09e25 100644
--- a/board/toradex/verdin-imx8mm/spl.c
+++ b/board/toradex/verdin-imx8mm/spl.c
@@ -124,6 +124,8 @@  int power_init_board(void)
 		/* set WDOG_B_CFG to cold reset */
 		pmic_reg_write(dev, PCA9450_RESET_CTRL, 0xA1);
 
+		pmic_reg_write(dev, PCA9450_CONFIG2, 0x1);
+
 		return 0;
 	}