18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0-only
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * DRA7 Clock init
48c2ecf20Sopenharmony_ci *
58c2ecf20Sopenharmony_ci * Copyright (C) 2013 Texas Instruments, Inc.
68c2ecf20Sopenharmony_ci *
78c2ecf20Sopenharmony_ci * Tero Kristo (t-kristo@ti.com)
88c2ecf20Sopenharmony_ci */
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ci#include <linux/kernel.h>
118c2ecf20Sopenharmony_ci#include <linux/list.h>
128c2ecf20Sopenharmony_ci#include <linux/clk.h>
138c2ecf20Sopenharmony_ci#include <linux/clkdev.h>
148c2ecf20Sopenharmony_ci#include <linux/clk/ti.h>
158c2ecf20Sopenharmony_ci#include <dt-bindings/clock/dra7.h>
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ci#include "clock.h"
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ci#define DRA7_DPLL_GMAC_DEFFREQ				1000000000
208c2ecf20Sopenharmony_ci#define DRA7_DPLL_USB_DEFFREQ				960000000
218c2ecf20Sopenharmony_ci
228c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_reg_data dra7_mpu_clkctrl_regs[] __initconst = {
238c2ecf20Sopenharmony_ci	{ DRA7_MPU_MPU_CLKCTRL, NULL, 0, "dpll_mpu_m2_ck" },
248c2ecf20Sopenharmony_ci	{ 0 },
258c2ecf20Sopenharmony_ci};
268c2ecf20Sopenharmony_ci
278c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_reg_data dra7_dsp1_clkctrl_regs[] __initconst = {
288c2ecf20Sopenharmony_ci	{ DRA7_DSP1_MMU0_DSP1_CLKCTRL, NULL, CLKF_HW_SUP | CLKF_NO_IDLEST, "dpll_dsp_m2_ck" },
298c2ecf20Sopenharmony_ci	{ 0 },
308c2ecf20Sopenharmony_ci};
318c2ecf20Sopenharmony_ci
328c2ecf20Sopenharmony_cistatic const char * const dra7_ipu1_gfclk_mux_parents[] __initconst = {
338c2ecf20Sopenharmony_ci	"dpll_abe_m2x2_ck",
348c2ecf20Sopenharmony_ci	"dpll_core_h22x2_ck",
358c2ecf20Sopenharmony_ci	NULL,
368c2ecf20Sopenharmony_ci};
378c2ecf20Sopenharmony_ci
388c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data dra7_mmu_ipu1_bit_data[] __initconst = {
398c2ecf20Sopenharmony_ci	{ 24, TI_CLK_MUX, dra7_ipu1_gfclk_mux_parents, NULL },
408c2ecf20Sopenharmony_ci	{ 0 },
418c2ecf20Sopenharmony_ci};
428c2ecf20Sopenharmony_ci
438c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_reg_data dra7_ipu1_clkctrl_regs[] __initconst = {
448c2ecf20Sopenharmony_ci	{ DRA7_IPU1_MMU_IPU1_CLKCTRL, dra7_mmu_ipu1_bit_data, CLKF_HW_SUP | CLKF_NO_IDLEST, "ipu1-clkctrl:0000:24" },
458c2ecf20Sopenharmony_ci	{ 0 },
468c2ecf20Sopenharmony_ci};
478c2ecf20Sopenharmony_ci
488c2ecf20Sopenharmony_cistatic const char * const dra7_mcasp1_aux_gfclk_mux_parents[] __initconst = {
498c2ecf20Sopenharmony_ci	"per_abe_x1_gfclk2_div",
508c2ecf20Sopenharmony_ci	"video1_clk2_div",
518c2ecf20Sopenharmony_ci	"video2_clk2_div",
528c2ecf20Sopenharmony_ci	"hdmi_clk2_div",
538c2ecf20Sopenharmony_ci	NULL,
548c2ecf20Sopenharmony_ci};
558c2ecf20Sopenharmony_ci
568c2ecf20Sopenharmony_cistatic const char * const dra7_mcasp1_ahclkx_mux_parents[] __initconst = {
578c2ecf20Sopenharmony_ci	"abe_24m_fclk",
588c2ecf20Sopenharmony_ci	"abe_sys_clk_div",
598c2ecf20Sopenharmony_ci	"func_24m_clk",
608c2ecf20Sopenharmony_ci	"atl_clkin3_ck",
618c2ecf20Sopenharmony_ci	"atl_clkin2_ck",
628c2ecf20Sopenharmony_ci	"atl_clkin1_ck",
638c2ecf20Sopenharmony_ci	"atl_clkin0_ck",
648c2ecf20Sopenharmony_ci	"sys_clkin2",
658c2ecf20Sopenharmony_ci	"ref_clkin0_ck",
668c2ecf20Sopenharmony_ci	"ref_clkin1_ck",
678c2ecf20Sopenharmony_ci	"ref_clkin2_ck",
688c2ecf20Sopenharmony_ci	"ref_clkin3_ck",
698c2ecf20Sopenharmony_ci	"mlb_clk",
708c2ecf20Sopenharmony_ci	"mlbp_clk",
718c2ecf20Sopenharmony_ci	NULL,
728c2ecf20Sopenharmony_ci};
738c2ecf20Sopenharmony_ci
748c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data dra7_mcasp1_bit_data[] __initconst = {
758c2ecf20Sopenharmony_ci	{ 22, TI_CLK_MUX, dra7_mcasp1_aux_gfclk_mux_parents, NULL },
768c2ecf20Sopenharmony_ci	{ 24, TI_CLK_MUX, dra7_mcasp1_ahclkx_mux_parents, NULL },
778c2ecf20Sopenharmony_ci	{ 28, TI_CLK_MUX, dra7_mcasp1_ahclkx_mux_parents, NULL },
788c2ecf20Sopenharmony_ci	{ 0 },
798c2ecf20Sopenharmony_ci};
808c2ecf20Sopenharmony_ci
818c2ecf20Sopenharmony_cistatic const char * const dra7_timer5_gfclk_mux_parents[] __initconst = {
828c2ecf20Sopenharmony_ci	"timer_sys_clk_div",
838c2ecf20Sopenharmony_ci	"sys_32k_ck",
848c2ecf20Sopenharmony_ci	"sys_clkin2",
858c2ecf20Sopenharmony_ci	"ref_clkin0_ck",
868c2ecf20Sopenharmony_ci	"ref_clkin1_ck",
878c2ecf20Sopenharmony_ci	"ref_clkin2_ck",
888c2ecf20Sopenharmony_ci	"ref_clkin3_ck",
898c2ecf20Sopenharmony_ci	"abe_giclk_div",
908c2ecf20Sopenharmony_ci	"video1_div_clk",
918c2ecf20Sopenharmony_ci	"video2_div_clk",
928c2ecf20Sopenharmony_ci	"hdmi_div_clk",
938c2ecf20Sopenharmony_ci	"clkoutmux0_clk_mux",
948c2ecf20Sopenharmony_ci	NULL,
958c2ecf20Sopenharmony_ci};
968c2ecf20Sopenharmony_ci
978c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data dra7_timer5_bit_data[] __initconst = {
988c2ecf20Sopenharmony_ci	{ 24, TI_CLK_MUX, dra7_timer5_gfclk_mux_parents, NULL },
998c2ecf20Sopenharmony_ci	{ 0 },
1008c2ecf20Sopenharmony_ci};
1018c2ecf20Sopenharmony_ci
1028c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data dra7_timer6_bit_data[] __initconst = {
1038c2ecf20Sopenharmony_ci	{ 24, TI_CLK_MUX, dra7_timer5_gfclk_mux_parents, NULL },
1048c2ecf20Sopenharmony_ci	{ 0 },
1058c2ecf20Sopenharmony_ci};
1068c2ecf20Sopenharmony_ci
1078c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data dra7_timer7_bit_data[] __initconst = {
1088c2ecf20Sopenharmony_ci	{ 24, TI_CLK_MUX, dra7_timer5_gfclk_mux_parents, NULL },
1098c2ecf20Sopenharmony_ci	{ 0 },
1108c2ecf20Sopenharmony_ci};
1118c2ecf20Sopenharmony_ci
1128c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data dra7_timer8_bit_data[] __initconst = {
1138c2ecf20Sopenharmony_ci	{ 24, TI_CLK_MUX, dra7_timer5_gfclk_mux_parents, NULL },
1148c2ecf20Sopenharmony_ci	{ 0 },
1158c2ecf20Sopenharmony_ci};
1168c2ecf20Sopenharmony_ci
1178c2ecf20Sopenharmony_cistatic const char * const dra7_uart6_gfclk_mux_parents[] __initconst = {
1188c2ecf20Sopenharmony_ci	"func_48m_fclk",
1198c2ecf20Sopenharmony_ci	"dpll_per_m2x2_ck",
1208c2ecf20Sopenharmony_ci	NULL,
1218c2ecf20Sopenharmony_ci};
1228c2ecf20Sopenharmony_ci
1238c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data dra7_uart6_bit_data[] __initconst = {
1248c2ecf20Sopenharmony_ci	{ 24, TI_CLK_MUX, dra7_uart6_gfclk_mux_parents, NULL },
1258c2ecf20Sopenharmony_ci	{ 0 },
1268c2ecf20Sopenharmony_ci};
1278c2ecf20Sopenharmony_ci
1288c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_reg_data dra7_ipu_clkctrl_regs[] __initconst = {
1298c2ecf20Sopenharmony_ci	{ DRA7_IPU_MCASP1_CLKCTRL, dra7_mcasp1_bit_data, CLKF_SW_SUP, "ipu-clkctrl:0000:22" },
1308c2ecf20Sopenharmony_ci	{ DRA7_IPU_TIMER5_CLKCTRL, dra7_timer5_bit_data, CLKF_SW_SUP, "ipu-clkctrl:0008:24" },
1318c2ecf20Sopenharmony_ci	{ DRA7_IPU_TIMER6_CLKCTRL, dra7_timer6_bit_data, CLKF_SW_SUP, "ipu-clkctrl:0010:24" },
1328c2ecf20Sopenharmony_ci	{ DRA7_IPU_TIMER7_CLKCTRL, dra7_timer7_bit_data, CLKF_SW_SUP, "ipu-clkctrl:0018:24" },
1338c2ecf20Sopenharmony_ci	{ DRA7_IPU_TIMER8_CLKCTRL, dra7_timer8_bit_data, CLKF_SW_SUP, "ipu-clkctrl:0020:24" },
1348c2ecf20Sopenharmony_ci	{ DRA7_IPU_I2C5_CLKCTRL, NULL, CLKF_SW_SUP, "func_96m_fclk" },
1358c2ecf20Sopenharmony_ci	{ DRA7_IPU_UART6_CLKCTRL, dra7_uart6_bit_data, CLKF_SW_SUP, "ipu-clkctrl:0030:24" },
1368c2ecf20Sopenharmony_ci	{ 0 },
1378c2ecf20Sopenharmony_ci};
1388c2ecf20Sopenharmony_ci
1398c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_reg_data dra7_dsp2_clkctrl_regs[] __initconst = {
1408c2ecf20Sopenharmony_ci	{ DRA7_DSP2_MMU0_DSP2_CLKCTRL, NULL, CLKF_HW_SUP | CLKF_NO_IDLEST, "dpll_dsp_m2_ck" },
1418c2ecf20Sopenharmony_ci	{ 0 },
1428c2ecf20Sopenharmony_ci};
1438c2ecf20Sopenharmony_ci
1448c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_reg_data dra7_rtc_clkctrl_regs[] __initconst = {
1458c2ecf20Sopenharmony_ci	{ DRA7_RTC_RTCSS_CLKCTRL, NULL, CLKF_SW_SUP, "sys_32k_ck" },
1468c2ecf20Sopenharmony_ci	{ 0 },
1478c2ecf20Sopenharmony_ci};
1488c2ecf20Sopenharmony_ci
1498c2ecf20Sopenharmony_cistatic const char * const dra7_cam_gfclk_mux_parents[] __initconst = {
1508c2ecf20Sopenharmony_ci	"l3_iclk_div",
1518c2ecf20Sopenharmony_ci	"core_iss_main_clk",
1528c2ecf20Sopenharmony_ci	NULL,
1538c2ecf20Sopenharmony_ci};
1548c2ecf20Sopenharmony_ci
1558c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data dra7_cam_bit_data[] __initconst = {
1568c2ecf20Sopenharmony_ci	{ 24, TI_CLK_MUX, dra7_cam_gfclk_mux_parents, NULL },
1578c2ecf20Sopenharmony_ci	{ 0 },
1588c2ecf20Sopenharmony_ci};
1598c2ecf20Sopenharmony_ci
1608c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_reg_data dra7_cam_clkctrl_regs[] __initconst = {
1618c2ecf20Sopenharmony_ci	{ DRA7_CAM_VIP1_CLKCTRL, dra7_cam_bit_data, CLKF_HW_SUP, "l3_iclk_div" },
1628c2ecf20Sopenharmony_ci	{ DRA7_CAM_VIP2_CLKCTRL, dra7_cam_bit_data, CLKF_HW_SUP, "l3_iclk_div" },
1638c2ecf20Sopenharmony_ci	{ DRA7_CAM_VIP3_CLKCTRL, dra7_cam_bit_data, CLKF_HW_SUP, "l3_iclk_div" },
1648c2ecf20Sopenharmony_ci	{ 0 },
1658c2ecf20Sopenharmony_ci};
1668c2ecf20Sopenharmony_ci
1678c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_reg_data dra7_vpe_clkctrl_regs[] __initconst = {
1688c2ecf20Sopenharmony_ci	{ DRA7_VPE_VPE_CLKCTRL, NULL, CLKF_HW_SUP, "dpll_core_h23x2_ck" },
1698c2ecf20Sopenharmony_ci	{ 0 },
1708c2ecf20Sopenharmony_ci};
1718c2ecf20Sopenharmony_ci
1728c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_reg_data dra7_coreaon_clkctrl_regs[] __initconst = {
1738c2ecf20Sopenharmony_ci	{ DRA7_COREAON_SMARTREFLEX_MPU_CLKCTRL, NULL, CLKF_SW_SUP, "wkupaon_iclk_mux" },
1748c2ecf20Sopenharmony_ci	{ DRA7_COREAON_SMARTREFLEX_CORE_CLKCTRL, NULL, CLKF_SW_SUP, "wkupaon_iclk_mux" },
1758c2ecf20Sopenharmony_ci	{ 0 },
1768c2ecf20Sopenharmony_ci};
1778c2ecf20Sopenharmony_ci
1788c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_reg_data dra7_l3main1_clkctrl_regs[] __initconst = {
1798c2ecf20Sopenharmony_ci	{ DRA7_L3MAIN1_L3_MAIN_1_CLKCTRL, NULL, 0, "l3_iclk_div" },
1808c2ecf20Sopenharmony_ci	{ DRA7_L3MAIN1_GPMC_CLKCTRL, NULL, CLKF_HW_SUP, "l3_iclk_div" },
1818c2ecf20Sopenharmony_ci	{ DRA7_L3MAIN1_TPCC_CLKCTRL, NULL, 0, "l3_iclk_div" },
1828c2ecf20Sopenharmony_ci	{ DRA7_L3MAIN1_TPTC0_CLKCTRL, NULL, CLKF_HW_SUP, "l3_iclk_div" },
1838c2ecf20Sopenharmony_ci	{ DRA7_L3MAIN1_TPTC1_CLKCTRL, NULL, CLKF_HW_SUP, "l3_iclk_div" },
1848c2ecf20Sopenharmony_ci	{ DRA7_L3MAIN1_VCP1_CLKCTRL, NULL, 0, "l3_iclk_div" },
1858c2ecf20Sopenharmony_ci	{ DRA7_L3MAIN1_VCP2_CLKCTRL, NULL, 0, "l3_iclk_div" },
1868c2ecf20Sopenharmony_ci	{ 0 },
1878c2ecf20Sopenharmony_ci};
1888c2ecf20Sopenharmony_ci
1898c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_reg_data dra7_ipu2_clkctrl_regs[] __initconst = {
1908c2ecf20Sopenharmony_ci	{ DRA7_IPU2_MMU_IPU2_CLKCTRL, NULL, CLKF_HW_SUP | CLKF_NO_IDLEST, "dpll_core_h22x2_ck" },
1918c2ecf20Sopenharmony_ci	{ 0 },
1928c2ecf20Sopenharmony_ci};
1938c2ecf20Sopenharmony_ci
1948c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_reg_data dra7_dma_clkctrl_regs[] __initconst = {
1958c2ecf20Sopenharmony_ci	{ DRA7_DMA_DMA_SYSTEM_CLKCTRL, NULL, 0, "l3_iclk_div" },
1968c2ecf20Sopenharmony_ci	{ 0 },
1978c2ecf20Sopenharmony_ci};
1988c2ecf20Sopenharmony_ci
1998c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_reg_data dra7_emif_clkctrl_regs[] __initconst = {
2008c2ecf20Sopenharmony_ci	{ DRA7_EMIF_DMM_CLKCTRL, NULL, 0, "l3_iclk_div" },
2018c2ecf20Sopenharmony_ci	{ 0 },
2028c2ecf20Sopenharmony_ci};
2038c2ecf20Sopenharmony_ci
2048c2ecf20Sopenharmony_cistatic const char * const dra7_atl_dpll_clk_mux_parents[] __initconst = {
2058c2ecf20Sopenharmony_ci	"sys_32k_ck",
2068c2ecf20Sopenharmony_ci	"video1_clkin_ck",
2078c2ecf20Sopenharmony_ci	"video2_clkin_ck",
2088c2ecf20Sopenharmony_ci	"hdmi_clkin_ck",
2098c2ecf20Sopenharmony_ci	NULL,
2108c2ecf20Sopenharmony_ci};
2118c2ecf20Sopenharmony_ci
2128c2ecf20Sopenharmony_cistatic const char * const dra7_atl_gfclk_mux_parents[] __initconst = {
2138c2ecf20Sopenharmony_ci	"l3_iclk_div",
2148c2ecf20Sopenharmony_ci	"dpll_abe_m2_ck",
2158c2ecf20Sopenharmony_ci	"atl-clkctrl:0000:24",
2168c2ecf20Sopenharmony_ci	NULL,
2178c2ecf20Sopenharmony_ci};
2188c2ecf20Sopenharmony_ci
2198c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data dra7_atl_bit_data[] __initconst = {
2208c2ecf20Sopenharmony_ci	{ 24, TI_CLK_MUX, dra7_atl_dpll_clk_mux_parents, NULL },
2218c2ecf20Sopenharmony_ci	{ 26, TI_CLK_MUX, dra7_atl_gfclk_mux_parents, NULL },
2228c2ecf20Sopenharmony_ci	{ 0 },
2238c2ecf20Sopenharmony_ci};
2248c2ecf20Sopenharmony_ci
2258c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_reg_data dra7_atl_clkctrl_regs[] __initconst = {
2268c2ecf20Sopenharmony_ci	{ DRA7_ATL_ATL_CLKCTRL, dra7_atl_bit_data, CLKF_SW_SUP, "atl-clkctrl:0000:26" },
2278c2ecf20Sopenharmony_ci	{ 0 },
2288c2ecf20Sopenharmony_ci};
2298c2ecf20Sopenharmony_ci
2308c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_reg_data dra7_l4cfg_clkctrl_regs[] __initconst = {
2318c2ecf20Sopenharmony_ci	{ DRA7_L4CFG_L4_CFG_CLKCTRL, NULL, 0, "l3_iclk_div" },
2328c2ecf20Sopenharmony_ci	{ DRA7_L4CFG_SPINLOCK_CLKCTRL, NULL, 0, "l3_iclk_div" },
2338c2ecf20Sopenharmony_ci	{ DRA7_L4CFG_MAILBOX1_CLKCTRL, NULL, 0, "l3_iclk_div" },
2348c2ecf20Sopenharmony_ci	{ DRA7_L4CFG_MAILBOX2_CLKCTRL, NULL, 0, "l3_iclk_div" },
2358c2ecf20Sopenharmony_ci	{ DRA7_L4CFG_MAILBOX3_CLKCTRL, NULL, 0, "l3_iclk_div" },
2368c2ecf20Sopenharmony_ci	{ DRA7_L4CFG_MAILBOX4_CLKCTRL, NULL, 0, "l3_iclk_div" },
2378c2ecf20Sopenharmony_ci	{ DRA7_L4CFG_MAILBOX5_CLKCTRL, NULL, 0, "l3_iclk_div" },
2388c2ecf20Sopenharmony_ci	{ DRA7_L4CFG_MAILBOX6_CLKCTRL, NULL, 0, "l3_iclk_div" },
2398c2ecf20Sopenharmony_ci	{ DRA7_L4CFG_MAILBOX7_CLKCTRL, NULL, 0, "l3_iclk_div" },
2408c2ecf20Sopenharmony_ci	{ DRA7_L4CFG_MAILBOX8_CLKCTRL, NULL, 0, "l3_iclk_div" },
2418c2ecf20Sopenharmony_ci	{ DRA7_L4CFG_MAILBOX9_CLKCTRL, NULL, 0, "l3_iclk_div" },
2428c2ecf20Sopenharmony_ci	{ DRA7_L4CFG_MAILBOX10_CLKCTRL, NULL, 0, "l3_iclk_div" },
2438c2ecf20Sopenharmony_ci	{ DRA7_L4CFG_MAILBOX11_CLKCTRL, NULL, 0, "l3_iclk_div" },
2448c2ecf20Sopenharmony_ci	{ DRA7_L4CFG_MAILBOX12_CLKCTRL, NULL, 0, "l3_iclk_div" },
2458c2ecf20Sopenharmony_ci	{ DRA7_L4CFG_MAILBOX13_CLKCTRL, NULL, 0, "l3_iclk_div" },
2468c2ecf20Sopenharmony_ci	{ 0 },
2478c2ecf20Sopenharmony_ci};
2488c2ecf20Sopenharmony_ci
2498c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_reg_data dra7_l3instr_clkctrl_regs[] __initconst = {
2508c2ecf20Sopenharmony_ci	{ DRA7_L3INSTR_L3_MAIN_2_CLKCTRL, NULL, CLKF_HW_SUP, "l3_iclk_div" },
2518c2ecf20Sopenharmony_ci	{ DRA7_L3INSTR_L3_INSTR_CLKCTRL, NULL, CLKF_HW_SUP, "l3_iclk_div" },
2528c2ecf20Sopenharmony_ci	{ 0 },
2538c2ecf20Sopenharmony_ci};
2548c2ecf20Sopenharmony_ci
2558c2ecf20Sopenharmony_cistatic const char * const dra7_dss_dss_clk_parents[] __initconst = {
2568c2ecf20Sopenharmony_ci	"dpll_per_h12x2_ck",
2578c2ecf20Sopenharmony_ci	NULL,
2588c2ecf20Sopenharmony_ci};
2598c2ecf20Sopenharmony_ci
2608c2ecf20Sopenharmony_cistatic const char * const dra7_dss_48mhz_clk_parents[] __initconst = {
2618c2ecf20Sopenharmony_ci	"func_48m_fclk",
2628c2ecf20Sopenharmony_ci	NULL,
2638c2ecf20Sopenharmony_ci};
2648c2ecf20Sopenharmony_ci
2658c2ecf20Sopenharmony_cistatic const char * const dra7_dss_hdmi_clk_parents[] __initconst = {
2668c2ecf20Sopenharmony_ci	"hdmi_dpll_clk_mux",
2678c2ecf20Sopenharmony_ci	NULL,
2688c2ecf20Sopenharmony_ci};
2698c2ecf20Sopenharmony_ci
2708c2ecf20Sopenharmony_cistatic const char * const dra7_dss_32khz_clk_parents[] __initconst = {
2718c2ecf20Sopenharmony_ci	"sys_32k_ck",
2728c2ecf20Sopenharmony_ci	NULL,
2738c2ecf20Sopenharmony_ci};
2748c2ecf20Sopenharmony_ci
2758c2ecf20Sopenharmony_cistatic const char * const dra7_dss_video1_clk_parents[] __initconst = {
2768c2ecf20Sopenharmony_ci	"video1_dpll_clk_mux",
2778c2ecf20Sopenharmony_ci	NULL,
2788c2ecf20Sopenharmony_ci};
2798c2ecf20Sopenharmony_ci
2808c2ecf20Sopenharmony_cistatic const char * const dra7_dss_video2_clk_parents[] __initconst = {
2818c2ecf20Sopenharmony_ci	"video2_dpll_clk_mux",
2828c2ecf20Sopenharmony_ci	NULL,
2838c2ecf20Sopenharmony_ci};
2848c2ecf20Sopenharmony_ci
2858c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data dra7_dss_core_bit_data[] __initconst = {
2868c2ecf20Sopenharmony_ci	{ 8, TI_CLK_GATE, dra7_dss_dss_clk_parents, NULL },
2878c2ecf20Sopenharmony_ci	{ 9, TI_CLK_GATE, dra7_dss_48mhz_clk_parents, NULL },
2888c2ecf20Sopenharmony_ci	{ 10, TI_CLK_GATE, dra7_dss_hdmi_clk_parents, NULL },
2898c2ecf20Sopenharmony_ci	{ 11, TI_CLK_GATE, dra7_dss_32khz_clk_parents, NULL },
2908c2ecf20Sopenharmony_ci	{ 12, TI_CLK_GATE, dra7_dss_video1_clk_parents, NULL },
2918c2ecf20Sopenharmony_ci	{ 13, TI_CLK_GATE, dra7_dss_video2_clk_parents, NULL },
2928c2ecf20Sopenharmony_ci	{ 0 },
2938c2ecf20Sopenharmony_ci};
2948c2ecf20Sopenharmony_ci
2958c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_reg_data dra7_dss_clkctrl_regs[] __initconst = {
2968c2ecf20Sopenharmony_ci	{ DRA7_DSS_DSS_CORE_CLKCTRL, dra7_dss_core_bit_data, CLKF_SW_SUP, "dss-clkctrl:0000:8" },
2978c2ecf20Sopenharmony_ci	{ DRA7_DSS_BB2D_CLKCTRL, NULL, CLKF_SW_SUP, "dpll_core_h24x2_ck" },
2988c2ecf20Sopenharmony_ci	{ 0 },
2998c2ecf20Sopenharmony_ci};
3008c2ecf20Sopenharmony_ci
3018c2ecf20Sopenharmony_cistatic const char * const dra7_gpu_core_mux_parents[] __initconst = {
3028c2ecf20Sopenharmony_ci	"dpll_core_h14x2_ck",
3038c2ecf20Sopenharmony_ci	"dpll_per_h14x2_ck",
3048c2ecf20Sopenharmony_ci	"dpll_gpu_m2_ck",
3058c2ecf20Sopenharmony_ci	NULL,
3068c2ecf20Sopenharmony_ci};
3078c2ecf20Sopenharmony_ci
3088c2ecf20Sopenharmony_cistatic const char * const dra7_gpu_hyd_mux_parents[] __initconst = {
3098c2ecf20Sopenharmony_ci	"dpll_core_h14x2_ck",
3108c2ecf20Sopenharmony_ci	"dpll_per_h14x2_ck",
3118c2ecf20Sopenharmony_ci	"dpll_gpu_m2_ck",
3128c2ecf20Sopenharmony_ci	NULL,
3138c2ecf20Sopenharmony_ci};
3148c2ecf20Sopenharmony_ci
3158c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data dra7_gpu_core_bit_data[] __initconst = {
3168c2ecf20Sopenharmony_ci	{ 24, TI_CLK_MUX, dra7_gpu_core_mux_parents, NULL, },
3178c2ecf20Sopenharmony_ci	{ 26, TI_CLK_MUX, dra7_gpu_hyd_mux_parents, NULL, },
3188c2ecf20Sopenharmony_ci	{ 0 },
3198c2ecf20Sopenharmony_ci};
3208c2ecf20Sopenharmony_ci
3218c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_reg_data dra7_gpu_clkctrl_regs[] __initconst = {
3228c2ecf20Sopenharmony_ci	{ DRA7_GPU_CLKCTRL, dra7_gpu_core_bit_data, CLKF_SW_SUP, "gpu-clkctrl:0000:24", },
3238c2ecf20Sopenharmony_ci	{ 0 },
3248c2ecf20Sopenharmony_ci};
3258c2ecf20Sopenharmony_ci
3268c2ecf20Sopenharmony_cistatic const char * const dra7_mmc1_fclk_mux_parents[] __initconst = {
3278c2ecf20Sopenharmony_ci	"func_128m_clk",
3288c2ecf20Sopenharmony_ci	"dpll_per_m2x2_ck",
3298c2ecf20Sopenharmony_ci	NULL,
3308c2ecf20Sopenharmony_ci};
3318c2ecf20Sopenharmony_ci
3328c2ecf20Sopenharmony_cistatic const char * const dra7_mmc1_fclk_div_parents[] __initconst = {
3338c2ecf20Sopenharmony_ci	"l3init-clkctrl:0008:24",
3348c2ecf20Sopenharmony_ci	NULL,
3358c2ecf20Sopenharmony_ci};
3368c2ecf20Sopenharmony_ci
3378c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_div_data dra7_mmc1_fclk_div_data __initconst = {
3388c2ecf20Sopenharmony_ci	.max_div = 4,
3398c2ecf20Sopenharmony_ci	.flags = CLK_DIVIDER_POWER_OF_TWO,
3408c2ecf20Sopenharmony_ci};
3418c2ecf20Sopenharmony_ci
3428c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data dra7_mmc1_bit_data[] __initconst = {
3438c2ecf20Sopenharmony_ci	{ 8, TI_CLK_GATE, dra7_dss_32khz_clk_parents, NULL },
3448c2ecf20Sopenharmony_ci	{ 24, TI_CLK_MUX, dra7_mmc1_fclk_mux_parents, NULL },
3458c2ecf20Sopenharmony_ci	{ 25, TI_CLK_DIVIDER, dra7_mmc1_fclk_div_parents, &dra7_mmc1_fclk_div_data },
3468c2ecf20Sopenharmony_ci	{ 0 },
3478c2ecf20Sopenharmony_ci};
3488c2ecf20Sopenharmony_ci
3498c2ecf20Sopenharmony_cistatic const char * const dra7_mmc2_fclk_div_parents[] __initconst = {
3508c2ecf20Sopenharmony_ci	"l3init-clkctrl:0010:24",
3518c2ecf20Sopenharmony_ci	NULL,
3528c2ecf20Sopenharmony_ci};
3538c2ecf20Sopenharmony_ci
3548c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_div_data dra7_mmc2_fclk_div_data __initconst = {
3558c2ecf20Sopenharmony_ci	.max_div = 4,
3568c2ecf20Sopenharmony_ci	.flags = CLK_DIVIDER_POWER_OF_TWO,
3578c2ecf20Sopenharmony_ci};
3588c2ecf20Sopenharmony_ci
3598c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data dra7_mmc2_bit_data[] __initconst = {
3608c2ecf20Sopenharmony_ci	{ 8, TI_CLK_GATE, dra7_dss_32khz_clk_parents, NULL },
3618c2ecf20Sopenharmony_ci	{ 24, TI_CLK_MUX, dra7_mmc1_fclk_mux_parents, NULL },
3628c2ecf20Sopenharmony_ci	{ 25, TI_CLK_DIVIDER, dra7_mmc2_fclk_div_parents, &dra7_mmc2_fclk_div_data },
3638c2ecf20Sopenharmony_ci	{ 0 },
3648c2ecf20Sopenharmony_ci};
3658c2ecf20Sopenharmony_ci
3668c2ecf20Sopenharmony_cistatic const char * const dra7_usb_otg_ss2_refclk960m_parents[] __initconst = {
3678c2ecf20Sopenharmony_ci	"l3init_960m_gfclk",
3688c2ecf20Sopenharmony_ci	NULL,
3698c2ecf20Sopenharmony_ci};
3708c2ecf20Sopenharmony_ci
3718c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data dra7_usb_otg_ss2_bit_data[] __initconst = {
3728c2ecf20Sopenharmony_ci	{ 8, TI_CLK_GATE, dra7_usb_otg_ss2_refclk960m_parents, NULL },
3738c2ecf20Sopenharmony_ci	{ 0 },
3748c2ecf20Sopenharmony_ci};
3758c2ecf20Sopenharmony_ci
3768c2ecf20Sopenharmony_cistatic const char * const dra7_sata_ref_clk_parents[] __initconst = {
3778c2ecf20Sopenharmony_ci	"sys_clkin1",
3788c2ecf20Sopenharmony_ci	NULL,
3798c2ecf20Sopenharmony_ci};
3808c2ecf20Sopenharmony_ci
3818c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data dra7_sata_bit_data[] __initconst = {
3828c2ecf20Sopenharmony_ci	{ 8, TI_CLK_GATE, dra7_sata_ref_clk_parents, NULL },
3838c2ecf20Sopenharmony_ci	{ 0 },
3848c2ecf20Sopenharmony_ci};
3858c2ecf20Sopenharmony_ci
3868c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data dra7_usb_otg_ss1_bit_data[] __initconst = {
3878c2ecf20Sopenharmony_ci	{ 8, TI_CLK_GATE, dra7_usb_otg_ss2_refclk960m_parents, NULL },
3888c2ecf20Sopenharmony_ci	{ 0 },
3898c2ecf20Sopenharmony_ci};
3908c2ecf20Sopenharmony_ci
3918c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_reg_data dra7_l3init_clkctrl_regs[] __initconst = {
3928c2ecf20Sopenharmony_ci	{ DRA7_L3INIT_MMC1_CLKCTRL, dra7_mmc1_bit_data, CLKF_SW_SUP, "l3init-clkctrl:0008:25" },
3938c2ecf20Sopenharmony_ci	{ DRA7_L3INIT_MMC2_CLKCTRL, dra7_mmc2_bit_data, CLKF_SW_SUP, "l3init-clkctrl:0010:25" },
3948c2ecf20Sopenharmony_ci	{ DRA7_L3INIT_USB_OTG_SS2_CLKCTRL, dra7_usb_otg_ss2_bit_data, CLKF_HW_SUP, "dpll_core_h13x2_ck" },
3958c2ecf20Sopenharmony_ci	{ DRA7_L3INIT_USB_OTG_SS3_CLKCTRL, NULL, CLKF_HW_SUP, "dpll_core_h13x2_ck" },
3968c2ecf20Sopenharmony_ci	{ DRA7_L3INIT_USB_OTG_SS4_CLKCTRL, NULL, CLKF_HW_SUP | CLKF_SOC_DRA74 | CLKF_SOC_DRA76, "dpll_core_h13x2_ck" },
3978c2ecf20Sopenharmony_ci	{ DRA7_L3INIT_SATA_CLKCTRL, dra7_sata_bit_data, CLKF_SW_SUP, "func_48m_fclk" },
3988c2ecf20Sopenharmony_ci	{ DRA7_L3INIT_OCP2SCP1_CLKCTRL, NULL, CLKF_HW_SUP, "l4_root_clk_div" },
3998c2ecf20Sopenharmony_ci	{ DRA7_L3INIT_OCP2SCP3_CLKCTRL, NULL, CLKF_HW_SUP, "l4_root_clk_div" },
4008c2ecf20Sopenharmony_ci	{ DRA7_L3INIT_USB_OTG_SS1_CLKCTRL, dra7_usb_otg_ss1_bit_data, CLKF_HW_SUP, "dpll_core_h13x2_ck" },
4018c2ecf20Sopenharmony_ci	{ 0 },
4028c2ecf20Sopenharmony_ci};
4038c2ecf20Sopenharmony_ci
4048c2ecf20Sopenharmony_cistatic const char * const dra7_optfclk_pciephy1_clk_parents[] __initconst = {
4058c2ecf20Sopenharmony_ci	"apll_pcie_ck",
4068c2ecf20Sopenharmony_ci	NULL,
4078c2ecf20Sopenharmony_ci};
4088c2ecf20Sopenharmony_ci
4098c2ecf20Sopenharmony_cistatic const char * const dra7_optfclk_pciephy1_div_clk_parents[] __initconst = {
4108c2ecf20Sopenharmony_ci	"optfclk_pciephy_div",
4118c2ecf20Sopenharmony_ci	NULL,
4128c2ecf20Sopenharmony_ci};
4138c2ecf20Sopenharmony_ci
4148c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data dra7_pcie1_bit_data[] __initconst = {
4158c2ecf20Sopenharmony_ci	{ 8, TI_CLK_GATE, dra7_dss_32khz_clk_parents, NULL },
4168c2ecf20Sopenharmony_ci	{ 9, TI_CLK_GATE, dra7_optfclk_pciephy1_clk_parents, NULL },
4178c2ecf20Sopenharmony_ci	{ 10, TI_CLK_GATE, dra7_optfclk_pciephy1_div_clk_parents, NULL },
4188c2ecf20Sopenharmony_ci	{ 0 },
4198c2ecf20Sopenharmony_ci};
4208c2ecf20Sopenharmony_ci
4218c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data dra7_pcie2_bit_data[] __initconst = {
4228c2ecf20Sopenharmony_ci	{ 8, TI_CLK_GATE, dra7_dss_32khz_clk_parents, NULL },
4238c2ecf20Sopenharmony_ci	{ 9, TI_CLK_GATE, dra7_optfclk_pciephy1_clk_parents, NULL },
4248c2ecf20Sopenharmony_ci	{ 10, TI_CLK_GATE, dra7_optfclk_pciephy1_div_clk_parents, NULL },
4258c2ecf20Sopenharmony_ci	{ 0 },
4268c2ecf20Sopenharmony_ci};
4278c2ecf20Sopenharmony_ci
4288c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_reg_data dra7_pcie_clkctrl_regs[] __initconst = {
4298c2ecf20Sopenharmony_ci	{ DRA7_PCIE_PCIE1_CLKCTRL, dra7_pcie1_bit_data, CLKF_SW_SUP, "l4_root_clk_div" },
4308c2ecf20Sopenharmony_ci	{ DRA7_PCIE_PCIE2_CLKCTRL, dra7_pcie2_bit_data, CLKF_SW_SUP, "l4_root_clk_div" },
4318c2ecf20Sopenharmony_ci	{ 0 },
4328c2ecf20Sopenharmony_ci};
4338c2ecf20Sopenharmony_ci
4348c2ecf20Sopenharmony_cistatic const char * const dra7_rmii_50mhz_clk_mux_parents[] __initconst = {
4358c2ecf20Sopenharmony_ci	"dpll_gmac_h11x2_ck",
4368c2ecf20Sopenharmony_ci	"rmii_clk_ck",
4378c2ecf20Sopenharmony_ci	NULL,
4388c2ecf20Sopenharmony_ci};
4398c2ecf20Sopenharmony_ci
4408c2ecf20Sopenharmony_cistatic const char * const dra7_gmac_rft_clk_mux_parents[] __initconst = {
4418c2ecf20Sopenharmony_ci	"video1_clkin_ck",
4428c2ecf20Sopenharmony_ci	"video2_clkin_ck",
4438c2ecf20Sopenharmony_ci	"dpll_abe_m2_ck",
4448c2ecf20Sopenharmony_ci	"hdmi_clkin_ck",
4458c2ecf20Sopenharmony_ci	"l3_iclk_div",
4468c2ecf20Sopenharmony_ci	NULL,
4478c2ecf20Sopenharmony_ci};
4488c2ecf20Sopenharmony_ci
4498c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data dra7_gmac_bit_data[] __initconst = {
4508c2ecf20Sopenharmony_ci	{ 24, TI_CLK_MUX, dra7_rmii_50mhz_clk_mux_parents, NULL },
4518c2ecf20Sopenharmony_ci	{ 25, TI_CLK_MUX, dra7_gmac_rft_clk_mux_parents, NULL },
4528c2ecf20Sopenharmony_ci	{ 0 },
4538c2ecf20Sopenharmony_ci};
4548c2ecf20Sopenharmony_ci
4558c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_reg_data dra7_gmac_clkctrl_regs[] __initconst = {
4568c2ecf20Sopenharmony_ci	{ DRA7_GMAC_GMAC_CLKCTRL, dra7_gmac_bit_data, CLKF_SW_SUP, "gmac_main_clk" },
4578c2ecf20Sopenharmony_ci	{ 0 },
4588c2ecf20Sopenharmony_ci};
4598c2ecf20Sopenharmony_ci
4608c2ecf20Sopenharmony_cistatic const char * const dra7_timer10_gfclk_mux_parents[] __initconst = {
4618c2ecf20Sopenharmony_ci	"timer_sys_clk_div",
4628c2ecf20Sopenharmony_ci	"sys_32k_ck",
4638c2ecf20Sopenharmony_ci	"sys_clkin2",
4648c2ecf20Sopenharmony_ci	"ref_clkin0_ck",
4658c2ecf20Sopenharmony_ci	"ref_clkin1_ck",
4668c2ecf20Sopenharmony_ci	"ref_clkin2_ck",
4678c2ecf20Sopenharmony_ci	"ref_clkin3_ck",
4688c2ecf20Sopenharmony_ci	"abe_giclk_div",
4698c2ecf20Sopenharmony_ci	"video1_div_clk",
4708c2ecf20Sopenharmony_ci	"video2_div_clk",
4718c2ecf20Sopenharmony_ci	"hdmi_div_clk",
4728c2ecf20Sopenharmony_ci	NULL,
4738c2ecf20Sopenharmony_ci};
4748c2ecf20Sopenharmony_ci
4758c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data dra7_timer10_bit_data[] __initconst = {
4768c2ecf20Sopenharmony_ci	{ 24, TI_CLK_MUX, dra7_timer10_gfclk_mux_parents, NULL },
4778c2ecf20Sopenharmony_ci	{ 0 },
4788c2ecf20Sopenharmony_ci};
4798c2ecf20Sopenharmony_ci
4808c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data dra7_timer11_bit_data[] __initconst = {
4818c2ecf20Sopenharmony_ci	{ 24, TI_CLK_MUX, dra7_timer10_gfclk_mux_parents, NULL },
4828c2ecf20Sopenharmony_ci	{ 0 },
4838c2ecf20Sopenharmony_ci};
4848c2ecf20Sopenharmony_ci
4858c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data dra7_timer2_bit_data[] __initconst = {
4868c2ecf20Sopenharmony_ci	{ 24, TI_CLK_MUX, dra7_timer10_gfclk_mux_parents, NULL },
4878c2ecf20Sopenharmony_ci	{ 0 },
4888c2ecf20Sopenharmony_ci};
4898c2ecf20Sopenharmony_ci
4908c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data dra7_timer3_bit_data[] __initconst = {
4918c2ecf20Sopenharmony_ci	{ 24, TI_CLK_MUX, dra7_timer10_gfclk_mux_parents, NULL },
4928c2ecf20Sopenharmony_ci	{ 0 },
4938c2ecf20Sopenharmony_ci};
4948c2ecf20Sopenharmony_ci
4958c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data dra7_timer4_bit_data[] __initconst = {
4968c2ecf20Sopenharmony_ci	{ 24, TI_CLK_MUX, dra7_timer10_gfclk_mux_parents, NULL },
4978c2ecf20Sopenharmony_ci	{ 0 },
4988c2ecf20Sopenharmony_ci};
4998c2ecf20Sopenharmony_ci
5008c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data dra7_timer9_bit_data[] __initconst = {
5018c2ecf20Sopenharmony_ci	{ 24, TI_CLK_MUX, dra7_timer10_gfclk_mux_parents, NULL },
5028c2ecf20Sopenharmony_ci	{ 0 },
5038c2ecf20Sopenharmony_ci};
5048c2ecf20Sopenharmony_ci
5058c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data dra7_gpio2_bit_data[] __initconst = {
5068c2ecf20Sopenharmony_ci	{ 8, TI_CLK_GATE, dra7_dss_32khz_clk_parents, NULL },
5078c2ecf20Sopenharmony_ci	{ 0 },
5088c2ecf20Sopenharmony_ci};
5098c2ecf20Sopenharmony_ci
5108c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data dra7_gpio3_bit_data[] __initconst = {
5118c2ecf20Sopenharmony_ci	{ 8, TI_CLK_GATE, dra7_dss_32khz_clk_parents, NULL },
5128c2ecf20Sopenharmony_ci	{ 0 },
5138c2ecf20Sopenharmony_ci};
5148c2ecf20Sopenharmony_ci
5158c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data dra7_gpio4_bit_data[] __initconst = {
5168c2ecf20Sopenharmony_ci	{ 8, TI_CLK_GATE, dra7_dss_32khz_clk_parents, NULL },
5178c2ecf20Sopenharmony_ci	{ 0 },
5188c2ecf20Sopenharmony_ci};
5198c2ecf20Sopenharmony_ci
5208c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data dra7_gpio5_bit_data[] __initconst = {
5218c2ecf20Sopenharmony_ci	{ 8, TI_CLK_GATE, dra7_dss_32khz_clk_parents, NULL },
5228c2ecf20Sopenharmony_ci	{ 0 },
5238c2ecf20Sopenharmony_ci};
5248c2ecf20Sopenharmony_ci
5258c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data dra7_gpio6_bit_data[] __initconst = {
5268c2ecf20Sopenharmony_ci	{ 8, TI_CLK_GATE, dra7_dss_32khz_clk_parents, NULL },
5278c2ecf20Sopenharmony_ci	{ 0 },
5288c2ecf20Sopenharmony_ci};
5298c2ecf20Sopenharmony_ci
5308c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data dra7_gpio7_bit_data[] __initconst = {
5318c2ecf20Sopenharmony_ci	{ 8, TI_CLK_GATE, dra7_dss_32khz_clk_parents, NULL },
5328c2ecf20Sopenharmony_ci	{ 0 },
5338c2ecf20Sopenharmony_ci};
5348c2ecf20Sopenharmony_ci
5358c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data dra7_gpio8_bit_data[] __initconst = {
5368c2ecf20Sopenharmony_ci	{ 8, TI_CLK_GATE, dra7_dss_32khz_clk_parents, NULL },
5378c2ecf20Sopenharmony_ci	{ 0 },
5388c2ecf20Sopenharmony_ci};
5398c2ecf20Sopenharmony_ci
5408c2ecf20Sopenharmony_cistatic const char * const dra7_mmc3_gfclk_div_parents[] __initconst = {
5418c2ecf20Sopenharmony_ci	"l4per-clkctrl:00f8:24",
5428c2ecf20Sopenharmony_ci	NULL,
5438c2ecf20Sopenharmony_ci};
5448c2ecf20Sopenharmony_ci
5458c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_div_data dra7_mmc3_gfclk_div_data __initconst = {
5468c2ecf20Sopenharmony_ci	.max_div = 4,
5478c2ecf20Sopenharmony_ci	.flags = CLK_DIVIDER_POWER_OF_TWO,
5488c2ecf20Sopenharmony_ci};
5498c2ecf20Sopenharmony_ci
5508c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data dra7_mmc3_bit_data[] __initconst = {
5518c2ecf20Sopenharmony_ci	{ 8, TI_CLK_GATE, dra7_dss_32khz_clk_parents, NULL },
5528c2ecf20Sopenharmony_ci	{ 24, TI_CLK_MUX, dra7_uart6_gfclk_mux_parents, NULL },
5538c2ecf20Sopenharmony_ci	{ 25, TI_CLK_DIVIDER, dra7_mmc3_gfclk_div_parents, &dra7_mmc3_gfclk_div_data },
5548c2ecf20Sopenharmony_ci	{ 0 },
5558c2ecf20Sopenharmony_ci};
5568c2ecf20Sopenharmony_ci
5578c2ecf20Sopenharmony_cistatic const char * const dra7_mmc4_gfclk_div_parents[] __initconst = {
5588c2ecf20Sopenharmony_ci	"l4per-clkctrl:0100:24",
5598c2ecf20Sopenharmony_ci	NULL,
5608c2ecf20Sopenharmony_ci};
5618c2ecf20Sopenharmony_ci
5628c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_div_data dra7_mmc4_gfclk_div_data __initconst = {
5638c2ecf20Sopenharmony_ci	.max_div = 4,
5648c2ecf20Sopenharmony_ci	.flags = CLK_DIVIDER_POWER_OF_TWO,
5658c2ecf20Sopenharmony_ci};
5668c2ecf20Sopenharmony_ci
5678c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data dra7_mmc4_bit_data[] __initconst = {
5688c2ecf20Sopenharmony_ci	{ 8, TI_CLK_GATE, dra7_dss_32khz_clk_parents, NULL },
5698c2ecf20Sopenharmony_ci	{ 24, TI_CLK_MUX, dra7_uart6_gfclk_mux_parents, NULL },
5708c2ecf20Sopenharmony_ci	{ 25, TI_CLK_DIVIDER, dra7_mmc4_gfclk_div_parents, &dra7_mmc4_gfclk_div_data },
5718c2ecf20Sopenharmony_ci	{ 0 },
5728c2ecf20Sopenharmony_ci};
5738c2ecf20Sopenharmony_ci
5748c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data dra7_uart1_bit_data[] __initconst = {
5758c2ecf20Sopenharmony_ci	{ 24, TI_CLK_MUX, dra7_uart6_gfclk_mux_parents, NULL },
5768c2ecf20Sopenharmony_ci	{ 0 },
5778c2ecf20Sopenharmony_ci};
5788c2ecf20Sopenharmony_ci
5798c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data dra7_uart2_bit_data[] __initconst = {
5808c2ecf20Sopenharmony_ci	{ 24, TI_CLK_MUX, dra7_uart6_gfclk_mux_parents, NULL },
5818c2ecf20Sopenharmony_ci	{ 0 },
5828c2ecf20Sopenharmony_ci};
5838c2ecf20Sopenharmony_ci
5848c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data dra7_uart3_bit_data[] __initconst = {
5858c2ecf20Sopenharmony_ci	{ 24, TI_CLK_MUX, dra7_uart6_gfclk_mux_parents, NULL },
5868c2ecf20Sopenharmony_ci	{ 0 },
5878c2ecf20Sopenharmony_ci};
5888c2ecf20Sopenharmony_ci
5898c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data dra7_uart4_bit_data[] __initconst = {
5908c2ecf20Sopenharmony_ci	{ 24, TI_CLK_MUX, dra7_uart6_gfclk_mux_parents, NULL },
5918c2ecf20Sopenharmony_ci	{ 0 },
5928c2ecf20Sopenharmony_ci};
5938c2ecf20Sopenharmony_ci
5948c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data dra7_uart5_bit_data[] __initconst = {
5958c2ecf20Sopenharmony_ci	{ 24, TI_CLK_MUX, dra7_uart6_gfclk_mux_parents, NULL },
5968c2ecf20Sopenharmony_ci	{ 0 },
5978c2ecf20Sopenharmony_ci};
5988c2ecf20Sopenharmony_ci
5998c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_reg_data dra7_l4per_clkctrl_regs[] __initconst = {
6008c2ecf20Sopenharmony_ci	{ DRA7_L4PER_TIMER10_CLKCTRL, dra7_timer10_bit_data, CLKF_SW_SUP, "l4per-clkctrl:0000:24" },
6018c2ecf20Sopenharmony_ci	{ DRA7_L4PER_TIMER11_CLKCTRL, dra7_timer11_bit_data, CLKF_SW_SUP, "l4per-clkctrl:0008:24" },
6028c2ecf20Sopenharmony_ci	{ DRA7_L4PER_TIMER2_CLKCTRL, dra7_timer2_bit_data, CLKF_SW_SUP, "l4per-clkctrl:0010:24" },
6038c2ecf20Sopenharmony_ci	{ DRA7_L4PER_TIMER3_CLKCTRL, dra7_timer3_bit_data, CLKF_SW_SUP, "l4per-clkctrl:0018:24" },
6048c2ecf20Sopenharmony_ci	{ DRA7_L4PER_TIMER4_CLKCTRL, dra7_timer4_bit_data, CLKF_SW_SUP, "l4per-clkctrl:0020:24" },
6058c2ecf20Sopenharmony_ci	{ DRA7_L4PER_TIMER9_CLKCTRL, dra7_timer9_bit_data, CLKF_SW_SUP, "l4per-clkctrl:0028:24" },
6068c2ecf20Sopenharmony_ci	{ DRA7_L4PER_ELM_CLKCTRL, NULL, 0, "l3_iclk_div" },
6078c2ecf20Sopenharmony_ci	{ DRA7_L4PER_GPIO2_CLKCTRL, dra7_gpio2_bit_data, CLKF_HW_SUP, "l3_iclk_div" },
6088c2ecf20Sopenharmony_ci	{ DRA7_L4PER_GPIO3_CLKCTRL, dra7_gpio3_bit_data, CLKF_HW_SUP, "l3_iclk_div" },
6098c2ecf20Sopenharmony_ci	{ DRA7_L4PER_GPIO4_CLKCTRL, dra7_gpio4_bit_data, CLKF_HW_SUP, "l3_iclk_div" },
6108c2ecf20Sopenharmony_ci	{ DRA7_L4PER_GPIO5_CLKCTRL, dra7_gpio5_bit_data, CLKF_HW_SUP, "l3_iclk_div" },
6118c2ecf20Sopenharmony_ci	{ DRA7_L4PER_GPIO6_CLKCTRL, dra7_gpio6_bit_data, CLKF_HW_SUP, "l3_iclk_div" },
6128c2ecf20Sopenharmony_ci	{ DRA7_L4PER_HDQ1W_CLKCTRL, NULL, CLKF_SW_SUP, "func_12m_fclk" },
6138c2ecf20Sopenharmony_ci	{ DRA7_L4PER_I2C1_CLKCTRL, NULL, CLKF_SW_SUP, "func_96m_fclk" },
6148c2ecf20Sopenharmony_ci	{ DRA7_L4PER_I2C2_CLKCTRL, NULL, CLKF_SW_SUP, "func_96m_fclk" },
6158c2ecf20Sopenharmony_ci	{ DRA7_L4PER_I2C3_CLKCTRL, NULL, CLKF_SW_SUP, "func_96m_fclk" },
6168c2ecf20Sopenharmony_ci	{ DRA7_L4PER_I2C4_CLKCTRL, NULL, CLKF_SW_SUP, "func_96m_fclk" },
6178c2ecf20Sopenharmony_ci	{ DRA7_L4PER_L4_PER1_CLKCTRL, NULL, 0, "l3_iclk_div" },
6188c2ecf20Sopenharmony_ci	{ DRA7_L4PER_MCSPI1_CLKCTRL, NULL, CLKF_SW_SUP, "func_48m_fclk" },
6198c2ecf20Sopenharmony_ci	{ DRA7_L4PER_MCSPI2_CLKCTRL, NULL, CLKF_SW_SUP, "func_48m_fclk" },
6208c2ecf20Sopenharmony_ci	{ DRA7_L4PER_MCSPI3_CLKCTRL, NULL, CLKF_SW_SUP, "func_48m_fclk" },
6218c2ecf20Sopenharmony_ci	{ DRA7_L4PER_MCSPI4_CLKCTRL, NULL, CLKF_SW_SUP, "func_48m_fclk" },
6228c2ecf20Sopenharmony_ci	{ DRA7_L4PER_GPIO7_CLKCTRL, dra7_gpio7_bit_data, CLKF_HW_SUP, "l3_iclk_div" },
6238c2ecf20Sopenharmony_ci	{ DRA7_L4PER_GPIO8_CLKCTRL, dra7_gpio8_bit_data, CLKF_HW_SUP, "l3_iclk_div" },
6248c2ecf20Sopenharmony_ci	{ DRA7_L4PER_MMC3_CLKCTRL, dra7_mmc3_bit_data, CLKF_SW_SUP, "l4per-clkctrl:00f8:25" },
6258c2ecf20Sopenharmony_ci	{ DRA7_L4PER_MMC4_CLKCTRL, dra7_mmc4_bit_data, CLKF_SW_SUP, "l4per-clkctrl:0100:25" },
6268c2ecf20Sopenharmony_ci	{ DRA7_L4PER_UART1_CLKCTRL, dra7_uart1_bit_data, CLKF_SW_SUP, "l4per-clkctrl:0118:24" },
6278c2ecf20Sopenharmony_ci	{ DRA7_L4PER_UART2_CLKCTRL, dra7_uart2_bit_data, CLKF_SW_SUP, "l4per-clkctrl:0120:24" },
6288c2ecf20Sopenharmony_ci	{ DRA7_L4PER_UART3_CLKCTRL, dra7_uart3_bit_data, CLKF_SW_SUP, "l4per-clkctrl:0128:24" },
6298c2ecf20Sopenharmony_ci	{ DRA7_L4PER_UART4_CLKCTRL, dra7_uart4_bit_data, CLKF_SW_SUP, "l4per-clkctrl:0130:24" },
6308c2ecf20Sopenharmony_ci	{ DRA7_L4PER_UART5_CLKCTRL, dra7_uart5_bit_data, CLKF_SW_SUP, "l4per-clkctrl:0148:24" },
6318c2ecf20Sopenharmony_ci	{ 0 },
6328c2ecf20Sopenharmony_ci};
6338c2ecf20Sopenharmony_ci
6348c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_reg_data dra7_l4sec_clkctrl_regs[] __initconst = {
6358c2ecf20Sopenharmony_ci	{ DRA7_L4SEC_AES1_CLKCTRL, NULL, CLKF_HW_SUP, "l3_iclk_div" },
6368c2ecf20Sopenharmony_ci	{ DRA7_L4SEC_AES2_CLKCTRL, NULL, CLKF_HW_SUP, "l3_iclk_div" },
6378c2ecf20Sopenharmony_ci	{ DRA7_L4SEC_DES_CLKCTRL, NULL, CLKF_HW_SUP, "l3_iclk_div" },
6388c2ecf20Sopenharmony_ci	{ DRA7_L4SEC_RNG_CLKCTRL, NULL, CLKF_HW_SUP | CLKF_SOC_NONSEC, "l4_root_clk_div" },
6398c2ecf20Sopenharmony_ci	{ DRA7_L4SEC_SHAM_CLKCTRL, NULL, CLKF_HW_SUP, "l3_iclk_div" },
6408c2ecf20Sopenharmony_ci	{ DRA7_L4SEC_SHAM2_CLKCTRL, NULL, CLKF_HW_SUP, "l3_iclk_div" },
6418c2ecf20Sopenharmony_ci	{ 0 },
6428c2ecf20Sopenharmony_ci};
6438c2ecf20Sopenharmony_ci
6448c2ecf20Sopenharmony_cistatic const char * const dra7_qspi_gfclk_mux_parents[] __initconst = {
6458c2ecf20Sopenharmony_ci	"func_128m_clk",
6468c2ecf20Sopenharmony_ci	"dpll_per_h13x2_ck",
6478c2ecf20Sopenharmony_ci	NULL,
6488c2ecf20Sopenharmony_ci};
6498c2ecf20Sopenharmony_ci
6508c2ecf20Sopenharmony_cistatic const char * const dra7_qspi_gfclk_div_parents[] __initconst = {
6518c2ecf20Sopenharmony_ci	"l4per2-clkctrl:012c:24",
6528c2ecf20Sopenharmony_ci	NULL,
6538c2ecf20Sopenharmony_ci};
6548c2ecf20Sopenharmony_ci
6558c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_div_data dra7_qspi_gfclk_div_data __initconst = {
6568c2ecf20Sopenharmony_ci	.max_div = 4,
6578c2ecf20Sopenharmony_ci	.flags = CLK_DIVIDER_POWER_OF_TWO,
6588c2ecf20Sopenharmony_ci};
6598c2ecf20Sopenharmony_ci
6608c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data dra7_qspi_bit_data[] __initconst = {
6618c2ecf20Sopenharmony_ci	{ 24, TI_CLK_MUX, dra7_qspi_gfclk_mux_parents, NULL },
6628c2ecf20Sopenharmony_ci	{ 25, TI_CLK_DIVIDER, dra7_qspi_gfclk_div_parents, &dra7_qspi_gfclk_div_data },
6638c2ecf20Sopenharmony_ci	{ 0 },
6648c2ecf20Sopenharmony_ci};
6658c2ecf20Sopenharmony_ci
6668c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data dra7_mcasp2_bit_data[] __initconst = {
6678c2ecf20Sopenharmony_ci	{ 22, TI_CLK_MUX, dra7_mcasp1_aux_gfclk_mux_parents, NULL },
6688c2ecf20Sopenharmony_ci	{ 24, TI_CLK_MUX, dra7_mcasp1_ahclkx_mux_parents, NULL },
6698c2ecf20Sopenharmony_ci	{ 28, TI_CLK_MUX, dra7_mcasp1_ahclkx_mux_parents, NULL },
6708c2ecf20Sopenharmony_ci	{ 0 },
6718c2ecf20Sopenharmony_ci};
6728c2ecf20Sopenharmony_ci
6738c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data dra7_mcasp3_bit_data[] __initconst = {
6748c2ecf20Sopenharmony_ci	{ 22, TI_CLK_MUX, dra7_mcasp1_aux_gfclk_mux_parents, NULL },
6758c2ecf20Sopenharmony_ci	{ 24, TI_CLK_MUX, dra7_mcasp1_ahclkx_mux_parents, NULL },
6768c2ecf20Sopenharmony_ci	{ 0 },
6778c2ecf20Sopenharmony_ci};
6788c2ecf20Sopenharmony_ci
6798c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data dra7_mcasp5_bit_data[] __initconst = {
6808c2ecf20Sopenharmony_ci	{ 22, TI_CLK_MUX, dra7_mcasp1_aux_gfclk_mux_parents, NULL },
6818c2ecf20Sopenharmony_ci	{ 24, TI_CLK_MUX, dra7_mcasp1_ahclkx_mux_parents, NULL },
6828c2ecf20Sopenharmony_ci	{ 0 },
6838c2ecf20Sopenharmony_ci};
6848c2ecf20Sopenharmony_ci
6858c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data dra7_mcasp8_bit_data[] __initconst = {
6868c2ecf20Sopenharmony_ci	{ 22, TI_CLK_MUX, dra7_mcasp1_aux_gfclk_mux_parents, NULL },
6878c2ecf20Sopenharmony_ci	{ 24, TI_CLK_MUX, dra7_mcasp1_ahclkx_mux_parents, NULL },
6888c2ecf20Sopenharmony_ci	{ 0 },
6898c2ecf20Sopenharmony_ci};
6908c2ecf20Sopenharmony_ci
6918c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data dra7_mcasp4_bit_data[] __initconst = {
6928c2ecf20Sopenharmony_ci	{ 22, TI_CLK_MUX, dra7_mcasp1_aux_gfclk_mux_parents, NULL },
6938c2ecf20Sopenharmony_ci	{ 24, TI_CLK_MUX, dra7_mcasp1_ahclkx_mux_parents, NULL },
6948c2ecf20Sopenharmony_ci	{ 0 },
6958c2ecf20Sopenharmony_ci};
6968c2ecf20Sopenharmony_ci
6978c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data dra7_uart7_bit_data[] __initconst = {
6988c2ecf20Sopenharmony_ci	{ 24, TI_CLK_MUX, dra7_uart6_gfclk_mux_parents, NULL },
6998c2ecf20Sopenharmony_ci	{ 0 },
7008c2ecf20Sopenharmony_ci};
7018c2ecf20Sopenharmony_ci
7028c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data dra7_uart8_bit_data[] __initconst = {
7038c2ecf20Sopenharmony_ci	{ 24, TI_CLK_MUX, dra7_uart6_gfclk_mux_parents, NULL },
7048c2ecf20Sopenharmony_ci	{ 0 },
7058c2ecf20Sopenharmony_ci};
7068c2ecf20Sopenharmony_ci
7078c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data dra7_uart9_bit_data[] __initconst = {
7088c2ecf20Sopenharmony_ci	{ 24, TI_CLK_MUX, dra7_uart6_gfclk_mux_parents, NULL },
7098c2ecf20Sopenharmony_ci	{ 0 },
7108c2ecf20Sopenharmony_ci};
7118c2ecf20Sopenharmony_ci
7128c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data dra7_mcasp6_bit_data[] __initconst = {
7138c2ecf20Sopenharmony_ci	{ 22, TI_CLK_MUX, dra7_mcasp1_aux_gfclk_mux_parents, NULL },
7148c2ecf20Sopenharmony_ci	{ 24, TI_CLK_MUX, dra7_mcasp1_ahclkx_mux_parents, NULL },
7158c2ecf20Sopenharmony_ci	{ 0 },
7168c2ecf20Sopenharmony_ci};
7178c2ecf20Sopenharmony_ci
7188c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data dra7_mcasp7_bit_data[] __initconst = {
7198c2ecf20Sopenharmony_ci	{ 22, TI_CLK_MUX, dra7_mcasp1_aux_gfclk_mux_parents, NULL },
7208c2ecf20Sopenharmony_ci	{ 24, TI_CLK_MUX, dra7_mcasp1_ahclkx_mux_parents, NULL },
7218c2ecf20Sopenharmony_ci	{ 0 },
7228c2ecf20Sopenharmony_ci};
7238c2ecf20Sopenharmony_ci
7248c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_reg_data dra7_l4per2_clkctrl_regs[] __initconst = {
7258c2ecf20Sopenharmony_ci	{ DRA7_L4PER2_L4_PER2_CLKCTRL, NULL, 0, "l3_iclk_div" },
7268c2ecf20Sopenharmony_ci	{ DRA7_L4PER2_PRUSS1_CLKCTRL, NULL, CLKF_SW_SUP, "" },
7278c2ecf20Sopenharmony_ci	{ DRA7_L4PER2_PRUSS2_CLKCTRL, NULL, CLKF_SW_SUP, "" },
7288c2ecf20Sopenharmony_ci	{ DRA7_L4PER2_EPWMSS1_CLKCTRL, NULL, CLKF_SW_SUP, "l4_root_clk_div" },
7298c2ecf20Sopenharmony_ci	{ DRA7_L4PER2_EPWMSS2_CLKCTRL, NULL, CLKF_SW_SUP, "l4_root_clk_div" },
7308c2ecf20Sopenharmony_ci	{ DRA7_L4PER2_EPWMSS0_CLKCTRL, NULL, CLKF_SW_SUP, "l4_root_clk_div" },
7318c2ecf20Sopenharmony_ci	{ DRA7_L4PER2_QSPI_CLKCTRL, dra7_qspi_bit_data, CLKF_SW_SUP, "l4per2-clkctrl:012c:25" },
7328c2ecf20Sopenharmony_ci	{ DRA7_L4PER2_MCASP2_CLKCTRL, dra7_mcasp2_bit_data, CLKF_SW_SUP, "l4per2-clkctrl:0154:22" },
7338c2ecf20Sopenharmony_ci	{ DRA7_L4PER2_MCASP3_CLKCTRL, dra7_mcasp3_bit_data, CLKF_SW_SUP, "l4per2-clkctrl:015c:22" },
7348c2ecf20Sopenharmony_ci	{ DRA7_L4PER2_MCASP5_CLKCTRL, dra7_mcasp5_bit_data, CLKF_SW_SUP, "l4per2-clkctrl:016c:22" },
7358c2ecf20Sopenharmony_ci	{ DRA7_L4PER2_MCASP8_CLKCTRL, dra7_mcasp8_bit_data, CLKF_SW_SUP, "l4per2-clkctrl:0184:22" },
7368c2ecf20Sopenharmony_ci	{ DRA7_L4PER2_MCASP4_CLKCTRL, dra7_mcasp4_bit_data, CLKF_SW_SUP, "l4per2-clkctrl:018c:22" },
7378c2ecf20Sopenharmony_ci	{ DRA7_L4PER2_UART7_CLKCTRL, dra7_uart7_bit_data, CLKF_SW_SUP, "l4per2-clkctrl:01c4:24" },
7388c2ecf20Sopenharmony_ci	{ DRA7_L4PER2_UART8_CLKCTRL, dra7_uart8_bit_data, CLKF_SW_SUP, "l4per2-clkctrl:01d4:24" },
7398c2ecf20Sopenharmony_ci	{ DRA7_L4PER2_UART9_CLKCTRL, dra7_uart9_bit_data, CLKF_SW_SUP, "l4per2-clkctrl:01dc:24" },
7408c2ecf20Sopenharmony_ci	{ DRA7_L4PER2_DCAN2_CLKCTRL, NULL, CLKF_SW_SUP, "sys_clkin1" },
7418c2ecf20Sopenharmony_ci	{ DRA7_L4PER2_MCASP6_CLKCTRL, dra7_mcasp6_bit_data, CLKF_SW_SUP, "l4per2-clkctrl:01f8:22" },
7428c2ecf20Sopenharmony_ci	{ DRA7_L4PER2_MCASP7_CLKCTRL, dra7_mcasp7_bit_data, CLKF_SW_SUP, "l4per2-clkctrl:01fc:22" },
7438c2ecf20Sopenharmony_ci	{ 0 },
7448c2ecf20Sopenharmony_ci};
7458c2ecf20Sopenharmony_ci
7468c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data dra7_timer13_bit_data[] __initconst = {
7478c2ecf20Sopenharmony_ci	{ 24, TI_CLK_MUX, dra7_timer10_gfclk_mux_parents, NULL },
7488c2ecf20Sopenharmony_ci	{ 0 },
7498c2ecf20Sopenharmony_ci};
7508c2ecf20Sopenharmony_ci
7518c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data dra7_timer14_bit_data[] __initconst = {
7528c2ecf20Sopenharmony_ci	{ 24, TI_CLK_MUX, dra7_timer10_gfclk_mux_parents, NULL },
7538c2ecf20Sopenharmony_ci	{ 0 },
7548c2ecf20Sopenharmony_ci};
7558c2ecf20Sopenharmony_ci
7568c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data dra7_timer15_bit_data[] __initconst = {
7578c2ecf20Sopenharmony_ci	{ 24, TI_CLK_MUX, dra7_timer10_gfclk_mux_parents, NULL },
7588c2ecf20Sopenharmony_ci	{ 0 },
7598c2ecf20Sopenharmony_ci};
7608c2ecf20Sopenharmony_ci
7618c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data dra7_timer16_bit_data[] __initconst = {
7628c2ecf20Sopenharmony_ci	{ 24, TI_CLK_MUX, dra7_timer10_gfclk_mux_parents, NULL },
7638c2ecf20Sopenharmony_ci	{ 0 },
7648c2ecf20Sopenharmony_ci};
7658c2ecf20Sopenharmony_ci
7668c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_reg_data dra7_l4per3_clkctrl_regs[] __initconst = {
7678c2ecf20Sopenharmony_ci	{ DRA7_L4PER3_L4_PER3_CLKCTRL, NULL, 0, "l3_iclk_div" },
7688c2ecf20Sopenharmony_ci	{ DRA7_L4PER3_TIMER13_CLKCTRL, dra7_timer13_bit_data, CLKF_SW_SUP, "l4per3-clkctrl:00b4:24" },
7698c2ecf20Sopenharmony_ci	{ DRA7_L4PER3_TIMER14_CLKCTRL, dra7_timer14_bit_data, CLKF_SW_SUP, "l4per3-clkctrl:00bc:24" },
7708c2ecf20Sopenharmony_ci	{ DRA7_L4PER3_TIMER15_CLKCTRL, dra7_timer15_bit_data, CLKF_SW_SUP, "l4per3-clkctrl:00c4:24" },
7718c2ecf20Sopenharmony_ci	{ DRA7_L4PER3_TIMER16_CLKCTRL, dra7_timer16_bit_data, CLKF_SW_SUP, "l4per3-clkctrl:011c:24" },
7728c2ecf20Sopenharmony_ci	{ 0 },
7738c2ecf20Sopenharmony_ci};
7748c2ecf20Sopenharmony_ci
7758c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data dra7_gpio1_bit_data[] __initconst = {
7768c2ecf20Sopenharmony_ci	{ 8, TI_CLK_GATE, dra7_dss_32khz_clk_parents, NULL },
7778c2ecf20Sopenharmony_ci	{ 0 },
7788c2ecf20Sopenharmony_ci};
7798c2ecf20Sopenharmony_ci
7808c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data dra7_timer1_bit_data[] __initconst = {
7818c2ecf20Sopenharmony_ci	{ 24, TI_CLK_MUX, dra7_timer10_gfclk_mux_parents, NULL },
7828c2ecf20Sopenharmony_ci	{ 0 },
7838c2ecf20Sopenharmony_ci};
7848c2ecf20Sopenharmony_ci
7858c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data dra7_uart10_bit_data[] __initconst = {
7868c2ecf20Sopenharmony_ci	{ 24, TI_CLK_MUX, dra7_uart6_gfclk_mux_parents, NULL },
7878c2ecf20Sopenharmony_ci	{ 0 },
7888c2ecf20Sopenharmony_ci};
7898c2ecf20Sopenharmony_ci
7908c2ecf20Sopenharmony_cistatic const char * const dra7_dcan1_sys_clk_mux_parents[] __initconst = {
7918c2ecf20Sopenharmony_ci	"sys_clkin1",
7928c2ecf20Sopenharmony_ci	"sys_clkin2",
7938c2ecf20Sopenharmony_ci	NULL,
7948c2ecf20Sopenharmony_ci};
7958c2ecf20Sopenharmony_ci
7968c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_bit_data dra7_dcan1_bit_data[] __initconst = {
7978c2ecf20Sopenharmony_ci	{ 24, TI_CLK_MUX, dra7_dcan1_sys_clk_mux_parents, NULL },
7988c2ecf20Sopenharmony_ci	{ 0 },
7998c2ecf20Sopenharmony_ci};
8008c2ecf20Sopenharmony_ci
8018c2ecf20Sopenharmony_cistatic const struct omap_clkctrl_reg_data dra7_wkupaon_clkctrl_regs[] __initconst = {
8028c2ecf20Sopenharmony_ci	{ DRA7_WKUPAON_L4_WKUP_CLKCTRL, NULL, 0, "wkupaon_iclk_mux" },
8038c2ecf20Sopenharmony_ci	{ DRA7_WKUPAON_WD_TIMER2_CLKCTRL, NULL, CLKF_SW_SUP, "sys_32k_ck" },
8048c2ecf20Sopenharmony_ci	{ DRA7_WKUPAON_GPIO1_CLKCTRL, dra7_gpio1_bit_data, CLKF_HW_SUP, "wkupaon_iclk_mux" },
8058c2ecf20Sopenharmony_ci	{ DRA7_WKUPAON_TIMER1_CLKCTRL, dra7_timer1_bit_data, CLKF_SW_SUP, "wkupaon-clkctrl:0020:24" },
8068c2ecf20Sopenharmony_ci	{ DRA7_WKUPAON_TIMER12_CLKCTRL, NULL, CLKF_SOC_NONSEC, "secure_32k_clk_src_ck" },
8078c2ecf20Sopenharmony_ci	{ DRA7_WKUPAON_COUNTER_32K_CLKCTRL, NULL, 0, "wkupaon_iclk_mux" },
8088c2ecf20Sopenharmony_ci	{ DRA7_WKUPAON_UART10_CLKCTRL, dra7_uart10_bit_data, CLKF_SW_SUP, "wkupaon-clkctrl:0060:24" },
8098c2ecf20Sopenharmony_ci	{ DRA7_WKUPAON_DCAN1_CLKCTRL, dra7_dcan1_bit_data, CLKF_SW_SUP, "wkupaon-clkctrl:0068:24" },
8108c2ecf20Sopenharmony_ci	{ DRA7_WKUPAON_ADC_CLKCTRL, NULL, CLKF_SW_SUP | CLKF_SOC_DRA76, "mcan_clk" },
8118c2ecf20Sopenharmony_ci	{ 0 },
8128c2ecf20Sopenharmony_ci};
8138c2ecf20Sopenharmony_ci
8148c2ecf20Sopenharmony_ciconst struct omap_clkctrl_data dra7_clkctrl_data[] __initconst = {
8158c2ecf20Sopenharmony_ci	{ 0x4a005320, dra7_mpu_clkctrl_regs },
8168c2ecf20Sopenharmony_ci	{ 0x4a005420, dra7_dsp1_clkctrl_regs },
8178c2ecf20Sopenharmony_ci	{ 0x4a005520, dra7_ipu1_clkctrl_regs },
8188c2ecf20Sopenharmony_ci	{ 0x4a005550, dra7_ipu_clkctrl_regs },
8198c2ecf20Sopenharmony_ci	{ 0x4a005620, dra7_dsp2_clkctrl_regs },
8208c2ecf20Sopenharmony_ci	{ 0x4a005720, dra7_rtc_clkctrl_regs },
8218c2ecf20Sopenharmony_ci	{ 0x4a005760, dra7_vpe_clkctrl_regs },
8228c2ecf20Sopenharmony_ci	{ 0x4a008620, dra7_coreaon_clkctrl_regs },
8238c2ecf20Sopenharmony_ci	{ 0x4a008720, dra7_l3main1_clkctrl_regs },
8248c2ecf20Sopenharmony_ci	{ 0x4a008920, dra7_ipu2_clkctrl_regs },
8258c2ecf20Sopenharmony_ci	{ 0x4a008a20, dra7_dma_clkctrl_regs },
8268c2ecf20Sopenharmony_ci	{ 0x4a008b20, dra7_emif_clkctrl_regs },
8278c2ecf20Sopenharmony_ci	{ 0x4a008c00, dra7_atl_clkctrl_regs },
8288c2ecf20Sopenharmony_ci	{ 0x4a008d20, dra7_l4cfg_clkctrl_regs },
8298c2ecf20Sopenharmony_ci	{ 0x4a008e20, dra7_l3instr_clkctrl_regs },
8308c2ecf20Sopenharmony_ci	{ 0x4a009020, dra7_cam_clkctrl_regs },
8318c2ecf20Sopenharmony_ci	{ 0x4a009120, dra7_dss_clkctrl_regs },
8328c2ecf20Sopenharmony_ci	{ 0x4a009220, dra7_gpu_clkctrl_regs },
8338c2ecf20Sopenharmony_ci	{ 0x4a009320, dra7_l3init_clkctrl_regs },
8348c2ecf20Sopenharmony_ci	{ 0x4a0093b0, dra7_pcie_clkctrl_regs },
8358c2ecf20Sopenharmony_ci	{ 0x4a0093d0, dra7_gmac_clkctrl_regs },
8368c2ecf20Sopenharmony_ci	{ 0x4a009728, dra7_l4per_clkctrl_regs },
8378c2ecf20Sopenharmony_ci	{ 0x4a0098a0, dra7_l4sec_clkctrl_regs },
8388c2ecf20Sopenharmony_ci	{ 0x4a00970c, dra7_l4per2_clkctrl_regs },
8398c2ecf20Sopenharmony_ci	{ 0x4a009714, dra7_l4per3_clkctrl_regs },
8408c2ecf20Sopenharmony_ci	{ 0x4ae07820, dra7_wkupaon_clkctrl_regs },
8418c2ecf20Sopenharmony_ci	{ 0 },
8428c2ecf20Sopenharmony_ci};
8438c2ecf20Sopenharmony_ci
8448c2ecf20Sopenharmony_cistatic struct ti_dt_clk dra7xx_clks[] = {
8458c2ecf20Sopenharmony_ci	DT_CLK(NULL, "timer_32k_ck", "sys_32k_ck"),
8468c2ecf20Sopenharmony_ci	DT_CLK(NULL, "sys_clkin_ck", "timer_sys_clk_div"),
8478c2ecf20Sopenharmony_ci	DT_CLK(NULL, "sys_clkin", "sys_clkin1"),
8488c2ecf20Sopenharmony_ci	DT_CLK(NULL, "atl_dpll_clk_mux", "atl-clkctrl:0000:24"),
8498c2ecf20Sopenharmony_ci	DT_CLK(NULL, "atl_gfclk_mux", "atl-clkctrl:0000:26"),
8508c2ecf20Sopenharmony_ci	DT_CLK(NULL, "dcan1_sys_clk_mux", "wkupaon-clkctrl:0068:24"),
8518c2ecf20Sopenharmony_ci	DT_CLK(NULL, "dss_32khz_clk", "dss-clkctrl:0000:11"),
8528c2ecf20Sopenharmony_ci	DT_CLK(NULL, "dss_48mhz_clk", "dss-clkctrl:0000:9"),
8538c2ecf20Sopenharmony_ci	DT_CLK(NULL, "dss_dss_clk", "dss-clkctrl:0000:8"),
8548c2ecf20Sopenharmony_ci	DT_CLK(NULL, "dss_hdmi_clk", "dss-clkctrl:0000:10"),
8558c2ecf20Sopenharmony_ci	DT_CLK(NULL, "dss_video1_clk", "dss-clkctrl:0000:12"),
8568c2ecf20Sopenharmony_ci	DT_CLK(NULL, "dss_video2_clk", "dss-clkctrl:0000:13"),
8578c2ecf20Sopenharmony_ci	DT_CLK(NULL, "gmac_rft_clk_mux", "gmac-clkctrl:0000:25"),
8588c2ecf20Sopenharmony_ci	DT_CLK(NULL, "gpio1_dbclk", "wkupaon-clkctrl:0018:8"),
8598c2ecf20Sopenharmony_ci	DT_CLK(NULL, "gpio2_dbclk", "l4per-clkctrl:0038:8"),
8608c2ecf20Sopenharmony_ci	DT_CLK(NULL, "gpio3_dbclk", "l4per-clkctrl:0040:8"),
8618c2ecf20Sopenharmony_ci	DT_CLK(NULL, "gpio4_dbclk", "l4per-clkctrl:0048:8"),
8628c2ecf20Sopenharmony_ci	DT_CLK(NULL, "gpio5_dbclk", "l4per-clkctrl:0050:8"),
8638c2ecf20Sopenharmony_ci	DT_CLK(NULL, "gpio6_dbclk", "l4per-clkctrl:0058:8"),
8648c2ecf20Sopenharmony_ci	DT_CLK(NULL, "gpio7_dbclk", "l4per-clkctrl:00e8:8"),
8658c2ecf20Sopenharmony_ci	DT_CLK(NULL, "gpio8_dbclk", "l4per-clkctrl:00f0:8"),
8668c2ecf20Sopenharmony_ci	DT_CLK(NULL, "ipu1_gfclk_mux", "ipu1-clkctrl:0000:24"),
8678c2ecf20Sopenharmony_ci	DT_CLK(NULL, "mcasp1_ahclkr_mux", "ipu-clkctrl:0000:28"),
8688c2ecf20Sopenharmony_ci	DT_CLK(NULL, "mcasp1_ahclkx_mux", "ipu-clkctrl:0000:24"),
8698c2ecf20Sopenharmony_ci	DT_CLK(NULL, "mcasp1_aux_gfclk_mux", "ipu-clkctrl:0000:22"),
8708c2ecf20Sopenharmony_ci	DT_CLK(NULL, "mcasp2_ahclkr_mux", "l4per2-clkctrl:0154:28"),
8718c2ecf20Sopenharmony_ci	DT_CLK(NULL, "mcasp2_ahclkx_mux", "l4per2-clkctrl:0154:24"),
8728c2ecf20Sopenharmony_ci	DT_CLK(NULL, "mcasp2_aux_gfclk_mux", "l4per2-clkctrl:0154:22"),
8738c2ecf20Sopenharmony_ci	DT_CLK(NULL, "mcasp3_ahclkx_mux", "l4per2-clkctrl:015c:24"),
8748c2ecf20Sopenharmony_ci	DT_CLK(NULL, "mcasp3_aux_gfclk_mux", "l4per2-clkctrl:015c:22"),
8758c2ecf20Sopenharmony_ci	DT_CLK(NULL, "mcasp4_ahclkx_mux", "l4per2-clkctrl:018c:24"),
8768c2ecf20Sopenharmony_ci	DT_CLK(NULL, "mcasp4_aux_gfclk_mux", "l4per2-clkctrl:018c:22"),
8778c2ecf20Sopenharmony_ci	DT_CLK(NULL, "mcasp5_ahclkx_mux", "l4per2-clkctrl:016c:24"),
8788c2ecf20Sopenharmony_ci	DT_CLK(NULL, "mcasp5_aux_gfclk_mux", "l4per2-clkctrl:016c:22"),
8798c2ecf20Sopenharmony_ci	DT_CLK(NULL, "mcasp6_ahclkx_mux", "l4per2-clkctrl:01f8:24"),
8808c2ecf20Sopenharmony_ci	DT_CLK(NULL, "mcasp6_aux_gfclk_mux", "l4per2-clkctrl:01f8:22"),
8818c2ecf20Sopenharmony_ci	DT_CLK(NULL, "mcasp7_ahclkx_mux", "l4per2-clkctrl:01fc:24"),
8828c2ecf20Sopenharmony_ci	DT_CLK(NULL, "mcasp7_aux_gfclk_mux", "l4per2-clkctrl:01fc:22"),
8838c2ecf20Sopenharmony_ci	DT_CLK(NULL, "mcasp8_ahclkx_mux", "l4per2-clkctrl:0184:24"),
8848c2ecf20Sopenharmony_ci	DT_CLK(NULL, "mcasp8_aux_gfclk_mux", "l4per2-clkctrl:0184:22"),
8858c2ecf20Sopenharmony_ci	DT_CLK(NULL, "mmc1_clk32k", "l3init-clkctrl:0008:8"),
8868c2ecf20Sopenharmony_ci	DT_CLK(NULL, "mmc1_fclk_div", "l3init-clkctrl:0008:25"),
8878c2ecf20Sopenharmony_ci	DT_CLK(NULL, "mmc1_fclk_mux", "l3init-clkctrl:0008:24"),
8888c2ecf20Sopenharmony_ci	DT_CLK(NULL, "mmc2_clk32k", "l3init-clkctrl:0010:8"),
8898c2ecf20Sopenharmony_ci	DT_CLK(NULL, "mmc2_fclk_div", "l3init-clkctrl:0010:25"),
8908c2ecf20Sopenharmony_ci	DT_CLK(NULL, "mmc2_fclk_mux", "l3init-clkctrl:0010:24"),
8918c2ecf20Sopenharmony_ci	DT_CLK(NULL, "mmc3_clk32k", "l4per-clkctrl:00f8:8"),
8928c2ecf20Sopenharmony_ci	DT_CLK(NULL, "mmc3_gfclk_div", "l4per-clkctrl:00f8:25"),
8938c2ecf20Sopenharmony_ci	DT_CLK(NULL, "mmc3_gfclk_mux", "l4per-clkctrl:00f8:24"),
8948c2ecf20Sopenharmony_ci	DT_CLK(NULL, "mmc4_clk32k", "l4per-clkctrl:0100:8"),
8958c2ecf20Sopenharmony_ci	DT_CLK(NULL, "mmc4_gfclk_div", "l4per-clkctrl:0100:25"),
8968c2ecf20Sopenharmony_ci	DT_CLK(NULL, "mmc4_gfclk_mux", "l4per-clkctrl:0100:24"),
8978c2ecf20Sopenharmony_ci	DT_CLK(NULL, "optfclk_pciephy1_32khz", "pcie-clkctrl:0000:8"),
8988c2ecf20Sopenharmony_ci	DT_CLK(NULL, "optfclk_pciephy1_clk", "pcie-clkctrl:0000:9"),
8998c2ecf20Sopenharmony_ci	DT_CLK(NULL, "optfclk_pciephy1_div_clk", "pcie-clkctrl:0000:10"),
9008c2ecf20Sopenharmony_ci	DT_CLK(NULL, "optfclk_pciephy2_32khz", "pcie-clkctrl:0008:8"),
9018c2ecf20Sopenharmony_ci	DT_CLK(NULL, "optfclk_pciephy2_clk", "pcie-clkctrl:0008:9"),
9028c2ecf20Sopenharmony_ci	DT_CLK(NULL, "optfclk_pciephy2_div_clk", "pcie-clkctrl:0008:10"),
9038c2ecf20Sopenharmony_ci	DT_CLK(NULL, "qspi_gfclk_div", "l4per2-clkctrl:012c:25"),
9048c2ecf20Sopenharmony_ci	DT_CLK(NULL, "qspi_gfclk_mux", "l4per2-clkctrl:012c:24"),
9058c2ecf20Sopenharmony_ci	DT_CLK(NULL, "rmii_50mhz_clk_mux", "gmac-clkctrl:0000:24"),
9068c2ecf20Sopenharmony_ci	DT_CLK(NULL, "sata_ref_clk", "l3init-clkctrl:0068:8"),
9078c2ecf20Sopenharmony_ci	DT_CLK(NULL, "timer10_gfclk_mux", "l4per-clkctrl:0000:24"),
9088c2ecf20Sopenharmony_ci	DT_CLK(NULL, "timer11_gfclk_mux", "l4per-clkctrl:0008:24"),
9098c2ecf20Sopenharmony_ci	DT_CLK(NULL, "timer13_gfclk_mux", "l4per3-clkctrl:00b4:24"),
9108c2ecf20Sopenharmony_ci	DT_CLK(NULL, "timer14_gfclk_mux", "l4per3-clkctrl:00bc:24"),
9118c2ecf20Sopenharmony_ci	DT_CLK(NULL, "timer15_gfclk_mux", "l4per3-clkctrl:00c4:24"),
9128c2ecf20Sopenharmony_ci	DT_CLK(NULL, "timer16_gfclk_mux", "l4per3-clkctrl:011c:24"),
9138c2ecf20Sopenharmony_ci	DT_CLK(NULL, "timer1_gfclk_mux", "wkupaon-clkctrl:0020:24"),
9148c2ecf20Sopenharmony_ci	DT_CLK(NULL, "timer2_gfclk_mux", "l4per-clkctrl:0010:24"),
9158c2ecf20Sopenharmony_ci	DT_CLK(NULL, "timer3_gfclk_mux", "l4per-clkctrl:0018:24"),
9168c2ecf20Sopenharmony_ci	DT_CLK(NULL, "timer4_gfclk_mux", "l4per-clkctrl:0020:24"),
9178c2ecf20Sopenharmony_ci	DT_CLK(NULL, "timer5_gfclk_mux", "ipu-clkctrl:0008:24"),
9188c2ecf20Sopenharmony_ci	DT_CLK(NULL, "timer6_gfclk_mux", "ipu-clkctrl:0010:24"),
9198c2ecf20Sopenharmony_ci	DT_CLK(NULL, "timer7_gfclk_mux", "ipu-clkctrl:0018:24"),
9208c2ecf20Sopenharmony_ci	DT_CLK(NULL, "timer8_gfclk_mux", "ipu-clkctrl:0020:24"),
9218c2ecf20Sopenharmony_ci	DT_CLK(NULL, "timer9_gfclk_mux", "l4per-clkctrl:0028:24"),
9228c2ecf20Sopenharmony_ci	DT_CLK(NULL, "uart10_gfclk_mux", "wkupaon-clkctrl:0060:24"),
9238c2ecf20Sopenharmony_ci	DT_CLK(NULL, "uart1_gfclk_mux", "l4per-clkctrl:0118:24"),
9248c2ecf20Sopenharmony_ci	DT_CLK(NULL, "uart2_gfclk_mux", "l4per-clkctrl:0120:24"),
9258c2ecf20Sopenharmony_ci	DT_CLK(NULL, "uart3_gfclk_mux", "l4per-clkctrl:0128:24"),
9268c2ecf20Sopenharmony_ci	DT_CLK(NULL, "uart4_gfclk_mux", "l4per-clkctrl:0130:24"),
9278c2ecf20Sopenharmony_ci	DT_CLK(NULL, "uart5_gfclk_mux", "l4per-clkctrl:0148:24"),
9288c2ecf20Sopenharmony_ci	DT_CLK(NULL, "uart6_gfclk_mux", "ipu-clkctrl:0030:24"),
9298c2ecf20Sopenharmony_ci	DT_CLK(NULL, "uart7_gfclk_mux", "l4per2-clkctrl:01c4:24"),
9308c2ecf20Sopenharmony_ci	DT_CLK(NULL, "uart8_gfclk_mux", "l4per2-clkctrl:01d4:24"),
9318c2ecf20Sopenharmony_ci	DT_CLK(NULL, "uart9_gfclk_mux", "l4per2-clkctrl:01dc:24"),
9328c2ecf20Sopenharmony_ci	DT_CLK(NULL, "usb_otg_ss1_refclk960m", "l3init-clkctrl:00d0:8"),
9338c2ecf20Sopenharmony_ci	DT_CLK(NULL, "usb_otg_ss2_refclk960m", "l3init-clkctrl:0020:8"),
9348c2ecf20Sopenharmony_ci	{ .node_name = NULL },
9358c2ecf20Sopenharmony_ci};
9368c2ecf20Sopenharmony_ci
9378c2ecf20Sopenharmony_ciint __init dra7xx_dt_clk_init(void)
9388c2ecf20Sopenharmony_ci{
9398c2ecf20Sopenharmony_ci	int rc;
9408c2ecf20Sopenharmony_ci	struct clk *dpll_ck, *hdcp_ck;
9418c2ecf20Sopenharmony_ci
9428c2ecf20Sopenharmony_ci	if (ti_clk_get_features()->flags & TI_CLK_CLKCTRL_COMPAT)
9438c2ecf20Sopenharmony_ci		ti_dt_clocks_register(dra7xx_compat_clks);
9448c2ecf20Sopenharmony_ci	else
9458c2ecf20Sopenharmony_ci		ti_dt_clocks_register(dra7xx_clks);
9468c2ecf20Sopenharmony_ci
9478c2ecf20Sopenharmony_ci	omap2_clk_disable_autoidle_all();
9488c2ecf20Sopenharmony_ci
9498c2ecf20Sopenharmony_ci	ti_clk_add_aliases();
9508c2ecf20Sopenharmony_ci
9518c2ecf20Sopenharmony_ci	dpll_ck = clk_get_sys(NULL, "dpll_gmac_ck");
9528c2ecf20Sopenharmony_ci	rc = clk_set_rate(dpll_ck, DRA7_DPLL_GMAC_DEFFREQ);
9538c2ecf20Sopenharmony_ci	if (rc)
9548c2ecf20Sopenharmony_ci		pr_err("%s: failed to configure GMAC DPLL!\n", __func__);
9558c2ecf20Sopenharmony_ci
9568c2ecf20Sopenharmony_ci	dpll_ck = clk_get_sys(NULL, "dpll_usb_ck");
9578c2ecf20Sopenharmony_ci	rc = clk_set_rate(dpll_ck, DRA7_DPLL_USB_DEFFREQ);
9588c2ecf20Sopenharmony_ci	if (rc)
9598c2ecf20Sopenharmony_ci		pr_err("%s: failed to configure USB DPLL!\n", __func__);
9608c2ecf20Sopenharmony_ci
9618c2ecf20Sopenharmony_ci	dpll_ck = clk_get_sys(NULL, "dpll_usb_m2_ck");
9628c2ecf20Sopenharmony_ci	rc = clk_set_rate(dpll_ck, DRA7_DPLL_USB_DEFFREQ/2);
9638c2ecf20Sopenharmony_ci	if (rc)
9648c2ecf20Sopenharmony_ci		pr_err("%s: failed to set USB_DPLL M2 OUT\n", __func__);
9658c2ecf20Sopenharmony_ci
9668c2ecf20Sopenharmony_ci	hdcp_ck = clk_get_sys(NULL, "dss_deshdcp_clk");
9678c2ecf20Sopenharmony_ci	rc = clk_prepare_enable(hdcp_ck);
9688c2ecf20Sopenharmony_ci	if (rc)
9698c2ecf20Sopenharmony_ci		pr_err("%s: failed to set dss_deshdcp_clk\n", __func__);
9708c2ecf20Sopenharmony_ci
9718c2ecf20Sopenharmony_ci	return rc;
9728c2ecf20Sopenharmony_ci}
973