]> www.infradead.org Git - users/hch/misc.git/commitdiff
dt-bindings: i2c: Convert apm,xgene-slimpro-i2c to DT schema
authorRob Herring (Arm) <robh@kernel.org>
Mon, 13 Oct 2025 21:31:18 +0000 (16:31 -0500)
committerWolfram Sang <wsa+renesas@sang-engineering.com>
Tue, 14 Oct 2025 11:59:20 +0000 (13:59 +0200)
Convert APM X-Gene slimpro-i2c binding to DT schema format. It's a
straight-forward conversion.

Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Documentation/devicetree/bindings/i2c/apm,xgene-slimpro-i2c.yaml [new file with mode: 0644]
Documentation/devicetree/bindings/i2c/i2c-xgene-slimpro.txt [deleted file]

diff --git a/Documentation/devicetree/bindings/i2c/apm,xgene-slimpro-i2c.yaml b/Documentation/devicetree/bindings/i2c/apm,xgene-slimpro-i2c.yaml
new file mode 100644 (file)
index 0000000..9460c64
--- /dev/null
@@ -0,0 +1,36 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/i2c/apm,xgene-slimpro-i2c.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: APM X-Gene SLIMpro Mailbox I2C
+
+maintainers:
+  - Khuong Dinh <khuong@os.amperecomputing.com>
+
+description:
+  An I2C controller accessed over the "SLIMpro" mailbox.
+
+allOf:
+  - $ref: /schemas/i2c/i2c-controller.yaml#
+
+properties:
+  compatible:
+    const: apm,xgene-slimpro-i2c
+
+  mboxes:
+    maxItems: 1
+
+required:
+  - compatible
+  - mboxes
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    i2c {
+        compatible = "apm,xgene-slimpro-i2c";
+        mboxes = <&mailbox 0>;
+    };
diff --git a/Documentation/devicetree/bindings/i2c/i2c-xgene-slimpro.txt b/Documentation/devicetree/bindings/i2c/i2c-xgene-slimpro.txt
deleted file mode 100644 (file)
index f6b2c20..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-APM X-Gene SLIMpro Mailbox I2C Driver
-
-An I2C controller accessed over the "SLIMpro" mailbox.
-
-Required properties :
-
- - compatible : should be "apm,xgene-slimpro-i2c"
- - mboxes : use the label reference for the mailbox as the first parameter.
-           The second parameter is the channel number.
-
-Example :
-       i2cslimpro {
-               compatible = "apm,xgene-slimpro-i2c";
-               mboxes = <&mailbox 0>;
-       };