Support upstreamed AP806/CP110 bindings in mvtemp(4). Apparently older EDK2
authorpatrick <patrick@openbsd.org>
Tue, 18 Apr 2023 08:35:02 +0000 (08:35 +0000)
committerpatrick <patrick@openbsd.org>
Tue, 18 Apr 2023 08:35:02 +0000 (08:35 +0000)
commit12fbe0774cc89ffbd690f7e96ad30cd11636bf73
tree6e033780356831ee98fd2ad372f92ed0a5428b5d
parentc6a6590f55230fc4fe72212c9c23b423830fca10
Support upstreamed AP806/CP110 bindings in mvtemp(4).  Apparently older EDK2
versions shipped bindings compatible with the Armada 380, but when the ARM64
SoCs were upstreamed from the vendor fork to Linux, those apparently were
adjusted.

With this diff mvtemp(4) now tries and use the parent as syscon regmap in case
the legacy binding cannot be used.  Furthermore this adds some initialization
as apparently the new EDK2 does less of that work during bootup.

Noticed by mbuhl@ who's running an updated EDK2 on the MACCHIATObin.
ok kettenis@
sys/dev/fdt/mvtemp.c