From: dkl Date: Mon, 17 Mar 2014 06:33:00 +0000 (+0800) Subject: clk: rockchip: fix aclk_peri,aclk_cpu in RK3188 X-Git-Tag: firefly_0821_release~6060 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ede940a18bfed8aca95c947eea70b905f5a6ea3a;p=firefly-linux-kernel-4.4.55.git clk: rockchip: fix aclk_peri,aclk_cpu in RK3188 --- diff --git a/arch/arm/boot/dts/rk3188-clocks.dtsi b/arch/arm/boot/dts/rk3188-clocks.dtsi index 66c7917c54b0..e252ce4e1e9f 100755 --- a/arch/arm/boot/dts/rk3188-clocks.dtsi +++ b/arch/arm/boot/dts/rk3188-clocks.dtsi @@ -156,21 +156,23 @@ #address-cells = <1>; #size-cells = <1>; - aclk_cpu: aclk_cpu_div { + aclk_cpu_div: aclk_cpu_div { compatible = "rockchip,rk3188-div-con"; rockchip,bits = <0 5>; - clocks = <&aclk_cpu_mux>; + clocks = <&aclk_cpu>; clock-output-names = "aclk_cpu"; #clock-cells = <0>; rockchip,div-type = ; - #clock-init-cells = <1>; + rockchip,clkops-idx = + ; + rockchip,flags = ; }; - aclk_cpu_mux: aclk_cpu_mux { + aclk_cpu: aclk_cpu_mux { compatible = "rockchip,rk3188-mux-con"; rockchip,bits = <5 1>; - clocks = <&clk_apll>, <&clk_gpll>;/*FIXME*/ - clock-output-names = "aclk_cpu_mux"; + clocks = <&clk_apll>, <&clk_gpll>; + clock-output-names = "aclk_cpu"; #clock-cells = <0>; #clock-init-cells = <1>; }; @@ -398,14 +400,17 @@ #address-cells = <1>; #size-cells = <1>; - aclk_peri: aclk_peri_div { + aclk_peri_div: aclk_peri_div { compatible = "rockchip,rk3188-div-con"; rockchip,bits = <0 5>; - clocks = <&aclk_peri_mux>; + clocks = <&aclk_peri>; clock-output-names = "aclk_peri"; rockchip,div-type = ; #clock-cells = <0>; #clock-init-cells = <1>; + rockchip,clkops-idx = + ; + rockchip,flags = ; }; /* reg[7:5]: reserved */ @@ -434,11 +439,11 @@ /* reg[14]: reserved */ - aclk_peri_mux: aclk_peri_mux { + aclk_peri: aclk_peri_mux { compatible = "rockchip,rk3188-mux-con"; rockchip,bits = <15 1>; clocks = <&clk_cpll>, <&clk_gpll>; - clock-output-names = "aclk_peri_mux"; + clock-output-names = "aclk_peri"; #clock-cells = <0>; #clock-init-cells = <1>; }; @@ -1221,7 +1226,7 @@ clk_gates2: gate-clk@00d8 { compatible = "rockchip,rk3188-gate-clk"; reg = <0x00d8 0x4>; - clocks = <&aclk_peri_mux>, <&aclk_peri>, + clocks = <&aclk_peri>, <&aclk_peri>, <&hclk_peri>, <&pclk_peri>, <&hclk_peri>, <&clk_mac_pll_mux>, @@ -1234,7 +1239,7 @@ <&clk_emmc>, <&dummy>; clock-output-names = - "aclk_peri_mux", "aclk_peri", + "aclk_peri", "g_aclk_peri", "hclk_peri", "pclk_peri", "g_smc_src", "clk_mac_pll", diff --git a/arch/arm/boot/dts/rk3188.dtsi b/arch/arm/boot/dts/rk3188.dtsi index d1b15f4075f9..3bb3256c04a0 100755 --- a/arch/arm/boot/dts/rk3188.dtsi +++ b/arch/arm/boot/dts/rk3188.dtsi @@ -475,8 +475,8 @@ clocks-init{ compatible = "rockchip,clocks-init"; rockchip,clocks-init-parent = - <&clk_core &clk_apll>, <&aclk_cpu_mux &clk_gpll>,/*FIXME*/ - <&aclk_peri_mux &clk_gpll>, <&clk_i2s_pll_mux &clk_cpll>, + <&clk_core &clk_apll>, <&aclk_cpu &clk_gpll>, + <&aclk_peri &clk_gpll>, <&clk_i2s_pll_mux &clk_cpll>, <&clk_uart_pll_mux &clk_gpll>; rockchip,clocks-init-rate = <&clk_core 792000000>, <&clk_gpll 768000000>,