Re: No sound card on Olimex A20 SOM EVB with FreeBSD 12.4

From: Jirka Novak <j.novak_at_netsystem.cz>
Date: Sat, 28 Oct 2023 19:15:08 UTC
Hello Emmanuel,

>>     Can I ask for help to identify which clock shown in 11.2 boot log are
>> missing in 12.4 boot log?
>>
>   It seems that we are missing some clocks.
>   We don't support the audio pll and so don't support the codec gate
> which is the one that the driver is expecting to find.

It is very bad news for me. So it looks that sound cards can't work on 
any A10/A20 chip with post FreeBSD 11 even sound driver is part of the 
tree. Right?

>   It looks like we've never supported this pll since the switch to the
> new clock driver (in 2018). Back then a lot of clock were directly
> found in the DTB but that ship has sailed a long time ago.
>   FreeBSD 11 still have the old clock drivers (and the old DTB) which is
> why it worked for you.
>   I don't think that anybody have any plan to work on that tbh.

I expect you mention that sys/arm/allwinner/clk/aw_pll.c was not ported 
to FreeBSD 12 clkng (sys/arm/allwinner/clkng/). If you mention "do not 
support" mean really just code migration/testing or it can't be 
supported because of any new kernel feature/architecture? In other words 
if I will focus on migration, could it work?

					Best regards,

						Jirka Novak


-- 
Ing. Jiří Novák | CTO, Systems Engineer
NET-SYSTEM s.r.o.
Phone: +420 482 428 139 | Mobile: +420 602 583 815
Email: j.novak@netsystem.cz | Web: www.netsystem.cz