Skip to contentSkip to conversation

ARM: dts: qcom: Add RNG device tree node

PATCH New Stanimir Varbanov 2 participants 6 messages Feb 7, 2014 – Feb 19, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: dts: qcom: Add RNG device tree node

Add the necessary DT node to probe the rng driver on msm8974 platforms.

---
 arch/arm/boot/dts/qcom-msm8974.dtsi | 7 +++++++
 1 file changed, 7 insertions(+)
arch/arm/boot/dts/qcom-msm8974.dtsi +7 -0
index 9e5dadb101eb..ada0e8216c22 100644
@@ -117,5 +117,12 @@
 			clocks = <&gcc GCC_BLSP1_UART2_APPS_CLK>, <&gcc GCC_BLSP1_AHB_CLK>;
 			clock-names = "core", "iface";
 		};
+
+		rng at f9bff000 {
+			compatible = "qcom,prng";
+			reg = <0xf9bff000 0x200>;
+			clocks = <&gcc GCC_PRNG_AHB_CLK>;
+			clock-names = "core";
+		};
 	};
 };
Signature · 1 line
1.8.4.4
#1 lore raw

PATCH 1/1 ARM: dts: qcom: Add RNG device tree node

Quoted 3 lines · Stanimir Varbanov

Add the necessary DT node to probe the rng driver on msm8974 platforms.

Looks good. We should add it to msm8960-cdp and enable the driver in the defconfig as well.

Quoted 1 line
Signature · 2 lines
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
hosted by The Linux Foundation
#2 lore raw

PATCH 1/1 ARM: dts: qcom: Add RNG device tree node

Hi, Stephen

Quoted 7 lines · Stephen Boyd
Quoted 3 lines · Stanimir Varbanov

Add the necessary DT node to probe the rng driver on msm8974 platforms.

Looks good. We should add it to msm8960-cdp and enable the driver in the defconfig as well.

Sure, I can prepare a patch. Unfortunately I haven't msm8960 CDP to test it.

Quoted 5 lines
Quoted 2 lines

Thanks!

regards,
Stan

#3 lore raw

PATCH 1/1 ARM: dts: qcom: Add RNG device tree node

Quoted 4 lines · Stanimir Varbanov

Hi, Stephen

Quoted 1 line · Stephen Boyd

On 02/07, Stanimir Varbanov wrote:

Quoted 9 lines
Quoted 6 lines
Quoted 3 lines

Add the necessary DT node to probe the rng driver on msm8974 platforms.

Looks good. We should add it to msm8960-cdp and enable the driver in the defconfig as well.

Sure, I can prepare a patch. Unfortunately I haven't msm8960 CDP to test it.

No problem. I have one on my desk and can run a test if you like.

Signature · 2 lines
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
hosted by The Linux Foundation
#4 lore raw

PATCH 1/1 ARM: dts: qcom-msm8960-cdp: Add RNG device tree node

Add the necessary DT node to probe the rng driver on msm8960-cdp platform.

---
 arch/arm/boot/dts/qcom-msm8960-cdp.dts | 7 +++++++
 1 file changed, 7 insertions(+)
arch/arm/boot/dts/qcom-msm8960-cdp.dts +7 -0
index 7c30de4fa302..8fda9c90ba97 100644
@@ -67,4 +67,11 @@
 		reg = <0x500000 0x1000>;
 		qcom,controller-type = "pmic-arbiter";
 	};
+
+	rng@1a500000 {
+		compatible = "qcom,prng";
+		reg = <0x1a500000 0x200>;
+		clocks = <&gcc PRNG_CLK>;
+		clock-names = "core";
+	};
 };
Signature · 1 line
1.8.4.4