Skip to contentSkip to conversation

devicetree: Add hardware rng entry to qcom-apq8064.dtsi

RFC PATCH Superseded John Stultz 2 participants 2 messages May 12, 2015 Device tree bindings

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/1 devicetree: Add hardware rng entry to qcom-apq8064.dtsi

Add devicetree data to add support for hw_rng support to the apq8064 dts.

Tested on the Nexus7 (2013).

Cc Kumar Gala <[email protected]>
Cc Stephen Boyd <[email protected]>
Cc Srinivas Kandagatla <[email protected]>

---

I'm not totally sure this is the right place for this entry, but wanted to send it out for review.
thanks
-john

 arch/arm/boot/dts/qcom-apq8064.dtsi | 7 +++++++
 1 file changed, 7 insertions(+)
arch/arm/boot/dts/qcom-apq8064.dtsi +7 -0
index b3154c0..c760f2f 100644
@@ -226,6 +226,13 @@
 			};
 		};
 
+		rng@1a500000 {
+			compatible = "qcom,prng";
+			reg = <0x1A500000 0x200>;
+			clocks = <&gcc PRNG_CLK>;
+			clock-names = "core";
+		};
+
 		qcom,ssbi@500000 {
 			compatible = "qcom,ssbi";
 			reg = <0x00500000 0x1000>;
Signature · 6 lines
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Reviewed-by on v1 1/1
#1 lore raw

arch/arm/boot/dts/qcom-apq8064.dtsi line 231

Quoted 11 lines · John Stultz
arch/arm/boot/dts/qcom-apq8064.dtsi +3 -0
index b3154c0..c760f2f 100644
@@ -226,6 +226,13 @@
 			};
 		};
 
+		rng@1a500000 {
+			compatible = "qcom,prng";
+			reg = <0x1A500000 0x200>;

This could be lowercase to match the rest of this file.

arch/arm/boot/dts/qcom-apq8064.dtsi line 238

Quoted 7 lines
arch/arm/boot/dts/qcom-apq8064.dtsi +4 -0
+			clocks = <&gcc PRNG_CLK>;
+			clock-names = "core";
+		};
+
 		qcom,ssbi@500000 {
 			compatible = "qcom,ssbi";
 			reg = <0x00500000 0x1000>;

Otherwise looks good.

Signature · 7 lines
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html