From: Elaine Zhang Date: Tue, 21 Mar 2017 07:09:17 +0000 (+0800) Subject: arm64: dts: rockchip: rk3368: xin32k use the fixed clk X-Git-Tag: firefly_0821_release~275 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=61e585b9ef7f0aa9bce9f004771becda795aa563;p=firefly-linux-kernel-4.4.55.git arm64: dts: rockchip: rk3368: xin32k use the fixed clk If xin32k use the rk808_clkout1, rk808 init is too late, xin32k enable count and prepare count is not match with it's child clk. Change-Id: I314776c5024fdf3373619968582497e0e2d5666f Signed-off-by: Elaine Zhang --- diff --git a/arch/arm64/boot/dts/rockchip/rk3368-geekbox.dts b/arch/arm64/boot/dts/rockchip/rk3368-geekbox.dts index 46cdddfcea6c..a66179ad0ffb 100644 --- a/arch/arm64/boot/dts/rockchip/rk3368-geekbox.dts +++ b/arch/arm64/boot/dts/rockchip/rk3368-geekbox.dts @@ -160,7 +160,7 @@ vcc10-supply = <&vcc_sys>; vcc11-supply = <&vcc_sys>; vcc12-supply = <&vcc_io>; - clock-output-names = "xin32k", "rk808-clkout2"; + clock-output-names = "rk808-clkout1", "rk808-clkout2"; #clock-cells = <1>; regulators { diff --git a/arch/arm64/boot/dts/rockchip/rk3368-p9.dts b/arch/arm64/boot/dts/rockchip/rk3368-p9.dts index d7ee5dd6f217..855a579c870c 100644 --- a/arch/arm64/boot/dts/rockchip/rk3368-p9.dts +++ b/arch/arm64/boot/dts/rockchip/rk3368-p9.dts @@ -329,7 +329,7 @@ compatible = "rockchip,rk818"; status = "okay"; reg = <0x1c>; - clock-output-names = "xin32k", "wifibt_32kin"; + clock-output-names = "rk808-clkout1", "wifibt_32kin"; interrupt-parent = <&gpio0>; interrupts = <1 IRQ_TYPE_LEVEL_LOW>; pinctrl-names = "default"; diff --git a/arch/arm64/boot/dts/rockchip/rk3368-sheep.dts b/arch/arm64/boot/dts/rockchip/rk3368-sheep.dts index 0b8134ffe42a..c9f739178341 100644 --- a/arch/arm64/boot/dts/rockchip/rk3368-sheep.dts +++ b/arch/arm64/boot/dts/rockchip/rk3368-sheep.dts @@ -234,7 +234,7 @@ reg = <0x1c>; status = "okay"; - clock-output-names = "xin32k", "wifibt_32kin"; + clock-output-names = "rk808-clkout1", "wifibt_32kin"; interrupt-parent = <&gpio0>; interrupts = <1 IRQ_TYPE_LEVEL_LOW>; pinctrl-names = "default"; diff --git a/arch/arm64/boot/dts/rockchip/rk3368.dtsi b/arch/arm64/boot/dts/rockchip/rk3368.dtsi index 4845d82b80e3..1c3eae584871 100644 --- a/arch/arm64/boot/dts/rockchip/rk3368.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3368.dtsi @@ -393,6 +393,13 @@ #clock-cells = <0>; }; + xin32k: xin32k { + compatible = "fixed-clock"; + clock-frequency = <32768>; + clock-output-names = "xin32k"; + #clock-cells = <0>; + }; + sdmmc: rksdmmc@ff0c0000 { compatible = "rockchip,rk3368-dw-mshc", "rockchip,rk3288-dw-mshc"; reg = <0x0 0xff0c0000 0x0 0x4000>;