18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci#ifndef __DT_BINDINGS_Q6_AFE_H__ 38c2ecf20Sopenharmony_ci#define __DT_BINDINGS_Q6_AFE_H__ 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ci/* Audio Front End (AFE) virtual ports IDs */ 68c2ecf20Sopenharmony_ci#define HDMI_RX 1 78c2ecf20Sopenharmony_ci#define SLIMBUS_0_RX 2 88c2ecf20Sopenharmony_ci#define SLIMBUS_0_TX 3 98c2ecf20Sopenharmony_ci#define SLIMBUS_1_RX 4 108c2ecf20Sopenharmony_ci#define SLIMBUS_1_TX 5 118c2ecf20Sopenharmony_ci#define SLIMBUS_2_RX 6 128c2ecf20Sopenharmony_ci#define SLIMBUS_2_TX 7 138c2ecf20Sopenharmony_ci#define SLIMBUS_3_RX 8 148c2ecf20Sopenharmony_ci#define SLIMBUS_3_TX 9 158c2ecf20Sopenharmony_ci#define SLIMBUS_4_RX 10 168c2ecf20Sopenharmony_ci#define SLIMBUS_4_TX 11 178c2ecf20Sopenharmony_ci#define SLIMBUS_5_RX 12 188c2ecf20Sopenharmony_ci#define SLIMBUS_5_TX 13 198c2ecf20Sopenharmony_ci#define SLIMBUS_6_RX 14 208c2ecf20Sopenharmony_ci#define SLIMBUS_6_TX 15 218c2ecf20Sopenharmony_ci#define PRIMARY_MI2S_RX 16 228c2ecf20Sopenharmony_ci#define PRIMARY_MI2S_TX 17 238c2ecf20Sopenharmony_ci#define SECONDARY_MI2S_RX 18 248c2ecf20Sopenharmony_ci#define SECONDARY_MI2S_TX 19 258c2ecf20Sopenharmony_ci#define TERTIARY_MI2S_RX 20 268c2ecf20Sopenharmony_ci#define TERTIARY_MI2S_TX 21 278c2ecf20Sopenharmony_ci#define QUATERNARY_MI2S_RX 22 288c2ecf20Sopenharmony_ci#define QUATERNARY_MI2S_TX 23 298c2ecf20Sopenharmony_ci#define PRIMARY_TDM_RX_0 24 308c2ecf20Sopenharmony_ci#define PRIMARY_TDM_TX_0 25 318c2ecf20Sopenharmony_ci#define PRIMARY_TDM_RX_1 26 328c2ecf20Sopenharmony_ci#define PRIMARY_TDM_TX_1 27 338c2ecf20Sopenharmony_ci#define PRIMARY_TDM_RX_2 28 348c2ecf20Sopenharmony_ci#define PRIMARY_TDM_TX_2 29 358c2ecf20Sopenharmony_ci#define PRIMARY_TDM_RX_3 30 368c2ecf20Sopenharmony_ci#define PRIMARY_TDM_TX_3 31 378c2ecf20Sopenharmony_ci#define PRIMARY_TDM_RX_4 32 388c2ecf20Sopenharmony_ci#define PRIMARY_TDM_TX_4 33 398c2ecf20Sopenharmony_ci#define PRIMARY_TDM_RX_5 34 408c2ecf20Sopenharmony_ci#define PRIMARY_TDM_TX_5 35 418c2ecf20Sopenharmony_ci#define PRIMARY_TDM_RX_6 36 428c2ecf20Sopenharmony_ci#define PRIMARY_TDM_TX_6 37 438c2ecf20Sopenharmony_ci#define PRIMARY_TDM_RX_7 38 448c2ecf20Sopenharmony_ci#define PRIMARY_TDM_TX_7 39 458c2ecf20Sopenharmony_ci#define SECONDARY_TDM_RX_0 40 468c2ecf20Sopenharmony_ci#define SECONDARY_TDM_TX_0 41 478c2ecf20Sopenharmony_ci#define SECONDARY_TDM_RX_1 42 488c2ecf20Sopenharmony_ci#define SECONDARY_TDM_TX_1 43 498c2ecf20Sopenharmony_ci#define SECONDARY_TDM_RX_2 44 508c2ecf20Sopenharmony_ci#define SECONDARY_TDM_TX_2 45 518c2ecf20Sopenharmony_ci#define SECONDARY_TDM_RX_3 46 528c2ecf20Sopenharmony_ci#define SECONDARY_TDM_TX_3 47 538c2ecf20Sopenharmony_ci#define SECONDARY_TDM_RX_4 48 548c2ecf20Sopenharmony_ci#define SECONDARY_TDM_TX_4 49 558c2ecf20Sopenharmony_ci#define SECONDARY_TDM_RX_5 50 568c2ecf20Sopenharmony_ci#define SECONDARY_TDM_TX_5 51 578c2ecf20Sopenharmony_ci#define SECONDARY_TDM_RX_6 52 588c2ecf20Sopenharmony_ci#define SECONDARY_TDM_TX_6 53 598c2ecf20Sopenharmony_ci#define SECONDARY_TDM_RX_7 54 608c2ecf20Sopenharmony_ci#define SECONDARY_TDM_TX_7 55 618c2ecf20Sopenharmony_ci#define TERTIARY_TDM_RX_0 56 628c2ecf20Sopenharmony_ci#define TERTIARY_TDM_TX_0 57 638c2ecf20Sopenharmony_ci#define TERTIARY_TDM_RX_1 58 648c2ecf20Sopenharmony_ci#define TERTIARY_TDM_TX_1 59 658c2ecf20Sopenharmony_ci#define TERTIARY_TDM_RX_2 60 668c2ecf20Sopenharmony_ci#define TERTIARY_TDM_TX_2 61 678c2ecf20Sopenharmony_ci#define TERTIARY_TDM_RX_3 62 688c2ecf20Sopenharmony_ci#define TERTIARY_TDM_TX_3 63 698c2ecf20Sopenharmony_ci#define TERTIARY_TDM_RX_4 64 708c2ecf20Sopenharmony_ci#define TERTIARY_TDM_TX_4 65 718c2ecf20Sopenharmony_ci#define TERTIARY_TDM_RX_5 66 728c2ecf20Sopenharmony_ci#define TERTIARY_TDM_TX_5 67 738c2ecf20Sopenharmony_ci#define TERTIARY_TDM_RX_6 68 748c2ecf20Sopenharmony_ci#define TERTIARY_TDM_TX_6 69 758c2ecf20Sopenharmony_ci#define TERTIARY_TDM_RX_7 70 768c2ecf20Sopenharmony_ci#define TERTIARY_TDM_TX_7 71 778c2ecf20Sopenharmony_ci#define QUATERNARY_TDM_RX_0 72 788c2ecf20Sopenharmony_ci#define QUATERNARY_TDM_TX_0 73 798c2ecf20Sopenharmony_ci#define QUATERNARY_TDM_RX_1 74 808c2ecf20Sopenharmony_ci#define QUATERNARY_TDM_TX_1 75 818c2ecf20Sopenharmony_ci#define QUATERNARY_TDM_RX_2 76 828c2ecf20Sopenharmony_ci#define QUATERNARY_TDM_TX_2 77 838c2ecf20Sopenharmony_ci#define QUATERNARY_TDM_RX_3 78 848c2ecf20Sopenharmony_ci#define QUATERNARY_TDM_TX_3 79 858c2ecf20Sopenharmony_ci#define QUATERNARY_TDM_RX_4 80 868c2ecf20Sopenharmony_ci#define QUATERNARY_TDM_TX_4 81 878c2ecf20Sopenharmony_ci#define QUATERNARY_TDM_RX_5 82 888c2ecf20Sopenharmony_ci#define QUATERNARY_TDM_TX_5 83 898c2ecf20Sopenharmony_ci#define QUATERNARY_TDM_RX_6 84 908c2ecf20Sopenharmony_ci#define QUATERNARY_TDM_TX_6 85 918c2ecf20Sopenharmony_ci#define QUATERNARY_TDM_RX_7 86 928c2ecf20Sopenharmony_ci#define QUATERNARY_TDM_TX_7 87 938c2ecf20Sopenharmony_ci#define QUINARY_TDM_RX_0 88 948c2ecf20Sopenharmony_ci#define QUINARY_TDM_TX_0 89 958c2ecf20Sopenharmony_ci#define QUINARY_TDM_RX_1 90 968c2ecf20Sopenharmony_ci#define QUINARY_TDM_TX_1 91 978c2ecf20Sopenharmony_ci#define QUINARY_TDM_RX_2 92 988c2ecf20Sopenharmony_ci#define QUINARY_TDM_TX_2 93 998c2ecf20Sopenharmony_ci#define QUINARY_TDM_RX_3 94 1008c2ecf20Sopenharmony_ci#define QUINARY_TDM_TX_3 95 1018c2ecf20Sopenharmony_ci#define QUINARY_TDM_RX_4 96 1028c2ecf20Sopenharmony_ci#define QUINARY_TDM_TX_4 97 1038c2ecf20Sopenharmony_ci#define QUINARY_TDM_RX_5 98 1048c2ecf20Sopenharmony_ci#define QUINARY_TDM_TX_5 99 1058c2ecf20Sopenharmony_ci#define QUINARY_TDM_RX_6 100 1068c2ecf20Sopenharmony_ci#define QUINARY_TDM_TX_6 101 1078c2ecf20Sopenharmony_ci#define QUINARY_TDM_RX_7 102 1088c2ecf20Sopenharmony_ci#define QUINARY_TDM_TX_7 103 1098c2ecf20Sopenharmony_ci#define DISPLAY_PORT_RX 104 1108c2ecf20Sopenharmony_ci#define WSA_CODEC_DMA_RX_0 105 1118c2ecf20Sopenharmony_ci#define WSA_CODEC_DMA_TX_0 106 1128c2ecf20Sopenharmony_ci#define WSA_CODEC_DMA_RX_1 107 1138c2ecf20Sopenharmony_ci#define WSA_CODEC_DMA_TX_1 108 1148c2ecf20Sopenharmony_ci#define WSA_CODEC_DMA_TX_2 109 1158c2ecf20Sopenharmony_ci#define VA_CODEC_DMA_TX_0 110 1168c2ecf20Sopenharmony_ci#define VA_CODEC_DMA_TX_1 111 1178c2ecf20Sopenharmony_ci#define VA_CODEC_DMA_TX_2 112 1188c2ecf20Sopenharmony_ci#define RX_CODEC_DMA_RX_0 113 1198c2ecf20Sopenharmony_ci#define TX_CODEC_DMA_TX_0 114 1208c2ecf20Sopenharmony_ci#define RX_CODEC_DMA_RX_1 115 1218c2ecf20Sopenharmony_ci#define TX_CODEC_DMA_TX_1 116 1228c2ecf20Sopenharmony_ci#define RX_CODEC_DMA_RX_2 117 1238c2ecf20Sopenharmony_ci#define TX_CODEC_DMA_TX_2 118 1248c2ecf20Sopenharmony_ci#define RX_CODEC_DMA_RX_3 119 1258c2ecf20Sopenharmony_ci#define TX_CODEC_DMA_TX_3 120 1268c2ecf20Sopenharmony_ci#define RX_CODEC_DMA_RX_4 121 1278c2ecf20Sopenharmony_ci#define TX_CODEC_DMA_TX_4 122 1288c2ecf20Sopenharmony_ci#define RX_CODEC_DMA_RX_5 123 1298c2ecf20Sopenharmony_ci#define TX_CODEC_DMA_TX_5 124 1308c2ecf20Sopenharmony_ci#define RX_CODEC_DMA_RX_6 125 1318c2ecf20Sopenharmony_ci#define RX_CODEC_DMA_RX_7 126 1328c2ecf20Sopenharmony_ci 1338c2ecf20Sopenharmony_ci#define LPASS_CLK_ID_PRI_MI2S_IBIT 1 1348c2ecf20Sopenharmony_ci#define LPASS_CLK_ID_PRI_MI2S_EBIT 2 1358c2ecf20Sopenharmony_ci#define LPASS_CLK_ID_SEC_MI2S_IBIT 3 1368c2ecf20Sopenharmony_ci#define LPASS_CLK_ID_SEC_MI2S_EBIT 4 1378c2ecf20Sopenharmony_ci#define LPASS_CLK_ID_TER_MI2S_IBIT 5 1388c2ecf20Sopenharmony_ci#define LPASS_CLK_ID_TER_MI2S_EBIT 6 1398c2ecf20Sopenharmony_ci#define LPASS_CLK_ID_QUAD_MI2S_IBIT 7 1408c2ecf20Sopenharmony_ci#define LPASS_CLK_ID_QUAD_MI2S_EBIT 8 1418c2ecf20Sopenharmony_ci#define LPASS_CLK_ID_SPEAKER_I2S_IBIT 9 1428c2ecf20Sopenharmony_ci#define LPASS_CLK_ID_SPEAKER_I2S_EBIT 10 1438c2ecf20Sopenharmony_ci#define LPASS_CLK_ID_SPEAKER_I2S_OSR 11 1448c2ecf20Sopenharmony_ci#define LPASS_CLK_ID_QUI_MI2S_IBIT 12 1458c2ecf20Sopenharmony_ci#define LPASS_CLK_ID_QUI_MI2S_EBIT 13 1468c2ecf20Sopenharmony_ci#define LPASS_CLK_ID_SEN_MI2S_IBIT 14 1478c2ecf20Sopenharmony_ci#define LPASS_CLK_ID_SEN_MI2S_EBIT 15 1488c2ecf20Sopenharmony_ci#define LPASS_CLK_ID_INT0_MI2S_IBIT 16 1498c2ecf20Sopenharmony_ci#define LPASS_CLK_ID_INT1_MI2S_IBIT 17 1508c2ecf20Sopenharmony_ci#define LPASS_CLK_ID_INT2_MI2S_IBIT 18 1518c2ecf20Sopenharmony_ci#define LPASS_CLK_ID_INT3_MI2S_IBIT 19 1528c2ecf20Sopenharmony_ci#define LPASS_CLK_ID_INT4_MI2S_IBIT 20 1538c2ecf20Sopenharmony_ci#define LPASS_CLK_ID_INT5_MI2S_IBIT 21 1548c2ecf20Sopenharmony_ci#define LPASS_CLK_ID_INT6_MI2S_IBIT 22 1558c2ecf20Sopenharmony_ci#define LPASS_CLK_ID_QUI_MI2S_OSR 23 1568c2ecf20Sopenharmony_ci#define LPASS_CLK_ID_PRI_PCM_IBIT 24 1578c2ecf20Sopenharmony_ci#define LPASS_CLK_ID_PRI_PCM_EBIT 25 1588c2ecf20Sopenharmony_ci#define LPASS_CLK_ID_SEC_PCM_IBIT 26 1598c2ecf20Sopenharmony_ci#define LPASS_CLK_ID_SEC_PCM_EBIT 27 1608c2ecf20Sopenharmony_ci#define LPASS_CLK_ID_TER_PCM_IBIT 28 1618c2ecf20Sopenharmony_ci#define LPASS_CLK_ID_TER_PCM_EBIT 29 1628c2ecf20Sopenharmony_ci#define LPASS_CLK_ID_QUAD_PCM_IBIT 30 1638c2ecf20Sopenharmony_ci#define LPASS_CLK_ID_QUAD_PCM_EBIT 31 1648c2ecf20Sopenharmony_ci#define LPASS_CLK_ID_QUIN_PCM_IBIT 32 1658c2ecf20Sopenharmony_ci#define LPASS_CLK_ID_QUIN_PCM_EBIT 33 1668c2ecf20Sopenharmony_ci#define LPASS_CLK_ID_QUI_PCM_OSR 34 1678c2ecf20Sopenharmony_ci#define LPASS_CLK_ID_PRI_TDM_IBIT 35 1688c2ecf20Sopenharmony_ci#define LPASS_CLK_ID_PRI_TDM_EBIT 36 1698c2ecf20Sopenharmony_ci#define LPASS_CLK_ID_SEC_TDM_IBIT 37 1708c2ecf20Sopenharmony_ci#define LPASS_CLK_ID_SEC_TDM_EBIT 38 1718c2ecf20Sopenharmony_ci#define LPASS_CLK_ID_TER_TDM_IBIT 39 1728c2ecf20Sopenharmony_ci#define LPASS_CLK_ID_TER_TDM_EBIT 40 1738c2ecf20Sopenharmony_ci#define LPASS_CLK_ID_QUAD_TDM_IBIT 41 1748c2ecf20Sopenharmony_ci#define LPASS_CLK_ID_QUAD_TDM_EBIT 42 1758c2ecf20Sopenharmony_ci#define LPASS_CLK_ID_QUIN_TDM_IBIT 43 1768c2ecf20Sopenharmony_ci#define LPASS_CLK_ID_QUIN_TDM_EBIT 44 1778c2ecf20Sopenharmony_ci#define LPASS_CLK_ID_QUIN_TDM_OSR 45 1788c2ecf20Sopenharmony_ci#define LPASS_CLK_ID_MCLK_1 46 1798c2ecf20Sopenharmony_ci#define LPASS_CLK_ID_MCLK_2 47 1808c2ecf20Sopenharmony_ci#define LPASS_CLK_ID_MCLK_3 48 1818c2ecf20Sopenharmony_ci#define LPASS_CLK_ID_MCLK_4 49 1828c2ecf20Sopenharmony_ci#define LPASS_CLK_ID_INTERNAL_DIGITAL_CODEC_CORE 50 1838c2ecf20Sopenharmony_ci#define LPASS_CLK_ID_INT_MCLK_0 51 1848c2ecf20Sopenharmony_ci#define LPASS_CLK_ID_INT_MCLK_1 52 1858c2ecf20Sopenharmony_ci#define LPASS_CLK_ID_MCLK_5 53 1868c2ecf20Sopenharmony_ci#define LPASS_CLK_ID_WSA_CORE_MCLK 54 1878c2ecf20Sopenharmony_ci#define LPASS_CLK_ID_WSA_CORE_NPL_MCLK 55 1888c2ecf20Sopenharmony_ci#define LPASS_CLK_ID_VA_CORE_MCLK 56 1898c2ecf20Sopenharmony_ci#define LPASS_CLK_ID_TX_CORE_MCLK 57 1908c2ecf20Sopenharmony_ci#define LPASS_CLK_ID_TX_CORE_NPL_MCLK 58 1918c2ecf20Sopenharmony_ci#define LPASS_CLK_ID_RX_CORE_MCLK 59 1928c2ecf20Sopenharmony_ci#define LPASS_CLK_ID_RX_CORE_NPL_MCLK 60 1938c2ecf20Sopenharmony_ci#define LPASS_CLK_ID_VA_CORE_2X_MCLK 61 1948c2ecf20Sopenharmony_ci 1958c2ecf20Sopenharmony_ci#define LPASS_HW_AVTIMER_VOTE 101 1968c2ecf20Sopenharmony_ci#define LPASS_HW_MACRO_VOTE 102 1978c2ecf20Sopenharmony_ci#define LPASS_HW_DCODEC_VOTE 103 1988c2ecf20Sopenharmony_ci 1998c2ecf20Sopenharmony_ci#define Q6AFE_MAX_CLK_ID 104 2008c2ecf20Sopenharmony_ci 2018c2ecf20Sopenharmony_ci#define LPASS_CLK_ATTRIBUTE_INVALID 0x0 2028c2ecf20Sopenharmony_ci#define LPASS_CLK_ATTRIBUTE_COUPLE_NO 0x1 2038c2ecf20Sopenharmony_ci#define LPASS_CLK_ATTRIBUTE_COUPLE_DIVIDEND 0x2 2048c2ecf20Sopenharmony_ci#define LPASS_CLK_ATTRIBUTE_COUPLE_DIVISOR 0x3 2058c2ecf20Sopenharmony_ci 2068c2ecf20Sopenharmony_ci#endif /* __DT_BINDINGS_Q6_AFE_H__ */ 207