The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH 0/2] Add support for rng on shikra
@ 2026-05-14 13:16 Kuldeep Singh
  2026-05-14 13:16 ` [PATCH 1/2] dt-bindings: crypto: qcom,prng: Document Shikra TRNG Kuldeep Singh
  2026-05-14 13:16 ` [PATCH 2/2] arm64: dts: qcom: shikra: Add TRNG support Kuldeep Singh
  0 siblings, 2 replies; 5+ messages in thread
From: Kuldeep Singh @ 2026-05-14 13:16 UTC (permalink / raw)
  To: Herbert Xu, David S. Miller, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Vinod Koul, Bjorn Andersson, Konrad Dybcio
  Cc: linux-arm-msm, linux-crypto, devicetree, linux-kernel,
	Kuldeep Singh

The patchseries contain dt-binding and DT changes for enabling rng on
shikra.

This series depends on the following prerequisite patchset:
- https://lore.kernel.org/all/20260512-shikra-dt-v1-0-716438330dd0@oss.qualcomm.com/

Tested-on: shikra-iqs-evk

Testing:
- Boot the board and verify qcom_rng driver probe success.
- Validated rngtest utils
- validated against dt_binding and dtbs_check.

Steps followed:
- cat /sys/class/misc/hw_random/rng_available
- echo qcom_hwrng > /sys/class/misc/hw_random/rng_current
- cat /sys/class/misc/hw_random/rng_current
- cat /dev/random | rngtest -c 1000

Signed-off-by: Kuldeep Singh <kuldeep.singh@oss.qualcomm.com>
---
Kuldeep Singh (2):
      dt-bindings: crypto: qcom,prng: Document Shikra TRNG
      arm64: dts: qcom: shikra: Add TRNG support

 Documentation/devicetree/bindings/crypto/qcom,prng.yaml | 1 +
 arch/arm64/boot/dts/qcom/shikra.dtsi                    | 5 +++++
 2 files changed, 6 insertions(+)
---
base-commit: 33c8e3305b65a2e757e68b10af521ad54ea051a6
change-id: 20260514-shikra_rng-ce87409afd22

Best regards,
--  
Kuldeep Singh <kuldeep.singh@oss.qualcomm.com>


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 1/2] dt-bindings: crypto: qcom,prng: Document Shikra TRNG
  2026-05-14 13:16 [PATCH 0/2] Add support for rng on shikra Kuldeep Singh
@ 2026-05-14 13:16 ` Kuldeep Singh
  2026-05-15 11:00   ` Krzysztof Kozlowski
  2026-05-14 13:16 ` [PATCH 2/2] arm64: dts: qcom: shikra: Add TRNG support Kuldeep Singh
  1 sibling, 1 reply; 5+ messages in thread
From: Kuldeep Singh @ 2026-05-14 13:16 UTC (permalink / raw)
  To: Herbert Xu, David S. Miller, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Vinod Koul, Bjorn Andersson, Konrad Dybcio
  Cc: linux-arm-msm, linux-crypto, devicetree, linux-kernel,
	Kuldeep Singh

Document shikra compatible for the True Random Number Generator.

Signed-off-by: Kuldeep Singh <kuldeep.singh@oss.qualcomm.com>
---
 Documentation/devicetree/bindings/crypto/qcom,prng.yaml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Documentation/devicetree/bindings/crypto/qcom,prng.yaml b/Documentation/devicetree/bindings/crypto/qcom,prng.yaml
index 498d6914135e..e2430280b2a3 100644
--- a/Documentation/devicetree/bindings/crypto/qcom,prng.yaml
+++ b/Documentation/devicetree/bindings/crypto/qcom,prng.yaml
@@ -28,6 +28,7 @@ properties:
               - qcom,sa8255p-trng
               - qcom,sa8775p-trng
               - qcom,sc7280-trng
+              - qcom,shikra-trng
               - qcom,sm8450-trng
               - qcom,sm8550-trng
               - qcom,sm8650-trng

-- 
2.34.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 2/2] arm64: dts: qcom: shikra: Add TRNG support
  2026-05-14 13:16 [PATCH 0/2] Add support for rng on shikra Kuldeep Singh
  2026-05-14 13:16 ` [PATCH 1/2] dt-bindings: crypto: qcom,prng: Document Shikra TRNG Kuldeep Singh
