18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0+ 28c2ecf20Sopenharmony_ci// 38c2ecf20Sopenharmony_ci// Device Tree binding constants for Actions Semi S900 Clock Management Unit 48c2ecf20Sopenharmony_ci// 58c2ecf20Sopenharmony_ci// Copyright (c) 2014 Actions Semi Inc. 68c2ecf20Sopenharmony_ci// Copyright (c) 2018 Linaro Ltd. 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ci#ifndef __DT_BINDINGS_CLOCK_S900_CMU_H 98c2ecf20Sopenharmony_ci#define __DT_BINDINGS_CLOCK_S900_CMU_H 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ci#define CLK_NONE 0 128c2ecf20Sopenharmony_ci 138c2ecf20Sopenharmony_ci/* fixed rate clocks */ 148c2ecf20Sopenharmony_ci#define CLK_LOSC 1 158c2ecf20Sopenharmony_ci#define CLK_HOSC 2 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_ci/* pll clocks */ 188c2ecf20Sopenharmony_ci#define CLK_CORE_PLL 3 198c2ecf20Sopenharmony_ci#define CLK_DEV_PLL 4 208c2ecf20Sopenharmony_ci#define CLK_DDR_PLL 5 218c2ecf20Sopenharmony_ci#define CLK_NAND_PLL 6 228c2ecf20Sopenharmony_ci#define CLK_DISPLAY_PLL 7 238c2ecf20Sopenharmony_ci#define CLK_DSI_PLL 8 248c2ecf20Sopenharmony_ci#define CLK_ASSIST_PLL 9 258c2ecf20Sopenharmony_ci#define CLK_AUDIO_PLL 10 268c2ecf20Sopenharmony_ci 278c2ecf20Sopenharmony_ci/* system clock */ 288c2ecf20Sopenharmony_ci#define CLK_CPU 15 298c2ecf20Sopenharmony_ci#define CLK_DEV 16 308c2ecf20Sopenharmony_ci#define CLK_NOC 17 318c2ecf20Sopenharmony_ci#define CLK_NOC_MUX 18 328c2ecf20Sopenharmony_ci#define CLK_NOC_DIV 19 338c2ecf20Sopenharmony_ci#define CLK_AHB 20 348c2ecf20Sopenharmony_ci#define CLK_APB 21 358c2ecf20Sopenharmony_ci#define CLK_DMAC 22 368c2ecf20Sopenharmony_ci 378c2ecf20Sopenharmony_ci/* peripheral device clock */ 388c2ecf20Sopenharmony_ci#define CLK_GPIO 23 398c2ecf20Sopenharmony_ci 408c2ecf20Sopenharmony_ci#define CLK_BISP 24 418c2ecf20Sopenharmony_ci#define CLK_CSI0 25 428c2ecf20Sopenharmony_ci#define CLK_CSI1 26 438c2ecf20Sopenharmony_ci 448c2ecf20Sopenharmony_ci#define CLK_DE0 27 458c2ecf20Sopenharmony_ci#define CLK_DE1 28 468c2ecf20Sopenharmony_ci#define CLK_DE2 29 478c2ecf20Sopenharmony_ci#define CLK_DE3 30 488c2ecf20Sopenharmony_ci#define CLK_DSI 32 498c2ecf20Sopenharmony_ci 508c2ecf20Sopenharmony_ci#define CLK_GPU 33 518c2ecf20Sopenharmony_ci#define CLK_GPU_CORE 34 528c2ecf20Sopenharmony_ci#define CLK_GPU_MEM 35 538c2ecf20Sopenharmony_ci#define CLK_GPU_SYS 36 548c2ecf20Sopenharmony_ci 558c2ecf20Sopenharmony_ci#define CLK_HDE 37 568c2ecf20Sopenharmony_ci#define CLK_I2C0 38 578c2ecf20Sopenharmony_ci#define CLK_I2C1 39 588c2ecf20Sopenharmony_ci#define CLK_I2C2 40 598c2ecf20Sopenharmony_ci#define CLK_I2C3 41 608c2ecf20Sopenharmony_ci#define CLK_I2C4 42 618c2ecf20Sopenharmony_ci#define CLK_I2C5 43 628c2ecf20Sopenharmony_ci#define CLK_I2SRX 44 638c2ecf20Sopenharmony_ci#define CLK_I2STX 45 648c2ecf20Sopenharmony_ci#define CLK_IMX 46 658c2ecf20Sopenharmony_ci#define CLK_LCD 47 668c2ecf20Sopenharmony_ci#define CLK_NAND0 48 678c2ecf20Sopenharmony_ci#define CLK_NAND1 49 688c2ecf20Sopenharmony_ci#define CLK_PWM0 50 698c2ecf20Sopenharmony_ci#define CLK_PWM1 51 708c2ecf20Sopenharmony_ci#define CLK_PWM2 52 718c2ecf20Sopenharmony_ci#define CLK_PWM3 53 728c2ecf20Sopenharmony_ci#define CLK_PWM4 54 738c2ecf20Sopenharmony_ci#define CLK_PWM5 55 748c2ecf20Sopenharmony_ci#define CLK_SD0 56 758c2ecf20Sopenharmony_ci#define CLK_SD1 57 768c2ecf20Sopenharmony_ci#define CLK_SD2 58 778c2ecf20Sopenharmony_ci#define CLK_SD3 59 788c2ecf20Sopenharmony_ci#define CLK_SENSOR 60 798c2ecf20Sopenharmony_ci#define CLK_SPEED_SENSOR 61 808c2ecf20Sopenharmony_ci#define CLK_SPI0 62 818c2ecf20Sopenharmony_ci#define CLK_SPI1 63 828c2ecf20Sopenharmony_ci#define CLK_SPI2 64 838c2ecf20Sopenharmony_ci#define CLK_SPI3 65 848c2ecf20Sopenharmony_ci#define CLK_THERMAL_SENSOR 66 858c2ecf20Sopenharmony_ci#define CLK_UART0 67 868c2ecf20Sopenharmony_ci#define CLK_UART1 68 878c2ecf20Sopenharmony_ci#define CLK_UART2 69 888c2ecf20Sopenharmony_ci#define CLK_UART3 70 898c2ecf20Sopenharmony_ci#define CLK_UART4 71 908c2ecf20Sopenharmony_ci#define CLK_UART5 72 918c2ecf20Sopenharmony_ci#define CLK_UART6 73 928c2ecf20Sopenharmony_ci#define CLK_VCE 74 938c2ecf20Sopenharmony_ci#define CLK_VDE 75 948c2ecf20Sopenharmony_ci 958c2ecf20Sopenharmony_ci#define CLK_USB3_480MPLL0 76 968c2ecf20Sopenharmony_ci#define CLK_USB3_480MPHY0 77 978c2ecf20Sopenharmony_ci#define CLK_USB3_5GPHY 78 988c2ecf20Sopenharmony_ci#define CLK_USB3_CCE 79 998c2ecf20Sopenharmony_ci#define CLK_USB3_MAC 80 1008c2ecf20Sopenharmony_ci 1018c2ecf20Sopenharmony_ci#define CLK_TIMER 83 1028c2ecf20Sopenharmony_ci 1038c2ecf20Sopenharmony_ci#define CLK_HDMI_AUDIO 84 1048c2ecf20Sopenharmony_ci 1058c2ecf20Sopenharmony_ci#define CLK_24M 85 1068c2ecf20Sopenharmony_ci 1078c2ecf20Sopenharmony_ci#define CLK_EDP 86 1088c2ecf20Sopenharmony_ci 1098c2ecf20Sopenharmony_ci#define CLK_24M_EDP 87 1108c2ecf20Sopenharmony_ci#define CLK_EDP_PLL 88 1118c2ecf20Sopenharmony_ci#define CLK_EDP_LINK 89 1128c2ecf20Sopenharmony_ci 1138c2ecf20Sopenharmony_ci#define CLK_USB2H0_PLLEN 90 1148c2ecf20Sopenharmony_ci#define CLK_USB2H0_PHY 91 1158c2ecf20Sopenharmony_ci#define CLK_USB2H0_CCE 92 1168c2ecf20Sopenharmony_ci#define CLK_USB2H1_PLLEN 93 1178c2ecf20Sopenharmony_ci#define CLK_USB2H1_PHY 94 1188c2ecf20Sopenharmony_ci#define CLK_USB2H1_CCE 95 1198c2ecf20Sopenharmony_ci 1208c2ecf20Sopenharmony_ci#define CLK_DDR0 96 1218c2ecf20Sopenharmony_ci#define CLK_DDR1 97 1228c2ecf20Sopenharmony_ci#define CLK_DMM 98 1238c2ecf20Sopenharmony_ci 1248c2ecf20Sopenharmony_ci#define CLK_ETH_MAC 99 1258c2ecf20Sopenharmony_ci#define CLK_RMII_REF 100 1268c2ecf20Sopenharmony_ci 1278c2ecf20Sopenharmony_ci#define CLK_NR_CLKS (CLK_RMII_REF + 1) 1288c2ecf20Sopenharmony_ci 1298c2ecf20Sopenharmony_ci#endif /* __DT_BINDINGS_CLOCK_S900_CMU_H */ 130