status-reg = <0x0014 10>;
clocks = <&xin24m>;
clock-output-names = "clk_dpll";
- rockchip,pll-type = <CLK_PLL_3188PLUS>;
+ rockchip,pll-type = <CLK_PLL_3036PLUS_AUTO>;
#clock-cells = <0>;
};
#address-cells = <1>;
#size-cells = <1>;
- clk_core_pre_div: clk_core_pre_div {
+ clk_core_div: clk_core_div {
compatible = "rockchip,rk3188-div-con";
rockchip,bits = <0 5>;
- clocks = <&clk_core_pre>;
- clock-output-names = "clk_core_pre";
+ clocks = <&clk_core>;
+ clock-output-names = "clk_core";
rockchip,div-type = <CLK_DIVIDER_PLUS_ONE>;
#clock-cells = <0>;
rockchip,clkops-idx = <CLKOPS_RATE_CORE>;
/* reg[6:5]: reserved */
- clk_core_pre: clk_core_pre_mux {
+ clk_core: clk_core_mux {
compatible = "rockchip,rk3188-mux-con";
rockchip,bits = <7 1>;
clocks = <&clk_apll>, <&clk_gates0 6>;
- clock-output-names = "clk_core_pre";
+ clock-output-names = "clk_core";
#clock-cells = <0>;
#clock-init-cells = <1>;
};
pclk_dbg_div: pclk_dbg_div {
compatible = "rockchip,rk3188-div-con";
rockchip,bits = <0 4>;
- clocks = <&clk_core_pre>;
+ clocks = <&clk_core>;
clock-output-names = "pclk_dbg";
rockchip,div-type = <CLK_DIVIDER_PLUS_ONE>;
#clock-cells = <0>;
aclk_core_pre: aclk_core_pre_div {
compatible = "rockchip,rk3188-div-con";
rockchip,bits = <4 3>;
- clocks = <&clk_core_pre>;
+ clocks = <&clk_core>;
clock-output-names = "aclk_core_pre";
rockchip,div-type = <CLK_DIVIDER_PLUS_ONE>;
#clock-cells = <0>;
compatible = "rockchip,rk3188-gate-clk";
reg = <0x00d0 0x4>;
clocks =
- <&clk_core_pre>, <&clk_gpll>,
+ <&clk_core>, <&clk_gpll>,
<&clk_dpll>, <&aclk_cpu_pre>,
<&aclk_cpu_pre>, <&aclk_cpu_pre>,
- <&clk_gpll>, <&clk_core_pre>,
+ <&clk_gpll>, <&clk_core>,
<&clk_gpll>, <&clk_i2s_pll>,
<&i2s_frac>, <&hclk_vio_pre>,
clocks-init{
compatible = "rockchip,clocks-init";
rockchip,clocks-init-parent =
- <&clk_core_pre &clk_apll>, <&aclk_cpu_pre &clk_gpll>,
+ <&clk_core &clk_apll>, <&aclk_cpu_pre &clk_gpll>,
<&aclk_peri_pre &clk_gpll>, <&clk_uart_pll &clk_gpll>,
<&clk_i2s_pll &clk_gpll>, <&clk_spdif_pll &clk_gpll>,
<&aclk_vcodec_pre &clk_gpll>, <&clk_hevc_core &clk_gpll>,
<&clk_mac_pll &clk_apll>;
rockchip,clocks-init-rate =
- <&clk_core_pre 816000000>, <&clk_gpll 594000000>,
+ <&clk_core 816000000>, <&clk_gpll 594000000>,
<&aclk_cpu_pre 150000000>, <&hclk_cpu_pre 75000000>,
<&pclk_cpu_pre 75000000>, <&aclk_peri_pre 150000000>,
<&hclk_peri_pre 75000000>, <&pclk_peri_pre 75000000>,
}
/***************************RK3036 PLL**************************************/
#define LPJ_24M (CLK_LOOPS_JIFFY_REF * 24) / CLK_LOOPS_RATE_REF
-/*****cru reg offset*****/
-#define RK3036_CRU_CLKSEL_CON 0x44
-#define RK3036_CRU_CLKGATE_CON 0xd0
-#define RK3036_CRU_GLB_SRST_FST 0x100
-#define RK3036_CRU_GLB_SRST_SND 0x104
-#define RK3036_CRU_SOFTRST_CON 0x110
-
-#define RK3036_CRU_CLKSELS_CON_CNT (35)
-#define RK3036_CRU_CLKSELS_CON(i) (RK3036_CRU_CLKSEL_CON + ((i) * 4))
-
-#define RK3036_CRU_CLKGATES_CON_CNT (10)
-#define RK3036_CRU_CLKGATES_CON(i) (RK3036_CRU_CLKGATE_CON + ((i) * 4))
-
-#define RK3036_CRU_SOFTRSTS_CON_CNT (9)
-#define RK3036_CRU_SOFTRSTS_CON(i) (RK3036_CRU_SOFTRST_CON + ((i) * 4))
-
/*PLL_CON 0,1,2*/
#define RK3036_PLL_PWR_ON (0)
#define RK3036_PLL_PWR_DN (1)
#define RK3036_CRU_RST_ST 0x00160
#define RK3036_CRU_PLL_MASK_CON 0x001f0
+#define RK3036_CRU_CLKSEL_CON 0x44
+#define RK3036_CRU_CLKGATE_CON 0xd0
+
+#define RK3036_CRU_CLKSELS_CON_CNT (35)
+#define RK3036_CRU_CLKSELS_CON(i) (RK3036_CRU_CLKSEL_CON + ((i) * 4))
+
+#define RK3036_CRU_CLKGATES_CON_CNT (10)
+#define RK3036_CRU_CLKGATES_CON(i) (RK3036_CRU_CLKGATE_CON + ((i) * 4))
+
+#define RK3036_CRU_SOFTRSTS_CON_CNT (9)
+#define RK3036_CRU_SOFTRSTS_CON(i) (RK3036_CRU_SOFTRST_CON + ((i) * 4))
#endif