xref: /freebsd/sys/contrib/device-tree/include/dt-bindings/reset/mt8195-resets.h (revision cb7aa33ac6cd46a5434798e50363136e64f3ae98)
1354d7675SEmmanuel Vadot /* SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause)*/
2354d7675SEmmanuel Vadot /*
3354d7675SEmmanuel Vadot  * Copyright (c) 2021 MediaTek Inc.
4354d7675SEmmanuel Vadot  * Author: Christine Zhu <christine.zhu@mediatek.com>
5354d7675SEmmanuel Vadot  */
6354d7675SEmmanuel Vadot 
7354d7675SEmmanuel Vadot #ifndef _DT_BINDINGS_RESET_CONTROLLER_MT8195
8354d7675SEmmanuel Vadot #define _DT_BINDINGS_RESET_CONTROLLER_MT8195
9354d7675SEmmanuel Vadot 
10b97ee269SEmmanuel Vadot /* TOPRGU resets */
11354d7675SEmmanuel Vadot #define MT8195_TOPRGU_CONN_MCU_SW_RST          0
12354d7675SEmmanuel Vadot #define MT8195_TOPRGU_INFRA_GRST_SW_RST        1
13354d7675SEmmanuel Vadot #define MT8195_TOPRGU_APU_SW_RST               2
14354d7675SEmmanuel Vadot #define MT8195_TOPRGU_INFRA_AO_GRST_SW_RST     6
15354d7675SEmmanuel Vadot #define MT8195_TOPRGU_MMSYS_SW_RST             7
16354d7675SEmmanuel Vadot #define MT8195_TOPRGU_MFG_SW_RST               8
17354d7675SEmmanuel Vadot #define MT8195_TOPRGU_VENC_SW_RST              9
18354d7675SEmmanuel Vadot #define MT8195_TOPRGU_VDEC_SW_RST              10
19354d7675SEmmanuel Vadot #define MT8195_TOPRGU_IMG_SW_RST               11
20354d7675SEmmanuel Vadot #define MT8195_TOPRGU_APMIXEDSYS_SW_RST        13
21354d7675SEmmanuel Vadot #define MT8195_TOPRGU_AUDIO_SW_RST             14
22354d7675SEmmanuel Vadot #define MT8195_TOPRGU_CAMSYS_SW_RST            15
23354d7675SEmmanuel Vadot #define MT8195_TOPRGU_EDPTX_SW_RST             16
24354d7675SEmmanuel Vadot #define MT8195_TOPRGU_ADSPSYS_SW_RST           21
25354d7675SEmmanuel Vadot #define MT8195_TOPRGU_DPTX_SW_RST              22
26354d7675SEmmanuel Vadot #define MT8195_TOPRGU_SPMI_MST_SW_RST          23
27354d7675SEmmanuel Vadot 
28354d7675SEmmanuel Vadot #define MT8195_TOPRGU_SW_RST_NUM               16
29354d7675SEmmanuel Vadot 
30b97ee269SEmmanuel Vadot /* INFRA resets */
31b97ee269SEmmanuel Vadot #define MT8195_INFRA_RST0_THERM_CTRL_SWRST     0
32b97ee269SEmmanuel Vadot #define MT8195_INFRA_RST3_THERM_CTRL_PTP_SWRST 1
33b97ee269SEmmanuel Vadot #define MT8195_INFRA_RST4_THERM_CTRL_MCU_SWRST 2
347ef62cebSEmmanuel Vadot #define MT8195_INFRA_RST2_PCIE_P0_SWRST        3
357ef62cebSEmmanuel Vadot #define MT8195_INFRA_RST2_PCIE_P1_SWRST        4
367ef62cebSEmmanuel Vadot #define MT8195_INFRA_RST2_USBSIF_P1_SWRST      5
37b97ee269SEmmanuel Vadot 
38*cb7aa33aSEmmanuel Vadot /* VDOSYS1 */
39*cb7aa33aSEmmanuel Vadot #define MT8195_VDOSYS1_SW0_RST_B_SMI_LARB2                     0
40*cb7aa33aSEmmanuel Vadot #define MT8195_VDOSYS1_SW0_RST_B_SMI_LARB3                     1
41*cb7aa33aSEmmanuel Vadot #define MT8195_VDOSYS1_SW0_RST_B_GALS                          2
42*cb7aa33aSEmmanuel Vadot #define MT8195_VDOSYS1_SW0_RST_B_FAKE_ENG0                     3
43*cb7aa33aSEmmanuel Vadot #define MT8195_VDOSYS1_SW0_RST_B_FAKE_ENG1                     4
44*cb7aa33aSEmmanuel Vadot #define MT8195_VDOSYS1_SW0_RST_B_MDP_RDMA0                     5
45*cb7aa33aSEmmanuel Vadot #define MT8195_VDOSYS1_SW0_RST_B_MDP_RDMA1                     6
46*cb7aa33aSEmmanuel Vadot #define MT8195_VDOSYS1_SW0_RST_B_MDP_RDMA2                     7
47*cb7aa33aSEmmanuel Vadot #define MT8195_VDOSYS1_SW0_RST_B_MDP_RDMA3                     8
48*cb7aa33aSEmmanuel Vadot #define MT8195_VDOSYS1_SW0_RST_B_VPP_MERGE0                    9
49*cb7aa33aSEmmanuel Vadot #define MT8195_VDOSYS1_SW0_RST_B_VPP_MERGE1                    10
50*cb7aa33aSEmmanuel Vadot #define MT8195_VDOSYS1_SW0_RST_B_VPP_MERGE2                    11
51*cb7aa33aSEmmanuel Vadot #define MT8195_VDOSYS1_SW0_RST_B_VPP_MERGE3                    12
52*cb7aa33aSEmmanuel Vadot #define MT8195_VDOSYS1_SW0_RST_B_VPP_MERGE4                    13
53*cb7aa33aSEmmanuel Vadot #define MT8195_VDOSYS1_SW0_RST_B_VPP2_TO_VDO1_DL_ASYNC         14
54*cb7aa33aSEmmanuel Vadot #define MT8195_VDOSYS1_SW0_RST_B_VPP3_TO_VDO1_DL_ASYNC         15
55*cb7aa33aSEmmanuel Vadot #define MT8195_VDOSYS1_SW0_RST_B_DISP_MUTEX                    16
56*cb7aa33aSEmmanuel Vadot #define MT8195_VDOSYS1_SW0_RST_B_MDP_RDMA4                     17
57*cb7aa33aSEmmanuel Vadot #define MT8195_VDOSYS1_SW0_RST_B_MDP_RDMA5                     18
58*cb7aa33aSEmmanuel Vadot #define MT8195_VDOSYS1_SW0_RST_B_MDP_RDMA6                     19
59*cb7aa33aSEmmanuel Vadot #define MT8195_VDOSYS1_SW0_RST_B_MDP_RDMA7                     20
60*cb7aa33aSEmmanuel Vadot #define MT8195_VDOSYS1_SW0_RST_B_DP_INTF0                      21
61*cb7aa33aSEmmanuel Vadot #define MT8195_VDOSYS1_SW0_RST_B_DPI0                          22
62*cb7aa33aSEmmanuel Vadot #define MT8195_VDOSYS1_SW0_RST_B_DPI1                          23
63*cb7aa33aSEmmanuel Vadot #define MT8195_VDOSYS1_SW0_RST_B_DISP_MONITOR                  24
64*cb7aa33aSEmmanuel Vadot #define MT8195_VDOSYS1_SW0_RST_B_MERGE0_DL_ASYNC               25
65*cb7aa33aSEmmanuel Vadot #define MT8195_VDOSYS1_SW0_RST_B_MERGE1_DL_ASYNC               26
66*cb7aa33aSEmmanuel Vadot #define MT8195_VDOSYS1_SW0_RST_B_MERGE2_DL_ASYNC               27
67*cb7aa33aSEmmanuel Vadot #define MT8195_VDOSYS1_SW0_RST_B_MERGE3_DL_ASYNC               28
68*cb7aa33aSEmmanuel Vadot #define MT8195_VDOSYS1_SW0_RST_B_MERGE4_DL_ASYNC               29
69*cb7aa33aSEmmanuel Vadot #define MT8195_VDOSYS1_SW0_RST_B_VDO0_DSC_TO_VDO1_DL_ASYNC     30
70*cb7aa33aSEmmanuel Vadot #define MT8195_VDOSYS1_SW0_RST_B_VDO0_MERGE_TO_VDO1_DL_ASYNC   31
71*cb7aa33aSEmmanuel Vadot #define MT8195_VDOSYS1_SW1_RST_B_HDR_VDO_FE0                   32
72*cb7aa33aSEmmanuel Vadot #define MT8195_VDOSYS1_SW1_RST_B_HDR_GFX_FE0                   33
73*cb7aa33aSEmmanuel Vadot #define MT8195_VDOSYS1_SW1_RST_B_HDR_VDO_BE                    34
74*cb7aa33aSEmmanuel Vadot #define MT8195_VDOSYS1_SW1_RST_B_HDR_VDO_FE1                   48
75*cb7aa33aSEmmanuel Vadot #define MT8195_VDOSYS1_SW1_RST_B_HDR_GFX_FE1                   49
76*cb7aa33aSEmmanuel Vadot #define MT8195_VDOSYS1_SW1_RST_B_DISP_MIXER                    50
77*cb7aa33aSEmmanuel Vadot #define MT8195_VDOSYS1_SW1_RST_B_HDR_VDO_FE0_DL_ASYNC          51
78*cb7aa33aSEmmanuel Vadot #define MT8195_VDOSYS1_SW1_RST_B_HDR_VDO_FE1_DL_ASYNC          52
79*cb7aa33aSEmmanuel Vadot #define MT8195_VDOSYS1_SW1_RST_B_HDR_GFX_FE0_DL_ASYNC          53
80*cb7aa33aSEmmanuel Vadot #define MT8195_VDOSYS1_SW1_RST_B_HDR_GFX_FE1_DL_ASYNC          54
81*cb7aa33aSEmmanuel Vadot #define MT8195_VDOSYS1_SW1_RST_B_HDR_VDO_BE_DL_ASYNC           55
82*cb7aa33aSEmmanuel Vadot 
83354d7675SEmmanuel Vadot #endif  /* _DT_BINDINGS_RESET_CONTROLLER_MT8195 */
84