163944891SThierry Reding /* SPDX-License-Identifier: GPL-2.0 */ 240efe139SSameer Pujar /* Copyright (c) 2018-2022, NVIDIA CORPORATION. All rights reserved. */ 363944891SThierry Reding 463944891SThierry Reding #ifndef DT_BINDINGS_CLOCK_TEGRA234_CLOCK_H 563944891SThierry Reding #define DT_BINDINGS_CLOCK_TEGRA234_CLOCK_H 663944891SThierry Reding 7fc5e0e37SMikko Perttunen /** 8fc5e0e37SMikko Perttunen * @file 9fc5e0e37SMikko Perttunen * @defgroup bpmp_clock_ids Clock ID's 10fc5e0e37SMikko Perttunen * @{ 11fc5e0e37SMikko Perttunen */ 1240efe139SSameer Pujar /** output of mux controlled by CLK_RST_CONTROLLER_CLK_SOURCE_AHUB */ 1340efe139SSameer Pujar #define TEGRA234_CLK_AHUB 4U 1440efe139SSameer Pujar /** @brief output of gate CLK_ENB_APB2APE */ 1540efe139SSameer Pujar #define TEGRA234_CLK_APB2APE 5U 1640efe139SSameer Pujar /** @brief output of mux controlled by CLK_RST_CONTROLLER_CLK_SOURCE_APE */ 1740efe139SSameer Pujar #define TEGRA234_CLK_APE 6U 1840efe139SSameer Pujar /** @brief output of mux controlled by CLK_RST_CONTROLLER_CLK_SOURCE_AUD_MCLK */ 1940efe139SSameer Pujar #define TEGRA234_CLK_AUD_MCLK 7U 2040efe139SSameer Pujar /** @brief output of mux controlled by CLK_RST_CONTROLLER_CLK_SOURCE_DMIC1 */ 2140efe139SSameer Pujar #define TEGRA234_CLK_DMIC1 15U 2240efe139SSameer Pujar /** @brief output of mux controlled by CLK_RST_CONTROLLER_CLK_SOURCE_DMIC2 */ 2340efe139SSameer Pujar #define TEGRA234_CLK_DMIC2 16U 2440efe139SSameer Pujar /** @brief output of mux controlled by CLK_RST_CONTROLLER_CLK_SOURCE_DMIC3 */ 2540efe139SSameer Pujar #define TEGRA234_CLK_DMIC3 17U 2640efe139SSameer Pujar /** @brief output of mux controlled by CLK_RST_CONTROLLER_CLK_SOURCE_DMIC4 */ 2740efe139SSameer Pujar #define TEGRA234_CLK_DMIC4 18U 2840efe139SSameer Pujar /** @brief output of mux controlled by CLK_RST_CONTROLLER_CLK_SOURCE_DSPK1 */ 2940efe139SSameer Pujar #define TEGRA234_CLK_DSPK1 29U 3040efe139SSameer Pujar /** @brief output of mux controlled by CLK_RST_CONTROLLER_CLK_SOURCE_DSPK2 */ 3140efe139SSameer Pujar #define TEGRA234_CLK_DSPK2 30U 32c3859c14SThierry Reding /** 33c3859c14SThierry Reding * @brief controls the EMC clock frequency. 34c3859c14SThierry Reding * @details Doing a clk_set_rate on this clock will select the 35c3859c14SThierry Reding * appropriate clock source, program the source rate and execute a 36c3859c14SThierry Reding * specific sequence to switch to the new clock source for both memory 37c3859c14SThierry Reding * controllers. This can be used to control the balance between memory 38c3859c14SThierry Reding * throughput and memory controller power. 39c3859c14SThierry Reding */ 40c3859c14SThierry Reding #define TEGRA234_CLK_EMC 31U 4163944891SThierry Reding /** @brief output of gate CLK_ENB_FUSE */ 42fc5e0e37SMikko Perttunen #define TEGRA234_CLK_FUSE 40U 43bb747becSAkhil R /** @brief output of mux controlled by CLK_RST_CONTROLLER_CLK_SOURCE_I2C1 */ 44bb747becSAkhil R #define TEGRA234_CLK_I2C1 48U 45bb747becSAkhil R /** @brief output of mux controlled by CLK_RST_CONTROLLER_CLK_SOURCE_I2C2 */ 46bb747becSAkhil R #define TEGRA234_CLK_I2C2 49U 47bb747becSAkhil R /** @brief output of mux controlled by CLK_RST_CONTROLLER_CLK_SOURCE_I2C3 */ 48bb747becSAkhil R #define TEGRA234_CLK_I2C3 50U 49bb747becSAkhil R /** output of mux controlled by CLK_RST_CONTROLLER_CLK_SOURCE_I2C4 */ 50bb747becSAkhil R #define TEGRA234_CLK_I2C4 51U 51bb747becSAkhil R /** @brief output of mux controlled by CLK_RST_CONTROLLER_CLK_SOURCE_I2C6 */ 52bb747becSAkhil R #define TEGRA234_CLK_I2C6 52U 53bb747becSAkhil R /** @brief output of mux controlled by CLK_RST_CONTROLLER_CLK_SOURCE_I2C7 */ 54bb747becSAkhil R #define TEGRA234_CLK_I2C7 53U 55bb747becSAkhil R /** @brief output of mux controlled by CLK_RST_CONTROLLER_CLK_SOURCE_I2C8 */ 56bb747becSAkhil R #define TEGRA234_CLK_I2C8 54U 57bb747becSAkhil R /** @brief output of mux controlled by CLK_RST_CONTROLLER_CLK_SOURCE_I2C9 */ 58bb747becSAkhil R #define TEGRA234_CLK_I2C9 55U 5940efe139SSameer Pujar /** output of mux controlled by CLK_RST_CONTROLLER_CLK_SOURCE_I2S1 */ 6040efe139SSameer Pujar #define TEGRA234_CLK_I2S1 56U 6140efe139SSameer Pujar /** @brief clock recovered from I2S1 input */ 6240efe139SSameer Pujar #define TEGRA234_CLK_I2S1_SYNC_INPUT 57U 6340efe139SSameer Pujar /** @brief output of mux controlled by CLK_RST_CONTROLLER_CLK_SOURCE_I2S2 */ 6440efe139SSameer Pujar #define TEGRA234_CLK_I2S2 58U 6540efe139SSameer Pujar /** @brief clock recovered from I2S2 input */ 6640efe139SSameer Pujar #define TEGRA234_CLK_I2S2_SYNC_INPUT 59U 6740efe139SSameer Pujar /** @brief output of mux controlled by CLK_RST_CONTROLLER_CLK_SOURCE_I2S3 */ 6840efe139SSameer Pujar #define TEGRA234_CLK_I2S3 60U 6940efe139SSameer Pujar /** @brief clock recovered from I2S3 input */ 7040efe139SSameer Pujar #define TEGRA234_CLK_I2S3_SYNC_INPUT 61U 7140efe139SSameer Pujar /** output of mux controlled by CLK_RST_CONTROLLER_CLK_SOURCE_I2S4 */ 7240efe139SSameer Pujar #define TEGRA234_CLK_I2S4 62U 7340efe139SSameer Pujar /** @brief clock recovered from I2S4 input */ 7440efe139SSameer Pujar #define TEGRA234_CLK_I2S4_SYNC_INPUT 63U 7540efe139SSameer Pujar /** output of mux controlled by CLK_RST_CONTROLLER_CLK_SOURCE_I2S5 */ 7640efe139SSameer Pujar #define TEGRA234_CLK_I2S5 64U 7740efe139SSameer Pujar /** @brief clock recovered from I2S5 input */ 7840efe139SSameer Pujar #define TEGRA234_CLK_I2S5_SYNC_INPUT 65U 7940efe139SSameer Pujar /** @brief output of mux controlled by CLK_RST_CONTROLLER_CLK_SOURCE_I2S6 */ 8040efe139SSameer Pujar #define TEGRA234_CLK_I2S6 66U 8140efe139SSameer Pujar /** @brief clock recovered from I2S6 input */ 8240efe139SSameer Pujar #define TEGRA234_CLK_I2S6_SYNC_INPUT 67U 8340efe139SSameer Pujar /** PLL controlled by CLK_RST_CONTROLLER_PLLA_BASE for use by audio clocks */ 8440efe139SSameer Pujar #define TEGRA234_CLK_PLLA 93U 85bb747becSAkhil R /** @brief PLLP clk output */ 86bb747becSAkhil R #define TEGRA234_CLK_PLLP_OUT0 102U 8740efe139SSameer Pujar /** @brief output of the divider CLK_RST_CONTROLLER_PLLA_OUT */ 8840efe139SSameer Pujar #define TEGRA234_CLK_PLLA_OUT0 104U 8938eb21a5SAkhil R /** @brief output of mux controlled by CLK_RST_CONTROLLER_CLK_SOURCE_PWM1 */ 9038eb21a5SAkhil R #define TEGRA234_CLK_PWM1 105U 9138eb21a5SAkhil R /** @brief output of mux controlled by CLK_RST_CONTROLLER_CLK_SOURCE_PWM2 */ 9238eb21a5SAkhil R #define TEGRA234_CLK_PWM2 106U 9338eb21a5SAkhil R /** @brief output of mux controlled by CLK_RST_CONTROLLER_CLK_SOURCE_PWM3 */ 9438eb21a5SAkhil R #define TEGRA234_CLK_PWM3 107U 9538eb21a5SAkhil R /** @brief output of mux controlled by CLK_RST_CONTROLLER_CLK_SOURCE_PWM4 */ 9638eb21a5SAkhil R #define TEGRA234_CLK_PWM4 108U 9738eb21a5SAkhil R /** @brief output of mux controlled by CLK_RST_CONTROLLER_CLK_SOURCE_PWM5 */ 9838eb21a5SAkhil R #define TEGRA234_CLK_PWM5 109U 9938eb21a5SAkhil R /** @brief output of mux controlled by CLK_RST_CONTROLLER_CLK_SOURCE_PWM6 */ 10038eb21a5SAkhil R #define TEGRA234_CLK_PWM6 110U 10138eb21a5SAkhil R /** @brief output of mux controlled by CLK_RST_CONTROLLER_CLK_SOURCE_PWM7 */ 10238eb21a5SAkhil R #define TEGRA234_CLK_PWM7 111U 10338eb21a5SAkhil R /** @brief output of mux controlled by CLK_RST_CONTROLLER_CLK_SOURCE_PWM8 */ 10438eb21a5SAkhil R #define TEGRA234_CLK_PWM8 112U 10563944891SThierry Reding /** @brief output of mux controlled by CLK_RST_CONTROLLER_CLK_SOURCE_SDMMC4 */ 106fc5e0e37SMikko Perttunen #define TEGRA234_CLK_SDMMC4 123U 10740efe139SSameer Pujar /** @brief output of mux controlled by CLK_RST_CONTROLLER_AUDIO_SYNC_CLK_DMIC1 */ 10840efe139SSameer Pujar #define TEGRA234_CLK_SYNC_DMIC1 139U 10940efe139SSameer Pujar /** @brief output of mux controlled by CLK_RST_CONTROLLER_AUDIO_SYNC_CLK_DMIC2 */ 11040efe139SSameer Pujar #define TEGRA234_CLK_SYNC_DMIC2 140U 11140efe139SSameer Pujar /** @brief output of mux controlled by CLK_RST_CONTROLLER_AUDIO_SYNC_CLK_DMIC3 */ 11240efe139SSameer Pujar #define TEGRA234_CLK_SYNC_DMIC3 141U 11340efe139SSameer Pujar /** @brief output of mux controlled by CLK_RST_CONTROLLER_AUDIO_SYNC_CLK_DMIC4 */ 11440efe139SSameer Pujar #define TEGRA234_CLK_SYNC_DMIC4 142U 11540efe139SSameer Pujar /** @brief output of mux controlled by CLK_RST_CONTROLLER_AUDIO_SYNC_CLK_DSPK1 */ 11640efe139SSameer Pujar #define TEGRA234_CLK_SYNC_DSPK1 143U 11740efe139SSameer Pujar /** @brief output of mux controlled by CLK_RST_CONTROLLER_AUDIO_SYNC_CLK_DSPK2 */ 11840efe139SSameer Pujar #define TEGRA234_CLK_SYNC_DSPK2 144U 11940efe139SSameer Pujar /** @brief output of mux controlled by CLK_RST_CONTROLLER_AUDIO_SYNC_CLK_I2S1 */ 12040efe139SSameer Pujar #define TEGRA234_CLK_SYNC_I2S1 145U 12140efe139SSameer Pujar /** @brief output of mux controlled by CLK_RST_CONTROLLER_AUDIO_SYNC_CLK_I2S2 */ 12240efe139SSameer Pujar #define TEGRA234_CLK_SYNC_I2S2 146U 12340efe139SSameer Pujar /** @brief output of mux controlled by CLK_RST_CONTROLLER_AUDIO_SYNC_CLK_I2S3 */ 12440efe139SSameer Pujar #define TEGRA234_CLK_SYNC_I2S3 147U 12540efe139SSameer Pujar /** @brief output of mux controlled by CLK_RST_CONTROLLER_AUDIO_SYNC_CLK_I2S4 */ 12640efe139SSameer Pujar #define TEGRA234_CLK_SYNC_I2S4 148U 12740efe139SSameer Pujar /** @brief output of mux controlled by CLK_RST_CONTROLLER_AUDIO_SYNC_CLK_I2S5 */ 12840efe139SSameer Pujar #define TEGRA234_CLK_SYNC_I2S5 149U 12940efe139SSameer Pujar /** @brief output of mux controlled by CLK_RST_CONTROLLER_AUDIO_SYNC_CLK_I2S6 */ 13040efe139SSameer Pujar #define TEGRA234_CLK_SYNC_I2S6 150U 13163944891SThierry Reding /** @brief output of mux controlled by CLK_RST_CONTROLLER_CLK_SOURCE_UARTA */ 132fc5e0e37SMikko Perttunen #define TEGRA234_CLK_UARTA 155U 133fc5e0e37SMikko Perttunen /** @brief CLK_RST_CONTROLLER_CLK_SOURCE_SDMMC_LEGACY_TM switch divider output */ 134fc5e0e37SMikko Perttunen #define TEGRA234_CLK_SDMMC_LEGACY_TM 219U 135fc5e0e37SMikko Perttunen /** @brief PLL controlled by CLK_RST_CONTROLLER_PLLC4_BASE */ 136fc5e0e37SMikko Perttunen #define TEGRA234_CLK_PLLC4 237U 137fc5e0e37SMikko Perttunen /** @brief 32K input clock provided by PMIC */ 138fc5e0e37SMikko Perttunen #define TEGRA234_CLK_CLK_32K 289U 139*07d74390SMohan Kumar /** @brief CLK_RST_CONTROLLER_AZA2XBITCLK_OUT_SWITCH_DIVIDER switch divider output (aza_2xbitclk) */ 140*07d74390SMohan Kumar #define TEGRA234_CLK_AZA_2XBIT 457U 141*07d74390SMohan Kumar /** @brief aza_2xbitclk / 2 (aza_bitclk) */ 142*07d74390SMohan Kumar #define TEGRA234_CLK_AZA_BIT 458U 14363944891SThierry Reding #endif 144