* [PATCH 1/1] i2c: mvtwsi: Add compatible string for allwinner, sun4i-a10-i2c
@ 2022-01-07 17:52 Chris Morgan
2022-01-08 5:45 ` Gajjar Akash
2022-01-17 1:34 ` Andre Przywara
0 siblings, 2 replies; 5+ messages in thread
From: Chris Morgan @ 2022-01-07 17:52 UTC (permalink / raw)
To: u-boot; +Cc: hs, Chris Morgan
From: Chris Morgan <macromorgan@hotmail.com>
This adds a compatible string for the Allwinner Sun4i-A10 I2C
controller. Without this, boards based on the R8 and A13 (at a
minimum) fail to boot.
Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
---
drivers/i2c/mvtwsi.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/i2c/mvtwsi.c b/drivers/i2c/mvtwsi.c
index ff21e3c52b..979b825eec 100644
--- a/drivers/i2c/mvtwsi.c
+++ b/drivers/i2c/mvtwsi.c
@@ -900,6 +900,7 @@ static const struct dm_i2c_ops mvtwsi_i2c_ops = {
static const struct udevice_id mvtwsi_i2c_ids[] = {
{ .compatible = "marvell,mv64xxx-i2c", },
{ .compatible = "marvell,mv78230-i2c", },
+ { .compatible = "allwinner,sun4i-a10-i2c", },
{ .compatible = "allwinner,sun6i-a31-i2c", },
{ /* sentinel */ }
};
--
2.30.2
^ permalink raw reply related [flat|nested] 5+ messages in thread* Re: [PATCH 1/1] i2c: mvtwsi: Add compatible string for allwinner, sun4i-a10-i2c
2022-01-07 17:52 [PATCH 1/1] i2c: mvtwsi: Add compatible string for allwinner, sun4i-a10-i2c Chris Morgan
@ 2022-01-08 5:45 ` Gajjar Akash
2022-01-17 1:34 ` Andre Przywara
1 sibling, 0 replies; 5+ messages in thread
From: Gajjar Akash @ 2022-01-08 5:45 UTC (permalink / raw)
To: Chris Morgan; +Cc: u-boot, hs, Chris Morgan
Acked-by: Akash Gajjar <gajjar04akash@gmail.com>
On Fri, Jan 7, 2022, 11:23 PM Chris Morgan <macroalpha82@gmail.com> wrote:
> From: Chris Morgan <macromorgan@hotmail.com>
>
> This adds a compatible string for the Allwinner Sun4i-A10 I2C
> controller. Without this, boards based on the R8 and A13 (at a
> minimum) fail to boot.
>
> Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
> ---
> drivers/i2c/mvtwsi.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/i2c/mvtwsi.c b/drivers/i2c/mvtwsi.c
> index ff21e3c52b..979b825eec 100644
> --- a/drivers/i2c/mvtwsi.c
> +++ b/drivers/i2c/mvtwsi.c
> @@ -900,6 +900,7 @@ static const struct dm_i2c_ops mvtwsi_i2c_ops = {
> static const struct udevice_id mvtwsi_i2c_ids[] = {
> { .compatible = "marvell,mv64xxx-i2c", },
> { .compatible = "marvell,mv78230-i2c", },
> + { .compatible = "allwinner,sun4i-a10-i2c", },
> { .compatible = "allwinner,sun6i-a31-i2c", },
> { /* sentinel */ }
> };
> --
> 2.30.2
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH 1/1] i2c: mvtwsi: Add compatible string for allwinner, sun4i-a10-i2c
2022-01-07 17:52 [PATCH 1/1] i2c: mvtwsi: Add compatible string for allwinner, sun4i-a10-i2c Chris Morgan
2022-01-08 5:45 ` Gajjar Akash
@ 2022-01-17 1:34 ` Andre Przywara
2022-01-18 17:09 ` Chris Morgan
1 sibling, 1 reply; 5+ messages in thread
From: Andre Przywara @ 2022-01-17 1:34 UTC (permalink / raw)
To: Chris Morgan; +Cc: u-boot, hs, Chris Morgan, Gajjar Akash
On Fri, 7 Jan 2022 11:52:54 -0600
Chris Morgan <macroalpha82@gmail.com> wrote:
Hi Chris,
> From: Chris Morgan <macromorgan@hotmail.com>
>
> This adds a compatible string for the Allwinner Sun4i-A10 I2C
> controller. Without this, boards based on the R8 and A13 (at a
> minimum) fail to boot.
>
> Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
Applied to sunxi/master, thanks!
Out of curiosity, can you say what "fail to boot" means, exactly? I see
that indeed i2c in U-Boot proper got lost when I2C was moved to DM in
the v2022.01 merge window, but that didn't have any visible effect
apart from the "i2c" command not working on my BananaPi. Ethernet, USB
and Linux boot worked fine, still.
Cheers,
Andre
> ---
> drivers/i2c/mvtwsi.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/i2c/mvtwsi.c b/drivers/i2c/mvtwsi.c
> index ff21e3c52b..979b825eec 100644
> --- a/drivers/i2c/mvtwsi.c
> +++ b/drivers/i2c/mvtwsi.c
> @@ -900,6 +900,7 @@ static const struct dm_i2c_ops mvtwsi_i2c_ops = {
> static const struct udevice_id mvtwsi_i2c_ids[] = {
> { .compatible = "marvell,mv64xxx-i2c", },
> { .compatible = "marvell,mv78230-i2c", },
> + { .compatible = "allwinner,sun4i-a10-i2c", },
> { .compatible = "allwinner,sun6i-a31-i2c", },
> { /* sentinel */ }
> };
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: [PATCH 1/1] i2c: mvtwsi: Add compatible string for allwinner, sun4i-a10-i2c
2022-01-17 1:34 ` Andre Przywara
@ 2022-01-18 17:09 ` Chris Morgan
0 siblings, 0 replies; 5+ messages in thread
From: Chris Morgan @ 2022-01-18 17:09 UTC (permalink / raw)
To: Andre Przywara; +Cc: Chris Morgan, u-boot, hs, Gajjar Akash
On Mon, Jan 17, 2022 at 01:34:55AM +0000, Andre Przywara wrote:
> On Fri, 7 Jan 2022 11:52:54 -0600
> Chris Morgan <macroalpha82@gmail.com> wrote:
>
> Hi Chris,
>
> > From: Chris Morgan <macromorgan@hotmail.com>
> >
> > This adds a compatible string for the Allwinner Sun4i-A10 I2C
> > controller. Without this, boards based on the R8 and A13 (at a
> > minimum) fail to boot.
> >
> > Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
>
> Applied to sunxi/master, thanks!
>
> Out of curiosity, can you say what "fail to boot" means, exactly? I see
> that indeed i2c in U-Boot proper got lost when I2C was moved to DM in
> the v2022.01 merge window, but that didn't have any visible effect
> apart from the "i2c" command not working on my BananaPi. Ethernet, USB
> and Linux boot worked fine, still.
It must have been something in my defconfig. I can confirm using a
pristine master branch (without this patch applied) that it does boot
correctly, at least via FEL. Sorry for the confusion.
Thank you.
>
> Cheers,
> Andre
>
>
> > ---
> > drivers/i2c/mvtwsi.c | 1 +
> > 1 file changed, 1 insertion(+)
> >
> > diff --git a/drivers/i2c/mvtwsi.c b/drivers/i2c/mvtwsi.c
> > index ff21e3c52b..979b825eec 100644
> > --- a/drivers/i2c/mvtwsi.c
> > +++ b/drivers/i2c/mvtwsi.c
> > @@ -900,6 +900,7 @@ static const struct dm_i2c_ops mvtwsi_i2c_ops = {
> > static const struct udevice_id mvtwsi_i2c_ids[] = {
> > { .compatible = "marvell,mv64xxx-i2c", },
> > { .compatible = "marvell,mv78230-i2c", },
> > + { .compatible = "allwinner,sun4i-a10-i2c", },
> > { .compatible = "allwinner,sun6i-a31-i2c", },
> > { /* sentinel */ }
> > };
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/1] i2c: mvtwsi: Add compatible string for allwinner, sun4i-a10-i2c
@ 2022-01-25 9:03 Jose Torres
0 siblings, 0 replies; 5+ messages in thread
From: Jose Torres @ 2022-01-25 9:03 UTC (permalink / raw)
To: u-boot
I faced the boot failure issue when attempting to bring mainline 2022.01 to
our Kettlepop device which is a derivative of Next Thing's C.H.I.P. Pro.
Kettlepop has eMMC memory rather than NAND flash as used in C.H.I.P. Pro.
This device has a GR8 SiP which contains an R8/A13 die.
Without this patch, U-Boot will halt after DRAM detection.
Applying this patch will allow it to boot normally.
Kettlepop has a defconfig identical to mainline C.H.I.P. Pro defconfig with
MMC configuration instead of the NAND MTD stuff.
Below is a log of a failed boot:
```
U-Boot SPL 2022.01 (Jan 24 2022 - 19:48:00 +0800)
DRAM: 256 MiB
CPU: 1008000000Hz, AXI/AHB/APB: 3/2/2
Trying to boot from FEL
U-Boot 2022.01 (Jan 24 2022 - 19:48:00 +0800) Popcorn Computer
CPU: Allwinner A13 (SUN5I)
Model: Source Parts Kettlepop
DRAM: 256 MiB
```
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-01-25 12:53 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-07 17:52 [PATCH 1/1] i2c: mvtwsi: Add compatible string for allwinner, sun4i-a10-i2c Chris Morgan
2022-01-08 5:45 ` Gajjar Akash
2022-01-17 1:34 ` Andre Przywara
2022-01-18 17:09 ` Chris Morgan
-- strict thread matches above, loose matches on Subject: below --
2022-01-25 9:03 Jose Torres
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox