1/*	$NetBSD: qcom,sdm845.h,v 1.1.1.2 2021/11/07 16:49:57 jmcneill Exp $	*/
2
3/* SPDX-License-Identifier: GPL-2.0 */
4/*
5 * Qualcomm SDM845 interconnect IDs
6 *
7 * Copyright (c) 2018, Linaro Ltd.
8 * Author: Georgi Djakov <georgi.djakov@linaro.org>
9 */
10
11#ifndef __DT_BINDINGS_INTERCONNECT_QCOM_SDM845_H
12#define __DT_BINDINGS_INTERCONNECT_QCOM_SDM845_H
13
14#define MASTER_A1NOC_CFG		0
15#define MASTER_TSIF			1
16#define MASTER_SDCC_2			2
17#define MASTER_SDCC_4			3
18#define MASTER_UFS_CARD			4
19#define MASTER_UFS_MEM			5
20#define MASTER_PCIE_0			6
21#define SLAVE_A1NOC_SNOC		7
22#define SLAVE_SERVICE_A1NOC		8
23#define SLAVE_ANOC_PCIE_A1NOC_SNOC	9
24#define MASTER_QUP_1			10
25
26#define MASTER_A2NOC_CFG		0
27#define MASTER_QDSS_BAM			1
28#define MASTER_CNOC_A2NOC		2
29#define MASTER_CRYPTO			3
30#define MASTER_IPA			4
31#define MASTER_PCIE_1			5
32#define MASTER_QDSS_ETR			6
33#define MASTER_USB3_0			7
34#define MASTER_USB3_1			8
35#define SLAVE_A2NOC_SNOC		9
36#define SLAVE_ANOC_PCIE_SNOC		10
37#define SLAVE_SERVICE_A2NOC		11
38#define MASTER_QUP_2			12
39
40#define MASTER_SPDM			0
41#define MASTER_TIC			1
42#define MASTER_SNOC_CNOC		2
43#define MASTER_QDSS_DAP			3
44#define SLAVE_A1NOC_CFG			4
45#define SLAVE_A2NOC_CFG			5
46#define SLAVE_AOP			6
47#define SLAVE_AOSS			7
48#define SLAVE_CAMERA_CFG		8
49#define SLAVE_CLK_CTL			9
50#define SLAVE_CDSP_CFG			10
51#define SLAVE_RBCPR_CX_CFG		11
52#define SLAVE_CRYPTO_0_CFG		12
53#define SLAVE_DCC_CFG			13
54#define SLAVE_CNOC_DDRSS		14
55#define SLAVE_DISPLAY_CFG		15
56#define SLAVE_GLM			16
57#define SLAVE_GFX3D_CFG			17
58#define SLAVE_IMEM_CFG			18
59#define SLAVE_IPA_CFG			19
60#define SLAVE_CNOC_MNOC_CFG		20
61#define SLAVE_PCIE_0_CFG		21
62#define SLAVE_PCIE_1_CFG		22
63#define SLAVE_PDM			23
64#define SLAVE_SOUTH_PHY_CFG		24
65#define SLAVE_PIMEM_CFG			25
66#define SLAVE_PRNG			26
67#define SLAVE_QDSS_CFG			27
68#define SLAVE_BLSP_2			28
69#define SLAVE_BLSP_1			29
70#define SLAVE_SDCC_2			30
71#define SLAVE_SDCC_4			31
72#define SLAVE_SNOC_CFG			32
73#define SLAVE_SPDM_WRAPPER		33
74#define SLAVE_SPSS_CFG			34
75#define SLAVE_TCSR			35
76#define SLAVE_TLMM_NORTH		36
77#define SLAVE_TLMM_SOUTH		37
78#define SLAVE_TSIF			38
79#define SLAVE_UFS_CARD_CFG		39
80#define SLAVE_UFS_MEM_CFG		40
81#define SLAVE_USB3_0			41
82#define SLAVE_USB3_1			42
83#define SLAVE_VENUS_CFG			43
84#define SLAVE_VSENSE_CTRL_CFG		44
85#define SLAVE_CNOC_A2NOC		45
86#define SLAVE_SERVICE_CNOC		46
87
88#define MASTER_CNOC_DC_NOC		0
89#define SLAVE_LLCC_CFG			1
90#define SLAVE_MEM_NOC_CFG		2
91
92#define MASTER_APPSS_PROC		0
93#define MASTER_GNOC_CFG			1
94#define SLAVE_GNOC_SNOC			2
95#define SLAVE_GNOC_MEM_NOC		3
96#define SLAVE_SERVICE_GNOC		4
97
98#define MASTER_TCU_0			0
99#define MASTER_MEM_NOC_CFG		1
100#define MASTER_GNOC_MEM_NOC		2
101#define MASTER_MNOC_HF_MEM_NOC		3
102#define MASTER_MNOC_SF_MEM_NOC		4
103#define MASTER_SNOC_GC_MEM_NOC		5
104#define MASTER_SNOC_SF_MEM_NOC		6
105#define MASTER_GFX3D			7
106#define SLAVE_MSS_PROC_MS_MPU_CFG	8
107#define SLAVE_MEM_NOC_GNOC		9
108#define SLAVE_LLCC			10
109#define SLAVE_MEM_NOC_SNOC		11
110#define SLAVE_SERVICE_MEM_NOC		12
111#define MASTER_LLCC			13
112#define SLAVE_EBI1			14
113
114#define MASTER_CNOC_MNOC_CFG		0
115#define MASTER_CAMNOC_HF0		1
116#define MASTER_CAMNOC_HF1		2
117#define MASTER_CAMNOC_SF		3
118#define MASTER_MDP0			4
119#define MASTER_MDP1			5
120#define MASTER_ROTATOR			6
121#define MASTER_VIDEO_P0			7
122#define MASTER_VIDEO_P1			8
123#define MASTER_VIDEO_PROC		9
124#define SLAVE_MNOC_SF_MEM_NOC		10
125#define SLAVE_MNOC_HF_MEM_NOC		11
126#define SLAVE_SERVICE_MNOC		12
127#define MASTER_CAMNOC_HF0_UNCOMP	13
128#define MASTER_CAMNOC_HF1_UNCOMP	14
129#define MASTER_CAMNOC_SF_UNCOMP		15
130#define SLAVE_CAMNOC_UNCOMP		16
131
132#define MASTER_SNOC_CFG			0
133#define MASTER_A1NOC_SNOC		1
134#define MASTER_A2NOC_SNOC		2
135#define MASTER_GNOC_SNOC		3
136#define MASTER_MEM_NOC_SNOC		4
137#define MASTER_ANOC_PCIE_SNOC		5
138#define MASTER_PIMEM			6
139#define MASTER_GIC			7
140#define SLAVE_APPSS			8
141#define SLAVE_SNOC_CNOC			9
142#define SLAVE_SNOC_MEM_NOC_GC		10
143#define SLAVE_SNOC_MEM_NOC_SF		11
144#define SLAVE_IMEM			12
145#define SLAVE_PCIE_0			13
146#define SLAVE_PCIE_1			14
147#define SLAVE_PIMEM			15
148#define SLAVE_SERVICE_SNOC		16
149#define SLAVE_QDSS_STM			17
150#define SLAVE_TCU			18
151
152#endif
153