1/*	$NetBSD: qcom,sm7150-rpmh.h,v 1.1.1.1 2026/01/18 05:21:46 skrll Exp $	*/
2
3/* SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause */
4/*
5 * Qualcomm SM7150 interconnect IDs
6 *
7 * Copyright (c) 2020, The Linux Foundation. All rights reserved.
8 * Copyright (c) 2024, Danila Tikhonov <danila@jiaxyga.com>
9 */
10
11#ifndef __DT_BINDINGS_INTERCONNECT_QCOM_SM7150_H
12#define __DT_BINDINGS_INTERCONNECT_QCOM_SM7150_H
13
14#define MASTER_A1NOC_CFG		0
15#define MASTER_QUP_0			1
16#define MASTER_TSIF			2
17#define MASTER_EMMC			3
18#define MASTER_SDCC_2			4
19#define MASTER_SDCC_4			5
20#define MASTER_UFS_MEM			6
21#define A1NOC_SNOC_SLV			7
22#define SLAVE_SERVICE_A1NOC		8
23
24#define MASTER_A2NOC_CFG		0
25#define MASTER_QDSS_BAM			1
26#define MASTER_QUP_1			2
27#define MASTER_CNOC_A2NOC		3
28#define MASTER_CRYPTO_CORE_0		4
29#define MASTER_IPA			5
30#define MASTER_PCIE			6
31#define MASTER_QDSS_ETR			7
32#define MASTER_USB3			8
33#define A2NOC_SNOC_SLV			9
34#define SLAVE_ANOC_PCIE_GEM_NOC		10
35#define SLAVE_SERVICE_A2NOC		11
36
37#define MASTER_CAMNOC_HF0_UNCOMP	0
38#define MASTER_CAMNOC_RT_UNCOMP		1
39#define MASTER_CAMNOC_SF_UNCOMP		2
40#define MASTER_CAMNOC_NRT_UNCOMP	3
41#define SLAVE_CAMNOC_UNCOMP		4
42
43#define MASTER_NPU			0
44#define SLAVE_CDSP_GEM_NOC		1
45
46#define MASTER_SPDM			0
47#define SNOC_CNOC_MAS			1
48#define MASTER_QDSS_DAP			2
49#define SLAVE_A1NOC_CFG			3
50#define SLAVE_A2NOC_CFG			4
51#define SLAVE_AHB2PHY_NORTH		5
52#define SLAVE_AHB2PHY_SOUTH		6
53#define SLAVE_AHB2PHY_WEST		7
54#define SLAVE_AOP			8
55#define SLAVE_AOSS			9
56#define SLAVE_CAMERA_CFG		10
57#define SLAVE_CAMERA_NRT_THROTTLE_CFG	11
58#define SLAVE_CAMERA_RT_THROTTLE_CFG	12
59#define SLAVE_CLK_CTL			13
60#define SLAVE_CDSP_CFG			14
61#define SLAVE_RBCPR_CX_CFG		15
62#define SLAVE_RBCPR_MX_CFG		16
63#define SLAVE_CRYPTO_0_CFG		17
64#define SLAVE_CNOC_DDRSS		18
65#define SLAVE_DISPLAY_CFG		19
66#define SLAVE_DISPLAY_THROTTLE_CFG	20
67#define SLAVE_EMMC_CFG			21
68#define SLAVE_GLM			22
69#define SLAVE_GRAPHICS_3D_CFG		23
70#define SLAVE_IMEM_CFG			24
71#define SLAVE_IPA_CFG			25
72#define SLAVE_CNOC_MNOC_CFG		26
73#define SLAVE_PCIE_CFG			27
74#define SLAVE_PDM			28
75#define SLAVE_PIMEM_CFG			29
76#define SLAVE_PRNG			30
77#define SLAVE_QDSS_CFG			31
78#define SLAVE_QUP_0			32
79#define SLAVE_QUP_1			33
80#define SLAVE_SDCC_2			34
81#define SLAVE_SDCC_4			35
82#define SLAVE_SNOC_CFG			36
83#define SLAVE_SPDM_WRAPPER		37
84#define SLAVE_TCSR			38
85#define SLAVE_TLMM_NORTH		39
86#define SLAVE_TLMM_SOUTH		40
87#define SLAVE_TLMM_WEST			41
88#define SLAVE_TSIF			42
89#define SLAVE_UFS_MEM_CFG		43
90#define SLAVE_USB3			44
91#define SLAVE_VENUS_CFG			45
92#define SLAVE_VENUS_CVP_THROTTLE_CFG	46
93#define SLAVE_VENUS_THROTTLE_CFG	47
94#define SLAVE_VSENSE_CTRL_CFG		48
95#define SLAVE_CNOC_A2NOC		49
96#define SLAVE_SERVICE_CNOC		50
97
98#define MASTER_CNOC_DC_NOC		0
99#define SLAVE_GEM_NOC_CFG		1
100#define SLAVE_LLCC_CFG			2
101
102#define MASTER_AMPSS_M0			0
103#define MASTER_SYS_TCU			1
104#define MASTER_GEM_NOC_CFG		2
105#define MASTER_COMPUTE_NOC		3
106#define MASTER_MNOC_HF_MEM_NOC		4
107#define MASTER_MNOC_SF_MEM_NOC		5
108#define MASTER_GEM_NOC_PCIE_SNOC	6
109#define MASTER_SNOC_GC_MEM_NOC		7
110#define MASTER_SNOC_SF_MEM_NOC		8
111#define MASTER_GRAPHICS_3D		9
112#define SLAVE_MSS_PROC_MS_MPU_CFG	10
113#define SLAVE_GEM_NOC_SNOC		11
114#define SLAVE_LLCC			12
115#define SLAVE_SERVICE_GEM_NOC		13
116
117
118#define MASTER_LLCC			0
119#define SLAVE_EBI_CH0			1
120
121#define MASTER_CNOC_MNOC_CFG		0
122#define MASTER_CAMNOC_HF0		1
123#define MASTER_CAMNOC_NRT		2
124#define MASTER_CAMNOC_RT		3
125#define MASTER_CAMNOC_SF		4
126#define MASTER_MDP_PORT0		5
127#define MASTER_MDP_PORT1		6
128#define MASTER_ROTATOR			7
129#define MASTER_VIDEO_P0			8
130#define MASTER_VIDEO_P1			9
131#define MASTER_VIDEO_PROC		10
132#define SLAVE_MNOC_SF_MEM_NOC		11
133#define SLAVE_MNOC_HF_MEM_NOC		12
134#define SLAVE_SERVICE_MNOC		13
135
136#define MASTER_SNOC_CFG			0
137#define A1NOC_SNOC_MAS			1
138#define A2NOC_SNOC_MAS			2
139#define MASTER_GEM_NOC_SNOC		3
140#define MASTER_PIMEM			4
141#define MASTER_GIC			5
142#define SLAVE_APPSS			6
143#define SNOC_CNOC_SLV			7
144#define SLAVE_SNOC_GEM_NOC_GC		8
145#define SLAVE_SNOC_GEM_NOC_SF		9
146#define SLAVE_OCIMEM			10
147#define SLAVE_PIMEM			11
148#define SLAVE_SERVICE_SNOC		12
149#define SLAVE_QDSS_STM			13
150#define SLAVE_TCU			14
151
152#endif
153