ARM64: meson-axg: enable hardware rng
authorJerome Brunet <jbrunet@baylibre.com>
Mon, 18 Dec 2017 11:35:46 +0000 (12:35 +0100)
committerKevin Hilman <khilman@baylibre.com>
Mon, 12 Feb 2018 22:15:09 +0000 (14:15 -0800)
Enable the hardware random generator

Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
arch/arm64/boot/dts/amlogic/meson-axg.dtsi

index 70c776e..994106d 100644 (file)
                        #size-cells = <2>;
                        ranges = <0x0 0x0 0x0 0xff634000 0x0 0x2000>;
 
+                       hwrng: rng {
+                               compatible = "amlogic,meson-rng";
+                               reg = <0x0 0x18 0x0 0x4>;
+                               clocks = <&clkc CLKID_RNG0>;
+                               clock-names = "core";
+                       };
+
                        pinctrl_periphs: pinctrl@480 {
                                compatible = "amlogic,meson-axg-periphs-pinctrl";
                                #address-cells = <2>;