ARM64: dts: rockchip: configure clock frequency for rk3399 tsadc
authorCaesar Wang <wxt@rock-chips.com>
Thu, 24 Mar 2016 13:18:28 +0000 (21:18 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Fri, 25 Mar 2016 08:23:11 +0000 (16:23 +0800)
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 <wxt@rock-chips.com>
arch/arm64/boot/dts/rockchip/rk3399.dtsi

index 2c9bb5de5dd93ca5549dbd7f599b4c63cf685926..83226b9954cd2e920658016cd3779ea5301d3f75 100644 (file)
                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";