@ 2026-05-14 13:16 ` Kuldeep Singh
  2026-05-15  8:53   ` Konrad Dybcio
  1 sibling, 1 reply; 5+ messages in thread
From: Kuldeep Singh @ 2026-05-14 13:16 UTC (permalink / raw)
  To: Herbert Xu, David S. Miller, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Vinod Koul, Bjorn Andersson, Konrad Dybcio
  Cc: linux-arm-msm, linux-crypto, devicetree, linux-kernel,
	Kuldeep Singh

Add True Random Number Generator(TRNG) node for shikra.

Signed-off-by: Kuldeep Singh <kuldeep.singh@oss.qualcomm.com>
---
 arch/arm64/boot/dts/qcom/shikra.dtsi | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/arch/arm64/boot/dts/qcom/shikra.dtsi b/arch/arm64/boot/dts/qcom/shikra.dtsi
index 262c488add1e..e81210254ba4 100644
--- a/arch/arm64/boot/dts/qcom/shikra.dtsi
+++ b/arch/arm64/boot/dts/qcom/shikra.dtsi
@@ -580,6 +580,11 @@ spmi_bus: spmi@1c40000 {
 			qcom,ee = <0>;
 		};
 
+		rng: rng@4454000 {
+			compatible = "qcom,shikra-trng", "qcom,trng";
+			reg = <0 0x04454000 0 0x1000>;
+		};
+
 		rpm_msg_ram: sram@45f0000 {
 			compatible = "qcom,rpm-msg-ram", "mmio-sram";
 			reg = <0x0 0x045f0000 0x0 0x7000>;

-- 
2.34.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 2/2] arm64: dts: qcom: shikra: Add TRNG support
  2026-05-14 13:16 ` [PATCH 2/2] arm64: dts: qcom: shikra: Add TRNG support Kuldeep Singh
@ 2026-05-15  8:53   ` Konrad Dybcio
  0 siblings, 0 replies; 5+ messages in thread
From: Konrad Dybcio @ 2026-05-15  8:53 UTC (permalink / raw)
  To: Kuldeep Singh, Herbert Xu, David S. Miller, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Vinod Koul, Bjorn Andersson,
	Konrad Dybcio
  Cc: linux-arm-msm, linux-crypto, devicetree, linux-kernel

On 5/14/26 3:16 PM, Kuldeep Singh wrote:
> Add True Random Number Generator(TRNG) node for shikra.
> 
> Signed-off-by: Kuldeep Singh <kuldeep.singh@oss.qualcomm.com>
> ---

Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>

Konrad

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/2] dt-bindings: crypto: qcom,prng: Document Shikra TRNG
  2026-05-14 13:16 ` [PATCH 1/2] dt-bindings: crypto: qcom,prng: Document Shikra TRNG Kuldeep Singh
@ 2026-05-15 11:00   ` Krzysztof Kozlowski
  0 siblings, 0 replies; 5+ messages in thread
From: Krzysztof Kozlowski @ 2026-05-15 11:00 UTC (permalink / raw)
  To: Kuldeep Singh, Herbert Xu, David S. Miller, Rob Herring,
	Krzysztof Kozlowski, Conor Dooley, Vinod Koul, Bjorn Andersson,
	Konrad Dybcio
  Cc: linux-arm-msm, linux-crypto, devicetree, linux-kernel

On 14/05/2026 15:16, Kuldeep Singh wrote:
> Document shikra compatible for the True Random Number Generator.
> 
> Signed-off-by: Kuldeep Singh <kuldeep.singh@oss.qualcomm.com>
> ---
>  Documentation/devicetree/bindings/crypto/qcom,prng.yaml | 1 +
>  1 file changed, 1 insertion(+)


Same problems.

Best regards,
Krzysztof

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-05-15 11:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-14 13:16 [PATCH 0/2] Add support for rng on shikra Kuldeep Singh
2026-05-14 13:16 ` [PATCH 1/2] dt-bindings: crypto: qcom,prng: Document Shikra TRNG Kuldeep Singh
2026-05-15 11:00   ` Krzysztof Kozlowski
2026-05-14 13:16 ` [PATCH 2/2] arm64: dts: qcom: shikra: Add TRNG support Kuldeep Singh
2026-05-15  8:53   ` Konrad Dybcio

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox