]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
dt-bindings: rng: mtk-rng: add SMC-based TRNG variants
authorDaniel Golle <daniel@makrotopia.org>
Mon, 20 Apr 2026 16:35:09 +0000 (17:35 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 7 May 2026 08:10:02 +0000 (16:10 +0800)
commit20f43e30b3f56cc757b2576364d07a4ddb324ab4
treeea6bdd5c83e725f253f66f210602b6ff21426507
parent7e04a638dee0313db8b8ecd38be5d36ead22cbf5
dt-bindings: rng: mtk-rng: add SMC-based TRNG variants

Add compatible strings for MediaTek SoCs where the hardware random number
generator is accessed via a vendor-defined Secure Monitor Call (SMC)
rather than direct MMIO register access:

  - mediatek,mt7981-rng
  - mediatek,mt7987-rng
  - mediatek,mt7988-rng

These variants require no reg, clocks, or clock-names properties since
the RNG hardware is managed by ARM Trusted Firmware-A.

Relax the $nodename pattern to also allow 'rng' in addition to the
existing 'rng@...' pattern.

Add a second example showing the minimal SMC variant binding.

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Documentation/devicetree/bindings/rng/mtk-rng.yaml