Merge branch 'icc-sm7150' into icc-next

Add dt-bindings and interconnect driver support for the Qualcomm SM7150 SoC.

* icc-sm7150
  dt-bindings: interconnect: Add Qualcomm SM7150 DT bindings
  interconnect: qcom: Add SM7150 driver support

Link: https://lore.kernel.org/r/20240222174250.80493-1-danila@jiaxyga.com
Signed-off-by: Georgi Djakov <djakov@kernel.org>
This commit is contained in:
Georgi Djakov 2024-02-29 22:43:01 +02:00
commit d1c1649113
6 changed files with 2139 additions and 0 deletions

View File

@ -0,0 +1,84 @@
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/interconnect/qcom,sm7150-rpmh.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: Qualcomm RPMh Network-On-Chip Interconnect on SM7150
maintainers:
- Danila Tikhonov <danila@jiaxyga.com>
description: |
RPMh interconnect providers support system bandwidth requirements through
RPMh hardware accelerators known as Bus Clock Manager (BCM).
See also:: include/dt-bindings/interconnect/qcom,sm7150-rpmh.h
allOf:
- $ref: qcom,rpmh-common.yaml#
properties:
compatible:
enum:
- qcom,sm7150-aggre1-noc
- qcom,sm7150-aggre2-noc
- qcom,sm7150-compute-noc
- qcom,sm7150-config-noc
- qcom,sm7150-dc-noc
- qcom,sm7150-gem-noc
- qcom,sm7150-mc-virt
- qcom,sm7150-mmss-noc
- qcom,sm7150-system-noc
reg:
maxItems: 1
# Child node's properties
patternProperties:
'^interconnect-[0-9]+$':
type: object
description:
The interconnect providers do not have a separate QoS register space,
but share parent's space.
allOf:
- $ref: qcom,rpmh-common.yaml#
properties:
compatible:
enum:
- qcom,sm7150-camnoc-virt
required:
- compatible
unevaluatedProperties: false
required:
- compatible
- reg
unevaluatedProperties: false
examples:
- |
mc_virt: interconnect@1380000 {
compatible = "qcom,sm7150-mc-virt";
reg = <0x01380000 0x40000>;
#interconnect-cells = <2>;
qcom,bcm-voters = <&apps_bcm_voter>;
};
system_noc: interconnect@1620000 {
compatible = "qcom,sm7150-system-noc";
reg = <0x01620000 0x40000>;
#interconnect-cells = <2>;
qcom,bcm-voters = <&apps_bcm_voter>;
camnoc_virt: interconnect-0 {
compatible = "qcom,sm7150-camnoc-virt";
#interconnect-cells = <2>;
qcom,bcm-voters = <&apps_bcm_voter>;
};
};

View File

@ -218,6 +218,15 @@ config INTERCONNECT_QCOM_SM6350
This is a driver for the Qualcomm Network-on-Chip on sm6350-based
platforms.
config INTERCONNECT_QCOM_SM7150
tristate "Qualcomm SM7150 interconnect driver"
depends on INTERCONNECT_QCOM_RPMH_POSSIBLE
select INTERCONNECT_QCOM_RPMH
select INTERCONNECT_QCOM_BCM_VOTER
help
This is a driver for the Qualcomm Network-on-Chip on sm7150-based
platforms.
config INTERCONNECT_QCOM_SM8150
tristate "Qualcomm SM8150 interconnect driver"
depends on INTERCONNECT_QCOM_RPMH_POSSIBLE

View File

@ -27,6 +27,7 @@ qnoc-sdx65-objs := sdx65.o
qnoc-sdx75-objs := sdx75.o
qnoc-sm6115-objs := sm6115.o
qnoc-sm6350-objs := sm6350.o
qnoc-sm7150-objs := sm7150.o
qnoc-sm8150-objs := sm8150.o
qnoc-sm8250-objs := sm8250.o
qnoc-sm8350-objs := sm8350.o
@ -60,6 +61,7 @@ obj-$(CONFIG_INTERCONNECT_QCOM_SDX65) += qnoc-sdx65.o
obj-$(CONFIG_INTERCONNECT_QCOM_SDX75) += qnoc-sdx75.o
obj-$(CONFIG_INTERCONNECT_QCOM_SM6115) += qnoc-sm6115.o
obj-$(CONFIG_INTERCONNECT_QCOM_SM6350) += qnoc-sm6350.o
obj-$(CONFIG_INTERCONNECT_QCOM_SM7150) += qnoc-sm7150.o
obj-$(CONFIG_INTERCONNECT_QCOM_SM8150) += qnoc-sm8150.o
obj-$(CONFIG_INTERCONNECT_QCOM_SM8250) += qnoc-sm8250.o
obj-$(CONFIG_INTERCONNECT_QCOM_SM8350) += qnoc-sm8350.o

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,140 @@
/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Qualcomm #define SM7150 interconnect IDs
*
* Copyright (c) 2020, The Linux Foundation. All rights reserved.
* Copyright (c) 2024, Danila Tikhonov <danila@jiaxyga.com>
*/
#ifndef __DRIVERS_INTERCONNECT_QCOM_SM7150_H
#define __DRIVERS_INTERCONNECT_QCOM_SM7150_H
#define SM7150_A1NOC_SNOC_MAS 0
#define SM7150_A1NOC_SNOC_SLV 1
#define SM7150_A2NOC_SNOC_MAS 2
#define SM7150_A2NOC_SNOC_SLV 3
#define SM7150_MASTER_A1NOC_CFG 4
#define SM7150_MASTER_A2NOC_CFG 5
#define SM7150_MASTER_AMPSS_M0 6
#define SM7150_MASTER_CAMNOC_HF0 7
#define SM7150_MASTER_CAMNOC_HF0_UNCOMP 8
#define SM7150_MASTER_CAMNOC_NRT 9
#define SM7150_MASTER_CAMNOC_NRT_UNCOMP 10
#define SM7150_MASTER_CAMNOC_RT 11
#define SM7150_MASTER_CAMNOC_RT_UNCOMP 12
#define SM7150_MASTER_CAMNOC_SF 13
#define SM7150_MASTER_CAMNOC_SF_UNCOMP 14
#define SM7150_MASTER_CNOC_A2NOC 15
#define SM7150_MASTER_CNOC_DC_NOC 16
#define SM7150_MASTER_CNOC_MNOC_CFG 17
#define SM7150_MASTER_COMPUTE_NOC 18
#define SM7150_MASTER_CRYPTO_CORE_0 19
#define SM7150_MASTER_EMMC 20
#define SM7150_MASTER_GEM_NOC_CFG 21
#define SM7150_MASTER_GEM_NOC_PCIE_SNOC 22
#define SM7150_MASTER_GEM_NOC_SNOC 23
#define SM7150_MASTER_GIC 24
#define SM7150_MASTER_GRAPHICS_3D 25
#define SM7150_MASTER_IPA 26
#define SM7150_MASTER_LLCC 27
#define SM7150_MASTER_MDP_PORT0 28
#define SM7150_MASTER_MDP_PORT1 29
#define SM7150_MASTER_MNOC_HF_MEM_NOC 30
#define SM7150_MASTER_MNOC_SF_MEM_NOC 31
#define SM7150_MASTER_NPU 32
#define SM7150_MASTER_PCIE 33
#define SM7150_MASTER_PIMEM 34
#define SM7150_MASTER_QDSS_BAM 35
#define SM7150_MASTER_QDSS_DAP 36
#define SM7150_MASTER_QDSS_ETR 37
#define SM7150_MASTER_QUP_0 38
#define SM7150_MASTER_QUP_1 39
#define SM7150_MASTER_ROTATOR 40
#define SM7150_MASTER_SDCC_2 41
#define SM7150_MASTER_SDCC_4 42
#define SM7150_MASTER_SNOC_CFG 43
#define SM7150_MASTER_SNOC_GC_MEM_NOC 44
#define SM7150_MASTER_SNOC_SF_MEM_NOC 45
#define SM7150_MASTER_SPDM 46
#define SM7150_MASTER_SYS_TCU 47
#define SM7150_MASTER_TSIF 48
#define SM7150_MASTER_UFS_MEM 49
#define SM7150_MASTER_USB3 50
#define SM7150_MASTER_VIDEO_P0 51
#define SM7150_MASTER_VIDEO_P1 52
#define SM7150_MASTER_VIDEO_PROC 53
#define SM7150_SLAVE_A1NOC_CFG 54
#define SM7150_SLAVE_A2NOC_CFG 55
#define SM7150_SLAVE_AHB2PHY_NORTH 56
#define SM7150_SLAVE_AHB2PHY_SOUTH 57
#define SM7150_SLAVE_AHB2PHY_WEST 58
#define SM7150_SLAVE_ANOC_PCIE_GEM_NOC 59
#define SM7150_SLAVE_AOP 60
#define SM7150_SLAVE_AOSS 61
#define SM7150_SLAVE_APPSS 62
#define SM7150_SLAVE_CAMERA_CFG 63
#define SM7150_SLAVE_CAMERA_NRT_THROTTLE_CFG 64
#define SM7150_SLAVE_CAMERA_RT_THROTTLE_CFG 65
#define SM7150_SLAVE_CAMNOC_UNCOMP 66
#define SM7150_SLAVE_CDSP_CFG 67
#define SM7150_SLAVE_CDSP_GEM_NOC 68
#define SM7150_SLAVE_CLK_CTL 69
#define SM7150_SLAVE_CNOC_A2NOC 70
#define SM7150_SLAVE_CNOC_DDRSS 71
#define SM7150_SLAVE_CNOC_MNOC_CFG 72
#define SM7150_SLAVE_CRYPTO_0_CFG 73
#define SM7150_SLAVE_DISPLAY_CFG 74
#define SM7150_SLAVE_DISPLAY_THROTTLE_CFG 75
#define SM7150_SLAVE_EBI_CH0 76
#define SM7150_SLAVE_EMMC_CFG 77
#define SM7150_SLAVE_GEM_NOC_CFG 78
#define SM7150_SLAVE_GEM_NOC_SNOC 79
#define SM7150_SLAVE_GLM 80
#define SM7150_SLAVE_GRAPHICS_3D_CFG 81
#define SM7150_SLAVE_IMEM_CFG 82
#define SM7150_SLAVE_IPA_CFG 83
#define SM7150_SLAVE_LLCC 84
#define SM7150_SLAVE_LLCC_CFG 85
#define SM7150_SLAVE_MNOC_HF_MEM_NOC 86
#define SM7150_SLAVE_MNOC_SF_MEM_NOC 87
#define SM7150_SLAVE_MSS_PROC_MS_MPU_CFG 88
#define SM7150_SLAVE_OCIMEM 89
#define SM7150_SLAVE_PCIE_CFG 90
#define SM7150_SLAVE_PDM 91
#define SM7150_SLAVE_PIMEM 92
#define SM7150_SLAVE_PIMEM_CFG 93
#define SM7150_SLAVE_PRNG 94
#define SM7150_SLAVE_QDSS_CFG 95
#define SM7150_SLAVE_QDSS_STM 96
#define SM7150_SLAVE_QUP_0 97
#define SM7150_SLAVE_QUP_1 98
#define SM7150_SLAVE_RBCPR_CX_CFG 99
#define SM7150_SLAVE_RBCPR_MX_CFG 100
#define SM7150_SLAVE_SDCC_2 101
#define SM7150_SLAVE_SDCC_4 102
#define SM7150_SLAVE_SERVICE_A1NOC 103
#define SM7150_SLAVE_SERVICE_A2NOC 104
#define SM7150_SLAVE_SERVICE_CNOC 105
#define SM7150_SLAVE_SERVICE_GEM_NOC 106
#define SM7150_SLAVE_SERVICE_MNOC 107
#define SM7150_SLAVE_SERVICE_SNOC 108
#define SM7150_SLAVE_SNOC_CFG 109
#define SM7150_SLAVE_SNOC_GEM_NOC_GC 110
#define SM7150_SLAVE_SNOC_GEM_NOC_SF 111
#define SM7150_SLAVE_SPDM_WRAPPER 112
#define SM7150_SLAVE_TCSR 113
#define SM7150_SLAVE_TCU 114
#define SM7150_SLAVE_TLMM_NORTH 115
#define SM7150_SLAVE_TLMM_SOUTH 116
#define SM7150_SLAVE_TLMM_WEST 117
#define SM7150_SLAVE_TSIF 118
#define SM7150_SLAVE_UFS_MEM_CFG 119
#define SM7150_SLAVE_USB3 120
#define SM7150_SLAVE_VENUS_CFG 121
#define SM7150_SLAVE_VENUS_CVP_THROTTLE_CFG 122
#define SM7150_SLAVE_VENUS_THROTTLE_CFG 123
#define SM7150_SLAVE_VSENSE_CTRL_CFG 124
#define SM7150_SNOC_CNOC_MAS 125
#define SM7150_SNOC_CNOC_SLV 126
#endif

View File

@ -0,0 +1,150 @@
/* SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause */
/*
* Qualcomm SM7150 interconnect IDs
*
* Copyright (c) 2020, The Linux Foundation. All rights reserved.
* Copyright (c) 2024, Danila Tikhonov <danila@jiaxyga.com>
*/
#ifndef __DT_BINDINGS_INTERCONNECT_QCOM_SM7150_H
#define __DT_BINDINGS_INTERCONNECT_QCOM_SM7150_H
#define MASTER_A1NOC_CFG 0
#define MASTER_QUP_0 1
#define MASTER_TSIF 2
#define MASTER_EMMC 3
#define MASTER_SDCC_2 4
#define MASTER_SDCC_4 5
#define MASTER_UFS_MEM 6
#define A1NOC_SNOC_SLV 7
#define SLAVE_SERVICE_A1NOC 8
#define MASTER_A2NOC_CFG 0
#define MASTER_QDSS_BAM 1
#define MASTER_QUP_1 2
#define MASTER_CNOC_A2NOC 3
#define MASTER_CRYPTO_CORE_0 4
#define MASTER_IPA 5
#define MASTER_PCIE 6
#define MASTER_QDSS_ETR 7
#define MASTER_USB3 8
#define A2NOC_SNOC_SLV 9
#define SLAVE_ANOC_PCIE_GEM_NOC 10
#define SLAVE_SERVICE_A2NOC 11
#define MASTER_CAMNOC_HF0_UNCOMP 0
#define MASTER_CAMNOC_RT_UNCOMP 1
#define MASTER_CAMNOC_SF_UNCOMP 2
#define MASTER_CAMNOC_NRT_UNCOMP 3
#define SLAVE_CAMNOC_UNCOMP 4
#define MASTER_NPU 0
#define SLAVE_CDSP_GEM_NOC 1
#define MASTER_SPDM 0
#define SNOC_CNOC_MAS 1
#define MASTER_QDSS_DAP 2
#define SLAVE_A1NOC_CFG 3
#define SLAVE_A2NOC_CFG 4
#define SLAVE_AHB2PHY_NORTH 5
#define SLAVE_AHB2PHY_SOUTH 6
#define SLAVE_AHB2PHY_WEST 7
#define SLAVE_AOP 8
#define SLAVE_AOSS 9
#define SLAVE_CAMERA_CFG 10
#define SLAVE_CAMERA_NRT_THROTTLE_CFG 11
#define SLAVE_CAMERA_RT_THROTTLE_CFG 12
#define SLAVE_CLK_CTL 13
#define SLAVE_CDSP_CFG 14
#define SLAVE_RBCPR_CX_CFG 15
#define SLAVE_RBCPR_MX_CFG 16
#define SLAVE_CRYPTO_0_CFG 17
#define SLAVE_CNOC_DDRSS 18
#define SLAVE_DISPLAY_CFG 19
#define SLAVE_DISPLAY_THROTTLE_CFG 20
#define SLAVE_EMMC_CFG 21
#define SLAVE_GLM 22
#define SLAVE_GRAPHICS_3D_CFG 23
#define SLAVE_IMEM_CFG 24
#define SLAVE_IPA_CFG 25
#define SLAVE_CNOC_MNOC_CFG 26
#define SLAVE_PCIE_CFG 27
#define SLAVE_PDM 28
#define SLAVE_PIMEM_CFG 29
#define SLAVE_PRNG 30
#define SLAVE_QDSS_CFG 31
#define SLAVE_QUP_0 32
#define SLAVE_QUP_1 33
#define SLAVE_SDCC_2 34
#define SLAVE_SDCC_4 35
#define SLAVE_SNOC_CFG 36
#define SLAVE_SPDM_WRAPPER 37
#define SLAVE_TCSR 38
#define SLAVE_TLMM_NORTH 39
#define SLAVE_TLMM_SOUTH 40
#define SLAVE_TLMM_WEST 41
#define SLAVE_TSIF 42
#define SLAVE_UFS_MEM_CFG 43
#define SLAVE_USB3 44
#define SLAVE_VENUS_CFG 45
#define SLAVE_VENUS_CVP_THROTTLE_CFG 46
#define SLAVE_VENUS_THROTTLE_CFG 47
#define SLAVE_VSENSE_CTRL_CFG 48
#define SLAVE_CNOC_A2NOC 49
#define SLAVE_SERVICE_CNOC 50
#define MASTER_CNOC_DC_NOC 0
#define SLAVE_GEM_NOC_CFG 1
#define SLAVE_LLCC_CFG 2
#define MASTER_AMPSS_M0 0
#define MASTER_SYS_TCU 1
#define MASTER_GEM_NOC_CFG 2
#define MASTER_COMPUTE_NOC 3
#define MASTER_MNOC_HF_MEM_NOC 4
#define MASTER_MNOC_SF_MEM_NOC 5
#define MASTER_GEM_NOC_PCIE_SNOC 6
#define MASTER_SNOC_GC_MEM_NOC 7
#define MASTER_SNOC_SF_MEM_NOC 8
#define MASTER_GRAPHICS_3D 9
#define SLAVE_MSS_PROC_MS_MPU_CFG 10
#define SLAVE_GEM_NOC_SNOC 11
#define SLAVE_LLCC 12
#define SLAVE_SERVICE_GEM_NOC 13
#define MASTER_LLCC 0
#define SLAVE_EBI_CH0 1
#define MASTER_CNOC_MNOC_CFG 0
#define MASTER_CAMNOC_HF0 1
#define MASTER_CAMNOC_NRT 2
#define MASTER_CAMNOC_RT 3
#define MASTER_CAMNOC_SF 4
#define MASTER_MDP_PORT0 5
#define MASTER_MDP_PORT1 6
#define MASTER_ROTATOR 7
#define MASTER_VIDEO_P0 8
#define MASTER_VIDEO_P1 9
#define MASTER_VIDEO_PROC 10
#define SLAVE_MNOC_SF_MEM_NOC 11
#define SLAVE_MNOC_HF_MEM_NOC 12
#define SLAVE_SERVICE_MNOC 13
#define MASTER_SNOC_CFG 0
#define A1NOC_SNOC_MAS 1
#define A2NOC_SNOC_MAS 2
#define MASTER_GEM_NOC_SNOC 3
#define MASTER_PIMEM 4
#define MASTER_GIC 5
#define SLAVE_APPSS 6
#define SNOC_CNOC_SLV 7
#define SLAVE_SNOC_GEM_NOC_GC 8
#define SLAVE_SNOC_GEM_NOC_SF 9
#define SLAVE_OCIMEM 10
#define SLAVE_PIMEM 11
#define SLAVE_SERVICE_SNOC 12
#define SLAVE_QDSS_STM 13
#define SLAVE_TCU 14
#endif