diff mbox series

[v2,2/4] arm64: dts: qcom: ipq5424: add TRNG node

Message ID 20241220070036.3434658-3-quic_mdalam@quicinc.com (mailing list archive)
State Under Review
Delegated to: Herbert Xu
Headers show
Series Enable TRNG support | expand

Commit Message

Md Sadre Alam Dec. 20, 2024, 7 a.m. UTC
Add TRNG (Truly Random Number Generator) node for ipq5424

Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Signed-off-by: Md Sadre Alam <quic_mdalam@quicinc.com>
---

Change in [v2]

* Included Reviewed-by tag
* Updated commit heading from "Add TRNG node" to "add TRNG node".
* Changed "add TRNG" to "Add TRNG" in the commit message
* updated compatible string

Change in [v1]

* Submitted initial patche to activate TRNG for IPQ5424

 arch/arm64/boot/dts/qcom/ipq5424.dtsi | 7 +++++++
 1 file changed, 7 insertions(+)
diff mbox series

Patch

diff --git a/arch/arm64/boot/dts/qcom/ipq5424.dtsi b/arch/arm64/boot/dts/qcom/ipq5424.dtsi
index 5e219f900412..aab1cf787863 100644
--- a/arch/arm64/boot/dts/qcom/ipq5424.dtsi
+++ b/arch/arm64/boot/dts/qcom/ipq5424.dtsi
@@ -145,6 +145,13 @@  soc@0 {
 		#size-cells = <2>;
 		ranges = <0 0 0 0 0x10 0>;
 
+		rng: rng@4c3000 {
+			compatible = "qcom,ipq5424-trng", "qcom,trng";
+			reg = <0 0x004c3000 0 0x1000>;
+			clocks = <&gcc GCC_PRNG_AHB_CLK>;
+			clock-names = "core";
+		};
+
 		tlmm: pinctrl@1000000 {
 			compatible = "qcom,ipq5424-tlmm";
 			reg = <0 0x01000000 0 0x300000>;