Re: [PATCH 1/2] dt-bindings: rng: mtk-rng: add SMC-based TRNG variants

From: Daniel Golle

Date: Wed Mar 04 2026 - 07:21:53 EST


On Wed, Mar 04, 2026 at 01:18:20PM +0100, Krzysztof Kozlowski wrote:
> On 04/03/2026 13:14, Daniel Golle wrote:
> >
> > Starting with MT7981 and followed by MT7988 and MT7987 it is
> > technically the same hardware, but on those ARMv8 SoCs TF-A assigns
>
> So they are compatible, I presume?

Yes. MT7988 and MT7987 are just like MT7981 in that regard.

>
> > the MMIO range of the TRNG to only be accessible from within the
> > secure/trusted land, and TF-A provides a (vendor-specific) API
> > allowing non-trusted land (ie. Linux) to acquire random bytes.
> >
> > With MT7986 they made the unlucky choice to initially allow direct
> > access to the MMIO range, but later updates to TF-A then also locked
> > it to secure/trusted land, offering the same API as on the newer SoCs.
> > So for MT7986 the driver has to try and figure out which convention to
> > use.
> >
>
>
>
> Best regards,
> Krzysztof