Skip to content

Commit af45de8

Browse files
superna9999wsakernel
authored andcommitted
dt-bindings: qcom: geni-se: document I2C Master Hub wrapper variant
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 variant compatible, forbid UART and SPI sub-nodes, and remove requirement for the Master AHB clock and iommu property. Signed-off-by: Neil Armstrong <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Signed-off-by: Wolfram Sang <[email protected]>
1 parent de91770 commit af45de8

File tree

1 file changed

+38
-6
lines changed

1 file changed

+38
-6
lines changed

Documentation/devicetree/bindings/soc/qcom/qcom,geni-se.yaml

Lines changed: 38 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,19 @@ properties:
2121
compatible:
2222
enum:
2323
- qcom,geni-se-qup
24+
- qcom,geni-se-i2c-master-hub
2425

2526
reg:
2627
description: QUP wrapper common register address and length.
2728
maxItems: 1
2829

2930
clock-names:
30-
items:
31-
- const: m-ahb
32-
- const: s-ahb
31+
minItems: 1
32+
maxItems: 2
3333

3434
clocks:
35-
items:
36-
- description: Master AHB Clock
37-
- description: Slave AHB Clock
35+
minItems: 1
36+
maxItems: 2
3837

3938
"#address-cells":
4039
const: 2
@@ -81,6 +80,39 @@ patternProperties:
8180
description: GENI Serial Engine based UART Controller.
8281
$ref: /schemas/serial/qcom,serial-geni-qcom.yaml#
8382

83+
allOf:
84+
- if:
85+
properties:
86+
compatible:
87+
contains:
88+
const: qcom,geni-se-i2c-master-hub
89+
then:
90+
properties:
91+
clock-names:
92+
items:
93+
- const: s-ahb
94+
95+
clocks:
96+
items:
97+
- description: Slave AHB Clock
98+
99+
iommus: false
100+
101+
patternProperties:
102+
"spi@[0-9a-f]+$": false
103+
"serial@[0-9a-f]+$": false
104+
else:
105+
properties:
106+
clock-names:
107+
items:
108+
- const: m-ahb
109+
- const: s-ahb
110+
111+
clocks:
112+
items:
113+
- description: Master AHB Clock
114+
- description: Slave AHB Clock
115+
84116
additionalProperties: false
85117

86118
examples:

0 commit comments

Comments
 (0)