]> git.karo-electronics.de Git - linux-beck.git/commitdiff
arm64: dts: Add RNG device tree nodes for APM X-Gene v2 platform
authorDuc Dang <dhdang@apm.com>
Mon, 5 Oct 2015 23:36:10 +0000 (16:36 -0700)
committerDuc Dang <dhdang@apm.com>
Tue, 17 Nov 2015 21:11:53 +0000 (13:11 -0800)
This patch adds device tree nodes to enable driver for True Random
Number Generator (TRNG) on APM X-Gene v2 platforms.

Signed-off-by: Duc Dang <dhdang@apm.com>
arch/arm64/boot/dts/apm/apm-shadowcat.dtsi

index ddf1e86fa67ef981c988dfb9a2e07156c163de39..630ed4a4ef1b4bd11e136f1bc2bf3a1fa7af9dc0 100644 (file)
                                csr-mask = <0x3>;
                                clock-output-names = "xge1clk";
                        };
+
+                       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";
+                       };
                };
 
                scu: system-clk-controller@17000000 {
                        local-mac-address = [00 01 73 00 00 02];
                        phy-connection-type = "xgmii";
                };
+
+               rng: rng@10520000 {
+                       compatible = "apm,xgene-rng";
+                       reg = <0x0 0x10520000 0x0 0x100>;
+                       interrupts = <0x0 0x41 0x4>;
+                       clocks = <&rngpkaclk 0>;
+               };
        };
 };