11.1Sjmcneill/* $NetBSD: mt7622-clk.h,v 1.1.1.3 2020/01/03 14:33:04 skrll Exp $ */ 21.1Sjmcneill 31.1.1.3Sskrll/* SPDX-License-Identifier: GPL-2.0-only */ 41.1Sjmcneill/* 51.1Sjmcneill * Copyright (c) 2017 MediaTek Inc. 61.1Sjmcneill * Author: Chen Zhong <chen.zhong@mediatek.com> 71.1Sjmcneill */ 81.1Sjmcneill 91.1Sjmcneill#ifndef _DT_BINDINGS_CLK_MT7622_H 101.1Sjmcneill#define _DT_BINDINGS_CLK_MT7622_H 111.1Sjmcneill 121.1Sjmcneill/* TOPCKGEN */ 131.1Sjmcneill 141.1Sjmcneill#define CLK_TOP_TO_U2_PHY 0 151.1Sjmcneill#define CLK_TOP_TO_U2_PHY_1P 1 161.1Sjmcneill#define CLK_TOP_PCIE0_PIPE_EN 2 171.1Sjmcneill#define CLK_TOP_PCIE1_PIPE_EN 3 181.1Sjmcneill#define CLK_TOP_SSUSB_TX250M 4 191.1Sjmcneill#define CLK_TOP_SSUSB_EQ_RX250M 5 201.1Sjmcneill#define CLK_TOP_SSUSB_CDR_REF 6 211.1Sjmcneill#define CLK_TOP_SSUSB_CDR_FB 7 221.1Sjmcneill#define CLK_TOP_SATA_ASIC 8 231.1Sjmcneill#define CLK_TOP_SATA_RBC 9 241.1Sjmcneill#define CLK_TOP_TO_USB3_SYS 10 251.1Sjmcneill#define CLK_TOP_P1_1MHZ 11 261.1Sjmcneill#define CLK_TOP_4MHZ 12 271.1Sjmcneill#define CLK_TOP_P0_1MHZ 13 281.1Sjmcneill#define CLK_TOP_TXCLK_SRC_PRE 14 291.1Sjmcneill#define CLK_TOP_RTC 15 301.1Sjmcneill#define CLK_TOP_MEMPLL 16 311.1Sjmcneill#define CLK_TOP_DMPLL 17 321.1Sjmcneill#define CLK_TOP_SYSPLL_D2 18 331.1Sjmcneill#define CLK_TOP_SYSPLL1_D2 19 341.1Sjmcneill#define CLK_TOP_SYSPLL1_D4 20 351.1Sjmcneill#define CLK_TOP_SYSPLL1_D8 21 361.1Sjmcneill#define CLK_TOP_SYSPLL2_D4 22 371.1Sjmcneill#define CLK_TOP_SYSPLL2_D8 23 381.1Sjmcneill#define CLK_TOP_SYSPLL_D5 24 391.1Sjmcneill#define CLK_TOP_SYSPLL3_D2 25 401.1Sjmcneill#define CLK_TOP_SYSPLL3_D4 26 411.1Sjmcneill#define CLK_TOP_SYSPLL4_D2 27 421.1Sjmcneill#define CLK_TOP_SYSPLL4_D4 28 431.1Sjmcneill#define CLK_TOP_SYSPLL4_D16 29 441.1Sjmcneill#define CLK_TOP_UNIVPLL 30 451.1Sjmcneill#define CLK_TOP_UNIVPLL_D2 31 461.1Sjmcneill#define CLK_TOP_UNIVPLL1_D2 32 471.1Sjmcneill#define CLK_TOP_UNIVPLL1_D4 33 481.1Sjmcneill#define CLK_TOP_UNIVPLL1_D8 34 491.1Sjmcneill#define CLK_TOP_UNIVPLL1_D16 35 501.1Sjmcneill#define CLK_TOP_UNIVPLL2_D2 36 511.1Sjmcneill#define CLK_TOP_UNIVPLL2_D4 37 521.1Sjmcneill#define CLK_TOP_UNIVPLL2_D8 38 531.1Sjmcneill#define CLK_TOP_UNIVPLL2_D16 39 541.1Sjmcneill#define CLK_TOP_UNIVPLL_D5 40 551.1Sjmcneill#define CLK_TOP_UNIVPLL3_D2 41 561.1Sjmcneill#define CLK_TOP_UNIVPLL3_D4 42 571.1Sjmcneill#define CLK_TOP_UNIVPLL3_D16 43 581.1Sjmcneill#define CLK_TOP_UNIVPLL_D7 44 591.1Sjmcneill#define CLK_TOP_UNIVPLL_D80_D4 45 601.1Sjmcneill#define CLK_TOP_UNIV48M 46 611.1Sjmcneill#define CLK_TOP_SGMIIPLL 47 621.1Sjmcneill#define CLK_TOP_SGMIIPLL_D2 48 631.1Sjmcneill#define CLK_TOP_AUD1PLL 49 641.1Sjmcneill#define CLK_TOP_AUD2PLL 50 651.1Sjmcneill#define CLK_TOP_AUD_I2S2_MCK 51 661.1Sjmcneill#define CLK_TOP_TO_USB3_REF 52 671.1Sjmcneill#define CLK_TOP_PCIE1_MAC_EN 53 681.1Sjmcneill#define CLK_TOP_PCIE0_MAC_EN 54 691.1Sjmcneill#define CLK_TOP_ETH_500M 55 701.1Sjmcneill#define CLK_TOP_AXI_SEL 56 711.1Sjmcneill#define CLK_TOP_MEM_SEL 57 721.1Sjmcneill#define CLK_TOP_DDRPHYCFG_SEL 58 731.1Sjmcneill#define CLK_TOP_ETH_SEL 59 741.1Sjmcneill#define CLK_TOP_PWM_SEL 60 751.1Sjmcneill#define CLK_TOP_F10M_REF_SEL 61 761.1Sjmcneill#define CLK_TOP_NFI_INFRA_SEL 62 771.1Sjmcneill#define CLK_TOP_FLASH_SEL 63 781.1Sjmcneill#define CLK_TOP_UART_SEL 64 791.1Sjmcneill#define CLK_TOP_SPI0_SEL 65 801.1Sjmcneill#define CLK_TOP_SPI1_SEL 66 811.1Sjmcneill#define CLK_TOP_MSDC50_0_SEL 67 821.1Sjmcneill#define CLK_TOP_MSDC30_0_SEL 68 831.1Sjmcneill#define CLK_TOP_MSDC30_1_SEL 69 841.1Sjmcneill#define CLK_TOP_A1SYS_HP_SEL 70 851.1Sjmcneill#define CLK_TOP_A2SYS_HP_SEL 71 861.1Sjmcneill#define CLK_TOP_INTDIR_SEL 72 871.1Sjmcneill#define CLK_TOP_AUD_INTBUS_SEL 73 881.1Sjmcneill#define CLK_TOP_PMICSPI_SEL 74 891.1Sjmcneill#define CLK_TOP_SCP_SEL 75 901.1Sjmcneill#define CLK_TOP_ATB_SEL 76 911.1Sjmcneill#define CLK_TOP_HIF_SEL 77 921.1Sjmcneill#define CLK_TOP_AUDIO_SEL 78 931.1Sjmcneill#define CLK_TOP_U2_SEL 79 941.1Sjmcneill#define CLK_TOP_AUD1_SEL 80 951.1Sjmcneill#define CLK_TOP_AUD2_SEL 81 961.1Sjmcneill#define CLK_TOP_IRRX_SEL 82 971.1Sjmcneill#define CLK_TOP_IRTX_SEL 83 981.1Sjmcneill#define CLK_TOP_ASM_L_SEL 84 991.1Sjmcneill#define CLK_TOP_ASM_M_SEL 85 1001.1Sjmcneill#define CLK_TOP_ASM_H_SEL 86 1011.1Sjmcneill#define CLK_TOP_APLL1_SEL 87 1021.1Sjmcneill#define CLK_TOP_APLL2_SEL 88 1031.1Sjmcneill#define CLK_TOP_I2S0_MCK_SEL 89 1041.1Sjmcneill#define CLK_TOP_I2S1_MCK_SEL 90 1051.1Sjmcneill#define CLK_TOP_I2S2_MCK_SEL 91 1061.1Sjmcneill#define CLK_TOP_I2S3_MCK_SEL 92 1071.1Sjmcneill#define CLK_TOP_APLL1_DIV 93 1081.1Sjmcneill#define CLK_TOP_APLL2_DIV 94 1091.1Sjmcneill#define CLK_TOP_I2S0_MCK_DIV 95 1101.1Sjmcneill#define CLK_TOP_I2S1_MCK_DIV 96 1111.1Sjmcneill#define CLK_TOP_I2S2_MCK_DIV 97 1121.1Sjmcneill#define CLK_TOP_I2S3_MCK_DIV 98 1131.1Sjmcneill#define CLK_TOP_A1SYS_HP_DIV 99 1141.1Sjmcneill#define CLK_TOP_A2SYS_HP_DIV 100 1151.1Sjmcneill#define CLK_TOP_APLL1_DIV_PD 101 1161.1Sjmcneill#define CLK_TOP_APLL2_DIV_PD 102 1171.1Sjmcneill#define CLK_TOP_I2S0_MCK_DIV_PD 103 1181.1Sjmcneill#define CLK_TOP_I2S1_MCK_DIV_PD 104 1191.1Sjmcneill#define CLK_TOP_I2S2_MCK_DIV_PD 105 1201.1Sjmcneill#define CLK_TOP_I2S3_MCK_DIV_PD 106 1211.1Sjmcneill#define CLK_TOP_A1SYS_HP_DIV_PD 107 1221.1Sjmcneill#define CLK_TOP_A2SYS_HP_DIV_PD 108 1231.1Sjmcneill#define CLK_TOP_NR_CLK 109 1241.1Sjmcneill 1251.1Sjmcneill/* INFRACFG */ 1261.1Sjmcneill 1271.1Sjmcneill#define CLK_INFRA_MUX1_SEL 0 1281.1Sjmcneill#define CLK_INFRA_DBGCLK_PD 1 1291.1Sjmcneill#define CLK_INFRA_AUDIO_PD 2 1301.1Sjmcneill#define CLK_INFRA_IRRX_PD 3 1311.1Sjmcneill#define CLK_INFRA_APXGPT_PD 4 1321.1Sjmcneill#define CLK_INFRA_PMIC_PD 5 1331.1Sjmcneill#define CLK_INFRA_TRNG 6 1341.1Sjmcneill#define CLK_INFRA_NR_CLK 7 1351.1Sjmcneill 1361.1Sjmcneill/* PERICFG */ 1371.1Sjmcneill 1381.1Sjmcneill#define CLK_PERIBUS_SEL 0 1391.1Sjmcneill#define CLK_PERI_THERM_PD 1 1401.1Sjmcneill#define CLK_PERI_PWM1_PD 2 1411.1Sjmcneill#define CLK_PERI_PWM2_PD 3 1421.1Sjmcneill#define CLK_PERI_PWM3_PD 4 1431.1Sjmcneill#define CLK_PERI_PWM4_PD 5 1441.1Sjmcneill#define CLK_PERI_PWM5_PD 6 1451.1Sjmcneill#define CLK_PERI_PWM6_PD 7 1461.1Sjmcneill#define CLK_PERI_PWM7_PD 8 1471.1Sjmcneill#define CLK_PERI_PWM_PD 9 1481.1Sjmcneill#define CLK_PERI_AP_DMA_PD 10 1491.1Sjmcneill#define CLK_PERI_MSDC30_0_PD 11 1501.1Sjmcneill#define CLK_PERI_MSDC30_1_PD 12 1511.1Sjmcneill#define CLK_PERI_UART0_PD 13 1521.1Sjmcneill#define CLK_PERI_UART1_PD 14 1531.1Sjmcneill#define CLK_PERI_UART2_PD 15 1541.1Sjmcneill#define CLK_PERI_UART3_PD 16 1551.1Sjmcneill#define CLK_PERI_UART4_PD 17 1561.1Sjmcneill#define CLK_PERI_BTIF_PD 18 1571.1Sjmcneill#define CLK_PERI_I2C0_PD 19 1581.1Sjmcneill#define CLK_PERI_I2C1_PD 20 1591.1Sjmcneill#define CLK_PERI_I2C2_PD 21 1601.1Sjmcneill#define CLK_PERI_SPI1_PD 22 1611.1Sjmcneill#define CLK_PERI_AUXADC_PD 23 1621.1Sjmcneill#define CLK_PERI_SPI0_PD 24 1631.1Sjmcneill#define CLK_PERI_SNFI_PD 25 1641.1Sjmcneill#define CLK_PERI_NFI_PD 26 1651.1Sjmcneill#define CLK_PERI_NFIECC_PD 27 1661.1Sjmcneill#define CLK_PERI_FLASH_PD 28 1671.1Sjmcneill#define CLK_PERI_IRTX_PD 29 1681.1Sjmcneill#define CLK_PERI_NR_CLK 30 1691.1Sjmcneill 1701.1Sjmcneill/* APMIXEDSYS */ 1711.1Sjmcneill 1721.1Sjmcneill#define CLK_APMIXED_ARMPLL 0 1731.1Sjmcneill#define CLK_APMIXED_MAINPLL 1 1741.1Sjmcneill#define CLK_APMIXED_UNIV2PLL 2 1751.1Sjmcneill#define CLK_APMIXED_ETH1PLL 3 1761.1Sjmcneill#define CLK_APMIXED_ETH2PLL 4 1771.1Sjmcneill#define CLK_APMIXED_AUD1PLL 5 1781.1Sjmcneill#define CLK_APMIXED_AUD2PLL 6 1791.1Sjmcneill#define CLK_APMIXED_TRGPLL 7 1801.1Sjmcneill#define CLK_APMIXED_SGMIPLL 8 1811.1Sjmcneill#define CLK_APMIXED_MAIN_CORE_EN 9 1821.1Sjmcneill#define CLK_APMIXED_NR_CLK 10 1831.1Sjmcneill 1841.1Sjmcneill/* AUDIOSYS */ 1851.1Sjmcneill 1861.1Sjmcneill#define CLK_AUDIO_AFE 0 1871.1Sjmcneill#define CLK_AUDIO_HDMI 1 1881.1Sjmcneill#define CLK_AUDIO_SPDF 2 1891.1Sjmcneill#define CLK_AUDIO_APLL 3 1901.1Sjmcneill#define CLK_AUDIO_I2SIN1 4 1911.1Sjmcneill#define CLK_AUDIO_I2SIN2 5 1921.1Sjmcneill#define CLK_AUDIO_I2SIN3 6 1931.1Sjmcneill#define CLK_AUDIO_I2SIN4 7 1941.1Sjmcneill#define CLK_AUDIO_I2SO1 8 1951.1Sjmcneill#define CLK_AUDIO_I2SO2 9 1961.1Sjmcneill#define CLK_AUDIO_I2SO3 10 1971.1Sjmcneill#define CLK_AUDIO_I2SO4 11 1981.1Sjmcneill#define CLK_AUDIO_ASRCI1 12 1991.1Sjmcneill#define CLK_AUDIO_ASRCI2 13 2001.1Sjmcneill#define CLK_AUDIO_ASRCO1 14 2011.1Sjmcneill#define CLK_AUDIO_ASRCO2 15 2021.1Sjmcneill#define CLK_AUDIO_INTDIR 16 2031.1Sjmcneill#define CLK_AUDIO_A1SYS 17 2041.1Sjmcneill#define CLK_AUDIO_A2SYS 18 2051.1Sjmcneill#define CLK_AUDIO_UL1 19 2061.1Sjmcneill#define CLK_AUDIO_UL2 20 2071.1Sjmcneill#define CLK_AUDIO_UL3 21 2081.1Sjmcneill#define CLK_AUDIO_UL4 22 2091.1Sjmcneill#define CLK_AUDIO_UL5 23 2101.1Sjmcneill#define CLK_AUDIO_UL6 24 2111.1Sjmcneill#define CLK_AUDIO_DL1 25 2121.1Sjmcneill#define CLK_AUDIO_DL2 26 2131.1Sjmcneill#define CLK_AUDIO_DL3 27 2141.1Sjmcneill#define CLK_AUDIO_DL4 28 2151.1Sjmcneill#define CLK_AUDIO_DL5 29 2161.1Sjmcneill#define CLK_AUDIO_DL6 30 2171.1Sjmcneill#define CLK_AUDIO_DLMCH 31 2181.1Sjmcneill#define CLK_AUDIO_ARB1 32 2191.1Sjmcneill#define CLK_AUDIO_AWB 33 2201.1Sjmcneill#define CLK_AUDIO_AWB2 34 2211.1Sjmcneill#define CLK_AUDIO_DAI 35 2221.1Sjmcneill#define CLK_AUDIO_MOD 36 2231.1Sjmcneill#define CLK_AUDIO_ASRCI3 37 2241.1Sjmcneill#define CLK_AUDIO_ASRCI4 38 2251.1Sjmcneill#define CLK_AUDIO_ASRCO3 39 2261.1Sjmcneill#define CLK_AUDIO_ASRCO4 40 2271.1Sjmcneill#define CLK_AUDIO_MEM_ASRC1 41 2281.1Sjmcneill#define CLK_AUDIO_MEM_ASRC2 42 2291.1Sjmcneill#define CLK_AUDIO_MEM_ASRC3 43 2301.1Sjmcneill#define CLK_AUDIO_MEM_ASRC4 44 2311.1Sjmcneill#define CLK_AUDIO_MEM_ASRC5 45 2321.1.1.2Sjmcneill#define CLK_AUDIO_AFE_CONN 46 2331.1.1.2Sjmcneill#define CLK_AUDIO_NR_CLK 47 2341.1Sjmcneill 2351.1Sjmcneill/* SSUSBSYS */ 2361.1Sjmcneill 2371.1Sjmcneill#define CLK_SSUSB_U2_PHY_1P_EN 0 2381.1Sjmcneill#define CLK_SSUSB_U2_PHY_EN 1 2391.1Sjmcneill#define CLK_SSUSB_REF_EN 2 2401.1Sjmcneill#define CLK_SSUSB_SYS_EN 3 2411.1Sjmcneill#define CLK_SSUSB_MCU_EN 4 2421.1Sjmcneill#define CLK_SSUSB_DMA_EN 5 2431.1Sjmcneill#define CLK_SSUSB_NR_CLK 6 2441.1Sjmcneill 2451.1Sjmcneill/* PCIESYS */ 2461.1Sjmcneill 2471.1Sjmcneill#define CLK_PCIE_P1_AUX_EN 0 2481.1Sjmcneill#define CLK_PCIE_P1_OBFF_EN 1 2491.1Sjmcneill#define CLK_PCIE_P1_AHB_EN 2 2501.1Sjmcneill#define CLK_PCIE_P1_AXI_EN 3 2511.1Sjmcneill#define CLK_PCIE_P1_MAC_EN 4 2521.1Sjmcneill#define CLK_PCIE_P1_PIPE_EN 5 2531.1Sjmcneill#define CLK_PCIE_P0_AUX_EN 6 2541.1Sjmcneill#define CLK_PCIE_P0_OBFF_EN 7 2551.1Sjmcneill#define CLK_PCIE_P0_AHB_EN 8 2561.1Sjmcneill#define CLK_PCIE_P0_AXI_EN 9 2571.1Sjmcneill#define CLK_PCIE_P0_MAC_EN 10 2581.1Sjmcneill#define CLK_PCIE_P0_PIPE_EN 11 2591.1Sjmcneill#define CLK_SATA_AHB_EN 12 2601.1Sjmcneill#define CLK_SATA_AXI_EN 13 2611.1Sjmcneill#define CLK_SATA_ASIC_EN 14 2621.1Sjmcneill#define CLK_SATA_RBC_EN 15 2631.1Sjmcneill#define CLK_SATA_PM_EN 16 2641.1Sjmcneill#define CLK_PCIE_NR_CLK 17 2651.1Sjmcneill 2661.1Sjmcneill/* ETHSYS */ 2671.1Sjmcneill 2681.1Sjmcneill#define CLK_ETH_HSDMA_EN 0 2691.1Sjmcneill#define CLK_ETH_ESW_EN 1 2701.1Sjmcneill#define CLK_ETH_GP2_EN 2 2711.1Sjmcneill#define CLK_ETH_GP1_EN 3 2721.1Sjmcneill#define CLK_ETH_GP0_EN 4 2731.1Sjmcneill#define CLK_ETH_NR_CLK 5 2741.1Sjmcneill 2751.1Sjmcneill/* SGMIISYS */ 2761.1Sjmcneill 2771.1Sjmcneill#define CLK_SGMII_TX250M_EN 0 2781.1Sjmcneill#define CLK_SGMII_RX250M_EN 1 2791.1Sjmcneill#define CLK_SGMII_CDR_REF 2 2801.1Sjmcneill#define CLK_SGMII_CDR_FB 3 2811.1Sjmcneill#define CLK_SGMII_NR_CLK 4 2821.1Sjmcneill 2831.1Sjmcneill#endif /* _DT_BINDINGS_CLK_MT7622_H */ 2841.1Sjmcneill 285