Allwinner R40/V40 support anyone ?

Emmanuel Vadot manu at bidouilliste.com
Sat Nov 10 11:43:19 UTC 2018


On Sat, 10 Nov 2018 12:30:52 +0100
Søren Schmidt <sos at deepcore.dk> wrote:

> HI
> 
> Yeah its almost but not quite like the A20 :)
> 
> So far I?ve just added the r40 to the following drivers:
> 
> aw_ccu.c
> clkng/ccu_a10.c
> aw_gpio.c
> aw_machdep.c
> aw_mmc.c

 Doesn't the A64 support in it is enough ?

> Which seem to do OK.
> 
> However there are issues with the power chip (axp221) it does get found by the axp209 driver, but it immediately shuts down and holds NMI active so that needs work at least, bandaid for now is just disable its IRQ.

 Ok weird.

> USB finds the controller, but fails to attach the root hub with uhub_attach: getting USB 2.0 HUB descriptor failed,error=USB_ERR_SHORT_XFER

 You will need to add support for the phy too. (aw_usbphy.c)

> The GMAC has trouble finding its PHY.
> Both could be due to proper power missing I guess.
> It finds the SATA part and that works quite well (my own ATA stack, not stock CAM).

 Does it work with CAM ?

> Haven?t tried video/audio as that has no interest to me for now.

 Video and Audio were always hackish on Allwinner, we will need to do
something to fix that.

> --Søren Schmidt
> sos at deepcore.dk / sos at freebsd.org
> "So much code to hack, so little time"
> 
> > On 10 Nov 2018, at 12.12, Emmanuel Vadot <manu at bidouilliste.com> wrote:
> > 
> > 
> > Hi,
> > 
> > On Sat, 10 Nov 2018 11:23:56 +0100
> > Søren Schmidt <sos at deepcore.dk> wrote:
> > 
> >> Hi
> >> 
> >> I?m looking into getting the BananaPi M2 Berry running, but before I toss too much time into it I?d like to hear if anybody else is working on it ?
> > 
> > R40 just contain most of the IP present in the A20. What would be
> > needed is a r40 ccu driver. I haven't read the datasheet but I assume
> > that it could be possible to adapt ccu_a10 for it easily.
> > 
> >> I?m so far that it boots but with bandaids and sticks :)
> > 
> > What are they ?
> > 
> >> --
> >> Søren Schmidt
> >> sos at deepcore.dk / sos at freebsd.org
> >> "So much code to hack, so little time"
> > 
> > 
> > -- 
> > Emmanuel Vadot <manu at bidouilliste.com> <manu at freebsd.org>


-- 
Emmanuel Vadot <manu at bidouilliste.com> <manu at freebsd.org>


More information about the freebsd-arm mailing list