From: dkl Date: Mon, 17 Mar 2014 08:57:25 +0000 (+0800) Subject: clk: rockchip: add clocks_init in rk3288.dtsi X-Git-Tag: firefly_0821_release~6054 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e68011dfc4ae4a924a97289c2f008bf5d07a4332;p=firefly-linux-kernel-4.4.55.git clk: rockchip: add clocks_init in rk3288.dtsi --- diff --git a/arch/arm/boot/dts/rk3288-clocks.dtsi b/arch/arm/boot/dts/rk3288-clocks.dtsi index 72490598be3b..45feb4690a47 100644 --- a/arch/arm/boot/dts/rk3288-clocks.dtsi +++ b/arch/arm/boot/dts/rk3288-clocks.dtsi @@ -302,11 +302,11 @@ clocks = <&clk_apll>, <&clk_gates0 2>; clock-output-names = "clk_core"; #clock-cells = <0>; + #clock-init-cells = <1>; }; }; - clk_sel_con1: sel-con@0064 { compatible = "rockchip,rk3188-selcon"; reg = <0x0064 0x4>; @@ -320,6 +320,7 @@ clock-output-names = "aclk_bus"; rockchip,div-type = ; #clock-cells = <0>; + #clock-init-cells = <1>; }; aclk_bus_src_div: aclk_bus_src_div { @@ -329,6 +330,9 @@ clock-output-names = "aclk_bus_src"; rockchip,div-type = ; #clock-cells = <0>; + rockchip,clkops-idx = + ; + rockchip,flags = ; }; hclk_bus: hclk_bus_div { @@ -342,6 +346,7 @@ 0x1 2 0x3 4>; #clock-cells = <0>; + #clock-init-cells = <1>; }; /* reg[11:10]: reserved */ @@ -353,14 +358,17 @@ clock-output-names = "pclk_bus"; rockchip,div-type = ; #clock-cells = <0>; + #clock-init-cells = <1>; }; aclk_bus_src: aclk_bus_src_mux { compatible = "rockchip,rk3188-mux-con"; rockchip,bits = <15 1>; - clocks = <&clk_gates0 11>, <&clk_gates0 10>; + clocks = <&clk_cpll>, <&clk_gpll>; + /*clocks = <&clk_gates0 11>, <&clk_gates0 10>; FIXME*/ clock-output-names = "aclk_bus_src"; #clock-cells = <0>; + #clock-init-cells = <1>; }; }; @@ -439,6 +447,9 @@ clock-output-names = "clk_i2s_pll"; rockchip,div-type = ; #clock-cells = <0>; + rockchip,clkops-idx = + ; + rockchip,flags = ; }; /* reg[7]: reserved */ @@ -470,8 +481,7 @@ clocks = <&clk_cpll>, <&clk_gpll>; clock-output-names = "clk_i2s_pll"; #clock-cells = <0>; - rockchip,clkops-idx = - ; + #clock-init-cells = <1>; }; }; @@ -617,13 +627,16 @@ #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>; + rockchip,clkops-idx = + ; + rockchip,flags = ; }; /* reg[7:5]: reserved */ @@ -639,6 +652,7 @@ 0x1 2 0x2 4>; #clock-cells = <0>; + #clock-init-cells = <1>; }; /* reg[11:10]: reserved */ @@ -655,16 +669,18 @@ 0x2 4 0x3 8>; #clock-cells = <0>; + #clock-init-cells = <1>; }; /* 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>; }; }; @@ -1194,6 +1210,7 @@ clock-output-names = "clk_crypto"; rockchip,div-type = ; #clock-cells = <0>; + #clock-init-cells = <1>; }; clk_cif_pll: clk_cif_pll_mux { @@ -1519,6 +1536,7 @@ clock-output-names = "pclk_pd_pmu"; rockchip,div-type = ; #clock-cells = <0>; + #clock-init-cells = <1>; }; /* reg[7:5]: reserved */ @@ -1530,6 +1548,7 @@ clock-output-names = "pclk_pd_alive"; rockchip,div-type = ; #clock-cells = <0>; + #clock-init-cells = <1>; }; /* reg[15:13]: reserved */ diff --git a/arch/arm/boot/dts/rk3288.dtsi b/arch/arm/boot/dts/rk3288.dtsi index 6a7898d158de..0639fb039251 100755 --- a/arch/arm/boot/dts/rk3288.dtsi +++ b/arch/arm/boot/dts/rk3288.dtsi @@ -208,6 +208,24 @@ status = "disabled"; }; + clocks-init{ + compatible = "rockchip,clocks-init"; + rockchip,clocks-init-parent = + <&clk_core &clk_apll>, <&aclk_bus_src &clk_gpll>, + <&aclk_peri &clk_gpll>, <&clk_uart_pll_mux &clk_gpll>, + <&clk_i2s_pll &clk_cpll>; + rockchip,clocks-init-rate = + <&clk_core 792000000>, <&clk_gpll 594000000>, + <&clk_cpll 393216000>, <&clk_npll 500000000>, + <&aclk_bus_src 300000000>, <&aclk_bus 300000000>, + <&hclk_bus 150000000>, <&pclk_bus 75000000>, + <&clk_crypto 150000000>, <&aclk_peri 300000000>, + <&hclk_peri 150000000>, <&pclk_peri 75000000>, + <&clk_gpu 200000000>, <&aclk_vio0 300000000>, + <&aclk_vio1 300000000>, <&hclk_vio 75000000>, + <&pclk_pd_alive 100000000>, <&pclk_pd_pmu 100000000>; + }; + i2c0: i2c@ff650000 { compatible = "rockchip,rk30-i2c"; reg = <0xff650000 0x1000>;