Skip to content

Commit cb29d4e

Browse files
superna9999wsakernel
authored andcommitted
dt-bindings: i2c: qcom-geni: document I2C Master Hub serial I2C engine
The I2C Master Hub is a stripped down version of the GENI Serial Engine QUP Wrapper Controller but only supporting I2C serial engines without DMA support. Document the I2C Serial Engine variant used within the I2C Master Hub Wrapper. This serial engine variant lacks DMA support, requires a core clock, and since DMA support is lacking the memory interconnect path isn't needed. Signed-off-by: Neil Armstrong <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
1 parent af45de8 commit cb29d4e

File tree

1 file changed

+54
-10
lines changed

1 file changed

+54
-10
lines changed

Documentation/devicetree/bindings/i2c/qcom,i2c-geni-qcom.yaml

Lines changed: 54 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,19 @@ maintainers:
1010
- Andy Gross <[email protected]>
1111
- Bjorn Andersson <[email protected]>
1212

13-
allOf:
14-
- $ref: /schemas/i2c/i2c-controller.yaml#
15-
1613
properties:
1714
compatible:
18-
const: qcom,geni-i2c
15+
enum:
16+
- qcom,geni-i2c
17+
- qcom,geni-i2c-master-hub
1918

2019
clocks:
21-
maxItems: 1
20+
minItems: 1
21+
maxItems: 2
2222

2323
clock-names:
24-
const: se
24+
minItems: 1
25+
maxItems: 2
2526

2627
clock-frequency:
2728
default: 100000
@@ -35,13 +36,12 @@ properties:
3536
- const: rx
3637

3738
interconnects:
39+
minItems: 2
3840
maxItems: 3
3941

4042
interconnect-names:
41-
items:
42-
- const: qup-core
43-
- const: qup-config
44-
- const: qup-memory
43+
minItems: 2
44+
maxItems: 3
4545

4646
interrupts:
4747
maxItems: 1
@@ -71,6 +71,50 @@ required:
7171
- clock-names
7272
- reg
7373

74+
allOf:
75+
- $ref: /schemas/i2c/i2c-controller.yaml#
76+
- if:
77+
properties:
78+
compatible:
79+
contains:
80+
const: qcom,geni-i2c-master-hub
81+
then:
82+
properties:
83+
clocks:
84+
minItems: 2
85+
86+
clock-names:
87+
items:
88+
- const: se
89+
- const: core
90+
91+
dmas: false
92+
dma-names: false
93+
94+
interconnects:
95+
maxItems: 2
96+
97+
interconnect-names:
98+
items:
99+
- const: qup-core
100+
- const: qup-config
101+
else:
102+
properties:
103+
clocks:
104+
maxItems: 1
105+
106+
clock-names:
107+
const: se
108+
109+
interconnects:
110+
minItems: 3
111+
112+
interconnect-names:
113+
items:
114+
- const: qup-core
115+
- const: qup-config
116+
- const: qup-memory
117+
74118
unevaluatedProperties: false
75119

76120
examples:

0 commit comments

Comments
 (0)