1*0e8011faSEmmanuel Vadot /* SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause */ 2*0e8011faSEmmanuel Vadot /* 3*0e8011faSEmmanuel Vadot * Copyright (C) 2023 Sophgo Technology Inc. All rights reserved. 4*0e8011faSEmmanuel Vadot */ 5*0e8011faSEmmanuel Vadot 6*0e8011faSEmmanuel Vadot #ifndef __DT_BINDINGS_SOPHGO_SG2042_CLKGEN_H__ 7*0e8011faSEmmanuel Vadot #define __DT_BINDINGS_SOPHGO_SG2042_CLKGEN_H__ 8*0e8011faSEmmanuel Vadot 9*0e8011faSEmmanuel Vadot #define DIV_CLK_MPLL_RP_CPU_NORMAL_0 0 10*0e8011faSEmmanuel Vadot #define DIV_CLK_MPLL_AXI_DDR_0 1 11*0e8011faSEmmanuel Vadot #define DIV_CLK_FPLL_DDR01_1 2 12*0e8011faSEmmanuel Vadot #define DIV_CLK_FPLL_DDR23_1 3 13*0e8011faSEmmanuel Vadot #define DIV_CLK_FPLL_RP_CPU_NORMAL_1 4 14*0e8011faSEmmanuel Vadot #define DIV_CLK_FPLL_50M_A53 5 15*0e8011faSEmmanuel Vadot #define DIV_CLK_FPLL_TOP_RP_CMN_DIV2 6 16*0e8011faSEmmanuel Vadot #define DIV_CLK_FPLL_UART_500M 7 17*0e8011faSEmmanuel Vadot #define DIV_CLK_FPLL_AHB_LPC 8 18*0e8011faSEmmanuel Vadot #define DIV_CLK_FPLL_EFUSE 9 19*0e8011faSEmmanuel Vadot #define DIV_CLK_FPLL_TX_ETH0 10 20*0e8011faSEmmanuel Vadot #define DIV_CLK_FPLL_PTP_REF_I_ETH0 11 21*0e8011faSEmmanuel Vadot #define DIV_CLK_FPLL_REF_ETH0 12 22*0e8011faSEmmanuel Vadot #define DIV_CLK_FPLL_EMMC 13 23*0e8011faSEmmanuel Vadot #define DIV_CLK_FPLL_SD 14 24*0e8011faSEmmanuel Vadot #define DIV_CLK_FPLL_TOP_AXI0 15 25*0e8011faSEmmanuel Vadot #define DIV_CLK_FPLL_TOP_AXI_HSPERI 16 26*0e8011faSEmmanuel Vadot #define DIV_CLK_FPLL_AXI_DDR_1 17 27*0e8011faSEmmanuel Vadot #define DIV_CLK_FPLL_DIV_TIMER1 18 28*0e8011faSEmmanuel Vadot #define DIV_CLK_FPLL_DIV_TIMER2 19 29*0e8011faSEmmanuel Vadot #define DIV_CLK_FPLL_DIV_TIMER3 20 30*0e8011faSEmmanuel Vadot #define DIV_CLK_FPLL_DIV_TIMER4 21 31*0e8011faSEmmanuel Vadot #define DIV_CLK_FPLL_DIV_TIMER5 22 32*0e8011faSEmmanuel Vadot #define DIV_CLK_FPLL_DIV_TIMER6 23 33*0e8011faSEmmanuel Vadot #define DIV_CLK_FPLL_DIV_TIMER7 24 34*0e8011faSEmmanuel Vadot #define DIV_CLK_FPLL_DIV_TIMER8 25 35*0e8011faSEmmanuel Vadot #define DIV_CLK_FPLL_100K_EMMC 26 36*0e8011faSEmmanuel Vadot #define DIV_CLK_FPLL_100K_SD 27 37*0e8011faSEmmanuel Vadot #define DIV_CLK_FPLL_GPIO_DB 28 38*0e8011faSEmmanuel Vadot #define DIV_CLK_DPLL0_DDR01_0 29 39*0e8011faSEmmanuel Vadot #define DIV_CLK_DPLL1_DDR23_0 30 40*0e8011faSEmmanuel Vadot 41*0e8011faSEmmanuel Vadot #define GATE_CLK_RP_CPU_NORMAL_DIV0 31 42*0e8011faSEmmanuel Vadot #define GATE_CLK_AXI_DDR_DIV0 32 43*0e8011faSEmmanuel Vadot 44*0e8011faSEmmanuel Vadot #define GATE_CLK_RP_CPU_NORMAL_DIV1 33 45*0e8011faSEmmanuel Vadot #define GATE_CLK_A53_50M 34 46*0e8011faSEmmanuel Vadot #define GATE_CLK_TOP_RP_CMN_DIV2 35 47*0e8011faSEmmanuel Vadot #define GATE_CLK_HSDMA 36 48*0e8011faSEmmanuel Vadot #define GATE_CLK_EMMC_100M 37 49*0e8011faSEmmanuel Vadot #define GATE_CLK_SD_100M 38 50*0e8011faSEmmanuel Vadot #define GATE_CLK_TX_ETH0 39 51*0e8011faSEmmanuel Vadot #define GATE_CLK_PTP_REF_I_ETH0 40 52*0e8011faSEmmanuel Vadot #define GATE_CLK_REF_ETH0 41 53*0e8011faSEmmanuel Vadot #define GATE_CLK_UART_500M 42 54*0e8011faSEmmanuel Vadot #define GATE_CLK_EFUSE 43 55*0e8011faSEmmanuel Vadot 56*0e8011faSEmmanuel Vadot #define GATE_CLK_AHB_LPC 44 57*0e8011faSEmmanuel Vadot #define GATE_CLK_AHB_ROM 45 58*0e8011faSEmmanuel Vadot #define GATE_CLK_AHB_SF 46 59*0e8011faSEmmanuel Vadot 60*0e8011faSEmmanuel Vadot #define GATE_CLK_APB_UART 47 61*0e8011faSEmmanuel Vadot #define GATE_CLK_APB_TIMER 48 62*0e8011faSEmmanuel Vadot #define GATE_CLK_APB_EFUSE 49 63*0e8011faSEmmanuel Vadot #define GATE_CLK_APB_GPIO 50 64*0e8011faSEmmanuel Vadot #define GATE_CLK_APB_GPIO_INTR 51 65*0e8011faSEmmanuel Vadot #define GATE_CLK_APB_SPI 52 66*0e8011faSEmmanuel Vadot #define GATE_CLK_APB_I2C 53 67*0e8011faSEmmanuel Vadot #define GATE_CLK_APB_WDT 54 68*0e8011faSEmmanuel Vadot #define GATE_CLK_APB_PWM 55 69*0e8011faSEmmanuel Vadot #define GATE_CLK_APB_RTC 56 70*0e8011faSEmmanuel Vadot 71*0e8011faSEmmanuel Vadot #define GATE_CLK_AXI_PCIE0 57 72*0e8011faSEmmanuel Vadot #define GATE_CLK_AXI_PCIE1 58 73*0e8011faSEmmanuel Vadot #define GATE_CLK_SYSDMA_AXI 59 74*0e8011faSEmmanuel Vadot #define GATE_CLK_AXI_DBG_I2C 60 75*0e8011faSEmmanuel Vadot #define GATE_CLK_AXI_SRAM 61 76*0e8011faSEmmanuel Vadot #define GATE_CLK_AXI_ETH0 62 77*0e8011faSEmmanuel Vadot #define GATE_CLK_AXI_EMMC 63 78*0e8011faSEmmanuel Vadot #define GATE_CLK_AXI_SD 64 79*0e8011faSEmmanuel Vadot #define GATE_CLK_TOP_AXI0 65 80*0e8011faSEmmanuel Vadot #define GATE_CLK_TOP_AXI_HSPERI 66 81*0e8011faSEmmanuel Vadot 82*0e8011faSEmmanuel Vadot #define GATE_CLK_TIMER1 67 83*0e8011faSEmmanuel Vadot #define GATE_CLK_TIMER2 68 84*0e8011faSEmmanuel Vadot #define GATE_CLK_TIMER3 69 85*0e8011faSEmmanuel Vadot #define GATE_CLK_TIMER4 70 86*0e8011faSEmmanuel Vadot #define GATE_CLK_TIMER5 71 87*0e8011faSEmmanuel Vadot #define GATE_CLK_TIMER6 72 88*0e8011faSEmmanuel Vadot #define GATE_CLK_TIMER7 73 89*0e8011faSEmmanuel Vadot #define GATE_CLK_TIMER8 74 90*0e8011faSEmmanuel Vadot #define GATE_CLK_100K_EMMC 75 91*0e8011faSEmmanuel Vadot #define GATE_CLK_100K_SD 76 92*0e8011faSEmmanuel Vadot #define GATE_CLK_GPIO_DB 77 93*0e8011faSEmmanuel Vadot 94*0e8011faSEmmanuel Vadot #define GATE_CLK_AXI_DDR_DIV1 78 95*0e8011faSEmmanuel Vadot #define GATE_CLK_DDR01_DIV1 79 96*0e8011faSEmmanuel Vadot #define GATE_CLK_DDR23_DIV1 80 97*0e8011faSEmmanuel Vadot 98*0e8011faSEmmanuel Vadot #define GATE_CLK_DDR01_DIV0 81 99*0e8011faSEmmanuel Vadot #define GATE_CLK_DDR23_DIV0 82 100*0e8011faSEmmanuel Vadot 101*0e8011faSEmmanuel Vadot #define GATE_CLK_DDR01 83 102*0e8011faSEmmanuel Vadot #define GATE_CLK_DDR23 84 103*0e8011faSEmmanuel Vadot #define GATE_CLK_RP_CPU_NORMAL 85 104*0e8011faSEmmanuel Vadot #define GATE_CLK_AXI_DDR 86 105*0e8011faSEmmanuel Vadot 106*0e8011faSEmmanuel Vadot #define MUX_CLK_DDR01 87 107*0e8011faSEmmanuel Vadot #define MUX_CLK_DDR23 88 108*0e8011faSEmmanuel Vadot #define MUX_CLK_RP_CPU_NORMAL 89 109*0e8011faSEmmanuel Vadot #define MUX_CLK_AXI_DDR 90 110*0e8011faSEmmanuel Vadot 111*0e8011faSEmmanuel Vadot #endif /* __DT_BINDINGS_SOPHGO_SG2042_CLKGEN_H__ */ 112