Commit af45de83 authored by Neil Armstrong's avatar Neil Armstrong Committed by Wolfram Sang

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: default avatarNeil Armstrong <neil.armstrong@linaro.org>
Reviewed-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: default avatarWolfram Sang <wsa@kernel.org>
parent de917701
...@@ -21,20 +21,19 @@ properties: ...@@ -21,20 +21,19 @@ properties:
compatible: compatible:
enum: enum:
- qcom,geni-se-qup - qcom,geni-se-qup
- qcom,geni-se-i2c-master-hub
reg: reg:
description: QUP wrapper common register address and length. description: QUP wrapper common register address and length.
maxItems: 1 maxItems: 1
clock-names: clock-names:
items: minItems: 1
- const: m-ahb maxItems: 2
- const: s-ahb
clocks: clocks:
items: minItems: 1
- description: Master AHB Clock maxItems: 2
- description: Slave AHB Clock
"#address-cells": "#address-cells":
const: 2 const: 2
...@@ -81,6 +80,39 @@ patternProperties: ...@@ -81,6 +80,39 @@ patternProperties:
description: GENI Serial Engine based UART Controller. description: GENI Serial Engine based UART Controller.
$ref: /schemas/serial/qcom,serial-geni-qcom.yaml# $ref: /schemas/serial/qcom,serial-geni-qcom.yaml#
allOf:
- if:
properties:
compatible:
contains:
const: qcom,geni-se-i2c-master-hub
then:
properties:
clock-names:
items:
- const: s-ahb
clocks:
items:
- description: Slave AHB Clock
iommus: false
patternProperties:
"spi@[0-9a-f]+$": false
"serial@[0-9a-f]+$": false
else:
properties:
clock-names:
items:
- const: m-ahb
- const: s-ahb
clocks:
items:
- description: Master AHB Clock
- description: Slave AHB Clock
additionalProperties: false additionalProperties: false
examples: examples:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment