Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: interconnect: qcom: Fix and separate out SDM660

Separate out SDM660 icc bindings from the common file and fix the
clocks description by removing the wrong internal RPM bus clock
representation that we've been carrying for years.

Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Link: https://lore.kernel.org/r/20230721-topic-icc_bindings-v2-3-e33d5acbf3bd@linaro.org
Signed-off-by: Georgi Djakov <djakov@kernel.org>

authored by

Konrad Dybcio and committed by
Georgi Djakov
c19bcc76 5d4268b3

+108 -40
-40
Documentation/devicetree/bindings/interconnect/qcom,rpm.yaml
··· 37 37 - qcom,qcs404-bimc 38 38 - qcom,qcs404-pcnoc 39 39 - qcom,qcs404-snoc 40 - - qcom,sdm660-a2noc 41 - - qcom,sdm660-bimc 42 - - qcom,sdm660-cnoc 43 - - qcom,sdm660-gnoc 44 - - qcom,sdm660-mnoc 45 - - qcom,sdm660-snoc 46 40 47 41 '#interconnect-cells': 48 42 description: | ··· 117 123 - qcom,qcs404-bimc 118 124 - qcom,qcs404-pcnoc 119 125 - qcom,qcs404-snoc 120 - - qcom,sdm660-bimc 121 - - qcom,sdm660-cnoc 122 - - qcom,sdm660-gnoc 123 - - qcom,sdm660-snoc 124 126 125 127 then: 126 128 properties: ··· 136 146 contains: 137 147 enum: 138 148 - qcom,msm8996-mnoc 139 - - qcom,sdm660-mnoc 140 149 141 150 then: 142 151 properties: ··· 197 208 - description: Bus A Clock 198 209 - description: Aggregate2 NoC UFS AXI Clock 199 210 - description: UFS AXI Clock 200 - 201 - - if: 202 - properties: 203 - compatible: 204 - contains: 205 - enum: 206 - - qcom,sdm660-a2noc 207 - 208 - then: 209 - properties: 210 - clock-names: 211 - items: 212 - - const: bus 213 - - const: bus_a 214 - - const: ipa 215 - - const: ufs_axi 216 - - const: aggre2_ufs_axi 217 - - const: aggre2_usb3_axi 218 - - const: cfg_noc_usb2_axi 219 - 220 - clocks: 221 - items: 222 - - description: Bus Clock. 223 - - description: Bus A Clock. 224 - - description: IPA Clock. 225 - - description: UFS AXI Clock. 226 - - description: Aggregate2 UFS AXI Clock. 227 - - description: Aggregate2 USB3 AXI Clock. 228 - - description: Config NoC USB2 AXI Clock. 229 211 230 212 - if: 231 213 not:
+108
Documentation/devicetree/bindings/interconnect/qcom,sdm660.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/interconnect/qcom,sdm660.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Qualcomm SDM660 Network-On-Chip interconnect 8 + 9 + maintainers: 10 + - Konrad Dybcio <konradybcio@kernel.org> 11 + 12 + description: | 13 + The Qualcomm SDM660 interconnect providers support adjusting the 14 + bandwidth requirements between the various NoC fabrics. 15 + 16 + properties: 17 + compatible: 18 + enum: 19 + - qcom,sdm660-a2noc 20 + - qcom,sdm660-bimc 21 + - qcom,sdm660-cnoc 22 + - qcom,sdm660-gnoc 23 + - qcom,sdm660-mnoc 24 + - qcom,sdm660-snoc 25 + 26 + reg: 27 + maxItems: 1 28 + 29 + clock-names: 30 + minItems: 1 31 + maxItems: 5 32 + 33 + clocks: 34 + minItems: 1 35 + maxItems: 5 36 + 37 + required: 38 + - compatible 39 + - reg 40 + 41 + unevaluatedProperties: false 42 + 43 + allOf: 44 + - $ref: qcom,rpm-common.yaml# 45 + - if: 46 + properties: 47 + compatible: 48 + const: qcom,sdm660-mnoc 49 + 50 + then: 51 + properties: 52 + clocks: 53 + items: 54 + - description: CPU-NoC High-performance Bus Clock. 55 + 56 + clock-names: 57 + const: iface 58 + 59 + - if: 60 + properties: 61 + compatible: 62 + const: qcom,sdm660-a2noc 63 + 64 + then: 65 + properties: 66 + clocks: 67 + items: 68 + - description: IPA Clock. 69 + - description: UFS AXI Clock. 70 + - description: Aggregate2 UFS AXI Clock. 71 + - description: Aggregate2 USB3 AXI Clock. 72 + - description: Config NoC USB2 AXI Clock. 73 + 74 + clock-names: 75 + items: 76 + - const: ipa 77 + - const: ufs_axi 78 + - const: aggre2_ufs_axi 79 + - const: aggre2_usb3_axi 80 + - const: cfg_noc_usb2_axi 81 + 82 + examples: 83 + - | 84 + #include <dt-bindings/clock/qcom,gcc-sdm660.h> 85 + #include <dt-bindings/clock/qcom,mmcc-sdm660.h> 86 + #include <dt-bindings/clock/qcom,rpmcc.h> 87 + 88 + bimc: interconnect@1008000 { 89 + compatible = "qcom,sdm660-bimc"; 90 + reg = <0x01008000 0x78000>; 91 + #interconnect-cells = <1>; 92 + }; 93 + 94 + a2noc: interconnect@1704000 { 95 + compatible = "qcom,sdm660-a2noc"; 96 + reg = <0x01704000 0xc100>; 97 + #interconnect-cells = <1>; 98 + clocks = <&rpmcc RPM_SMD_IPA_CLK>, 99 + <&gcc GCC_UFS_AXI_CLK>, 100 + <&gcc GCC_AGGRE2_UFS_AXI_CLK>, 101 + <&gcc GCC_AGGRE2_USB3_AXI_CLK>, 102 + <&gcc GCC_CFG_NOC_USB2_AXI_CLK>; 103 + clock-names = "ipa", 104 + "ufs_axi", 105 + "aggre2_ufs_axi", 106 + "aggre2_usb3_axi", 107 + "cfg_noc_usb2_axi"; 108 + };