162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 262306a36Sopenharmony_ci#ifndef __DT_BINDINGS_Q6_AUDIO_PORTS_H__ 362306a36Sopenharmony_ci#define __DT_BINDINGS_Q6_AUDIO_PORTS_H__ 462306a36Sopenharmony_ci 562306a36Sopenharmony_ci/* LPASS Audio virtual ports IDs */ 662306a36Sopenharmony_ci#define HDMI_RX 1 762306a36Sopenharmony_ci#define SLIMBUS_0_RX 2 862306a36Sopenharmony_ci#define SLIMBUS_0_TX 3 962306a36Sopenharmony_ci#define SLIMBUS_1_RX 4 1062306a36Sopenharmony_ci#define SLIMBUS_1_TX 5 1162306a36Sopenharmony_ci#define SLIMBUS_2_RX 6 1262306a36Sopenharmony_ci#define SLIMBUS_2_TX 7 1362306a36Sopenharmony_ci#define SLIMBUS_3_RX 8 1462306a36Sopenharmony_ci#define SLIMBUS_3_TX 9 1562306a36Sopenharmony_ci#define SLIMBUS_4_RX 10 1662306a36Sopenharmony_ci#define SLIMBUS_4_TX 11 1762306a36Sopenharmony_ci#define SLIMBUS_5_RX 12 1862306a36Sopenharmony_ci#define SLIMBUS_5_TX 13 1962306a36Sopenharmony_ci#define SLIMBUS_6_RX 14 2062306a36Sopenharmony_ci#define SLIMBUS_6_TX 15 2162306a36Sopenharmony_ci#define PRIMARY_MI2S_RX 16 2262306a36Sopenharmony_ci#define PRIMARY_MI2S_TX 17 2362306a36Sopenharmony_ci#define SECONDARY_MI2S_RX 18 2462306a36Sopenharmony_ci#define SECONDARY_MI2S_TX 19 2562306a36Sopenharmony_ci#define TERTIARY_MI2S_RX 20 2662306a36Sopenharmony_ci#define TERTIARY_MI2S_TX 21 2762306a36Sopenharmony_ci#define QUATERNARY_MI2S_RX 22 2862306a36Sopenharmony_ci#define QUATERNARY_MI2S_TX 23 2962306a36Sopenharmony_ci#define PRIMARY_TDM_RX_0 24 3062306a36Sopenharmony_ci#define PRIMARY_TDM_TX_0 25 3162306a36Sopenharmony_ci#define PRIMARY_TDM_RX_1 26 3262306a36Sopenharmony_ci#define PRIMARY_TDM_TX_1 27 3362306a36Sopenharmony_ci#define PRIMARY_TDM_RX_2 28 3462306a36Sopenharmony_ci#define PRIMARY_TDM_TX_2 29 3562306a36Sopenharmony_ci#define PRIMARY_TDM_RX_3 30 3662306a36Sopenharmony_ci#define PRIMARY_TDM_TX_3 31 3762306a36Sopenharmony_ci#define PRIMARY_TDM_RX_4 32 3862306a36Sopenharmony_ci#define PRIMARY_TDM_TX_4 33 3962306a36Sopenharmony_ci#define PRIMARY_TDM_RX_5 34 4062306a36Sopenharmony_ci#define PRIMARY_TDM_TX_5 35 4162306a36Sopenharmony_ci#define PRIMARY_TDM_RX_6 36 4262306a36Sopenharmony_ci#define PRIMARY_TDM_TX_6 37 4362306a36Sopenharmony_ci#define PRIMARY_TDM_RX_7 38 4462306a36Sopenharmony_ci#define PRIMARY_TDM_TX_7 39 4562306a36Sopenharmony_ci#define SECONDARY_TDM_RX_0 40 4662306a36Sopenharmony_ci#define SECONDARY_TDM_TX_0 41 4762306a36Sopenharmony_ci#define SECONDARY_TDM_RX_1 42 4862306a36Sopenharmony_ci#define SECONDARY_TDM_TX_1 43 4962306a36Sopenharmony_ci#define SECONDARY_TDM_RX_2 44 5062306a36Sopenharmony_ci#define SECONDARY_TDM_TX_2 45 5162306a36Sopenharmony_ci#define SECONDARY_TDM_RX_3 46 5262306a36Sopenharmony_ci#define SECONDARY_TDM_TX_3 47 5362306a36Sopenharmony_ci#define SECONDARY_TDM_RX_4 48 5462306a36Sopenharmony_ci#define SECONDARY_TDM_TX_4 49 5562306a36Sopenharmony_ci#define SECONDARY_TDM_RX_5 50 5662306a36Sopenharmony_ci#define SECONDARY_TDM_TX_5 51 5762306a36Sopenharmony_ci#define SECONDARY_TDM_RX_6 52 5862306a36Sopenharmony_ci#define SECONDARY_TDM_TX_6 53 5962306a36Sopenharmony_ci#define SECONDARY_TDM_RX_7 54 6062306a36Sopenharmony_ci#define SECONDARY_TDM_TX_7 55 6162306a36Sopenharmony_ci#define TERTIARY_TDM_RX_0 56 6262306a36Sopenharmony_ci#define TERTIARY_TDM_TX_0 57 6362306a36Sopenharmony_ci#define TERTIARY_TDM_RX_1 58 6462306a36Sopenharmony_ci#define TERTIARY_TDM_TX_1 59 6562306a36Sopenharmony_ci#define TERTIARY_TDM_RX_2 60 6662306a36Sopenharmony_ci#define TERTIARY_TDM_TX_2 61 6762306a36Sopenharmony_ci#define TERTIARY_TDM_RX_3 62 6862306a36Sopenharmony_ci#define TERTIARY_TDM_TX_3 63 6962306a36Sopenharmony_ci#define TERTIARY_TDM_RX_4 64 7062306a36Sopenharmony_ci#define TERTIARY_TDM_TX_4 65 7162306a36Sopenharmony_ci#define TERTIARY_TDM_RX_5 66 7262306a36Sopenharmony_ci#define TERTIARY_TDM_TX_5 67 7362306a36Sopenharmony_ci#define TERTIARY_TDM_RX_6 68 7462306a36Sopenharmony_ci#define TERTIARY_TDM_TX_6 69 7562306a36Sopenharmony_ci#define TERTIARY_TDM_RX_7 70 7662306a36Sopenharmony_ci#define TERTIARY_TDM_TX_7 71 7762306a36Sopenharmony_ci#define QUATERNARY_TDM_RX_0 72 7862306a36Sopenharmony_ci#define QUATERNARY_TDM_TX_0 73 7962306a36Sopenharmony_ci#define QUATERNARY_TDM_RX_1 74 8062306a36Sopenharmony_ci#define QUATERNARY_TDM_TX_1 75 8162306a36Sopenharmony_ci#define QUATERNARY_TDM_RX_2 76 8262306a36Sopenharmony_ci#define QUATERNARY_TDM_TX_2 77 8362306a36Sopenharmony_ci#define QUATERNARY_TDM_RX_3 78 8462306a36Sopenharmony_ci#define QUATERNARY_TDM_TX_3 79 8562306a36Sopenharmony_ci#define QUATERNARY_TDM_RX_4 80 8662306a36Sopenharmony_ci#define QUATERNARY_TDM_TX_4 81 8762306a36Sopenharmony_ci#define QUATERNARY_TDM_RX_5 82 8862306a36Sopenharmony_ci#define QUATERNARY_TDM_TX_5 83 8962306a36Sopenharmony_ci#define QUATERNARY_TDM_RX_6 84 9062306a36Sopenharmony_ci#define QUATERNARY_TDM_TX_6 85 9162306a36Sopenharmony_ci#define QUATERNARY_TDM_RX_7 86 9262306a36Sopenharmony_ci#define QUATERNARY_TDM_TX_7 87 9362306a36Sopenharmony_ci#define QUINARY_TDM_RX_0 88 9462306a36Sopenharmony_ci#define QUINARY_TDM_TX_0 89 9562306a36Sopenharmony_ci#define QUINARY_TDM_RX_1 90 9662306a36Sopenharmony_ci#define QUINARY_TDM_TX_1 91 9762306a36Sopenharmony_ci#define QUINARY_TDM_RX_2 92 9862306a36Sopenharmony_ci#define QUINARY_TDM_TX_2 93 9962306a36Sopenharmony_ci#define QUINARY_TDM_RX_3 94 10062306a36Sopenharmony_ci#define QUINARY_TDM_TX_3 95 10162306a36Sopenharmony_ci#define QUINARY_TDM_RX_4 96 10262306a36Sopenharmony_ci#define QUINARY_TDM_TX_4 97 10362306a36Sopenharmony_ci#define QUINARY_TDM_RX_5 98 10462306a36Sopenharmony_ci#define QUINARY_TDM_TX_5 99 10562306a36Sopenharmony_ci#define QUINARY_TDM_RX_6 100 10662306a36Sopenharmony_ci#define QUINARY_TDM_TX_6 101 10762306a36Sopenharmony_ci#define QUINARY_TDM_RX_7 102 10862306a36Sopenharmony_ci#define QUINARY_TDM_TX_7 103 10962306a36Sopenharmony_ci#define DISPLAY_PORT_RX 104 11062306a36Sopenharmony_ci#define WSA_CODEC_DMA_RX_0 105 11162306a36Sopenharmony_ci#define WSA_CODEC_DMA_TX_0 106 11262306a36Sopenharmony_ci#define WSA_CODEC_DMA_RX_1 107 11362306a36Sopenharmony_ci#define WSA_CODEC_DMA_TX_1 108 11462306a36Sopenharmony_ci#define WSA_CODEC_DMA_TX_2 109 11562306a36Sopenharmony_ci#define VA_CODEC_DMA_TX_0 110 11662306a36Sopenharmony_ci#define VA_CODEC_DMA_TX_1 111 11762306a36Sopenharmony_ci#define VA_CODEC_DMA_TX_2 112 11862306a36Sopenharmony_ci#define RX_CODEC_DMA_RX_0 113 11962306a36Sopenharmony_ci#define TX_CODEC_DMA_TX_0 114 12062306a36Sopenharmony_ci#define RX_CODEC_DMA_RX_1 115 12162306a36Sopenharmony_ci#define TX_CODEC_DMA_TX_1 116 12262306a36Sopenharmony_ci#define RX_CODEC_DMA_RX_2 117 12362306a36Sopenharmony_ci#define TX_CODEC_DMA_TX_2 118 12462306a36Sopenharmony_ci#define RX_CODEC_DMA_RX_3 119 12562306a36Sopenharmony_ci#define TX_CODEC_DMA_TX_3 120 12662306a36Sopenharmony_ci#define RX_CODEC_DMA_RX_4 121 12762306a36Sopenharmony_ci#define TX_CODEC_DMA_TX_4 122 12862306a36Sopenharmony_ci#define RX_CODEC_DMA_RX_5 123 12962306a36Sopenharmony_ci#define TX_CODEC_DMA_TX_5 124 13062306a36Sopenharmony_ci#define RX_CODEC_DMA_RX_6 125 13162306a36Sopenharmony_ci#define RX_CODEC_DMA_RX_7 126 13262306a36Sopenharmony_ci#define QUINARY_MI2S_RX 127 13362306a36Sopenharmony_ci#define QUINARY_MI2S_TX 128 13462306a36Sopenharmony_ci#define DISPLAY_PORT_RX_0 DISPLAY_PORT_RX 13562306a36Sopenharmony_ci#define DISPLAY_PORT_RX_1 129 13662306a36Sopenharmony_ci#define DISPLAY_PORT_RX_2 130 13762306a36Sopenharmony_ci#define DISPLAY_PORT_RX_3 131 13862306a36Sopenharmony_ci#define DISPLAY_PORT_RX_4 132 13962306a36Sopenharmony_ci#define DISPLAY_PORT_RX_5 133 14062306a36Sopenharmony_ci#define DISPLAY_PORT_RX_6 134 14162306a36Sopenharmony_ci#define DISPLAY_PORT_RX_7 135 14262306a36Sopenharmony_ci 14362306a36Sopenharmony_ci#define LPASS_CLK_ID_PRI_MI2S_IBIT 1 14462306a36Sopenharmony_ci#define LPASS_CLK_ID_PRI_MI2S_EBIT 2 14562306a36Sopenharmony_ci#define LPASS_CLK_ID_SEC_MI2S_IBIT 3 14662306a36Sopenharmony_ci#define LPASS_CLK_ID_SEC_MI2S_EBIT 4 14762306a36Sopenharmony_ci#define LPASS_CLK_ID_TER_MI2S_IBIT 5 14862306a36Sopenharmony_ci#define LPASS_CLK_ID_TER_MI2S_EBIT 6 14962306a36Sopenharmony_ci#define LPASS_CLK_ID_QUAD_MI2S_IBIT 7 15062306a36Sopenharmony_ci#define LPASS_CLK_ID_QUAD_MI2S_EBIT 8 15162306a36Sopenharmony_ci#define LPASS_CLK_ID_SPEAKER_I2S_IBIT 9 15262306a36Sopenharmony_ci#define LPASS_CLK_ID_SPEAKER_I2S_EBIT 10 15362306a36Sopenharmony_ci#define LPASS_CLK_ID_SPEAKER_I2S_OSR 11 15462306a36Sopenharmony_ci#define LPASS_CLK_ID_QUI_MI2S_IBIT 12 15562306a36Sopenharmony_ci#define LPASS_CLK_ID_QUI_MI2S_EBIT 13 15662306a36Sopenharmony_ci#define LPASS_CLK_ID_SEN_MI2S_IBIT 14 15762306a36Sopenharmony_ci#define LPASS_CLK_ID_SEN_MI2S_EBIT 15 15862306a36Sopenharmony_ci#define LPASS_CLK_ID_INT0_MI2S_IBIT 16 15962306a36Sopenharmony_ci#define LPASS_CLK_ID_INT1_MI2S_IBIT 17 16062306a36Sopenharmony_ci#define LPASS_CLK_ID_INT2_MI2S_IBIT 18 16162306a36Sopenharmony_ci#define LPASS_CLK_ID_INT3_MI2S_IBIT 19 16262306a36Sopenharmony_ci#define LPASS_CLK_ID_INT4_MI2S_IBIT 20 16362306a36Sopenharmony_ci#define LPASS_CLK_ID_INT5_MI2S_IBIT 21 16462306a36Sopenharmony_ci#define LPASS_CLK_ID_INT6_MI2S_IBIT 22 16562306a36Sopenharmony_ci#define LPASS_CLK_ID_QUI_MI2S_OSR 23 16662306a36Sopenharmony_ci#define LPASS_CLK_ID_PRI_PCM_IBIT 24 16762306a36Sopenharmony_ci#define LPASS_CLK_ID_PRI_PCM_EBIT 25 16862306a36Sopenharmony_ci#define LPASS_CLK_ID_SEC_PCM_IBIT 26 16962306a36Sopenharmony_ci#define LPASS_CLK_ID_SEC_PCM_EBIT 27 17062306a36Sopenharmony_ci#define LPASS_CLK_ID_TER_PCM_IBIT 28 17162306a36Sopenharmony_ci#define LPASS_CLK_ID_TER_PCM_EBIT 29 17262306a36Sopenharmony_ci#define LPASS_CLK_ID_QUAD_PCM_IBIT 30 17362306a36Sopenharmony_ci#define LPASS_CLK_ID_QUAD_PCM_EBIT 31 17462306a36Sopenharmony_ci#define LPASS_CLK_ID_QUIN_PCM_IBIT 32 17562306a36Sopenharmony_ci#define LPASS_CLK_ID_QUIN_PCM_EBIT 33 17662306a36Sopenharmony_ci#define LPASS_CLK_ID_QUI_PCM_OSR 34 17762306a36Sopenharmony_ci#define LPASS_CLK_ID_PRI_TDM_IBIT 35 17862306a36Sopenharmony_ci#define LPASS_CLK_ID_PRI_TDM_EBIT 36 17962306a36Sopenharmony_ci#define LPASS_CLK_ID_SEC_TDM_IBIT 37 18062306a36Sopenharmony_ci#define LPASS_CLK_ID_SEC_TDM_EBIT 38 18162306a36Sopenharmony_ci#define LPASS_CLK_ID_TER_TDM_IBIT 39 18262306a36Sopenharmony_ci#define LPASS_CLK_ID_TER_TDM_EBIT 40 18362306a36Sopenharmony_ci#define LPASS_CLK_ID_QUAD_TDM_IBIT 41 18462306a36Sopenharmony_ci#define LPASS_CLK_ID_QUAD_TDM_EBIT 42 18562306a36Sopenharmony_ci#define LPASS_CLK_ID_QUIN_TDM_IBIT 43 18662306a36Sopenharmony_ci#define LPASS_CLK_ID_QUIN_TDM_EBIT 44 18762306a36Sopenharmony_ci#define LPASS_CLK_ID_QUIN_TDM_OSR 45 18862306a36Sopenharmony_ci#define LPASS_CLK_ID_MCLK_1 46 18962306a36Sopenharmony_ci#define LPASS_CLK_ID_MCLK_2 47 19062306a36Sopenharmony_ci#define LPASS_CLK_ID_MCLK_3 48 19162306a36Sopenharmony_ci#define LPASS_CLK_ID_MCLK_4 49 19262306a36Sopenharmony_ci#define LPASS_CLK_ID_INTERNAL_DIGITAL_CODEC_CORE 50 19362306a36Sopenharmony_ci#define LPASS_CLK_ID_INT_MCLK_0 51 19462306a36Sopenharmony_ci#define LPASS_CLK_ID_INT_MCLK_1 52 19562306a36Sopenharmony_ci#define LPASS_CLK_ID_MCLK_5 53 19662306a36Sopenharmony_ci#define LPASS_CLK_ID_WSA_CORE_MCLK 54 19762306a36Sopenharmony_ci#define LPASS_CLK_ID_WSA_CORE_NPL_MCLK 55 19862306a36Sopenharmony_ci#define LPASS_CLK_ID_VA_CORE_MCLK 56 19962306a36Sopenharmony_ci#define LPASS_CLK_ID_TX_CORE_MCLK 57 20062306a36Sopenharmony_ci#define LPASS_CLK_ID_TX_CORE_NPL_MCLK 58 20162306a36Sopenharmony_ci#define LPASS_CLK_ID_RX_CORE_MCLK 59 20262306a36Sopenharmony_ci#define LPASS_CLK_ID_RX_CORE_NPL_MCLK 60 20362306a36Sopenharmony_ci#define LPASS_CLK_ID_VA_CORE_2X_MCLK 61 20462306a36Sopenharmony_ci/* Clock ID for MCLK for WSA2 core */ 20562306a36Sopenharmony_ci#define LPASS_CLK_ID_WSA2_CORE_MCLK 62 20662306a36Sopenharmony_ci/* Clock ID for NPL MCLK for WSA2 core */ 20762306a36Sopenharmony_ci#define LPASS_CLK_ID_WSA2_CORE_2X_MCLK 63 20862306a36Sopenharmony_ci/* Clock ID for RX Core TX MCLK */ 20962306a36Sopenharmony_ci#define LPASS_CLK_ID_RX_CORE_TX_MCLK 64 21062306a36Sopenharmony_ci/* Clock ID for RX CORE TX 2X MCLK */ 21162306a36Sopenharmony_ci#define LPASS_CLK_ID_RX_CORE_TX_2X_MCLK 65 21262306a36Sopenharmony_ci/* Clock ID for WSA core TX MCLK */ 21362306a36Sopenharmony_ci#define LPASS_CLK_ID_WSA_CORE_TX_MCLK 66 21462306a36Sopenharmony_ci/* Clock ID for WSA core TX 2X MCLK */ 21562306a36Sopenharmony_ci#define LPASS_CLK_ID_WSA_CORE_TX_2X_MCLK 67 21662306a36Sopenharmony_ci/* Clock ID for WSA2 core TX MCLK */ 21762306a36Sopenharmony_ci#define LPASS_CLK_ID_WSA2_CORE_TX_MCLK 68 21862306a36Sopenharmony_ci/* Clock ID for WSA2 core TX 2X MCLK */ 21962306a36Sopenharmony_ci#define LPASS_CLK_ID_WSA2_CORE_TX_2X_MCLK 69 22062306a36Sopenharmony_ci/* Clock ID for RX CORE MCLK2 2X MCLK */ 22162306a36Sopenharmony_ci#define LPASS_CLK_ID_RX_CORE_MCLK2_2X_MCLK 70 22262306a36Sopenharmony_ci 22362306a36Sopenharmony_ci#define LPASS_HW_AVTIMER_VOTE 101 22462306a36Sopenharmony_ci#define LPASS_HW_MACRO_VOTE 102 22562306a36Sopenharmony_ci#define LPASS_HW_DCODEC_VOTE 103 22662306a36Sopenharmony_ci 22762306a36Sopenharmony_ci#define Q6AFE_MAX_CLK_ID 104 22862306a36Sopenharmony_ci 22962306a36Sopenharmony_ci#define LPASS_CLK_ATTRIBUTE_INVALID 0x0 23062306a36Sopenharmony_ci#define LPASS_CLK_ATTRIBUTE_COUPLE_NO 0x1 23162306a36Sopenharmony_ci#define LPASS_CLK_ATTRIBUTE_COUPLE_DIVIDEND 0x2 23262306a36Sopenharmony_ci#define LPASS_CLK_ATTRIBUTE_COUPLE_DIVISOR 0x3 23362306a36Sopenharmony_ci 23462306a36Sopenharmony_ci#endif /* __DT_BINDINGS_Q6_AUDIO_PORTS_H__ */ 235