Skip to content

Commit 400e531

Browse files
konradybcioGeorgi Djakov
authored andcommitted
dt-bindings: interconnect: qcom: Introduce qcom,rpm-common
The current RPM interconnect bindings are messy. Start cleaning them up with a common include. Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org> Link: https://lore.kernel.org/r/20230721-topic-icc_bindings-v2-1-e33d5acbf3bd@linaro.org Signed-off-by: Georgi Djakov <djakov@kernel.org>
1 parent 0bb80ec commit 400e531

2 files changed

Lines changed: 36 additions & 10 deletions

File tree

Documentation/devicetree/bindings/interconnect/qcom,qcm2290.yaml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ description: |
1313
The Qualcomm QCM2290 interconnect providers support adjusting the
1414
bandwidth requirements between the various NoC fabrics.
1515
16+
allOf:
17+
- $ref: qcom,rpm-common.yaml#
18+
1619
properties:
1720
reg:
1821
maxItems: 1
@@ -23,9 +26,6 @@ properties:
2326
- qcom,qcm2290-cnoc
2427
- qcom,qcm2290-snoc
2528

26-
'#interconnect-cells':
27-
const: 1
28-
2929
clock-names:
3030
items:
3131
- const: bus
@@ -44,16 +44,16 @@ patternProperties:
4444
The interconnect providers do not have a separate QoS register space,
4545
but share parent's space.
4646

47+
allOf:
48+
- $ref: qcom,rpm-common.yaml#
49+
4750
properties:
4851
compatible:
4952
enum:
5053
- qcom,qcm2290-qup-virt
5154
- qcom,qcm2290-mmrt-virt
5255
- qcom,qcm2290-mmnrt-virt
5356

54-
'#interconnect-cells':
55-
const: 1
56-
5757
clock-names:
5858
items:
5959
- const: bus
@@ -66,20 +66,18 @@ patternProperties:
6666

6767
required:
6868
- compatible
69-
- '#interconnect-cells'
7069
- clock-names
7170
- clocks
7271

73-
additionalProperties: false
72+
unevaluatedProperties: false
7473

7574
required:
7675
- compatible
7776
- reg
78-
- '#interconnect-cells'
7977
- clock-names
8078
- clocks
8179

82-
additionalProperties: false
80+
unevaluatedProperties: false
8381

8482
examples:
8583
- |
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/interconnect/qcom,rpm-common.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Qualcomm RPMh Network-On-Chip Interconnect
8+
9+
maintainers:
10+
- Konrad Dybcio <konradybcio@kernel.org>
11+
12+
description:
13+
RPM interconnect providers support for managing system bandwidth requirements
14+
through manual requests based on either predefined values or as indicated by
15+
the bus monitor hardware. Each provider node represents a NoC bus master,
16+
driven by a dedicated clock source.
17+
18+
properties:
19+
'#interconnect-cells':
20+
oneOf:
21+
- const: 2
22+
- const: 1
23+
deprecated: true
24+
25+
required:
26+
- '#interconnect-cells'
27+
28+
additionalProperties: true

0 commit comments

Comments
 (0)