18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 28c2ecf20Sopenharmony_ci// 38c2ecf20Sopenharmony_ci// Spreadtrum SC9860 platform clocks 48c2ecf20Sopenharmony_ci// 58c2ecf20Sopenharmony_ci// Copyright (C) 2017, Spreadtrum Communications Inc. 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ci#ifndef _DT_BINDINGS_CLK_SC9860_H_ 88c2ecf20Sopenharmony_ci#define _DT_BINDINGS_CLK_SC9860_H_ 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ci#define CLK_FAC_4M 0 118c2ecf20Sopenharmony_ci#define CLK_FAC_2M 1 128c2ecf20Sopenharmony_ci#define CLK_FAC_1M 2 138c2ecf20Sopenharmony_ci#define CLK_FAC_250K 3 148c2ecf20Sopenharmony_ci#define CLK_FAC_RPLL0_26M 4 158c2ecf20Sopenharmony_ci#define CLK_FAC_RPLL1_26M 5 168c2ecf20Sopenharmony_ci#define CLK_FAC_RCO25M 6 178c2ecf20Sopenharmony_ci#define CLK_FAC_RCO4M 7 188c2ecf20Sopenharmony_ci#define CLK_FAC_RCO2M 8 198c2ecf20Sopenharmony_ci#define CLK_FAC_3K2 9 208c2ecf20Sopenharmony_ci#define CLK_FAC_1K 10 218c2ecf20Sopenharmony_ci#define CLK_MPLL0_GATE 11 228c2ecf20Sopenharmony_ci#define CLK_MPLL1_GATE 12 238c2ecf20Sopenharmony_ci#define CLK_DPLL0_GATE 13 248c2ecf20Sopenharmony_ci#define CLK_DPLL1_GATE 14 258c2ecf20Sopenharmony_ci#define CLK_LTEPLL0_GATE 15 268c2ecf20Sopenharmony_ci#define CLK_TWPLL_GATE 16 278c2ecf20Sopenharmony_ci#define CLK_LTEPLL1_GATE 17 288c2ecf20Sopenharmony_ci#define CLK_RPLL0_GATE 18 298c2ecf20Sopenharmony_ci#define CLK_RPLL1_GATE 19 308c2ecf20Sopenharmony_ci#define CLK_CPPLL_GATE 20 318c2ecf20Sopenharmony_ci#define CLK_GPLL_GATE 21 328c2ecf20Sopenharmony_ci#define CLK_PMU_GATE_NUM (CLK_GPLL_GATE + 1) 338c2ecf20Sopenharmony_ci 348c2ecf20Sopenharmony_ci#define CLK_MPLL0 0 358c2ecf20Sopenharmony_ci#define CLK_MPLL1 1 368c2ecf20Sopenharmony_ci#define CLK_DPLL0 2 378c2ecf20Sopenharmony_ci#define CLK_DPLL1 3 388c2ecf20Sopenharmony_ci#define CLK_RPLL0 4 398c2ecf20Sopenharmony_ci#define CLK_RPLL1 5 408c2ecf20Sopenharmony_ci#define CLK_TWPLL 6 418c2ecf20Sopenharmony_ci#define CLK_LTEPLL0 7 428c2ecf20Sopenharmony_ci#define CLK_LTEPLL1 8 438c2ecf20Sopenharmony_ci#define CLK_GPLL 9 448c2ecf20Sopenharmony_ci#define CLK_CPPLL 10 458c2ecf20Sopenharmony_ci#define CLK_GPLL_42M5 11 468c2ecf20Sopenharmony_ci#define CLK_TWPLL_768M 12 478c2ecf20Sopenharmony_ci#define CLK_TWPLL_384M 13 488c2ecf20Sopenharmony_ci#define CLK_TWPLL_192M 14 498c2ecf20Sopenharmony_ci#define CLK_TWPLL_96M 15 508c2ecf20Sopenharmony_ci#define CLK_TWPLL_48M 16 518c2ecf20Sopenharmony_ci#define CLK_TWPLL_24M 17 528c2ecf20Sopenharmony_ci#define CLK_TWPLL_12M 18 538c2ecf20Sopenharmony_ci#define CLK_TWPLL_512M 19 548c2ecf20Sopenharmony_ci#define CLK_TWPLL_256M 20 558c2ecf20Sopenharmony_ci#define CLK_TWPLL_128M 21 568c2ecf20Sopenharmony_ci#define CLK_TWPLL_64M 22 578c2ecf20Sopenharmony_ci#define CLK_TWPLL_307M2 23 588c2ecf20Sopenharmony_ci#define CLK_TWPLL_153M6 24 598c2ecf20Sopenharmony_ci#define CLK_TWPLL_76M8 25 608c2ecf20Sopenharmony_ci#define CLK_TWPLL_51M2 26 618c2ecf20Sopenharmony_ci#define CLK_TWPLL_38M4 27 628c2ecf20Sopenharmony_ci#define CLK_TWPLL_19M2 28 638c2ecf20Sopenharmony_ci#define CLK_L0_614M4 29 648c2ecf20Sopenharmony_ci#define CLK_L0_409M6 30 658c2ecf20Sopenharmony_ci#define CLK_L0_38M 31 668c2ecf20Sopenharmony_ci#define CLK_L1_38M 32 678c2ecf20Sopenharmony_ci#define CLK_RPLL0_192M 33 688c2ecf20Sopenharmony_ci#define CLK_RPLL0_96M 34 698c2ecf20Sopenharmony_ci#define CLK_RPLL0_48M 35 708c2ecf20Sopenharmony_ci#define CLK_RPLL1_468M 36 718c2ecf20Sopenharmony_ci#define CLK_RPLL1_192M 37 728c2ecf20Sopenharmony_ci#define CLK_RPLL1_96M 38 738c2ecf20Sopenharmony_ci#define CLK_RPLL1_64M 39 748c2ecf20Sopenharmony_ci#define CLK_RPLL1_48M 40 758c2ecf20Sopenharmony_ci#define CLK_DPLL0_50M 41 768c2ecf20Sopenharmony_ci#define CLK_DPLL1_50M 42 778c2ecf20Sopenharmony_ci#define CLK_CPPLL_50M 43 788c2ecf20Sopenharmony_ci#define CLK_M0_39M 44 798c2ecf20Sopenharmony_ci#define CLK_M1_63M 45 808c2ecf20Sopenharmony_ci#define CLK_PLL_NUM (CLK_M1_63M + 1) 818c2ecf20Sopenharmony_ci 828c2ecf20Sopenharmony_ci 838c2ecf20Sopenharmony_ci#define CLK_AP_APB 0 848c2ecf20Sopenharmony_ci#define CLK_AP_USB3 1 858c2ecf20Sopenharmony_ci#define CLK_UART0 2 868c2ecf20Sopenharmony_ci#define CLK_UART1 3 878c2ecf20Sopenharmony_ci#define CLK_UART2 4 888c2ecf20Sopenharmony_ci#define CLK_UART3 5 898c2ecf20Sopenharmony_ci#define CLK_UART4 6 908c2ecf20Sopenharmony_ci#define CLK_I2C0 7 918c2ecf20Sopenharmony_ci#define CLK_I2C1 8 928c2ecf20Sopenharmony_ci#define CLK_I2C2 9 938c2ecf20Sopenharmony_ci#define CLK_I2C3 10 948c2ecf20Sopenharmony_ci#define CLK_I2C4 11 958c2ecf20Sopenharmony_ci#define CLK_I2C5 12 968c2ecf20Sopenharmony_ci#define CLK_SPI0 13 978c2ecf20Sopenharmony_ci#define CLK_SPI1 14 988c2ecf20Sopenharmony_ci#define CLK_SPI2 15 998c2ecf20Sopenharmony_ci#define CLK_SPI3 16 1008c2ecf20Sopenharmony_ci#define CLK_IIS0 17 1018c2ecf20Sopenharmony_ci#define CLK_IIS1 18 1028c2ecf20Sopenharmony_ci#define CLK_IIS2 19 1038c2ecf20Sopenharmony_ci#define CLK_IIS3 20 1048c2ecf20Sopenharmony_ci#define CLK_AP_CLK_NUM (CLK_IIS3 + 1) 1058c2ecf20Sopenharmony_ci 1068c2ecf20Sopenharmony_ci#define CLK_AON_APB 0 1078c2ecf20Sopenharmony_ci#define CLK_AUX0 1 1088c2ecf20Sopenharmony_ci#define CLK_AUX1 2 1098c2ecf20Sopenharmony_ci#define CLK_AUX2 3 1108c2ecf20Sopenharmony_ci#define CLK_PROBE 4 1118c2ecf20Sopenharmony_ci#define CLK_SP_AHB 5 1128c2ecf20Sopenharmony_ci#define CLK_CCI 6 1138c2ecf20Sopenharmony_ci#define CLK_GIC 7 1148c2ecf20Sopenharmony_ci#define CLK_CSSYS 8 1158c2ecf20Sopenharmony_ci#define CLK_SDIO0_2X 9 1168c2ecf20Sopenharmony_ci#define CLK_SDIO1_2X 10 1178c2ecf20Sopenharmony_ci#define CLK_SDIO2_2X 11 1188c2ecf20Sopenharmony_ci#define CLK_EMMC_2X 12 1198c2ecf20Sopenharmony_ci#define CLK_SDIO0_1X 13 1208c2ecf20Sopenharmony_ci#define CLK_SDIO1_1X 14 1218c2ecf20Sopenharmony_ci#define CLK_SDIO2_1X 15 1228c2ecf20Sopenharmony_ci#define CLK_EMMC_1X 16 1238c2ecf20Sopenharmony_ci#define CLK_ADI 17 1248c2ecf20Sopenharmony_ci#define CLK_PWM0 18 1258c2ecf20Sopenharmony_ci#define CLK_PWM1 19 1268c2ecf20Sopenharmony_ci#define CLK_PWM2 20 1278c2ecf20Sopenharmony_ci#define CLK_PWM3 21 1288c2ecf20Sopenharmony_ci#define CLK_EFUSE 22 1298c2ecf20Sopenharmony_ci#define CLK_CM3_UART0 23 1308c2ecf20Sopenharmony_ci#define CLK_CM3_UART1 24 1318c2ecf20Sopenharmony_ci#define CLK_THM 25 1328c2ecf20Sopenharmony_ci#define CLK_CM3_I2C0 26 1338c2ecf20Sopenharmony_ci#define CLK_CM3_I2C1 27 1348c2ecf20Sopenharmony_ci#define CLK_CM4_SPI 28 1358c2ecf20Sopenharmony_ci#define CLK_AON_I2C 29 1368c2ecf20Sopenharmony_ci#define CLK_AVS 30 1378c2ecf20Sopenharmony_ci#define CLK_CA53_DAP 31 1388c2ecf20Sopenharmony_ci#define CLK_CA53_TS 32 1398c2ecf20Sopenharmony_ci#define CLK_DJTAG_TCK 33 1408c2ecf20Sopenharmony_ci#define CLK_PMU 34 1418c2ecf20Sopenharmony_ci#define CLK_PMU_26M 35 1428c2ecf20Sopenharmony_ci#define CLK_DEBOUNCE 36 1438c2ecf20Sopenharmony_ci#define CLK_OTG2_REF 37 1448c2ecf20Sopenharmony_ci#define CLK_USB3_REF 38 1458c2ecf20Sopenharmony_ci#define CLK_AP_AXI 39 1468c2ecf20Sopenharmony_ci#define CLK_AON_PREDIV_NUM (CLK_AP_AXI + 1) 1478c2ecf20Sopenharmony_ci 1488c2ecf20Sopenharmony_ci#define CLK_USB3_EB 0 1498c2ecf20Sopenharmony_ci#define CLK_USB3_SUSPEND_EB 1 1508c2ecf20Sopenharmony_ci#define CLK_USB3_REF_EB 2 1518c2ecf20Sopenharmony_ci#define CLK_DMA_EB 3 1528c2ecf20Sopenharmony_ci#define CLK_SDIO0_EB 4 1538c2ecf20Sopenharmony_ci#define CLK_SDIO1_EB 5 1548c2ecf20Sopenharmony_ci#define CLK_SDIO2_EB 6 1558c2ecf20Sopenharmony_ci#define CLK_EMMC_EB 7 1568c2ecf20Sopenharmony_ci#define CLK_ROM_EB 8 1578c2ecf20Sopenharmony_ci#define CLK_BUSMON_EB 9 1588c2ecf20Sopenharmony_ci#define CLK_CC63S_EB 10 1598c2ecf20Sopenharmony_ci#define CLK_CC63P_EB 11 1608c2ecf20Sopenharmony_ci#define CLK_CE0_EB 12 1618c2ecf20Sopenharmony_ci#define CLK_CE1_EB 13 1628c2ecf20Sopenharmony_ci#define CLK_APAHB_GATE_NUM (CLK_CE1_EB + 1) 1638c2ecf20Sopenharmony_ci 1648c2ecf20Sopenharmony_ci#define CLK_AVS_LIT_EB 0 1658c2ecf20Sopenharmony_ci#define CLK_AVS_BIG_EB 1 1668c2ecf20Sopenharmony_ci#define CLK_AP_INTC5_EB 2 1678c2ecf20Sopenharmony_ci#define CLK_GPIO_EB 3 1688c2ecf20Sopenharmony_ci#define CLK_PWM0_EB 4 1698c2ecf20Sopenharmony_ci#define CLK_PWM1_EB 5 1708c2ecf20Sopenharmony_ci#define CLK_PWM2_EB 6 1718c2ecf20Sopenharmony_ci#define CLK_PWM3_EB 7 1728c2ecf20Sopenharmony_ci#define CLK_KPD_EB 8 1738c2ecf20Sopenharmony_ci#define CLK_AON_SYS_EB 9 1748c2ecf20Sopenharmony_ci#define CLK_AP_SYS_EB 10 1758c2ecf20Sopenharmony_ci#define CLK_AON_TMR_EB 11 1768c2ecf20Sopenharmony_ci#define CLK_AP_TMR0_EB 12 1778c2ecf20Sopenharmony_ci#define CLK_EFUSE_EB 13 1788c2ecf20Sopenharmony_ci#define CLK_EIC_EB 14 1798c2ecf20Sopenharmony_ci#define CLK_PUB1_REG_EB 15 1808c2ecf20Sopenharmony_ci#define CLK_ADI_EB 16 1818c2ecf20Sopenharmony_ci#define CLK_AP_INTC0_EB 17 1828c2ecf20Sopenharmony_ci#define CLK_AP_INTC1_EB 18 1838c2ecf20Sopenharmony_ci#define CLK_AP_INTC2_EB 19 1848c2ecf20Sopenharmony_ci#define CLK_AP_INTC3_EB 20 1858c2ecf20Sopenharmony_ci#define CLK_AP_INTC4_EB 21 1868c2ecf20Sopenharmony_ci#define CLK_SPLK_EB 22 1878c2ecf20Sopenharmony_ci#define CLK_MSPI_EB 23 1888c2ecf20Sopenharmony_ci#define CLK_PUB0_REG_EB 24 1898c2ecf20Sopenharmony_ci#define CLK_PIN_EB 25 1908c2ecf20Sopenharmony_ci#define CLK_AON_CKG_EB 26 1918c2ecf20Sopenharmony_ci#define CLK_GPU_EB 27 1928c2ecf20Sopenharmony_ci#define CLK_APCPU_TS0_EB 28 1938c2ecf20Sopenharmony_ci#define CLK_APCPU_TS1_EB 29 1948c2ecf20Sopenharmony_ci#define CLK_DAP_EB 30 1958c2ecf20Sopenharmony_ci#define CLK_I2C_EB 31 1968c2ecf20Sopenharmony_ci#define CLK_PMU_EB 32 1978c2ecf20Sopenharmony_ci#define CLK_THM_EB 33 1988c2ecf20Sopenharmony_ci#define CLK_AUX0_EB 34 1998c2ecf20Sopenharmony_ci#define CLK_AUX1_EB 35 2008c2ecf20Sopenharmony_ci#define CLK_AUX2_EB 36 2018c2ecf20Sopenharmony_ci#define CLK_PROBE_EB 37 2028c2ecf20Sopenharmony_ci#define CLK_GPU0_AVS_EB 38 2038c2ecf20Sopenharmony_ci#define CLK_GPU1_AVS_EB 39 2048c2ecf20Sopenharmony_ci#define CLK_APCPU_WDG_EB 40 2058c2ecf20Sopenharmony_ci#define CLK_AP_TMR1_EB 41 2068c2ecf20Sopenharmony_ci#define CLK_AP_TMR2_EB 42 2078c2ecf20Sopenharmony_ci#define CLK_DISP_EMC_EB 43 2088c2ecf20Sopenharmony_ci#define CLK_ZIP_EMC_EB 44 2098c2ecf20Sopenharmony_ci#define CLK_GSP_EMC_EB 45 2108c2ecf20Sopenharmony_ci#define CLK_OSC_AON_EB 46 2118c2ecf20Sopenharmony_ci#define CLK_LVDS_TRX_EB 47 2128c2ecf20Sopenharmony_ci#define CLK_LVDS_TCXO_EB 48 2138c2ecf20Sopenharmony_ci#define CLK_MDAR_EB 49 2148c2ecf20Sopenharmony_ci#define CLK_RTC4M0_CAL_EB 50 2158c2ecf20Sopenharmony_ci#define CLK_RCT100M_CAL_EB 51 2168c2ecf20Sopenharmony_ci#define CLK_DJTAG_EB 52 2178c2ecf20Sopenharmony_ci#define CLK_MBOX_EB 53 2188c2ecf20Sopenharmony_ci#define CLK_AON_DMA_EB 54 2198c2ecf20Sopenharmony_ci#define CLK_DBG_EMC_EB 55 2208c2ecf20Sopenharmony_ci#define CLK_LVDS_PLL_DIV_EN 56 2218c2ecf20Sopenharmony_ci#define CLK_DEF_EB 57 2228c2ecf20Sopenharmony_ci#define CLK_AON_APB_RSV0 58 2238c2ecf20Sopenharmony_ci#define CLK_ORP_JTAG_EB 59 2248c2ecf20Sopenharmony_ci#define CLK_VSP_EB 60 2258c2ecf20Sopenharmony_ci#define CLK_CAM_EB 61 2268c2ecf20Sopenharmony_ci#define CLK_DISP_EB 62 2278c2ecf20Sopenharmony_ci#define CLK_DBG_AXI_IF_EB 63 2288c2ecf20Sopenharmony_ci#define CLK_SDIO0_2X_EN 64 2298c2ecf20Sopenharmony_ci#define CLK_SDIO1_2X_EN 65 2308c2ecf20Sopenharmony_ci#define CLK_SDIO2_2X_EN 66 2318c2ecf20Sopenharmony_ci#define CLK_EMMC_2X_EN 67 2328c2ecf20Sopenharmony_ci#define CLK_ARCH_RTC_EB 68 2338c2ecf20Sopenharmony_ci#define CLK_KPB_RTC_EB 69 2348c2ecf20Sopenharmony_ci#define CLK_AON_SYST_RTC_EB 70 2358c2ecf20Sopenharmony_ci#define CLK_AP_SYST_RTC_EB 71 2368c2ecf20Sopenharmony_ci#define CLK_AON_TMR_RTC_EB 72 2378c2ecf20Sopenharmony_ci#define CLK_AP_TMR0_RTC_EB 73 2388c2ecf20Sopenharmony_ci#define CLK_EIC_RTC_EB 74 2398c2ecf20Sopenharmony_ci#define CLK_EIC_RTCDV5_EB 75 2408c2ecf20Sopenharmony_ci#define CLK_AP_WDG_RTC_EB 76 2418c2ecf20Sopenharmony_ci#define CLK_AP_TMR1_RTC_EB 77 2428c2ecf20Sopenharmony_ci#define CLK_AP_TMR2_RTC_EB 78 2438c2ecf20Sopenharmony_ci#define CLK_DCXO_TMR_RTC_EB 79 2448c2ecf20Sopenharmony_ci#define CLK_BB_CAL_RTC_EB 80 2458c2ecf20Sopenharmony_ci#define CLK_AVS_BIG_RTC_EB 81 2468c2ecf20Sopenharmony_ci#define CLK_AVS_LIT_RTC_EB 82 2478c2ecf20Sopenharmony_ci#define CLK_AVS_GPU0_RTC_EB 83 2488c2ecf20Sopenharmony_ci#define CLK_AVS_GPU1_RTC_EB 84 2498c2ecf20Sopenharmony_ci#define CLK_GPU_TS_EB 85 2508c2ecf20Sopenharmony_ci#define CLK_RTCDV10_EB 86 2518c2ecf20Sopenharmony_ci#define CLK_AON_GATE_NUM (CLK_RTCDV10_EB + 1) 2528c2ecf20Sopenharmony_ci 2538c2ecf20Sopenharmony_ci#define CLK_LIT_MCU 0 2548c2ecf20Sopenharmony_ci#define CLK_BIG_MCU 1 2558c2ecf20Sopenharmony_ci#define CLK_AONSECURE_NUM (CLK_BIG_MCU + 1) 2568c2ecf20Sopenharmony_ci 2578c2ecf20Sopenharmony_ci#define CLK_AGCP_IIS0_EB 0 2588c2ecf20Sopenharmony_ci#define CLK_AGCP_IIS1_EB 1 2598c2ecf20Sopenharmony_ci#define CLK_AGCP_IIS2_EB 2 2608c2ecf20Sopenharmony_ci#define CLK_AGCP_IIS3_EB 3 2618c2ecf20Sopenharmony_ci#define CLK_AGCP_UART_EB 4 2628c2ecf20Sopenharmony_ci#define CLK_AGCP_DMACP_EB 5 2638c2ecf20Sopenharmony_ci#define CLK_AGCP_DMAAP_EB 6 2648c2ecf20Sopenharmony_ci#define CLK_AGCP_ARC48K_EB 7 2658c2ecf20Sopenharmony_ci#define CLK_AGCP_SRC44P1K_EB 8 2668c2ecf20Sopenharmony_ci#define CLK_AGCP_MCDT_EB 9 2678c2ecf20Sopenharmony_ci#define CLK_AGCP_VBCIFD_EB 10 2688c2ecf20Sopenharmony_ci#define CLK_AGCP_VBC_EB 11 2698c2ecf20Sopenharmony_ci#define CLK_AGCP_SPINLOCK_EB 12 2708c2ecf20Sopenharmony_ci#define CLK_AGCP_ICU_EB 13 2718c2ecf20Sopenharmony_ci#define CLK_AGCP_AP_ASHB_EB 14 2728c2ecf20Sopenharmony_ci#define CLK_AGCP_CP_ASHB_EB 15 2738c2ecf20Sopenharmony_ci#define CLK_AGCP_AUD_EB 16 2748c2ecf20Sopenharmony_ci#define CLK_AGCP_AUDIF_EB 17 2758c2ecf20Sopenharmony_ci#define CLK_AGCP_GATE_NUM (CLK_AGCP_AUDIF_EB + 1) 2768c2ecf20Sopenharmony_ci 2778c2ecf20Sopenharmony_ci#define CLK_GPU 0 2788c2ecf20Sopenharmony_ci#define CLK_GPU_NUM (CLK_GPU + 1) 2798c2ecf20Sopenharmony_ci 2808c2ecf20Sopenharmony_ci#define CLK_AHB_VSP 0 2818c2ecf20Sopenharmony_ci#define CLK_VSP 1 2828c2ecf20Sopenharmony_ci#define CLK_VSP_ENC 2 2838c2ecf20Sopenharmony_ci#define CLK_VPP 3 2848c2ecf20Sopenharmony_ci#define CLK_VSP_26M 4 2858c2ecf20Sopenharmony_ci#define CLK_VSP_NUM (CLK_VSP_26M + 1) 2868c2ecf20Sopenharmony_ci 2878c2ecf20Sopenharmony_ci#define CLK_VSP_DEC_EB 0 2888c2ecf20Sopenharmony_ci#define CLK_VSP_CKG_EB 1 2898c2ecf20Sopenharmony_ci#define CLK_VSP_MMU_EB 2 2908c2ecf20Sopenharmony_ci#define CLK_VSP_ENC_EB 3 2918c2ecf20Sopenharmony_ci#define CLK_VPP_EB 4 2928c2ecf20Sopenharmony_ci#define CLK_VSP_26M_EB 5 2938c2ecf20Sopenharmony_ci#define CLK_VSP_AXI_GATE 6 2948c2ecf20Sopenharmony_ci#define CLK_VSP_ENC_GATE 7 2958c2ecf20Sopenharmony_ci#define CLK_VPP_AXI_GATE 8 2968c2ecf20Sopenharmony_ci#define CLK_VSP_BM_GATE 9 2978c2ecf20Sopenharmony_ci#define CLK_VSP_ENC_BM_GATE 10 2988c2ecf20Sopenharmony_ci#define CLK_VPP_BM_GATE 11 2998c2ecf20Sopenharmony_ci#define CLK_VSP_GATE_NUM (CLK_VPP_BM_GATE + 1) 3008c2ecf20Sopenharmony_ci 3018c2ecf20Sopenharmony_ci#define CLK_AHB_CAM 0 3028c2ecf20Sopenharmony_ci#define CLK_SENSOR0 1 3038c2ecf20Sopenharmony_ci#define CLK_SENSOR1 2 3048c2ecf20Sopenharmony_ci#define CLK_SENSOR2 3 3058c2ecf20Sopenharmony_ci#define CLK_MIPI_CSI0_EB 4 3068c2ecf20Sopenharmony_ci#define CLK_MIPI_CSI1_EB 5 3078c2ecf20Sopenharmony_ci#define CLK_CAM_NUM (CLK_MIPI_CSI1_EB + 1) 3088c2ecf20Sopenharmony_ci 3098c2ecf20Sopenharmony_ci#define CLK_DCAM0_EB 0 3108c2ecf20Sopenharmony_ci#define CLK_DCAM1_EB 1 3118c2ecf20Sopenharmony_ci#define CLK_ISP0_EB 2 3128c2ecf20Sopenharmony_ci#define CLK_CSI0_EB 3 3138c2ecf20Sopenharmony_ci#define CLK_CSI1_EB 4 3148c2ecf20Sopenharmony_ci#define CLK_JPG0_EB 5 3158c2ecf20Sopenharmony_ci#define CLK_JPG1_EB 6 3168c2ecf20Sopenharmony_ci#define CLK_CAM_CKG_EB 7 3178c2ecf20Sopenharmony_ci#define CLK_CAM_MMU_EB 8 3188c2ecf20Sopenharmony_ci#define CLK_ISP1_EB 9 3198c2ecf20Sopenharmony_ci#define CLK_CPP_EB 10 3208c2ecf20Sopenharmony_ci#define CLK_MMU_PF_EB 11 3218c2ecf20Sopenharmony_ci#define CLK_ISP2_EB 12 3228c2ecf20Sopenharmony_ci#define CLK_DCAM2ISP_IF_EB 13 3238c2ecf20Sopenharmony_ci#define CLK_ISP2DCAM_IF_EB 14 3248c2ecf20Sopenharmony_ci#define CLK_ISP_LCLK_EB 15 3258c2ecf20Sopenharmony_ci#define CLK_ISP_ICLK_EB 16 3268c2ecf20Sopenharmony_ci#define CLK_ISP_MCLK_EB 17 3278c2ecf20Sopenharmony_ci#define CLK_ISP_PCLK_EB 18 3288c2ecf20Sopenharmony_ci#define CLK_ISP_ISP2DCAM_EB 19 3298c2ecf20Sopenharmony_ci#define CLK_DCAM0_IF_EB 20 3308c2ecf20Sopenharmony_ci#define CLK_CLK26M_IF_EB 21 3318c2ecf20Sopenharmony_ci#define CLK_CPHY0_GATE 22 3328c2ecf20Sopenharmony_ci#define CLK_MIPI_CSI0_GATE 23 3338c2ecf20Sopenharmony_ci#define CLK_CPHY1_GATE 24 3348c2ecf20Sopenharmony_ci#define CLK_MIPI_CSI1 25 3358c2ecf20Sopenharmony_ci#define CLK_DCAM0_AXI_GATE 26 3368c2ecf20Sopenharmony_ci#define CLK_DCAM1_AXI_GATE 27 3378c2ecf20Sopenharmony_ci#define CLK_SENSOR0_GATE 28 3388c2ecf20Sopenharmony_ci#define CLK_SENSOR1_GATE 29 3398c2ecf20Sopenharmony_ci#define CLK_JPG0_AXI_GATE 30 3408c2ecf20Sopenharmony_ci#define CLK_GPG1_AXI_GATE 31 3418c2ecf20Sopenharmony_ci#define CLK_ISP0_AXI_GATE 32 3428c2ecf20Sopenharmony_ci#define CLK_ISP1_AXI_GATE 33 3438c2ecf20Sopenharmony_ci#define CLK_ISP2_AXI_GATE 34 3448c2ecf20Sopenharmony_ci#define CLK_CPP_AXI_GATE 35 3458c2ecf20Sopenharmony_ci#define CLK_D0_IF_AXI_GATE 36 3468c2ecf20Sopenharmony_ci#define CLK_D2I_IF_AXI_GATE 37 3478c2ecf20Sopenharmony_ci#define CLK_I2D_IF_AXI_GATE 38 3488c2ecf20Sopenharmony_ci#define CLK_SPARE_AXI_GATE 39 3498c2ecf20Sopenharmony_ci#define CLK_SENSOR2_GATE 40 3508c2ecf20Sopenharmony_ci#define CLK_D0IF_IN_D_EN 41 3518c2ecf20Sopenharmony_ci#define CLK_D1IF_IN_D_EN 42 3528c2ecf20Sopenharmony_ci#define CLK_D0IF_IN_D2I_EN 43 3538c2ecf20Sopenharmony_ci#define CLK_D1IF_IN_D2I_EN 44 3548c2ecf20Sopenharmony_ci#define CLK_IA_IN_D2I_EN 45 3558c2ecf20Sopenharmony_ci#define CLK_IB_IN_D2I_EN 46 3568c2ecf20Sopenharmony_ci#define CLK_IC_IN_D2I_EN 47 3578c2ecf20Sopenharmony_ci#define CLK_IA_IN_I_EN 48 3588c2ecf20Sopenharmony_ci#define CLK_IB_IN_I_EN 49 3598c2ecf20Sopenharmony_ci#define CLK_IC_IN_I_EN 50 3608c2ecf20Sopenharmony_ci#define CLK_CAM_GATE_NUM (CLK_IC_IN_I_EN + 1) 3618c2ecf20Sopenharmony_ci 3628c2ecf20Sopenharmony_ci#define CLK_AHB_DISP 0 3638c2ecf20Sopenharmony_ci#define CLK_DISPC0_DPI 1 3648c2ecf20Sopenharmony_ci#define CLK_DISPC1_DPI 2 3658c2ecf20Sopenharmony_ci#define CLK_DISP_NUM (CLK_DISPC1_DPI + 1) 3668c2ecf20Sopenharmony_ci 3678c2ecf20Sopenharmony_ci#define CLK_DISPC0_EB 0 3688c2ecf20Sopenharmony_ci#define CLK_DISPC1_EB 1 3698c2ecf20Sopenharmony_ci#define CLK_DISPC_MMU_EB 2 3708c2ecf20Sopenharmony_ci#define CLK_GSP0_EB 3 3718c2ecf20Sopenharmony_ci#define CLK_GSP1_EB 4 3728c2ecf20Sopenharmony_ci#define CLK_GSP0_MMU_EB 5 3738c2ecf20Sopenharmony_ci#define CLK_GSP1_MMU_EB 6 3748c2ecf20Sopenharmony_ci#define CLK_DSI0_EB 7 3758c2ecf20Sopenharmony_ci#define CLK_DSI1_EB 8 3768c2ecf20Sopenharmony_ci#define CLK_DISP_CKG_EB 9 3778c2ecf20Sopenharmony_ci#define CLK_DISP_GPU_EB 10 3788c2ecf20Sopenharmony_ci#define CLK_GPU_MTX_EB 11 3798c2ecf20Sopenharmony_ci#define CLK_GSP_MTX_EB 12 3808c2ecf20Sopenharmony_ci#define CLK_TMC_MTX_EB 13 3818c2ecf20Sopenharmony_ci#define CLK_DISPC_MTX_EB 14 3828c2ecf20Sopenharmony_ci#define CLK_DPHY0_GATE 15 3838c2ecf20Sopenharmony_ci#define CLK_DPHY1_GATE 16 3848c2ecf20Sopenharmony_ci#define CLK_GSP0_A_GATE 17 3858c2ecf20Sopenharmony_ci#define CLK_GSP1_A_GATE 18 3868c2ecf20Sopenharmony_ci#define CLK_GSP0_F_GATE 19 3878c2ecf20Sopenharmony_ci#define CLK_GSP1_F_GATE 20 3888c2ecf20Sopenharmony_ci#define CLK_D_MTX_F_GATE 21 3898c2ecf20Sopenharmony_ci#define CLK_D_MTX_A_GATE 22 3908c2ecf20Sopenharmony_ci#define CLK_D_NOC_F_GATE 23 3918c2ecf20Sopenharmony_ci#define CLK_D_NOC_A_GATE 24 3928c2ecf20Sopenharmony_ci#define CLK_GSP_MTX_F_GATE 25 3938c2ecf20Sopenharmony_ci#define CLK_GSP_MTX_A_GATE 26 3948c2ecf20Sopenharmony_ci#define CLK_GSP_NOC_F_GATE 27 3958c2ecf20Sopenharmony_ci#define CLK_GSP_NOC_A_GATE 28 3968c2ecf20Sopenharmony_ci#define CLK_DISPM0IDLE_GATE 29 3978c2ecf20Sopenharmony_ci#define CLK_GSPM0IDLE_GATE 30 3988c2ecf20Sopenharmony_ci#define CLK_DISP_GATE_NUM (CLK_GSPM0IDLE_GATE + 1) 3998c2ecf20Sopenharmony_ci 4008c2ecf20Sopenharmony_ci#define CLK_SIM0_EB 0 4018c2ecf20Sopenharmony_ci#define CLK_IIS0_EB 1 4028c2ecf20Sopenharmony_ci#define CLK_IIS1_EB 2 4038c2ecf20Sopenharmony_ci#define CLK_IIS2_EB 3 4048c2ecf20Sopenharmony_ci#define CLK_IIS3_EB 4 4058c2ecf20Sopenharmony_ci#define CLK_SPI0_EB 5 4068c2ecf20Sopenharmony_ci#define CLK_SPI1_EB 6 4078c2ecf20Sopenharmony_ci#define CLK_SPI2_EB 7 4088c2ecf20Sopenharmony_ci#define CLK_I2C0_EB 8 4098c2ecf20Sopenharmony_ci#define CLK_I2C1_EB 9 4108c2ecf20Sopenharmony_ci#define CLK_I2C2_EB 10 4118c2ecf20Sopenharmony_ci#define CLK_I2C3_EB 11 4128c2ecf20Sopenharmony_ci#define CLK_I2C4_EB 12 4138c2ecf20Sopenharmony_ci#define CLK_I2C5_EB 13 4148c2ecf20Sopenharmony_ci#define CLK_UART0_EB 14 4158c2ecf20Sopenharmony_ci#define CLK_UART1_EB 15 4168c2ecf20Sopenharmony_ci#define CLK_UART2_EB 16 4178c2ecf20Sopenharmony_ci#define CLK_UART3_EB 17 4188c2ecf20Sopenharmony_ci#define CLK_UART4_EB 18 4198c2ecf20Sopenharmony_ci#define CLK_AP_CKG_EB 19 4208c2ecf20Sopenharmony_ci#define CLK_SPI3_EB 20 4218c2ecf20Sopenharmony_ci#define CLK_APAPB_GATE_NUM (CLK_SPI3_EB + 1) 4228c2ecf20Sopenharmony_ci 4238c2ecf20Sopenharmony_ci#endif /* _DT_BINDINGS_CLK_SC9860_H_ */ 424