162306a36Sopenharmony_ci/* SPDX-License-Identifier: (GPL-2.0+ OR BSD-2-Clause) */
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * Copyright (c) 2022 Collabora Ltd.
462306a36Sopenharmony_ci * Author: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
562306a36Sopenharmony_ci */
662306a36Sopenharmony_ci
762306a36Sopenharmony_ci#ifndef _DT_BINDINGS_RESET_CONTROLLER_MT6795
862306a36Sopenharmony_ci#define _DT_BINDINGS_RESET_CONTROLLER_MT6795
962306a36Sopenharmony_ci
1062306a36Sopenharmony_ci/* INFRACFG resets */
1162306a36Sopenharmony_ci#define MT6795_INFRA_RST0_SCPSYS_RST		0
1262306a36Sopenharmony_ci#define MT6795_INFRA_RST0_PMIC_WRAP_RST		1
1362306a36Sopenharmony_ci#define MT6795_INFRA_RST1_MIPI_DSI_RST		2
1462306a36Sopenharmony_ci#define MT6795_INFRA_RST1_MIPI_CSI_RST		3
1562306a36Sopenharmony_ci#define MT6795_INFRA_RST1_MM_IOMMU_RST		4
1662306a36Sopenharmony_ci
1762306a36Sopenharmony_ci/* MMSYS resets */
1862306a36Sopenharmony_ci#define MT6795_MMSYS_SW0_RST_B_SMI_COMMON	0
1962306a36Sopenharmony_ci#define MT6795_MMSYS_SW0_RST_B_SMI_LARB		1
2062306a36Sopenharmony_ci#define MT6795_MMSYS_SW0_RST_B_CAM_MDP		2
2162306a36Sopenharmony_ci#define MT6795_MMSYS_SW0_RST_B_MDP_RDMA0	3
2262306a36Sopenharmony_ci#define MT6795_MMSYS_SW0_RST_B_MDP_RDMA1	4
2362306a36Sopenharmony_ci#define MT6795_MMSYS_SW0_RST_B_MDP_RSZ0		5
2462306a36Sopenharmony_ci#define MT6795_MMSYS_SW0_RST_B_MDP_RSZ1		6
2562306a36Sopenharmony_ci#define MT6795_MMSYS_SW0_RST_B_MDP_RSZ2		7
2662306a36Sopenharmony_ci#define MT6795_MMSYS_SW0_RST_B_MDP_TDSHP0	8
2762306a36Sopenharmony_ci#define MT6795_MMSYS_SW0_RST_B_MDP_TDSHP1	9
2862306a36Sopenharmony_ci#define MT6795_MMSYS_SW0_RST_B_MDP_WDMA		10
2962306a36Sopenharmony_ci#define MT6795_MMSYS_SW0_RST_B_MDP_WROT0	11
3062306a36Sopenharmony_ci#define MT6795_MMSYS_SW0_RST_B_MDP_WROT1	12
3162306a36Sopenharmony_ci#define MT6795_MMSYS_SW0_RST_B_MDP_CROP		13
3262306a36Sopenharmony_ci
3362306a36Sopenharmony_ci/*  PERICFG resets */
3462306a36Sopenharmony_ci#define MT6795_PERI_NFI_SW_RST			0
3562306a36Sopenharmony_ci#define MT6795_PERI_THERM_SW_RST		1
3662306a36Sopenharmony_ci#define MT6795_PERI_MSDC1_SW_RST		2
3762306a36Sopenharmony_ci
3862306a36Sopenharmony_ci/* TOPRGU resets */
3962306a36Sopenharmony_ci#define MT6795_TOPRGU_INFRA_SW_RST		0
4062306a36Sopenharmony_ci#define MT6795_TOPRGU_MM_SW_RST			1
4162306a36Sopenharmony_ci#define MT6795_TOPRGU_MFG_SW_RST		2
4262306a36Sopenharmony_ci#define MT6795_TOPRGU_VENC_SW_RST		3
4362306a36Sopenharmony_ci#define MT6795_TOPRGU_VDEC_SW_RST		4
4462306a36Sopenharmony_ci#define MT6795_TOPRGU_IMG_SW_RST		5
4562306a36Sopenharmony_ci#define MT6795_TOPRGU_DDRPHY_SW_RST		6
4662306a36Sopenharmony_ci#define MT6795_TOPRGU_MD_SW_RST			7
4762306a36Sopenharmony_ci#define MT6795_TOPRGU_INFRA_AO_SW_RST		8
4862306a36Sopenharmony_ci#define MT6795_TOPRGU_MD_LITE_SW_RST		9
4962306a36Sopenharmony_ci#define MT6795_TOPRGU_APMIXED_SW_RST		10
5062306a36Sopenharmony_ci#define MT6795_TOPRGU_PWRAP_SPI_CTL_RST		11
5162306a36Sopenharmony_ci#define MT6795_TOPRGU_SW_RST_NUM		12
5262306a36Sopenharmony_ci
5362306a36Sopenharmony_ci#endif  /* _DT_BINDINGS_RESET_CONTROLLER_MT6795 */
54