1*440b075bSKrzysztof Kozlowski /* SPDX-License-Identifier: GPL-2.0-or-later OR BSD-2-Clause */ 2b87111daSDongjiu Geng /* 3b87111daSDongjiu Geng * Copyright (c) 2019-2020, Huawei Tech. Co., Ltd. 4b87111daSDongjiu Geng * 5b87111daSDongjiu Geng * Author: Dongjiu Geng <gengdongjiu@huawei.com> 6b87111daSDongjiu Geng */ 7b87111daSDongjiu Geng 8b87111daSDongjiu Geng #ifndef __DTS_HI3559AV100_CLOCK_H 9b87111daSDongjiu Geng #define __DTS_HI3559AV100_CLOCK_H 10b87111daSDongjiu Geng 11b87111daSDongjiu Geng /* fixed rate */ 12b87111daSDongjiu Geng #define HI3559AV100_FIXED_1188M 1 13b87111daSDongjiu Geng #define HI3559AV100_FIXED_1000M 2 14b87111daSDongjiu Geng #define HI3559AV100_FIXED_842M 3 15b87111daSDongjiu Geng #define HI3559AV100_FIXED_792M 4 16b87111daSDongjiu Geng #define HI3559AV100_FIXED_750M 5 17b87111daSDongjiu Geng #define HI3559AV100_FIXED_710M 6 18b87111daSDongjiu Geng #define HI3559AV100_FIXED_680M 7 19b87111daSDongjiu Geng #define HI3559AV100_FIXED_667M 8 20b87111daSDongjiu Geng #define HI3559AV100_FIXED_631M 9 21b87111daSDongjiu Geng #define HI3559AV100_FIXED_600M 10 22b87111daSDongjiu Geng #define HI3559AV100_FIXED_568M 11 23b87111daSDongjiu Geng #define HI3559AV100_FIXED_500M 12 24b87111daSDongjiu Geng #define HI3559AV100_FIXED_475M 13 25b87111daSDongjiu Geng #define HI3559AV100_FIXED_428M 14 26b87111daSDongjiu Geng #define HI3559AV100_FIXED_400M 15 27b87111daSDongjiu Geng #define HI3559AV100_FIXED_396M 16 28b87111daSDongjiu Geng #define HI3559AV100_FIXED_300M 17 29b87111daSDongjiu Geng #define HI3559AV100_FIXED_250M 18 30b87111daSDongjiu Geng #define HI3559AV100_FIXED_198M 19 31b87111daSDongjiu Geng #define HI3559AV100_FIXED_187p5M 20 32b87111daSDongjiu Geng #define HI3559AV100_FIXED_150M 21 33b87111daSDongjiu Geng #define HI3559AV100_FIXED_148p5M 22 34b87111daSDongjiu Geng #define HI3559AV100_FIXED_125M 23 35b87111daSDongjiu Geng #define HI3559AV100_FIXED_107M 24 36b87111daSDongjiu Geng #define HI3559AV100_FIXED_100M 25 37b87111daSDongjiu Geng #define HI3559AV100_FIXED_99M 26 38b87111daSDongjiu Geng #define HI3559AV100_FIXED_74p25M 27 39b87111daSDongjiu Geng #define HI3559AV100_FIXED_72M 28 40b87111daSDongjiu Geng #define HI3559AV100_FIXED_60M 29 41b87111daSDongjiu Geng #define HI3559AV100_FIXED_54M 30 42b87111daSDongjiu Geng #define HI3559AV100_FIXED_50M 31 43b87111daSDongjiu Geng #define HI3559AV100_FIXED_49p5M 32 44b87111daSDongjiu Geng #define HI3559AV100_FIXED_37p125M 33 45b87111daSDongjiu Geng #define HI3559AV100_FIXED_36M 34 46b87111daSDongjiu Geng #define HI3559AV100_FIXED_32p4M 35 47b87111daSDongjiu Geng #define HI3559AV100_FIXED_27M 36 48b87111daSDongjiu Geng #define HI3559AV100_FIXED_25M 37 49b87111daSDongjiu Geng #define HI3559AV100_FIXED_24M 38 50b87111daSDongjiu Geng #define HI3559AV100_FIXED_12M 39 51b87111daSDongjiu Geng #define HI3559AV100_FIXED_3M 40 52b87111daSDongjiu Geng #define HI3559AV100_FIXED_1p6M 41 53b87111daSDongjiu Geng #define HI3559AV100_FIXED_400K 42 54b87111daSDongjiu Geng #define HI3559AV100_FIXED_100K 43 55b87111daSDongjiu Geng #define HI3559AV100_FIXED_200M 44 56b87111daSDongjiu Geng #define HI3559AV100_FIXED_75M 75 57b87111daSDongjiu Geng 58b87111daSDongjiu Geng #define HI3559AV100_I2C0_CLK 50 59b87111daSDongjiu Geng #define HI3559AV100_I2C1_CLK 51 60b87111daSDongjiu Geng #define HI3559AV100_I2C2_CLK 52 61b87111daSDongjiu Geng #define HI3559AV100_I2C3_CLK 53 62b87111daSDongjiu Geng #define HI3559AV100_I2C4_CLK 54 63b87111daSDongjiu Geng #define HI3559AV100_I2C5_CLK 55 64b87111daSDongjiu Geng #define HI3559AV100_I2C6_CLK 56 65b87111daSDongjiu Geng #define HI3559AV100_I2C7_CLK 57 66b87111daSDongjiu Geng #define HI3559AV100_I2C8_CLK 58 67b87111daSDongjiu Geng #define HI3559AV100_I2C9_CLK 59 68b87111daSDongjiu Geng #define HI3559AV100_I2C10_CLK 60 69b87111daSDongjiu Geng #define HI3559AV100_I2C11_CLK 61 70b87111daSDongjiu Geng 71b87111daSDongjiu Geng #define HI3559AV100_SPI0_CLK 62 72b87111daSDongjiu Geng #define HI3559AV100_SPI1_CLK 63 73b87111daSDongjiu Geng #define HI3559AV100_SPI2_CLK 64 74b87111daSDongjiu Geng #define HI3559AV100_SPI3_CLK 65 75b87111daSDongjiu Geng #define HI3559AV100_SPI4_CLK 66 76b87111daSDongjiu Geng #define HI3559AV100_SPI5_CLK 67 77b87111daSDongjiu Geng #define HI3559AV100_SPI6_CLK 68 78b87111daSDongjiu Geng 79b87111daSDongjiu Geng #define HI3559AV100_EDMAC_CLK 69 80b87111daSDongjiu Geng #define HI3559AV100_EDMAC_AXICLK 70 81b87111daSDongjiu Geng #define HI3559AV100_EDMAC1_CLK 71 82b87111daSDongjiu Geng #define HI3559AV100_EDMAC1_AXICLK 72 83b87111daSDongjiu Geng #define HI3559AV100_VDMAC_CLK 73 84b87111daSDongjiu Geng 85b87111daSDongjiu Geng /* mux clocks */ 86b87111daSDongjiu Geng #define HI3559AV100_FMC_MUX 80 87b87111daSDongjiu Geng #define HI3559AV100_SYSAPB_MUX 81 88b87111daSDongjiu Geng #define HI3559AV100_UART_MUX 82 89b87111daSDongjiu Geng #define HI3559AV100_SYSBUS_MUX 83 90b87111daSDongjiu Geng #define HI3559AV100_A73_MUX 84 91b87111daSDongjiu Geng #define HI3559AV100_MMC0_MUX 85 92b87111daSDongjiu Geng #define HI3559AV100_MMC1_MUX 86 93b87111daSDongjiu Geng #define HI3559AV100_MMC2_MUX 87 94b87111daSDongjiu Geng #define HI3559AV100_MMC3_MUX 88 95b87111daSDongjiu Geng 96b87111daSDongjiu Geng /* gate clocks */ 97b87111daSDongjiu Geng #define HI3559AV100_FMC_CLK 90 98b87111daSDongjiu Geng #define HI3559AV100_UART0_CLK 91 99b87111daSDongjiu Geng #define HI3559AV100_UART1_CLK 92 100b87111daSDongjiu Geng #define HI3559AV100_UART2_CLK 93 101b87111daSDongjiu Geng #define HI3559AV100_UART3_CLK 94 102b87111daSDongjiu Geng #define HI3559AV100_UART4_CLK 95 103b87111daSDongjiu Geng #define HI3559AV100_MMC0_CLK 96 104b87111daSDongjiu Geng #define HI3559AV100_MMC1_CLK 97 105b87111daSDongjiu Geng #define HI3559AV100_MMC2_CLK 98 106b87111daSDongjiu Geng #define HI3559AV100_MMC3_CLK 99 107b87111daSDongjiu Geng 108b87111daSDongjiu Geng #define HI3559AV100_ETH_CLK 100 109b87111daSDongjiu Geng #define HI3559AV100_ETH_MACIF_CLK 101 110b87111daSDongjiu Geng #define HI3559AV100_ETH1_CLK 102 111b87111daSDongjiu Geng #define HI3559AV100_ETH1_MACIF_CLK 103 112b87111daSDongjiu Geng 113b87111daSDongjiu Geng /* complex */ 114b87111daSDongjiu Geng #define HI3559AV100_MAC0_CLK 110 115b87111daSDongjiu Geng #define HI3559AV100_MAC1_CLK 111 116b87111daSDongjiu Geng #define HI3559AV100_SATA_CLK 112 117b87111daSDongjiu Geng #define HI3559AV100_USB_CLK 113 118b87111daSDongjiu Geng #define HI3559AV100_USB1_CLK 114 119b87111daSDongjiu Geng 120b87111daSDongjiu Geng /* pll clocks */ 121b87111daSDongjiu Geng #define HI3559AV100_APLL_CLK 250 122b87111daSDongjiu Geng #define HI3559AV100_GPLL_CLK 251 123b87111daSDongjiu Geng 124b87111daSDongjiu Geng #define HI3559AV100_CRG_NR_CLKS 256 125b87111daSDongjiu Geng 126b87111daSDongjiu Geng #define HI3559AV100_SHUB_SOURCE_SOC_24M 0 127b87111daSDongjiu Geng #define HI3559AV100_SHUB_SOURCE_SOC_200M 1 128b87111daSDongjiu Geng #define HI3559AV100_SHUB_SOURCE_SOC_300M 2 129b87111daSDongjiu Geng #define HI3559AV100_SHUB_SOURCE_PLL 3 130b87111daSDongjiu Geng #define HI3559AV100_SHUB_SOURCE_CLK 4 131b87111daSDongjiu Geng 132b87111daSDongjiu Geng #define HI3559AV100_SHUB_I2C0_CLK 10 133b87111daSDongjiu Geng #define HI3559AV100_SHUB_I2C1_CLK 11 134b87111daSDongjiu Geng #define HI3559AV100_SHUB_I2C2_CLK 12 135b87111daSDongjiu Geng #define HI3559AV100_SHUB_I2C3_CLK 13 136b87111daSDongjiu Geng #define HI3559AV100_SHUB_I2C4_CLK 14 137b87111daSDongjiu Geng #define HI3559AV100_SHUB_I2C5_CLK 15 138b87111daSDongjiu Geng #define HI3559AV100_SHUB_I2C6_CLK 16 139b87111daSDongjiu Geng #define HI3559AV100_SHUB_I2C7_CLK 17 140b87111daSDongjiu Geng 141b87111daSDongjiu Geng #define HI3559AV100_SHUB_SPI_SOURCE_CLK 20 142b87111daSDongjiu Geng #define HI3559AV100_SHUB_SPI4_SOURCE_CLK 21 143b87111daSDongjiu Geng #define HI3559AV100_SHUB_SPI0_CLK 22 144b87111daSDongjiu Geng #define HI3559AV100_SHUB_SPI1_CLK 23 145b87111daSDongjiu Geng #define HI3559AV100_SHUB_SPI2_CLK 24 146b87111daSDongjiu Geng #define HI3559AV100_SHUB_SPI3_CLK 25 147b87111daSDongjiu Geng #define HI3559AV100_SHUB_SPI4_CLK 26 148b87111daSDongjiu Geng 149b87111daSDongjiu Geng #define HI3559AV100_SHUB_UART_CLK_32K 30 150b87111daSDongjiu Geng #define HI3559AV100_SHUB_UART_SOURCE_CLK 31 151b87111daSDongjiu Geng #define HI3559AV100_SHUB_UART_DIV_CLK 32 152b87111daSDongjiu Geng #define HI3559AV100_SHUB_UART0_CLK 33 153b87111daSDongjiu Geng #define HI3559AV100_SHUB_UART1_CLK 34 154b87111daSDongjiu Geng #define HI3559AV100_SHUB_UART2_CLK 35 155b87111daSDongjiu Geng #define HI3559AV100_SHUB_UART3_CLK 36 156b87111daSDongjiu Geng #define HI3559AV100_SHUB_UART4_CLK 37 157b87111daSDongjiu Geng #define HI3559AV100_SHUB_UART5_CLK 38 158b87111daSDongjiu Geng #define HI3559AV100_SHUB_UART6_CLK 39 159b87111daSDongjiu Geng 160b87111daSDongjiu Geng #define HI3559AV100_SHUB_EDMAC_CLK 40 161b87111daSDongjiu Geng 162b87111daSDongjiu Geng #define HI3559AV100_SHUB_NR_CLKS 50 163b87111daSDongjiu Geng 164b87111daSDongjiu Geng #endif /* __DTS_HI3559AV100_CLOCK_H */ 165b87111daSDongjiu Geng 166