Subject: [PATCH v2 3/4] crypto: jz4780-rng: Add RNG node to jz4780.dtsi

Add RNG node to jz4780 dtsi. This driver uses registers that are part of
the register set used by Ingenic CGU driver. Make RNG node as child of
CGU node.

Signed-off-by: PrasannaKumar Muralidharan <[email protected]>
---
Changes in v2:
* Add "syscon" in CGU node's compatible section
* Make RNG child node of CGU.

arch/mips/boot/dts/ingenic/jz4780.dtsi | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/arch/mips/boot/dts/ingenic/jz4780.dtsi b/arch/mips/boot/dts/ingenic/jz4780.dtsi
index 4853ef6..411e16c 100644
--- a/arch/mips/boot/dts/ingenic/jz4780.dtsi
+++ b/arch/mips/boot/dts/ingenic/jz4780.dtsi
@@ -35,13 +35,17 @@
};

cgu: jz4780-cgu@10000000 {
- compatible = "ingenic,jz4780-cgu";
+ compatible = "ingenic,jz4780-cgu", "syscon";
reg = <0x10000000 0x100>;

clocks = <&ext>, <&rtc>;
clock-names = "ext", "rtc";

#clock-cells = <1>;
+
+ rng: rng@d8 {
+ compatible = "ingenic,jz480-rng";
+ };
};

pinctrl: pin-controller@10010000 {
--
2.10.0


2017-08-23 14:51:09

by Ralf Baechle

[permalink] [raw]
Subject: Re: [PATCH v2 3/4] crypto: jz4780-rng: Add RNG node to jz4780.dtsi

On Wed, Aug 23, 2017 at 08:27:06AM +0530, PrasannaKumar Muralidharan wrote:

> Add RNG node to jz4780 dtsi. This driver uses registers that are part of
> the register set used by Ingenic CGU driver. Make RNG node as child of
> CGU node.
>
> Signed-off-by: PrasannaKumar Muralidharan <[email protected]>
> ---
> Changes in v2:
> * Add "syscon" in CGU node's compatible section
> * Make RNG child node of CGU.
>
> arch/mips/boot/dts/ingenic/jz4780.dtsi | 6 +++++-

This barely touched arch/mips so probably should be funnelled along with
the rest of the series:

Acked-by: Ralf Baechle <[email protected]>

Or I can take everything.

Ralf