From b12b3cba02a2be1eea5f0a38b98faaf3a319840c Mon Sep 17 00:00:00 2001 From: Caesar Wang Date: Thu, 24 Mar 2016 21:18:28 +0800 Subject: [PATCH] ARM64: dts: rockchip: configure clock frequency for rk3399 tsadc As the rk3399 SoCs requires initial configuration for tsadc clock frequency. The tsadc can be specified in a device tree node through assigned-clocks. The tsadc clock needs 500KHz~800KHz frequency to work on rk3399 SoCs. We can add the assigned-clock to prevent the firmware or loader has *not* set the division frequency from the source clock. Change-Id: Ieb4cd5aad7d299baab20a9fb9d39211fe00896ff Signed-off-by: Caesar Wang --- arch/arm64/boot/dts/rockchip/rk3399.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3399.dtsi b/arch/arm64/boot/dts/rockchip/rk3399.dtsi index 2c9bb5de5dd9..83226b9954cd 100644 --- a/arch/arm64/boot/dts/rockchip/rk3399.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3399.dtsi @@ -688,6 +688,8 @@ rockchip,grf = <&grf>; clocks = <&cru SCLK_TSADC>, <&cru PCLK_TSADC>; clock-names = "tsadc", "apb_pclk"; + assigned-clocks = <&cru SCLK_TSADC>; + assigned-clock-rates = <750000>; resets = <&cru SRST_TSADC>; reset-names = "tsadc-apb"; pinctrl-names = "init", "default", "sleep"; -- 2.34.1