| 1 |
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause |
| 2 |
%YAML 1.2 |
| 3 |
--- |
| 4 |
$id: http://devicetree.org/schemas/interconnect/qcom,sm8450-rpmh.yaml# |
| 5 |
$schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 |
|
| 7 |
title: Qualcomm RPMh Network-On-Chip Interconnect on SM8450 |
| 8 |
|
| 9 |
maintainers: |
| 10 |
- Bjorn Andersson <[email protected]> |
| 11 |
- Konrad Dybcio <[email protected]> |
| 12 |
|
| 13 |
description: | |
| 14 |
RPMh interconnect providers support system bandwidth requirements through |
| 15 |
RPMh hardware accelerators known as Bus Clock Manager (BCM). |
| 16 |
|
| 17 |
See also: include/dt-bindings/interconnect/qcom,sm8450.h |
| 18 |
|
| 19 |
properties: |
| 20 |
compatible: |
| 21 |
enum: |
| 22 |
- qcom,sm8450-aggre1-noc |
| 23 |
- qcom,sm8450-aggre2-noc |
| 24 |
- qcom,sm8450-clk-virt |
| 25 |
- qcom,sm8450-config-noc |
| 26 |
- qcom,sm8450-gem-noc |
| 27 |
- qcom,sm8450-lpass-ag-noc |
| 28 |
- qcom,sm8450-mc-virt |
| 29 |
- qcom,sm8450-mmss-noc |
| 30 |
- qcom,sm8450-nsp-noc |
| 31 |
- qcom,sm8450-pcie-anoc |
| 32 |
- qcom,sm8450-system-noc |
| 33 |
|
| 34 |
reg: |
| 35 |
maxItems: 1 |
| 36 |
|
| 37 |
clocks: |
| 38 |
minItems: 1 |
| 39 |
maxItems: 4 |
| 40 |
|
| 41 |
required: |
| 42 |
- compatible |
| 43 |
|
| 44 |
allOf: |
| 45 |
- $ref: qcom,rpmh-common.yaml# |
| 46 |
- if: |
| 47 |
properties: |
| 48 |
compatible: |
| 49 |
contains: |
| 50 |
enum: |
| 51 |
- qcom,sm8450-clk-virt |
| 52 |
- qcom,sm8450-mc-virt |
| 53 |
then: |
| 54 |
properties: |
| 55 |
reg: false |
| 56 |
else: |
| 57 |
required: |
| 58 |
- reg |
| 59 |
|
| 60 |
- if: |
| 61 |
properties: |
| 62 |
compatible: |
| 63 |
contains: |
| 64 |
enum: |
| 65 |
- qcom,sm8450-aggre1-noc |
| 66 |
then: |
| 67 |
properties: |
| 68 |
clocks: |
| 69 |
items: |
| 70 |
- description: aggre UFS PHY AXI clock |
| 71 |
- description: aggre USB3 PRIM AXI clock |
| 72 |
|
| 73 |
- if: |
| 74 |
properties: |
| 75 |
compatible: |
| 76 |
contains: |
| 77 |
enum: |
| 78 |
- qcom,sm8450-aggre2-noc |
| 79 |
then: |
| 80 |
properties: |
| 81 |
clocks: |
| 82 |
items: |
| 83 |
- description: aggre-NOC PCIe 0 AXI clock |
| 84 |
- description: aggre-NOC PCIe 1 AXI clock |
| 85 |
- description: aggre UFS PHY AXI clock |
| 86 |
- description: RPMH CC IPA clock |
| 87 |
|
| 88 |
- if: |
| 89 |
properties: |
| 90 |
compatible: |
| 91 |
contains: |
| 92 |
enum: |
| 93 |
- qcom,sm8450-aggre1-noc |
| 94 |
- qcom,sm8450-aggre2-noc |
| 95 |
then: |
| 96 |
required: |
| 97 |
- clocks |
| 98 |
else: |
| 99 |
properties: |
| 100 |
clocks: false |
| 101 |
|
| 102 |
unevaluatedProperties: false |
| 103 |
|
| 104 |
examples: |
| 105 |
- | |
| 106 |
#include <dt-bindings/clock/qcom,gcc-sm8450.h> |
| 107 |
#include <dt-bindings/clock/qcom,rpmh.h> |
| 108 |
|
| 109 |
interconnect-0 { |
| 110 |
compatible = "qcom,sm8450-clk-virt"; |
| 111 |
#interconnect-cells = <2>; |
| 112 |
qcom,bcm-voters = <&apps_bcm_voter>; |
| 113 |
}; |
| 114 |
|
| 115 |
interconnect@1700000 { |
| 116 |
compatible = "qcom,sm8450-aggre2-noc"; |
| 117 |
reg = <0x01700000 0x31080>; |
| 118 |
#interconnect-cells = <2>; |
| 119 |
qcom,bcm-voters = <&apps_bcm_voter>; |
| 120 |
clocks = <&gcc GCC_AGGRE_NOC_PCIE_0_AXI_CLK>, |
| 121 |
<&gcc GCC_AGGRE_NOC_PCIE_1_AXI_CLK>, |
| 122 |
<&gcc GCC_AGGRE_UFS_PHY_AXI_CLK>, |
| 123 |
<&rpmhcc RPMH_IPA_CLK>; |
| 124 |
}; |