]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
dt-bindings: i2c: cnxt,cx92755-i2c: Convert to DT schema
authorShi Hao <i.shihao.999@gmail.com>
Sat, 11 Apr 2026 11:24:51 +0000 (16:54 +0530)
committerAndi Shyti <andi.shyti@kernel.org>
Tue, 14 Apr 2026 22:20:50 +0000 (00:20 +0200)
Convert the Conexant Digicolor I2C bindings to DT schema.

Signed-off-by: Shi Hao <i.shihao.999@gmail.com>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Link: https://lore.kernel.org/r/20260411112451.35095-1-i.shihao.999@gmail.com
Documentation/devicetree/bindings/i2c/cnxt,cx92755-i2c.yaml [new file with mode: 0644]
Documentation/devicetree/bindings/i2c/i2c-digicolor.txt [deleted file]

diff --git a/Documentation/devicetree/bindings/i2c/cnxt,cx92755-i2c.yaml b/Documentation/devicetree/bindings/i2c/cnxt,cx92755-i2c.yaml
new file mode 100644 (file)
index 0000000..c11bbf8
--- /dev/null
@@ -0,0 +1,49 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/i2c/cnxt,cx92755-i2c.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Conexant Digicolor I2C controller
+
+allOf:
+  - $ref: /schemas/i2c/i2c-controller.yaml#
+
+maintainers:
+  - Baruch Siach <baruch@tkos.co.il>
+
+properties:
+  compatible:
+    const: cnxt,cx92755-i2c
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    maxItems: 1
+
+  clocks:
+    maxItems: 1
+
+  clock-frequency:
+    default: 100000
+
+required:
+  - compatible
+  - reg
+  - interrupts
+  - clocks
+
+unevaluatedProperties: false
+
+examples:
+  - |
+    i2c@f0000120 {
+      compatible = "cnxt,cx92755-i2c";
+      reg = <0xf0000120 0x10>;
+      interrupts = <28>;
+      clocks = <&main_clk>;
+      clock-frequency = <100000>;
+      #address-cells = <1>;
+      #size-cells = <0>;
+    };
diff --git a/Documentation/devicetree/bindings/i2c/i2c-digicolor.txt b/Documentation/devicetree/bindings/i2c/i2c-digicolor.txt
deleted file mode 100644 (file)
index 457a098..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-Conexant Digicolor I2C controller
-
-Required properties:
- - compatible: must be "cnxt,cx92755-i2c"
- - reg: physical address and length of the device registers
- - interrupts: a single interrupt specifier
- - clocks: clock for the device
- - #address-cells: should be <1>
- - #size-cells: should be <0>
-
-Optional properties:
-- clock-frequency: the desired I2C bus clock frequency in Hz; in
-  absence of this property the default value is used (100 kHz).
-
-Example:
-
-       i2c: i2c@f0000120 {
-               compatible = "cnxt,cx92755-i2c";
-               reg = <0xf0000120 0x10>;
-               interrupts = <28>;
-               clocks = <&main_clk>;
-               clock-frequency = <100000>;
-               #address-cells = <1>;
-               #size-cells = <0>;
-       };