18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0+ */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Device Tree binding constants for Actions Semi S500 Clock Management Unit 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Copyright (c) 2014 Actions Semi Inc. 68c2ecf20Sopenharmony_ci * Copyright (c) 2018 LSI-TEC - Caninos Loucos 78c2ecf20Sopenharmony_ci */ 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ci#ifndef __DT_BINDINGS_CLOCK_S500_CMU_H 108c2ecf20Sopenharmony_ci#define __DT_BINDINGS_CLOCK_S500_CMU_H 118c2ecf20Sopenharmony_ci 128c2ecf20Sopenharmony_ci#define CLK_NONE 0 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_ci/* fixed rate clocks */ 158c2ecf20Sopenharmony_ci#define CLK_LOSC 1 168c2ecf20Sopenharmony_ci#define CLK_HOSC 2 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ci/* pll clocks */ 198c2ecf20Sopenharmony_ci#define CLK_CORE_PLL 3 208c2ecf20Sopenharmony_ci#define CLK_DEV_PLL 4 218c2ecf20Sopenharmony_ci#define CLK_DDR_PLL 5 228c2ecf20Sopenharmony_ci#define CLK_NAND_PLL 6 238c2ecf20Sopenharmony_ci#define CLK_DISPLAY_PLL 7 248c2ecf20Sopenharmony_ci#define CLK_ETHERNET_PLL 8 258c2ecf20Sopenharmony_ci#define CLK_AUDIO_PLL 9 268c2ecf20Sopenharmony_ci 278c2ecf20Sopenharmony_ci/* system clock */ 288c2ecf20Sopenharmony_ci#define CLK_DEV 10 298c2ecf20Sopenharmony_ci#define CLK_H 11 308c2ecf20Sopenharmony_ci#define CLK_AHBPREDIV 12 318c2ecf20Sopenharmony_ci#define CLK_AHB 13 328c2ecf20Sopenharmony_ci#define CLK_DE 14 338c2ecf20Sopenharmony_ci#define CLK_BISP 15 348c2ecf20Sopenharmony_ci#define CLK_VCE 16 358c2ecf20Sopenharmony_ci#define CLK_VDE 17 368c2ecf20Sopenharmony_ci 378c2ecf20Sopenharmony_ci/* peripheral device clock */ 388c2ecf20Sopenharmony_ci#define CLK_TIMER 18 398c2ecf20Sopenharmony_ci#define CLK_I2C0 19 408c2ecf20Sopenharmony_ci#define CLK_I2C1 20 418c2ecf20Sopenharmony_ci#define CLK_I2C2 21 428c2ecf20Sopenharmony_ci#define CLK_I2C3 22 438c2ecf20Sopenharmony_ci#define CLK_PWM0 23 448c2ecf20Sopenharmony_ci#define CLK_PWM1 24 458c2ecf20Sopenharmony_ci#define CLK_PWM2 25 468c2ecf20Sopenharmony_ci#define CLK_PWM3 26 478c2ecf20Sopenharmony_ci#define CLK_PWM4 27 488c2ecf20Sopenharmony_ci#define CLK_PWM5 28 498c2ecf20Sopenharmony_ci#define CLK_SD0 29 508c2ecf20Sopenharmony_ci#define CLK_SD1 30 518c2ecf20Sopenharmony_ci#define CLK_SD2 31 528c2ecf20Sopenharmony_ci#define CLK_SENSOR0 32 538c2ecf20Sopenharmony_ci#define CLK_SENSOR1 33 548c2ecf20Sopenharmony_ci#define CLK_SPI0 34 558c2ecf20Sopenharmony_ci#define CLK_SPI1 35 568c2ecf20Sopenharmony_ci#define CLK_SPI2 36 578c2ecf20Sopenharmony_ci#define CLK_SPI3 37 588c2ecf20Sopenharmony_ci#define CLK_UART0 38 598c2ecf20Sopenharmony_ci#define CLK_UART1 39 608c2ecf20Sopenharmony_ci#define CLK_UART2 40 618c2ecf20Sopenharmony_ci#define CLK_UART3 41 628c2ecf20Sopenharmony_ci#define CLK_UART4 42 638c2ecf20Sopenharmony_ci#define CLK_UART5 43 648c2ecf20Sopenharmony_ci#define CLK_UART6 44 658c2ecf20Sopenharmony_ci#define CLK_DE1 45 668c2ecf20Sopenharmony_ci#define CLK_DE2 46 678c2ecf20Sopenharmony_ci#define CLK_I2SRX 47 688c2ecf20Sopenharmony_ci#define CLK_I2STX 48 698c2ecf20Sopenharmony_ci#define CLK_HDMI_AUDIO 49 708c2ecf20Sopenharmony_ci#define CLK_HDMI 50 718c2ecf20Sopenharmony_ci#define CLK_SPDIF 51 728c2ecf20Sopenharmony_ci#define CLK_NAND 52 738c2ecf20Sopenharmony_ci#define CLK_ECC 53 748c2ecf20Sopenharmony_ci#define CLK_RMII_REF 54 758c2ecf20Sopenharmony_ci#define CLK_GPIO 55 768c2ecf20Sopenharmony_ci 778c2ecf20Sopenharmony_ci/* system clock (part 2) */ 788c2ecf20Sopenharmony_ci#define CLK_APB 56 798c2ecf20Sopenharmony_ci#define CLK_DMAC 57 808c2ecf20Sopenharmony_ci 818c2ecf20Sopenharmony_ci#define CLK_NR_CLKS (CLK_DMAC + 1) 828c2ecf20Sopenharmony_ci 838c2ecf20Sopenharmony_ci#endif /* __DT_BINDINGS_CLOCK_S500_CMU_H */ 84