1*c66ec88fSEmmanuel Vadot /* SPDX-License-Identifier: GPL-2.0+ */ 2*c66ec88fSEmmanuel Vadot /* 3*c66ec88fSEmmanuel Vadot * Device Tree binding constants for Bitmain BM1880 SoC 4*c66ec88fSEmmanuel Vadot * 5*c66ec88fSEmmanuel Vadot * Copyright (c) 2019 Linaro Ltd. 6*c66ec88fSEmmanuel Vadot */ 7*c66ec88fSEmmanuel Vadot 8*c66ec88fSEmmanuel Vadot #ifndef __DT_BINDINGS_CLOCK_BM1880_H 9*c66ec88fSEmmanuel Vadot #define __DT_BINDINGS_CLOCK_BM1880_H 10*c66ec88fSEmmanuel Vadot 11*c66ec88fSEmmanuel Vadot #define BM1880_CLK_OSC 0 12*c66ec88fSEmmanuel Vadot #define BM1880_CLK_MPLL 1 13*c66ec88fSEmmanuel Vadot #define BM1880_CLK_SPLL 2 14*c66ec88fSEmmanuel Vadot #define BM1880_CLK_FPLL 3 15*c66ec88fSEmmanuel Vadot #define BM1880_CLK_DDRPLL 4 16*c66ec88fSEmmanuel Vadot #define BM1880_CLK_A53 5 17*c66ec88fSEmmanuel Vadot #define BM1880_CLK_50M_A53 6 18*c66ec88fSEmmanuel Vadot #define BM1880_CLK_AHB_ROM 7 19*c66ec88fSEmmanuel Vadot #define BM1880_CLK_AXI_SRAM 8 20*c66ec88fSEmmanuel Vadot #define BM1880_CLK_DDR_AXI 9 21*c66ec88fSEmmanuel Vadot #define BM1880_CLK_EFUSE 10 22*c66ec88fSEmmanuel Vadot #define BM1880_CLK_APB_EFUSE 11 23*c66ec88fSEmmanuel Vadot #define BM1880_CLK_AXI5_EMMC 12 24*c66ec88fSEmmanuel Vadot #define BM1880_CLK_EMMC 13 25*c66ec88fSEmmanuel Vadot #define BM1880_CLK_100K_EMMC 14 26*c66ec88fSEmmanuel Vadot #define BM1880_CLK_AXI5_SD 15 27*c66ec88fSEmmanuel Vadot #define BM1880_CLK_SD 16 28*c66ec88fSEmmanuel Vadot #define BM1880_CLK_100K_SD 17 29*c66ec88fSEmmanuel Vadot #define BM1880_CLK_500M_ETH0 18 30*c66ec88fSEmmanuel Vadot #define BM1880_CLK_AXI4_ETH0 19 31*c66ec88fSEmmanuel Vadot #define BM1880_CLK_500M_ETH1 20 32*c66ec88fSEmmanuel Vadot #define BM1880_CLK_AXI4_ETH1 21 33*c66ec88fSEmmanuel Vadot #define BM1880_CLK_AXI1_GDMA 22 34*c66ec88fSEmmanuel Vadot #define BM1880_CLK_APB_GPIO 23 35*c66ec88fSEmmanuel Vadot #define BM1880_CLK_APB_GPIO_INTR 24 36*c66ec88fSEmmanuel Vadot #define BM1880_CLK_GPIO_DB 25 37*c66ec88fSEmmanuel Vadot #define BM1880_CLK_AXI1_MINER 26 38*c66ec88fSEmmanuel Vadot #define BM1880_CLK_AHB_SF 27 39*c66ec88fSEmmanuel Vadot #define BM1880_CLK_SDMA_AXI 28 40*c66ec88fSEmmanuel Vadot #define BM1880_CLK_SDMA_AUD 29 41*c66ec88fSEmmanuel Vadot #define BM1880_CLK_APB_I2C 30 42*c66ec88fSEmmanuel Vadot #define BM1880_CLK_APB_WDT 31 43*c66ec88fSEmmanuel Vadot #define BM1880_CLK_APB_JPEG 32 44*c66ec88fSEmmanuel Vadot #define BM1880_CLK_JPEG_AXI 33 45*c66ec88fSEmmanuel Vadot #define BM1880_CLK_AXI5_NF 34 46*c66ec88fSEmmanuel Vadot #define BM1880_CLK_APB_NF 35 47*c66ec88fSEmmanuel Vadot #define BM1880_CLK_NF 36 48*c66ec88fSEmmanuel Vadot #define BM1880_CLK_APB_PWM 37 49*c66ec88fSEmmanuel Vadot #define BM1880_CLK_DIV_0_RV 38 50*c66ec88fSEmmanuel Vadot #define BM1880_CLK_DIV_1_RV 39 51*c66ec88fSEmmanuel Vadot #define BM1880_CLK_MUX_RV 40 52*c66ec88fSEmmanuel Vadot #define BM1880_CLK_RV 41 53*c66ec88fSEmmanuel Vadot #define BM1880_CLK_APB_SPI 42 54*c66ec88fSEmmanuel Vadot #define BM1880_CLK_TPU_AXI 43 55*c66ec88fSEmmanuel Vadot #define BM1880_CLK_DIV_UART_500M 44 56*c66ec88fSEmmanuel Vadot #define BM1880_CLK_UART_500M 45 57*c66ec88fSEmmanuel Vadot #define BM1880_CLK_APB_UART 46 58*c66ec88fSEmmanuel Vadot #define BM1880_CLK_APB_I2S 47 59*c66ec88fSEmmanuel Vadot #define BM1880_CLK_AXI4_USB 48 60*c66ec88fSEmmanuel Vadot #define BM1880_CLK_APB_USB 49 61*c66ec88fSEmmanuel Vadot #define BM1880_CLK_125M_USB 50 62*c66ec88fSEmmanuel Vadot #define BM1880_CLK_33K_USB 51 63*c66ec88fSEmmanuel Vadot #define BM1880_CLK_DIV_12M_USB 52 64*c66ec88fSEmmanuel Vadot #define BM1880_CLK_12M_USB 53 65*c66ec88fSEmmanuel Vadot #define BM1880_CLK_APB_VIDEO 54 66*c66ec88fSEmmanuel Vadot #define BM1880_CLK_VIDEO_AXI 55 67*c66ec88fSEmmanuel Vadot #define BM1880_CLK_VPP_AXI 56 68*c66ec88fSEmmanuel Vadot #define BM1880_CLK_APB_VPP 57 69*c66ec88fSEmmanuel Vadot #define BM1880_CLK_DIV_0_AXI1 58 70*c66ec88fSEmmanuel Vadot #define BM1880_CLK_DIV_1_AXI1 59 71*c66ec88fSEmmanuel Vadot #define BM1880_CLK_AXI1 60 72*c66ec88fSEmmanuel Vadot #define BM1880_CLK_AXI2 61 73*c66ec88fSEmmanuel Vadot #define BM1880_CLK_AXI3 62 74*c66ec88fSEmmanuel Vadot #define BM1880_CLK_AXI4 63 75*c66ec88fSEmmanuel Vadot #define BM1880_CLK_AXI5 64 76*c66ec88fSEmmanuel Vadot #define BM1880_CLK_DIV_0_AXI6 65 77*c66ec88fSEmmanuel Vadot #define BM1880_CLK_DIV_1_AXI6 66 78*c66ec88fSEmmanuel Vadot #define BM1880_CLK_MUX_AXI6 67 79*c66ec88fSEmmanuel Vadot #define BM1880_CLK_AXI6 68 80*c66ec88fSEmmanuel Vadot #define BM1880_NR_CLKS 69 81*c66ec88fSEmmanuel Vadot 82*c66ec88fSEmmanuel Vadot #endif /* __DT_BINDINGS_CLOCK_BM1880_H */ 83