18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Copyright (c) 2019 MediaTek Inc.
48c2ecf20Sopenharmony_ci * Author: Bibby Hsieh <bibby.hsieh@mediatek.com>
58c2ecf20Sopenharmony_ci *
68c2ecf20Sopenharmony_ci */
78c2ecf20Sopenharmony_ci
88c2ecf20Sopenharmony_ci#ifndef _DT_BINDINGS_GCE_MT8183_H
98c2ecf20Sopenharmony_ci#define _DT_BINDINGS_GCE_MT8183_H
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ci#define CMDQ_NO_TIMEOUT		0xffffffff
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ci/* GCE HW thread priority */
148c2ecf20Sopenharmony_ci#define CMDQ_THR_PRIO_LOWEST	0
158c2ecf20Sopenharmony_ci#define CMDQ_THR_PRIO_HIGHEST	1
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ci/* GCE SUBSYS */
188c2ecf20Sopenharmony_ci#define SUBSYS_1300XXXX		0
198c2ecf20Sopenharmony_ci#define SUBSYS_1400XXXX		1
208c2ecf20Sopenharmony_ci#define SUBSYS_1401XXXX		2
218c2ecf20Sopenharmony_ci#define SUBSYS_1402XXXX		3
228c2ecf20Sopenharmony_ci#define SUBSYS_1502XXXX		4
238c2ecf20Sopenharmony_ci#define SUBSYS_1880XXXX		5
248c2ecf20Sopenharmony_ci#define SUBSYS_1881XXXX		6
258c2ecf20Sopenharmony_ci#define SUBSYS_1882XXXX		7
268c2ecf20Sopenharmony_ci#define SUBSYS_1883XXXX		8
278c2ecf20Sopenharmony_ci#define SUBSYS_1884XXXX		9
288c2ecf20Sopenharmony_ci#define SUBSYS_1000XXXX		10
298c2ecf20Sopenharmony_ci#define SUBSYS_1001XXXX		11
308c2ecf20Sopenharmony_ci#define SUBSYS_1002XXXX		12
318c2ecf20Sopenharmony_ci#define SUBSYS_1003XXXX		13
328c2ecf20Sopenharmony_ci#define SUBSYS_1004XXXX		14
338c2ecf20Sopenharmony_ci#define SUBSYS_1005XXXX		15
348c2ecf20Sopenharmony_ci#define SUBSYS_1020XXXX		16
358c2ecf20Sopenharmony_ci#define SUBSYS_1028XXXX		17
368c2ecf20Sopenharmony_ci#define SUBSYS_1700XXXX		18
378c2ecf20Sopenharmony_ci#define SUBSYS_1701XXXX		19
388c2ecf20Sopenharmony_ci#define SUBSYS_1702XXXX		20
398c2ecf20Sopenharmony_ci#define SUBSYS_1703XXXX		21
408c2ecf20Sopenharmony_ci#define SUBSYS_1800XXXX		22
418c2ecf20Sopenharmony_ci#define SUBSYS_1801XXXX		23
428c2ecf20Sopenharmony_ci#define SUBSYS_1802XXXX		24
438c2ecf20Sopenharmony_ci#define SUBSYS_1804XXXX		25
448c2ecf20Sopenharmony_ci#define SUBSYS_1805XXXX		26
458c2ecf20Sopenharmony_ci#define SUBSYS_1808XXXX		27
468c2ecf20Sopenharmony_ci#define SUBSYS_180aXXXX		28
478c2ecf20Sopenharmony_ci#define SUBSYS_180bXXXX		29
488c2ecf20Sopenharmony_ci
498c2ecf20Sopenharmony_ci#define CMDQ_EVENT_DISP_RDMA0_SOF					0
508c2ecf20Sopenharmony_ci#define CMDQ_EVENT_DISP_RDMA1_SOF					1
518c2ecf20Sopenharmony_ci#define CMDQ_EVENT_MDP_RDMA0_SOF					2
528c2ecf20Sopenharmony_ci#define CMDQ_EVENT_MDP_RSZ0_SOF						4
538c2ecf20Sopenharmony_ci#define CMDQ_EVENT_MDP_RSZ1_SOF						5
548c2ecf20Sopenharmony_ci#define CMDQ_EVENT_MDP_TDSHP_SOF					6
558c2ecf20Sopenharmony_ci#define CMDQ_EVENT_MDP_WROT0_SOF					7
568c2ecf20Sopenharmony_ci#define CMDQ_EVENT_MDP_WDMA0_SOF					8
578c2ecf20Sopenharmony_ci#define CMDQ_EVENT_DISP_OVL0_SOF					9
588c2ecf20Sopenharmony_ci#define CMDQ_EVENT_DISP_OVL0_2L_SOF					10
598c2ecf20Sopenharmony_ci#define CMDQ_EVENT_DISP_OVL1_2L_SOF					11
608c2ecf20Sopenharmony_ci#define CMDQ_EVENT_DISP_WDMA0_SOF					12
618c2ecf20Sopenharmony_ci#define CMDQ_EVENT_DISP_COLOR0_SOF					13
628c2ecf20Sopenharmony_ci#define CMDQ_EVENT_DISP_CCORR0_SOF					14
638c2ecf20Sopenharmony_ci#define CMDQ_EVENT_DISP_AAL0_SOF					15
648c2ecf20Sopenharmony_ci#define CMDQ_EVENT_DISP_GAMMA0_SOF					16
658c2ecf20Sopenharmony_ci#define CMDQ_EVENT_DISP_DITHER0_SOF					17
668c2ecf20Sopenharmony_ci#define CMDQ_EVENT_DISP_PWM0_SOF					18
678c2ecf20Sopenharmony_ci#define CMDQ_EVENT_DISP_DSI0_SOF					19
688c2ecf20Sopenharmony_ci#define CMDQ_EVENT_DISP_DPI0_SOF					20
698c2ecf20Sopenharmony_ci#define CMDQ_EVENT_DISP_RSZ_SOF						22
708c2ecf20Sopenharmony_ci#define CMDQ_EVENT_MDP_AAL_SOF						23
718c2ecf20Sopenharmony_ci#define CMDQ_EVENT_MDP_CCORR_SOF					24
728c2ecf20Sopenharmony_ci#define CMDQ_EVENT_DISP_DBI_SOF						25
738c2ecf20Sopenharmony_ci#define CMDQ_EVENT_DISP_RDMA0_EOF					26
748c2ecf20Sopenharmony_ci#define CMDQ_EVENT_DISP_RDMA1_EOF					27
758c2ecf20Sopenharmony_ci#define CMDQ_EVENT_MDP_RDMA0_EOF					28
768c2ecf20Sopenharmony_ci#define CMDQ_EVENT_MDP_RSZ0_EOF						30
778c2ecf20Sopenharmony_ci#define CMDQ_EVENT_MDP_RSZ1_EOF						31
788c2ecf20Sopenharmony_ci#define CMDQ_EVENT_MDP_TDSHP_EOF					32
798c2ecf20Sopenharmony_ci#define CMDQ_EVENT_MDP_WROT0_EOF					33
808c2ecf20Sopenharmony_ci#define CMDQ_EVENT_MDP_WDMA0_EOF					34
818c2ecf20Sopenharmony_ci#define CMDQ_EVENT_DISP_OVL0_EOF					35
828c2ecf20Sopenharmony_ci#define CMDQ_EVENT_DISP_OVL0_2L_EOF					36
838c2ecf20Sopenharmony_ci#define CMDQ_EVENT_DISP_OVL1_2L_EOF					37
848c2ecf20Sopenharmony_ci#define CMDQ_EVENT_DISP_WDMA0_EOF					38
858c2ecf20Sopenharmony_ci#define CMDQ_EVENT_DISP_COLOR0_EOF					39
868c2ecf20Sopenharmony_ci#define CMDQ_EVENT_DISP_CCORR0_EOF					40
878c2ecf20Sopenharmony_ci#define CMDQ_EVENT_DISP_AAL0_EOF					41
888c2ecf20Sopenharmony_ci#define CMDQ_EVENT_DISP_GAMMA0_EOF					42
898c2ecf20Sopenharmony_ci#define CMDQ_EVENT_DISP_DITHER0_EOF					43
908c2ecf20Sopenharmony_ci#define CMDQ_EVENT_DSI0_EOF						44
918c2ecf20Sopenharmony_ci#define CMDQ_EVENT_DPI0_EOF						45
928c2ecf20Sopenharmony_ci#define CMDQ_EVENT_DISP_RSZ_EOF						47
938c2ecf20Sopenharmony_ci#define CMDQ_EVENT_MDP_AAL_EOF						48
948c2ecf20Sopenharmony_ci#define CMDQ_EVENT_MDP_CCORR_EOF					49
958c2ecf20Sopenharmony_ci#define CMDQ_EVENT_DBI_EOF						50
968c2ecf20Sopenharmony_ci#define CMDQ_EVENT_MUTEX_STREAM_DONE0					130
978c2ecf20Sopenharmony_ci#define CMDQ_EVENT_MUTEX_STREAM_DONE1					131
988c2ecf20Sopenharmony_ci#define CMDQ_EVENT_MUTEX_STREAM_DONE2					132
998c2ecf20Sopenharmony_ci#define CMDQ_EVENT_MUTEX_STREAM_DONE3					133
1008c2ecf20Sopenharmony_ci#define CMDQ_EVENT_MUTEX_STREAM_DONE4					134
1018c2ecf20Sopenharmony_ci#define CMDQ_EVENT_MUTEX_STREAM_DONE5					135
1028c2ecf20Sopenharmony_ci#define CMDQ_EVENT_MUTEX_STREAM_DONE6					136
1038c2ecf20Sopenharmony_ci#define CMDQ_EVENT_MUTEX_STREAM_DONE7					137
1048c2ecf20Sopenharmony_ci#define CMDQ_EVENT_MUTEX_STREAM_DONE8					138
1058c2ecf20Sopenharmony_ci#define CMDQ_EVENT_MUTEX_STREAM_DONE9					139
1068c2ecf20Sopenharmony_ci#define CMDQ_EVENT_MUTEX_STREAM_DONE10					140
1078c2ecf20Sopenharmony_ci#define CMDQ_EVENT_MUTEX_STREAM_DONE11					141
1088c2ecf20Sopenharmony_ci#define CMDQ_EVENT_DISP_RDMA0_BUF_UNDERRUN_EVEN				142
1098c2ecf20Sopenharmony_ci#define CMDQ_EVENT_DISP_RDMA1_BUF_UNDERRUN_EVEN				143
1108c2ecf20Sopenharmony_ci#define CMDQ_EVENT_DSI0_TE_EVENT					144
1118c2ecf20Sopenharmony_ci#define CMDQ_EVENT_DSI0_IRQ_EVENT					145
1128c2ecf20Sopenharmony_ci#define CMDQ_EVENT_DSI0_DONE_EVENT					146
1138c2ecf20Sopenharmony_ci#define CMDQ_EVENT_DISP_WDMA0_SW_RST_DONE				150
1148c2ecf20Sopenharmony_ci#define CMDQ_EVENT_MDP_WDMA_SW_RST_DONE					151
1158c2ecf20Sopenharmony_ci#define CMDQ_EVENT_MDP_WROT0_SW_RST_DONE				152
1168c2ecf20Sopenharmony_ci#define CMDQ_EVENT_MDP_RDMA0_SW_RST_DONE				154
1178c2ecf20Sopenharmony_ci#define CMDQ_EVENT_DISP_OVL0_FRAME_RST_DONE_PULE			155
1188c2ecf20Sopenharmony_ci#define CMDQ_EVENT_DISP_OVL0_2L_FRAME_RST_DONE_ULSE			156
1198c2ecf20Sopenharmony_ci#define CMDQ_EVENT_DISP_OVL1_2L_FRAME_RST_DONE_ULSE			157
1208c2ecf20Sopenharmony_ci#define CMDQ_EVENT_ISP_FRAME_DONE_P2_0					257
1218c2ecf20Sopenharmony_ci#define CMDQ_EVENT_ISP_FRAME_DONE_P2_1					258
1228c2ecf20Sopenharmony_ci#define CMDQ_EVENT_ISP_FRAME_DONE_P2_2					259
1238c2ecf20Sopenharmony_ci#define CMDQ_EVENT_ISP_FRAME_DONE_P2_3					260
1248c2ecf20Sopenharmony_ci#define CMDQ_EVENT_ISP_FRAME_DONE_P2_4					261
1258c2ecf20Sopenharmony_ci#define CMDQ_EVENT_ISP_FRAME_DONE_P2_5					262
1268c2ecf20Sopenharmony_ci#define CMDQ_EVENT_ISP_FRAME_DONE_P2_6					263
1278c2ecf20Sopenharmony_ci#define CMDQ_EVENT_ISP_FRAME_DONE_P2_7					264
1288c2ecf20Sopenharmony_ci#define CMDQ_EVENT_ISP_FRAME_DONE_P2_8					265
1298c2ecf20Sopenharmony_ci#define CMDQ_EVENT_ISP_FRAME_DONE_P2_9					266
1308c2ecf20Sopenharmony_ci#define CMDQ_EVENT_ISP_FRAME_DONE_P2_10					267
1318c2ecf20Sopenharmony_ci#define CMDQ_EVENT_ISP_FRAME_DONE_P2_11					268
1328c2ecf20Sopenharmony_ci#define CMDQ_EVENT_ISP_FRAME_DONE_P2_12					269
1338c2ecf20Sopenharmony_ci#define CMDQ_EVENT_ISP_FRAME_DONE_P2_13					270
1348c2ecf20Sopenharmony_ci#define CMDQ_EVENT_ISP_FRAME_DONE_P2_14					271
1358c2ecf20Sopenharmony_ci#define CMDQ_EVENT_ISP_FRAME_DONE_P2_15					272
1368c2ecf20Sopenharmony_ci#define CMDQ_EVENT_ISP_FRAME_DONE_P2_16					273
1378c2ecf20Sopenharmony_ci#define CMDQ_EVENT_ISP_FRAME_DONE_P2_17					274
1388c2ecf20Sopenharmony_ci#define CMDQ_EVENT_ISP_FRAME_DONE_P2_18					275
1398c2ecf20Sopenharmony_ci#define CMDQ_EVENT_AMD_FRAME_DONE					276
1408c2ecf20Sopenharmony_ci#define CMDQ_EVENT_DVE_DONE						277
1418c2ecf20Sopenharmony_ci#define CMDQ_EVENT_WMFE_DONE						278
1428c2ecf20Sopenharmony_ci#define CMDQ_EVENT_RSC_DONE						279
1438c2ecf20Sopenharmony_ci#define CMDQ_EVENT_MFB_DONE						280
1448c2ecf20Sopenharmony_ci#define CMDQ_EVENT_WPE_A_DONE						281
1458c2ecf20Sopenharmony_ci#define CMDQ_EVENT_SPE_B_DONE						282
1468c2ecf20Sopenharmony_ci#define CMDQ_EVENT_OCC_DONE						283
1478c2ecf20Sopenharmony_ci#define CMDQ_EVENT_VENC_CMDQ_FRAME_DONE					289
1488c2ecf20Sopenharmony_ci#define CMDQ_EVENT_JPG_ENC_CMDQ_DONE					290
1498c2ecf20Sopenharmony_ci#define CMDQ_EVENT_JPG_DEC_CMDQ_DONE					291
1508c2ecf20Sopenharmony_ci#define CMDQ_EVENT_VENC_CMDQ_MB_DONE					292
1518c2ecf20Sopenharmony_ci#define CMDQ_EVENT_VENC_CMDQ_128BYTE_DONE				293
1528c2ecf20Sopenharmony_ci#define CMDQ_EVENT_ISP_FRAME_DONE_A					321
1538c2ecf20Sopenharmony_ci#define CMDQ_EVENT_ISP_FRAME_DONE_B					322
1548c2ecf20Sopenharmony_ci#define CMDQ_EVENT_CAMSV0_PASS1_DONE					323
1558c2ecf20Sopenharmony_ci#define CMDQ_EVENT_CAMSV1_PASS1_DONE					324
1568c2ecf20Sopenharmony_ci#define CMDQ_EVENT_CAMSV2_PASS1_DONE					325
1578c2ecf20Sopenharmony_ci#define CMDQ_EVENT_TSF_DONE						326
1588c2ecf20Sopenharmony_ci#define CMDQ_EVENT_SENINF_CAM0_FIFO_FULL				327
1598c2ecf20Sopenharmony_ci#define CMDQ_EVENT_SENINF_CAM1_FIFO_FULL				328
1608c2ecf20Sopenharmony_ci#define CMDQ_EVENT_SENINF_CAM2_FIFO_FULL				329
1618c2ecf20Sopenharmony_ci#define CMDQ_EVENT_SENINF_CAM3_FIFO_FULL				330
1628c2ecf20Sopenharmony_ci#define CMDQ_EVENT_SENINF_CAM4_FIFO_FULL				331
1638c2ecf20Sopenharmony_ci#define CMDQ_EVENT_SENINF_CAM5_FIFO_FULL				332
1648c2ecf20Sopenharmony_ci#define CMDQ_EVENT_SENINF_CAM6_FIFO_FULL				333
1658c2ecf20Sopenharmony_ci#define CMDQ_EVENT_SENINF_CAM7_FIFO_FULL				334
1668c2ecf20Sopenharmony_ci#define CMDQ_EVENT_IPU_CORE0_DONE0					353
1678c2ecf20Sopenharmony_ci#define CMDQ_EVENT_IPU_CORE0_DONE1					354
1688c2ecf20Sopenharmony_ci#define CMDQ_EVENT_IPU_CORE0_DONE2					355
1698c2ecf20Sopenharmony_ci#define CMDQ_EVENT_IPU_CORE0_DONE3					356
1708c2ecf20Sopenharmony_ci#define CMDQ_EVENT_IPU_CORE1_DONE0					385
1718c2ecf20Sopenharmony_ci#define CMDQ_EVENT_IPU_CORE1_DONE1					386
1728c2ecf20Sopenharmony_ci#define CMDQ_EVENT_IPU_CORE1_DONE2					387
1738c2ecf20Sopenharmony_ci#define CMDQ_EVENT_IPU_CORE1_DONE3					388
1748c2ecf20Sopenharmony_ci
1758c2ecf20Sopenharmony_ci#endif
176