1/* SPDX-License-Identifier: GPL-2.0 */ 2/* 3 * Copyright (C) 2022 MediaTek Inc. All rights reserved. 4 * 5 * Author: Sam Shih <sam.shih@mediatek.com> 6 */ 7 8#ifndef _DT_BINDINGS_CLK_MT7988_H 9#define _DT_BINDINGS_CLK_MT7988_H 10 11/* INFRACFG */ 12/* mtk_fixed_factor */ 13#define CK_INFRA_CK_F26M 0 14#define CK_INFRA_PWM_O 1 15#define CK_INFRA_PCIE_OCC_P0 2 16#define CK_INFRA_PCIE_OCC_P1 3 17#define CK_INFRA_PCIE_OCC_P2 4 18#define CK_INFRA_PCIE_OCC_P3 5 19#define CK_INFRA_133M_HCK 6 20#define CK_INFRA_133M_PHCK 7 21#define CK_INFRA_66M_PHCK 8 22#define CK_INFRA_FAUD_L_O 9 23#define CK_INFRA_FAUD_AUD_O 10 24#define CK_INFRA_FAUD_EG2_O 11 25#define CK_INFRA_I2C_O 12 26#define CK_INFRA_UART_O0 13 27#define CK_INFRA_UART_O1 14 28#define CK_INFRA_UART_O2 15 29#define CK_INFRA_NFI_O 16 30#define CK_INFRA_SPINFI_O 17 31#define CK_INFRA_SPI0_O 18 32#define CK_INFRA_SPI1_O 19 33#define CK_INFRA_LB_MUX_FRTC 20 34#define CK_INFRA_FRTC 21 35#define CK_INFRA_FMSDC400_O 22 36#define CK_INFRA_FMSDC2_HCK_OCC 23 37#define CK_INFRA_PERI_133M 24 38#define CK_INFRA_USB_O 25 39#define CK_INFRA_USB_O_P1 26 40#define CK_INFRA_USB_FRMCNT_O 27 41#define CK_INFRA_USB_FRMCNT_O_P1 28 42#define CK_INFRA_USB_XHCI_O 29 43#define CK_INFRA_USB_XHCI_O_P1 30 44#define CK_INFRA_USB_PIPE_O 31 45#define CK_INFRA_USB_PIPE_O_P1 32 46#define CK_INFRA_USB_UTMI_O 33 47#define CK_INFRA_USB_UTMI_O_P1 34 48#define CK_INFRA_PCIE_PIPE_OCC_P0 35 49#define CK_INFRA_PCIE_PIPE_OCC_P1 36 50#define CK_INFRA_PCIE_PIPE_OCC_P2 37 51#define CK_INFRA_PCIE_PIPE_OCC_P3 38 52#define CK_INFRA_F26M_O0 39 53#define CK_INFRA_F26M_O1 40 54#define CK_INFRA_133M_MCK 41 55#define CK_INFRA_66M_MCK 42 56#define CK_INFRA_PERI_66M_O 43 57#define CK_INFRA_USB_SYS_O 44 58#define CK_INFRA_USB_SYS_O_P1 45 59 60/* INFRACFG_AO */ 61#define GATE_OFFSET 65 62/* mtk_mux */ 63#define CK_INFRA_MUX_UART0_SEL 46 /* Linux CLK ID (0) */ 64#define CK_INFRA_MUX_UART1_SEL 47 /* Linux CLK ID (1) */ 65#define CK_INFRA_MUX_UART2_SEL 48 /* Linux CLK ID (2) */ 66#define CK_INFRA_MUX_SPI0_SEL 49 /* Linux CLK ID (3) */ 67#define CK_INFRA_MUX_SPI1_SEL 50 /* Linux CLK ID (4) */ 68#define CK_INFRA_MUX_SPI2_SEL 51 /* Linux CLK ID (5) */ 69#define CK_INFRA_PWM_SEL 52 /* Linux CLK ID (6) */ 70#define CK_INFRA_PWM_CK1_SEL 53 /* Linux CLK ID (7) */ 71#define CK_INFRA_PWM_CK2_SEL 54 /* Linux CLK ID (8) */ 72#define CK_INFRA_PWM_CK3_SEL 55 /* Linux CLK ID (9) */ 73#define CK_INFRA_PWM_CK4_SEL 56 /* Linux CLK ID (10) */ 74#define CK_INFRA_PWM_CK5_SEL 57 /* Linux CLK ID (11) */ 75#define CK_INFRA_PWM_CK6_SEL 58 /* Linux CLK ID (12) */ 76#define CK_INFRA_PWM_CK7_SEL 59 /* Linux CLK ID (13) */ 77#define CK_INFRA_PWM_CK8_SEL 60 /* Linux CLK ID (14) */ 78#define CK_INFRA_PCIE_GFMUX_TL_O_P0_SEL 61 /* Linux CLK ID (15) */ 79#define CK_INFRA_PCIE_GFMUX_TL_O_P1_SEL 62 /* Linux CLK ID (16) */ 80#define CK_INFRA_PCIE_GFMUX_TL_O_P2_SEL 63 /* Linux CLK ID (17) */ 81#define CK_INFRA_PCIE_GFMUX_TL_O_P3_SEL 64 /* Linux CLK ID (18) */ 82/* mtk_gate */ 83#define CK_INFRA_66M_GPT_BCK (65 - GATE_OFFSET) /* Linux CLK ID (19) */ 84#define CK_INFRA_66M_PWM_HCK (66 - GATE_OFFSET) /* Linux CLK ID (20) */ 85#define CK_INFRA_66M_PWM_BCK (67 - GATE_OFFSET) /* Linux CLK ID (21) */ 86#define CK_INFRA_66M_PWM_CK1 (68 - GATE_OFFSET) /* Linux CLK ID (22) */ 87#define CK_INFRA_66M_PWM_CK2 (69 - GATE_OFFSET) /* Linux CLK ID (23) */ 88#define CK_INFRA_66M_PWM_CK3 (70 - GATE_OFFSET) /* Linux CLK ID (24) */ 89#define CK_INFRA_66M_PWM_CK4 (71 - GATE_OFFSET) /* Linux CLK ID (25) */ 90#define CK_INFRA_66M_PWM_CK5 (72 - GATE_OFFSET) /* Linux CLK ID (26) */ 91#define CK_INFRA_66M_PWM_CK6 (73 - GATE_OFFSET) /* Linux CLK ID (27) */ 92#define CK_INFRA_66M_PWM_CK7 (74 - GATE_OFFSET) /* Linux CLK ID (28) */ 93#define CK_INFRA_66M_PWM_CK8 (75 - GATE_OFFSET) /* Linux CLK ID (29) */ 94#define CK_INFRA_133M_CQDMA_BCK (76 - GATE_OFFSET) /* Linux CLK ID (30) */ 95#define CK_INFRA_66M_AUD_SLV_BCK (77 - GATE_OFFSET) /* Linux CLK ID (31) */ 96#define CK_INFRA_AUD_26M (78 - GATE_OFFSET) /* Linux CLK ID (32) */ 97#define CK_INFRA_AUD_L (79 - GATE_OFFSET) /* Linux CLK ID (33) */ 98#define CK_INFRA_AUD_AUD (80 - GATE_OFFSET) /* Linux CLK ID (34) */ 99#define CK_INFRA_AUD_EG2 (81 - GATE_OFFSET) /* Linux CLK ID (35) */ 100#define CK_INFRA_DRAMC_F26M (82 - GATE_OFFSET) /* Linux CLK ID (36) */ 101#define CK_INFRA_133M_DBG_ACKM (83 - GATE_OFFSET) /* Linux CLK ID (37) */ 102#define CK_INFRA_66M_AP_DMA_BCK (84 - GATE_OFFSET) /* Linux CLK ID (38) */ 103#define CK_INFRA_66M_SEJ_BCK (85 - GATE_OFFSET) /* Linux CLK ID (39) */ 104#define CK_INFRA_PRE_CK_SEJ_F13M (86 - GATE_OFFSET) /* Linux CLK ID (40) */ 105#define CK_INFRA_66M_TRNG (87 - GATE_OFFSET) /* Linux CLK ID (41) */ 106#define CK_INFRA_26M_THERM_SYSTEM (88 - GATE_OFFSET) /* Linux CLK ID (42) */ 107#define CK_INFRA_I2C_BCK (89 - GATE_OFFSET) /* Linux CLK ID (43) */ 108#define CK_INFRA_66M_UART0_PCK (90 - GATE_OFFSET) /* Linux CLK ID (44) */ 109#define CK_INFRA_66M_UART1_PCK (91 - GATE_OFFSET) /* Linux CLK ID (45) */ 110#define CK_INFRA_66M_UART2_PCK (92 - GATE_OFFSET) /* Linux CLK ID (46) */ 111#define CK_INFRA_52M_UART0_CK (93 - GATE_OFFSET) /* Linux CLK ID (47) */ 112#define CK_INFRA_52M_UART1_CK (94 - GATE_OFFSET) /* Linux CLK ID (48) */ 113#define CK_INFRA_52M_UART2_CK (95 - GATE_OFFSET) /* Linux CLK ID (49) */ 114#define CK_INFRA_NFI (96 - GATE_OFFSET) /* Linux CLK ID (50) */ 115#define CK_INFRA_SPINFI (97 - GATE_OFFSET) /* Linux CLK ID (51) */ 116#define CK_INFRA_66M_NFI_HCK (98 - GATE_OFFSET) /* Linux CLK ID (52) */ 117#define CK_INFRA_104M_SPI0 (99 - GATE_OFFSET) /* Linux CLK ID (53) */ 118#define CK_INFRA_104M_SPI1 (100 - GATE_OFFSET) /* Linux CLK ID (54) */ 119#define CK_INFRA_104M_SPI2_BCK (101 - GATE_OFFSET) /* Linux CLK ID (55) */ 120#define CK_INFRA_66M_SPI0_HCK (102 - GATE_OFFSET) /* Linux CLK ID (56) */ 121#define CK_INFRA_66M_SPI1_HCK (103 - GATE_OFFSET) /* Linux CLK ID (57) */ 122#define CK_INFRA_66M_SPI2_HCK (104 - GATE_OFFSET) /* Linux CLK ID (58) */ 123#define CK_INFRA_66M_FLASHIF_AXI (105 - GATE_OFFSET) /* Linux CLK ID (59) */ 124#define CK_INFRA_RTC (106 - GATE_OFFSET) /* Linux CLK ID (60) */ 125#define CK_INFRA_26M_ADC_BCK (107 - GATE_OFFSET) /* Linux CLK ID (61) */ 126#define CK_INFRA_RC_ADC (108 - GATE_OFFSET) /* Linux CLK ID (62) */ 127#define CK_INFRA_MSDC400 (109 - GATE_OFFSET) /* Linux CLK ID (63) */ 128#define CK_INFRA_MSDC2_HCK (110 - GATE_OFFSET) /* Linux CLK ID (64) */ 129#define CK_INFRA_133M_MSDC_0_HCK (111 - GATE_OFFSET) /* Linux CLK ID (65) */ 130#define CK_INFRA_66M_MSDC_0_HCK (112 - GATE_OFFSET) /* Linux CLK ID (66) */ 131#define CK_INFRA_133M_CPUM_BCK (113 - GATE_OFFSET) /* Linux CLK ID (67) */ 132#define CK_INFRA_BIST2FPC (114 - GATE_OFFSET) /* Linux CLK ID (68) */ 133#define CK_INFRA_I2C_X16W_MCK_CK_P1 (115 - GATE_OFFSET) /* Linux CLK ID (69) */ 134#define CK_INFRA_I2C_X16W_PCK_CK_P1 (116 - GATE_OFFSET) /* Linux CLK ID (70) */ 135#define CK_INFRA_133M_USB_HCK (117 - GATE_OFFSET) /* Linux CLK ID (71) */ 136#define CK_INFRA_133M_USB_HCK_CK_P1 (118 - GATE_OFFSET) /* Linux CLK ID (72) */ 137#define CK_INFRA_66M_USB_HCK (119 - GATE_OFFSET) /* Linux CLK ID (73) */ 138#define CK_INFRA_66M_USB_HCK_CK_P1 (120 - GATE_OFFSET) /* Linux CLK ID (74) */ 139#define CK_INFRA_USB_SYS (121 - GATE_OFFSET) /* Linux CLK ID (75) */ 140#define CK_INFRA_USB_SYS_CK_P1 (122 - GATE_OFFSET) /* Linux CLK ID (76) */ 141#define CK_INFRA_USB_REF (123 - GATE_OFFSET) /* Linux CLK ID (77) */ 142#define CK_INFRA_USB_CK_P1 (124 - GATE_OFFSET) /* Linux CLK ID (78) */ 143#define CK_INFRA_USB_FRMCNT (125 - GATE_OFFSET) /* Linux CLK ID (79) */ 144#define CK_INFRA_USB_FRMCNT_CK_P1 (126 - GATE_OFFSET) /* Linux CLK ID (80) */ 145#define CK_INFRA_USB_PIPE (127 - GATE_OFFSET) /* Linux CLK ID (81) */ 146#define CK_INFRA_USB_PIPE_CK_P1 (128 - GATE_OFFSET) /* Linux CLK ID (82) */ 147#define CK_INFRA_USB_UTMI (129 - GATE_OFFSET) /* Linux CLK ID (83) */ 148#define CK_INFRA_USB_UTMI_CK_P1 (130 - GATE_OFFSET) /* Linux CLK ID (84) */ 149#define CK_INFRA_USB_XHCI (131 - GATE_OFFSET) /* Linux CLK ID (85) */ 150#define CK_INFRA_USB_XHCI_CK_P1 (132 - GATE_OFFSET) /* Linux CLK ID (86) */ 151#define CK_INFRA_PCIE_GFMUX_TL_P0 (133 - GATE_OFFSET) /* Linux CLK ID (87) */ 152#define CK_INFRA_PCIE_GFMUX_TL_P1 (134 - GATE_OFFSET) /* Linux CLK ID (88) */ 153#define CK_INFRA_PCIE_GFMUX_TL_P2 (135 - GATE_OFFSET) /* Linux CLK ID (89) */ 154#define CK_INFRA_PCIE_GFMUX_TL_P3 (136 - GATE_OFFSET) /* Linux CLK ID (90) */ 155#define CK_INFRA_PCIE_PIPE_P0 (137 - GATE_OFFSET) /* Linux CLK ID (91) */ 156#define CK_INFRA_PCIE_PIPE_P1 (138 - GATE_OFFSET) /* Linux CLK ID (92) */ 157#define CK_INFRA_PCIE_PIPE_P2 (139 - GATE_OFFSET) /* Linux CLK ID (93) */ 158#define CK_INFRA_PCIE_PIPE_P3 (140 - GATE_OFFSET) /* Linux CLK ID (94) */ 159#define CK_INFRA_133M_PCIE_CK_P0 (141 - GATE_OFFSET) /* Linux CLK ID (95) */ 160#define CK_INFRA_133M_PCIE_CK_P1 (142 - GATE_OFFSET) /* Linux CLK ID (96) */ 161#define CK_INFRA_133M_PCIE_CK_P2 (143 - GATE_OFFSET) /* Linux CLK ID (97) */ 162#define CK_INFRA_133M_PCIE_CK_P3 (144 - GATE_OFFSET) /* Linux CLK ID (98) */ 163#define CK_INFRA_PCIE_PERI_26M_CK_P0 (145 - GATE_OFFSET) /* Linux CLK ID (99) */ 164#define CK_INFRA_PCIE_PERI_26M_CK_P1 \ 165 (146 - GATE_OFFSET) /* Linux CLK ID (100) */ 166#define CK_INFRA_PCIE_PERI_26M_CK_P2 \ 167 (147 - GATE_OFFSET) /* Linux CLK ID (101) */ 168#define CK_INFRA_PCIE_PERI_26M_CK_P3 \ 169 (148 - GATE_OFFSET) /* Linux CLK ID (102) */ 170 171/* TOPCKGEN */ 172/* mtk_fixed_factor */ 173#define CK_TOP_CB_CKSQ_40M 0 /* Linux CLK ID (74) */ 174#define CK_TOP_CB_M_416M 1 /* Linux CLK ID (75) */ 175#define CK_TOP_CB_M_D2 2 /* Linux CLK ID (76) */ 176#define CK_TOP_M_D3_D2 3 /* Linux CLK ID (77) */ 177#define CK_TOP_CB_M_D4 4 /* Linux CLK ID (78) */ 178#define CK_TOP_CB_M_D8 5 /* Linux CLK ID (79) */ 179#define CK_TOP_M_D8_D2 6 /* Linux CLK ID (80) */ 180#define CK_TOP_CB_MM_720M 7 /* Linux CLK ID (81) */ 181#define CK_TOP_CB_MM_D2 8 /* Linux CLK ID (82) */ 182#define CK_TOP_CB_MM_D3_D5 9 /* Linux CLK ID (83) */ 183#define CK_TOP_CB_MM_D4 10 /* Linux CLK ID (84) */ 184#define CK_TOP_MM_D6_D2 11 /* Linux CLK ID (85) */ 185#define CK_TOP_CB_MM_D8 12 /* Linux CLK ID (86) */ 186#define CK_TOP_CB_APLL2_196M 13 /* Linux CLK ID (87) */ 187#define CK_TOP_CB_APLL2_D4 14 /* Linux CLK ID (88) */ 188#define CK_TOP_CB_NET1_D4 15 /* Linux CLK ID (89) */ 189#define CK_TOP_CB_NET1_D5 16 /* Linux CLK ID (90) */ 190#define CK_TOP_NET1_D5_D2 17 /* Linux CLK ID (91) */ 191#define CK_TOP_NET1_D5_D4 18 /* Linux CLK ID (92) */ 192#define CK_TOP_CB_NET1_D8 19 /* Linux CLK ID (93) */ 193#define CK_TOP_NET1_D8_D2 20 /* Linux CLK ID (94) */ 194#define CK_TOP_NET1_D8_D4 21 /* Linux CLK ID (95) */ 195#define CK_TOP_NET1_D8_D8 22 /* Linux CLK ID (96) */ 196#define CK_TOP_NET1_D8_D16 23 /* Linux CLK ID (97) */ 197#define CK_TOP_CB_NET2_800M 24 /* Linux CLK ID (98) */ 198#define CK_TOP_CB_NET2_D2 25 /* Linux CLK ID (99) */ 199#define CK_TOP_CB_NET2_D4 26 /* Linux CLK ID (100) */ 200#define CK_TOP_NET2_D4_D4 27 /* Linux CLK ID (101) */ 201#define CK_TOP_NET2_D4_D8 28 /* Linux CLK ID (102) */ 202#define CK_TOP_CB_NET2_D6 29 /* Linux CLK ID (103) */ 203#define CK_TOP_CB_NET2_D8 30 /* Linux CLK ID (104) */ 204#define CK_TOP_CB_WEDMCU_208M 31 /* Linux CLK ID (105) */ 205#define CK_TOP_CB_SGM_325M 32 /* Linux CLK ID (106) */ 206#define CK_TOP_CB_NETSYS_850M 33 /* Linux CLK ID (107) */ 207#define CK_TOP_CB_MSDC_400M 34 /* Linux CLK ID (108) */ 208#define CK_TOP_CKSQ_40M_D2 35 /* Linux CLK ID (109) */ 209#define CK_TOP_CB_RTC_32K 36 /* Linux CLK ID (110) */ 210#define CK_TOP_CB_RTC_32P7K 37 /* Linux CLK ID (111) */ 211#define CK_TOP_INFRA_F32K 38 /* Linux CLK ID (112) */ 212#define CK_TOP_CKSQ_SRC 39 /* Linux CLK ID (113) */ 213#define CK_TOP_NETSYS_2X 40 /* Linux CLK ID (114) */ 214#define CK_TOP_NETSYS_GSW 41 /* Linux CLK ID (115) */ 215#define CK_TOP_NETSYS_WED_MCU 42 /* Linux CLK ID (116) */ 216#define CK_TOP_EIP197 43 /* Linux CLK ID (117) */ 217#define CK_TOP_EMMC_250M 44 /* Linux CLK ID (118) */ 218#define CK_TOP_EMMC_400M 45 /* Linux CLK ID (119) */ 219#define CK_TOP_SPI 46 /* Linux CLK ID (120) */ 220#define CK_TOP_SPIM_MST 47 /* Linux CLK ID (121) */ 221#define CK_TOP_NFI1X 48 /* Linux CLK ID (122) */ 222#define CK_TOP_SPINFI_BCK 49 /* Linux CLK ID (123) */ 223#define CK_TOP_I2C_BCK 50 /* Linux CLK ID (124) */ 224#define CK_TOP_USB_SYS 51 /* Linux CLK ID (125) */ 225#define CK_TOP_USB_SYS_P1 52 /* Linux CLK ID (126) */ 226#define CK_TOP_USB_XHCI 53 /* Linux CLK ID (127) */ 227#define CK_TOP_USB_XHCI_P1 54 /* Linux CLK ID (128) */ 228#define CK_TOP_USB_FRMCNT 55 /* Linux CLK ID (129) */ 229#define CK_TOP_USB_FRMCNT_P1 56 /* Linux CLK ID (130) */ 230#define CK_TOP_AUD 57 /* Linux CLK ID (131) */ 231#define CK_TOP_A1SYS 58 /* Linux CLK ID (132) */ 232#define CK_TOP_AUD_L 59 /* Linux CLK ID (133) */ 233#define CK_TOP_A_TUNER 60 /* Linux CLK ID (134) */ 234#define CK_TOP_SYSAXI 61 /* Linux CLK ID (135) */ 235#define CK_TOP_INFRA_F26M 62 /* Linux CLK ID (136) */ 236#define CK_TOP_USB_REF 63 /* Linux CLK ID (137) */ 237#define CK_TOP_USB_CK_P1 64 /* Linux CLK ID (138) */ 238/* mtk_mux */ 239#define CK_TOP_NETSYS_SEL 65 /* Linux CLK ID (0) */ 240#define CK_TOP_NETSYS_500M_SEL 66 /* Linux CLK ID (1) */ 241#define CK_TOP_NETSYS_2X_SEL 67 /* Linux CLK ID (2) */ 242#define CK_TOP_NETSYS_GSW_SEL 68 /* Linux CLK ID (3) */ 243#define CK_TOP_ETH_GMII_SEL 69 /* Linux CLK ID (4) */ 244#define CK_TOP_NETSYS_MCU_SEL 70 /* Linux CLK ID (5) */ 245#define CK_TOP_NETSYS_PAO_2X_SEL 71 /* Linux CLK ID (6) */ 246#define CK_TOP_EIP197_SEL 72 /* Linux CLK ID (7) */ 247#define CK_TOP_AXI_INFRA_SEL 73 /* Linux CLK ID (8) */ 248#define CK_TOP_UART_SEL 74 /* Linux CLK ID (9) */ 249#define CK_TOP_EMMC_250M_SEL 75 /* Linux CLK ID (10) */ 250#define CK_TOP_EMMC_400M_SEL 76 /* Linux CLK ID (11) */ 251#define CK_TOP_SPI_SEL 77 /* Linux CLK ID (12) */ 252#define CK_TOP_SPIM_MST_SEL 78 /* Linux CLK ID (13) */ 253#define CK_TOP_NFI1X_SEL 79 /* Linux CLK ID (14) */ 254#define CK_TOP_SPINFI_SEL 80 /* Linux CLK ID (15) */ 255#define CK_TOP_PWM_SEL 81 /* Linux CLK ID (16) */ 256#define CK_TOP_I2C_SEL 82 /* Linux CLK ID (17) */ 257#define CK_TOP_PCIE_MBIST_250M_SEL 83 /* Linux CLK ID (18) */ 258#define CK_TOP_PEXTP_TL_SEL 84 /* Linux CLK ID (19) */ 259#define CK_TOP_PEXTP_TL_P1_SEL 85 /* Linux CLK ID (20) */ 260#define CK_TOP_PEXTP_TL_P2_SEL 86 /* Linux CLK ID (21) */ 261#define CK_TOP_PEXTP_TL_P3_SEL 87 /* Linux CLK ID (22) */ 262#define CK_TOP_USB_SYS_SEL 88 /* Linux CLK ID (23) */ 263#define CK_TOP_USB_SYS_P1_SEL 89 /* Linux CLK ID (24) */ 264#define CK_TOP_USB_XHCI_SEL 90 /* Linux CLK ID (25) */ 265#define CK_TOP_USB_XHCI_P1_SEL 91 /* Linux CLK ID (26) */ 266#define CK_TOP_USB_FRMCNT_SEL 92 /* Linux CLK ID (27) */ 267#define CK_TOP_USB_FRMCNT_P1_SEL 93 /* Linux CLK ID (28) */ 268#define CK_TOP_AUD_SEL 94 /* Linux CLK ID (29) */ 269#define CK_TOP_A1SYS_SEL 95 /* Linux CLK ID (30) */ 270#define CK_TOP_AUD_L_SEL 96 /* Linux CLK ID (31) */ 271#define CK_TOP_A_TUNER_SEL 97 /* Linux CLK ID (32) */ 272#define CK_TOP_SSPXTP_SEL 98 /* Linux CLK ID (33) */ 273#define CK_TOP_USB_PHY_SEL 99 /* Linux CLK ID (34) */ 274#define CK_TOP_USXGMII_SBUS_0_SEL 100 /* Linux CLK ID (35) */ 275#define CK_TOP_USXGMII_SBUS_1_SEL 101 /* Linux CLK ID (36) */ 276#define CK_TOP_SGM_0_SEL 102 /* Linux CLK ID (37) */ 277#define CK_TOP_SGM_SBUS_0_SEL 103 /* Linux CLK ID (38) */ 278#define CK_TOP_SGM_1_SEL 104 /* Linux CLK ID (39) */ 279#define CK_TOP_SGM_SBUS_1_SEL 105 /* Linux CLK ID (40) */ 280#define CK_TOP_XFI_PHY_0_XTAL_SEL 106 /* Linux CLK ID (41) */ 281#define CK_TOP_XFI_PHY_1_XTAL_SEL 107 /* Linux CLK ID (42) */ 282#define CK_TOP_SYSAXI_SEL 108 /* Linux CLK ID (43) */ 283#define CK_TOP_SYSAPB_SEL 109 /* Linux CLK ID (44) */ 284#define CK_TOP_ETH_REFCK_50M_SEL 110 /* Linux CLK ID (45) */ 285#define CK_TOP_ETH_SYS_200M_SEL 111 /* Linux CLK ID (46) */ 286#define CK_TOP_ETH_SYS_SEL 112 /* Linux CLK ID (47) */ 287#define CK_TOP_ETH_XGMII_SEL 113 /* Linux CLK ID (48) */ 288#define CK_TOP_BUS_TOPS_SEL 114 /* Linux CLK ID (49) */ 289#define CK_TOP_NPU_TOPS_SEL 115 /* Linux CLK ID (50) */ 290#define CK_TOP_DRAMC_SEL 116 /* Linux CLK ID (51) */ 291#define CK_TOP_DRAMC_MD32_SEL 117 /* Linux CLK ID (52) */ 292#define CK_TOP_INFRA_F26M_SEL 118 /* Linux CLK ID (53) */ 293#define CK_TOP_PEXTP_P0_SEL 119 /* Linux CLK ID (54) */ 294#define CK_TOP_PEXTP_P1_SEL 120 /* Linux CLK ID (55) */ 295#define CK_TOP_PEXTP_P2_SEL 121 /* Linux CLK ID (56) */ 296#define CK_TOP_PEXTP_P3_SEL 122 /* Linux CLK ID (57) */ 297#define CK_TOP_DA_XTP_GLB_P0_SEL 123 /* Linux CLK ID (58) */ 298#define CK_TOP_DA_XTP_GLB_P1_SEL 124 /* Linux CLK ID (59) */ 299#define CK_TOP_DA_XTP_GLB_P2_SEL 125 /* Linux CLK ID (60) */ 300#define CK_TOP_DA_XTP_GLB_P3_SEL 126 /* Linux CLK ID (61) */ 301#define CK_TOP_CKM_SEL 127 /* Linux CLK ID (62) */ 302#define CK_TOP_DA_SELM_XTAL_SEL 128 /* Linux CLK ID (63) */ 303#define CK_TOP_PEXTP_SEL 129 /* Linux CLK ID (64) */ 304#define CK_TOP_TOPS_P2_26M_SEL 130 /* Linux CLK ID (65) */ 305#define CK_TOP_MCUSYS_BACKUP_625M_SEL 131 /* Linux CLK ID (66) */ 306#define CK_TOP_NETSYS_SYNC_250M_SEL 132 /* Linux CLK ID (67) */ 307#define CK_TOP_MACSEC_SEL 133 /* Linux CLK ID (68) */ 308#define CK_TOP_NETSYS_TOPS_400M_SEL 134 /* Linux CLK ID (69) */ 309#define CK_TOP_NETSYS_PPEFB_250M_SEL 135 /* Linux CLK ID (70) */ 310#define CK_TOP_NETSYS_WARP_SEL 136 /* Linux CLK ID (71) */ 311#define CK_TOP_ETH_MII_SEL 137 /* Linux CLK ID (72) */ 312#define CK_TOP_CK_NPU_SEL_CM_TOPS_SEL 138 /* Linux CLK ID (73) */ 313 314/* APMIXEDSYS */ 315/* mtk_pll_data */ 316#define CK_APMIXED_NETSYSPLL 0 317#define CK_APMIXED_MPLL 1 318#define CK_APMIXED_MMPLL 2 319#define CK_APMIXED_APLL2 3 320#define CK_APMIXED_NET1PLL 4 321#define CK_APMIXED_NET2PLL 5 322#define CK_APMIXED_WEDMCUPLL 6 323#define CK_APMIXED_SGMPLL 7 324#define CK_APMIXED_ARM_B 8 325#define CK_APMIXED_CCIPLL2_B 9 326#define CK_APMIXED_USXGMIIPLL 10 327#define CK_APMIXED_MSDCPLL 11 328 329/* ETHSYS ETH DMA */ 330/* mtk_gate */ 331#define CK_ETHDMA_FE_EN 0 332 333/* SGMIISYS_0 */ 334/* mtk_gate */ 335#define CK_SGM0_TX_EN 0 336#define CK_SGM0_RX_EN 1 337 338/* SGMIISYS_1 */ 339/* mtk_gate */ 340#define CK_SGM1_TX_EN 0 341#define CK_SGM1_RX_EN 1 342 343/* ETHWARP */ 344/* mtk_gate */ 345#define CK_ETHWARP_WOCPU2_EN 0 346#define CK_ETHWARP_WOCPU1_EN 1 347#define CK_ETHWARP_WOCPU0_EN 2 348 349#endif /* _DT_BINDINGS_CLK_MT7988_H */ 350