From: Heiner Kallweit Date: Wed, 22 Feb 2017 07:00:55 +0000 (+0100) Subject: ARM64: dts: meson-gx: add clock CLKID_RNG0 to hwrng node X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1b3f6d148692ef3c3c96af1647083ff38d429e46;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git ARM64: dts: meson-gx: add clock CLKID_RNG0 to hwrng node Add clock CLKID_RNG0 to HW randon number generator node. Signed-off-by: Heiner Kallweit Signed-off-by: Herbert Xu --- diff --git a/arch/arm64/boot/dts/amlogic/meson-gx.dtsi b/arch/arm64/boot/dts/amlogic/meson-gx.dtsi index 5d995f7724af..620495a43363 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gx.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gx.dtsi @@ -380,7 +380,7 @@ #size-cells = <2>; ranges = <0x0 0x0 0x0 0xc8834000 0x0 0x2000>; - rng { + hwrng: rng { compatible = "amlogic,meson-rng"; reg = <0x0 0x0 0x0 0x4>; }; diff --git a/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi b/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi index 04b3324bc132..a375cb21cc8b 100644 --- a/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi +++ b/arch/arm64/boot/dts/amlogic/meson-gxbb.dtsi @@ -524,3 +524,8 @@ &vpu { compatible = "amlogic,meson-gxbb-vpu", "amlogic,meson-gx-vpu"; }; + +&hwrng { + clocks = <&clkc CLKID_RNG0>; + clock-names = "core"; +};