]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
arm64: dts: ti: k3-am62: Add RNG node
authorShiva Tripathi <s-tripathi1@ti.com>
Fri, 26 Sep 2025 10:02:29 +0000 (15:32 +0530)
committerVignesh Raghavendra <vigneshr@ti.com>
Wed, 29 Oct 2025 05:36:40 +0000 (11:06 +0530)
Add EIP76 Random Number Generator (RNG) node within crypto engine for
AM62 and AM62A SoCs. The RNG hardware is integrated in crypto
subsystem at address 0x40910000.

Mark the RNG node with status "reserved" as it is intended for use by
OP-TEE for secure random number generation. If required, this hardware
can also be used through Linux kernel by enabling this node.

Signed-off-by: Shiva Tripathi <s-tripathi1@ti.com>
Link: https://patch.msgid.link/20250926100229.923547-1-s-tripathi1@ti.com
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
arch/arm64/boot/dts/ti/k3-am62-main.dtsi
arch/arm64/boot/dts/ti/k3-am62a-main.dtsi

index 573efbc13171bf4d0d6fb0d32a6112beeb5faa39..a290a674767bee194c3d5f29583b79b214c2d677 100644 (file)
                dmas = <&main_pktdma 0xf501 0>, <&main_pktdma 0x7506 0>,
                       <&main_pktdma 0x7507 0>;
                dma-names = "tx", "rx1", "rx2";
+               #address-cells = <2>;
+               #size-cells = <2>;
+               ranges = <0x00 0x40900000 0x00 0x40900000 0x00 0x30000>;
+
+               rng: rng@40910000 {
+                       compatible = "inside-secure,safexcel-eip76";
+                       reg = <0x00 0x40910000 0x00 0x7d>;
+                       interrupts = <GIC_SPI 129 IRQ_TYPE_LEVEL_HIGH>;
+                       status = "reserved"; /* Reserved for OP-TEE */
+               };
        };
 
        secure_proxy_sa3: mailbox@43600000 {
index 829f00adea6e3266224556201a17f2565b0c509c..9e5b75a4e88e23c74270b667a0a02d5efd931532 100644 (file)
                dmas = <&main_pktdma 0xf501 0>, <&main_pktdma 0x7506 0>,
                       <&main_pktdma 0x7507 0>;
                dma-names = "tx", "rx1", "rx2";
+               #address-cells = <2>;
+               #size-cells = <2>;
+               ranges = <0x00 0x40900000 0x00 0x40900000 0x00 0x30000>;
+
+               rng: rng@40910000 {
+                       compatible = "inside-secure,safexcel-eip76";
+                       reg = <0x00 0x40910000 0x00 0x7d>;
+                       interrupts = <GIC_SPI 129 IRQ_TYPE_LEVEL_HIGH>;
+                       status = "reserved"; /* Reserved for OP-TEE */
+               };
        };
 
        secure_proxy_sa3: mailbox@43600000 {