diff mbox series

[1/4] dt-bindings: i2c: dw: Document compatible thead,th1520-i2c

Message ID 20240425082138.374445-2-thomas.bonnefille@bootlin.com
State Changes Requested
Headers show
Series Add I2C support on TH1520 | expand

Checks

Context Check Description
robh/checkpatch success
robh/patch-applied success
robh/dtbs-check warning build log
robh/dt-meta-schema success

Commit Message

Thomas Bonnefille April 25, 2024, 8:21 a.m. UTC
Add documentation for compatible string thead,th1520-i2c which can be
used specifically for the TH1520 SoC.

Signed-off-by: Thomas Bonnefille <thomas.bonnefille@bootlin.com>
---
 .../devicetree/bindings/i2c/snps,designware-i2c.yaml | 12 ++++++++++++
 1 file changed, 12 insertions(+)

Comments

Krzysztof Kozlowski April 25, 2024, 9:48 a.m. UTC | #1
On 25/04/2024 10:21, Thomas Bonnefille wrote:
> Add documentation for compatible string thead,th1520-i2c which can be
> used specifically for the TH1520 SoC.
> 
> Signed-off-by: Thomas Bonnefille <thomas.bonnefille@bootlin.com>
> ---

...

>      };
> +  - |
> +    i2c@e7f20000 {
> +      compatible = "thead,th1520-i2c", "snps,designware-i2c";
> +      reg = <0xe7f20000 0x4000>;
> +      interrupts = <44>;
> +      clocks = <&i2c_ic_clk>;
> +      status = "disabled";

No need for new example. No differences.

Best regards,
Krzysztof
diff mbox series

Patch

diff --git a/Documentation/devicetree/bindings/i2c/snps,designware-i2c.yaml b/Documentation/devicetree/bindings/i2c/snps,designware-i2c.yaml
index d9293c57f573..a7fa191fefd6 100644
--- a/Documentation/devicetree/bindings/i2c/snps,designware-i2c.yaml
+++ b/Documentation/devicetree/bindings/i2c/snps,designware-i2c.yaml
@@ -33,6 +33,10 @@  properties:
           - const: snps,designware-i2c
       - description: Baikal-T1 SoC System I2C controller
         const: baikal,bt1-sys-i2c
+      - description: T-HEAD TH1520 SoCs I2C controller
+        items:
+          - const: thead,th1520-i2c
+          - const: snps,designware-i2c
 
   reg:
     minItems: 1
@@ -142,4 +146,12 @@  examples:
       interrupts = <8>;
       clocks = <&ahb_clk>;
     };
+  - |
+    i2c@e7f20000 {
+      compatible = "thead,th1520-i2c", "snps,designware-i2c";
+      reg = <0xe7f20000 0x4000>;
+      interrupts = <44>;
+      clocks = <&i2c_ic_clk>;
+      status = "disabled";
+    };
 ...