Skip to contentSkip to conversation

dt-bindings: i2c: Convert apm,xgene-slimpro-i2c to DT schema

PATCH Applied Rob Herring (Arm) 2 participants 2 messages Oct 13, 2025 – Oct 14, 2025

Subsystems (2)
lore
Share & tools
lore

Rob Herring (Arm)

author maintainer
#0 lore raw

PATCH 1/1 dt-bindings: i2c: Convert apm,xgene-slimpro-i2c to DT schema

Convert APM X-Gene slimpro-i2c binding to DT schema format. It's a straight-forward conversion.

---
 .../bindings/i2c/apm,xgene-slimpro-i2c.yaml   | 36 +++++++++++++++++++
 .../bindings/i2c/i2c-xgene-slimpro.txt        | 15 --------
 2 files changed, 36 insertions(+), 15 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/i2c/apm,xgene-slimpro-i2c.yaml
 delete mode 100644 Documentation/devicetree/bindings/i2c/i2c-xgene-slimpro.txt
Documentation/devicetree/bindings/i2c/apm,xgene-slimpro-i2c.yaml new file +36 -0
new file mode 100644
index 000000000000..9460c64071f2
@@ -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 <[email protected]>
+
+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>;
+    };
Documentation/devicetree/bindings/i2c/i2c-xgene-slimpro.txt deleted +0 -15
deleted file mode 100644
index f6b2c20cfbf6..000000000000
@@ -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>;
-	};
Signature · 1 line
2.51.0