1c66ec88fSEmmanuel Vadot /* SPDX-License-Identifier: GPL-2.0+ */ 2c66ec88fSEmmanuel Vadot /* 3c66ec88fSEmmanuel Vadot * Device Tree binding constants for Actions Semi S500 Clock Management Unit 4c66ec88fSEmmanuel Vadot * 5c66ec88fSEmmanuel Vadot * Copyright (c) 2014 Actions Semi Inc. 6c66ec88fSEmmanuel Vadot * Copyright (c) 2018 LSI-TEC - Caninos Loucos 7c66ec88fSEmmanuel Vadot */ 8c66ec88fSEmmanuel Vadot 9c66ec88fSEmmanuel Vadot #ifndef __DT_BINDINGS_CLOCK_S500_CMU_H 10c66ec88fSEmmanuel Vadot #define __DT_BINDINGS_CLOCK_S500_CMU_H 11c66ec88fSEmmanuel Vadot 12c66ec88fSEmmanuel Vadot #define CLK_NONE 0 13c66ec88fSEmmanuel Vadot 14c66ec88fSEmmanuel Vadot /* fixed rate clocks */ 15c66ec88fSEmmanuel Vadot #define CLK_LOSC 1 16c66ec88fSEmmanuel Vadot #define CLK_HOSC 2 17c66ec88fSEmmanuel Vadot 18c66ec88fSEmmanuel Vadot /* pll clocks */ 19c66ec88fSEmmanuel Vadot #define CLK_CORE_PLL 3 20c66ec88fSEmmanuel Vadot #define CLK_DEV_PLL 4 21c66ec88fSEmmanuel Vadot #define CLK_DDR_PLL 5 22c66ec88fSEmmanuel Vadot #define CLK_NAND_PLL 6 23c66ec88fSEmmanuel Vadot #define CLK_DISPLAY_PLL 7 24c66ec88fSEmmanuel Vadot #define CLK_ETHERNET_PLL 8 25c66ec88fSEmmanuel Vadot #define CLK_AUDIO_PLL 9 26c66ec88fSEmmanuel Vadot 27c66ec88fSEmmanuel Vadot /* system clock */ 28c66ec88fSEmmanuel Vadot #define CLK_DEV 10 29c66ec88fSEmmanuel Vadot #define CLK_H 11 30c66ec88fSEmmanuel Vadot #define CLK_AHBPREDIV 12 31c66ec88fSEmmanuel Vadot #define CLK_AHB 13 32c66ec88fSEmmanuel Vadot #define CLK_DE 14 33c66ec88fSEmmanuel Vadot #define CLK_BISP 15 34c66ec88fSEmmanuel Vadot #define CLK_VCE 16 35c66ec88fSEmmanuel Vadot #define CLK_VDE 17 36c66ec88fSEmmanuel Vadot 37c66ec88fSEmmanuel Vadot /* peripheral device clock */ 38c66ec88fSEmmanuel Vadot #define CLK_TIMER 18 39c66ec88fSEmmanuel Vadot #define CLK_I2C0 19 40c66ec88fSEmmanuel Vadot #define CLK_I2C1 20 41c66ec88fSEmmanuel Vadot #define CLK_I2C2 21 42c66ec88fSEmmanuel Vadot #define CLK_I2C3 22 43c66ec88fSEmmanuel Vadot #define CLK_PWM0 23 44c66ec88fSEmmanuel Vadot #define CLK_PWM1 24 45c66ec88fSEmmanuel Vadot #define CLK_PWM2 25 46c66ec88fSEmmanuel Vadot #define CLK_PWM3 26 47c66ec88fSEmmanuel Vadot #define CLK_PWM4 27 48c66ec88fSEmmanuel Vadot #define CLK_PWM5 28 49c66ec88fSEmmanuel Vadot #define CLK_SD0 29 50c66ec88fSEmmanuel Vadot #define CLK_SD1 30 51c66ec88fSEmmanuel Vadot #define CLK_SD2 31 52c66ec88fSEmmanuel Vadot #define CLK_SENSOR0 32 53c66ec88fSEmmanuel Vadot #define CLK_SENSOR1 33 54c66ec88fSEmmanuel Vadot #define CLK_SPI0 34 55c66ec88fSEmmanuel Vadot #define CLK_SPI1 35 56c66ec88fSEmmanuel Vadot #define CLK_SPI2 36 57c66ec88fSEmmanuel Vadot #define CLK_SPI3 37 58c66ec88fSEmmanuel Vadot #define CLK_UART0 38 59c66ec88fSEmmanuel Vadot #define CLK_UART1 39 60c66ec88fSEmmanuel Vadot #define CLK_UART2 40 61c66ec88fSEmmanuel Vadot #define CLK_UART3 41 62c66ec88fSEmmanuel Vadot #define CLK_UART4 42 63c66ec88fSEmmanuel Vadot #define CLK_UART5 43 64c66ec88fSEmmanuel Vadot #define CLK_UART6 44 65c66ec88fSEmmanuel Vadot #define CLK_DE1 45 66c66ec88fSEmmanuel Vadot #define CLK_DE2 46 67c66ec88fSEmmanuel Vadot #define CLK_I2SRX 47 68c66ec88fSEmmanuel Vadot #define CLK_I2STX 48 69c66ec88fSEmmanuel Vadot #define CLK_HDMI_AUDIO 49 70c66ec88fSEmmanuel Vadot #define CLK_HDMI 50 71c66ec88fSEmmanuel Vadot #define CLK_SPDIF 51 72c66ec88fSEmmanuel Vadot #define CLK_NAND 52 73c66ec88fSEmmanuel Vadot #define CLK_ECC 53 74c66ec88fSEmmanuel Vadot #define CLK_RMII_REF 54 75c66ec88fSEmmanuel Vadot #define CLK_GPIO 55 76c66ec88fSEmmanuel Vadot 77*5956d97fSEmmanuel Vadot /* additional clocks */ 78c66ec88fSEmmanuel Vadot #define CLK_APB 56 79c66ec88fSEmmanuel Vadot #define CLK_DMAC 57 80*5956d97fSEmmanuel Vadot #define CLK_NIC 58 81*5956d97fSEmmanuel Vadot #define CLK_ETHERNET 59 82c66ec88fSEmmanuel Vadot 83*5956d97fSEmmanuel Vadot #define CLK_NR_CLKS (CLK_ETHERNET + 1) 84c66ec88fSEmmanuel Vadot 85c66ec88fSEmmanuel Vadot #endif /* __DT_BINDINGS_CLOCK_S500_CMU_H */ 86