[PATCH 1/2] dt-bindings: rng: mtk-rng: add SMC-based TRNG variants
Krzysztof Kozlowski
krzk at kernel.org
Wed Mar 4 04:18:20 PST 2026
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?
> 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
More information about the Linux-mediatek
mailing list