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

dt-bindings: interconnect: Exclude all non msm8939 from snoc-mm

New properties should be defined before the allOf. Move the
patternProperties definition to before the additionalProperties: false in
this file.

Exclude all non msm8939 compats from containing a matching
patternProperties.

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Link: https://lore.kernel.org/r/20230123023127.1186619-3-bryan.odonoghue@linaro.org
Signed-off-by: Georgi Djakov <djakov@kernel.org>

authored by

Bryan O'Donoghue and committed by
Georgi Djakov
16700acc 62a45456

+42 -31
+42 -31
Documentation/devicetree/bindings/interconnect/qcom,rpm.yaml
··· 62 62 power-domains: 63 63 maxItems: 1 64 64 65 + # Child node's properties 66 + patternProperties: 67 + '^interconnect-[a-z0-9]+$': 68 + type: object 69 + description: 70 + snoc-mm is a child of snoc, sharing snoc's register address space. 71 + 72 + properties: 73 + compatible: 74 + enum: 75 + - qcom,msm8939-snoc-mm 76 + 77 + '#interconnect-cells': 78 + const: 1 79 + 80 + clock-names: 81 + items: 82 + - const: bus 83 + - const: bus_a 84 + 85 + clocks: 86 + items: 87 + - description: Bus Clock 88 + - description: Bus A Clock 89 + 90 + required: 91 + - compatible 92 + - '#interconnect-cells' 93 + - clock-names 94 + - clocks 95 + 65 96 required: 66 97 - compatible 67 98 - reg ··· 139 108 items: 140 109 - description: Bus Clock 141 110 - description: Bus A Clock 142 - 143 - # Child node's properties 144 - patternProperties: 145 - '^interconnect-[a-z0-9]+$': 146 - type: object 147 - description: 148 - snoc-mm is a child of snoc, sharing snoc's register address space. 149 - 150 - properties: 151 - compatible: 152 - enum: 153 - - qcom,msm8939-snoc-mm 154 - 155 - '#interconnect-cells': 156 - const: 1 157 - 158 - clock-names: 159 - items: 160 - - const: bus 161 - - const: bus_a 162 - 163 - clocks: 164 - items: 165 - - description: Bus Clock 166 - - description: Bus A Clock 167 - 168 - required: 169 - - compatible 170 - - '#interconnect-cells' 171 - - clock-names 172 - - clocks 173 111 174 112 - if: 175 113 properties: ··· 214 214 - description: Aggregate2 UFS AXI Clock. 215 215 - description: Aggregate2 USB3 AXI Clock. 216 216 - description: Config NoC USB2 AXI Clock. 217 + 218 + - if: 219 + not: 220 + properties: 221 + compatible: 222 + contains: 223 + enum: 224 + - qcom,msm8939-snoc 225 + then: 226 + patternProperties: 227 + '^interconnect-[a-z0-9]+$': false 217 228 218 229 examples: 219 230 - |