[PATCH v2 15/21] dt-bindings: i2c: document support for SA8255p

From: Nikunj Kela
Date: Tue Sep 03 2024 - 18:07:31 EST


Add compatible representing i2c support on SA8255p.

Clocks and interconnects are being configured in Firmware VM
on SA8255p, therefore making them optional.

CC: Praveen Talari <quic_ptalari@xxxxxxxxxxx>
Signed-off-by: Nikunj Kela <quic_nkela@xxxxxxxxxxx>
---
.../bindings/i2c/qcom,i2c-geni-qcom.yaml | 33 +++++++++++++++++--
1 file changed, 31 insertions(+), 2 deletions(-)

diff --git a/Documentation/devicetree/bindings/i2c/qcom,i2c-geni-qcom.yaml b/Documentation/devicetree/bindings/i2c/qcom,i2c-geni-qcom.yaml
index 9f66a3bb1f80..b477fae734b6 100644
--- a/Documentation/devicetree/bindings/i2c/qcom,i2c-geni-qcom.yaml
+++ b/Documentation/devicetree/bindings/i2c/qcom,i2c-geni-qcom.yaml
@@ -15,6 +15,7 @@ properties:
enum:
- qcom,geni-i2c
- qcom,geni-i2c-master-hub
+ - qcom,sa8255p-geni-i2c

clocks:
minItems: 1
@@ -69,8 +70,6 @@ properties:
required:
- compatible
- interrupts
- - clocks
- - clock-names
- reg

allOf:
@@ -81,6 +80,10 @@ allOf:
contains:
const: qcom,geni-i2c-master-hub
then:
+ required:
+ - clocks
+ - clock-names
+
properties:
clocks:
minItems: 2
@@ -100,7 +103,21 @@ allOf:
items:
- const: qup-core
- const: qup-config
+
+ - if:
+ properties:
+ compatible:
+ contains:
+ const: qcom,sa8255p-geni-i2c
+ then:
+ required:
+ - power-domains
+
else:
+ required:
+ - clocks
+ - clock-names
+
properties:
clocks:
maxItems: 1
@@ -143,4 +160,16 @@ examples:
power-domains = <&rpmhpd SC7180_CX>;
required-opps = <&rpmhpd_opp_low_svs>;
};
+
+ - |
+ #include <dt-bindings/interrupt-controller/arm-gic.h>
+
+ i2c@a90000 {
+ compatible = "qcom,sa8255p-geni-i2c";
+ reg = <0xa90000 0x4000>;
+ interrupts = <GIC_SPI 357 IRQ_TYPE_LEVEL_HIGH>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ power-domains = <&scmi9_pd 11>;
+ };
...
--
2.34.1