arm64: dts: add random number generator dts node to APM X-Gene platform.
authorFeng Kan <fkan@apm.com>
Fri, 22 Aug 2014 23:26:40 +0000 (16:26 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 29 Aug 2014 13:47:12 +0000 (21:47 +0800)
This adds random number generator dts node to APM X-Gene platform.

Signed-off-by: Feng Kan <fkan@apm.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/arm64/boot/dts/apm-storm.dtsi

index c0aceef7f5b32067be4a26a72de0316f7639ed6a..f391972ad1354f1493cb804a415e404f177c0030 100644 (file)
                                enable-mask = <0x2>;
                                clock-output-names = "rtcclk";
                        };
+
+                       rngpkaclk: rngpkaclk@17000000 {
+                               compatible = "apm,xgene-device-clock";
+                               #clock-cells = <1>;
+                               clocks = <&socplldiv2 0>;
+                               reg = <0x0 0x17000000 0x0 0x2000>;
+                               reg-names = "csr-reg";
+                               csr-offset = <0xc>;
+                               csr-mask = <0x10>;
+                               enable-offset = <0x10>;
+                               enable-mask = <0x10>;
+                               clock-output-names = "rngpkaclk";
+                       };
                };
 
                serial0: serial@1c020000 {
 
                        };
                };
+
+               rng: rng@10520000 {
+                       compatible = "apm,xgene-rng";
+                       reg = <0x0 0x10520000 0x0 0x100>;
+                       interrupts = <0x0 0x41 0x4>;
+                       clocks = <&rngpkaclk 0>;
+               };
+
        };
 };