[PATCH] dt-bindings: input: Add AD7147 CapTouch schema

Rob Herring (Arm) posted 1 patch 2 days, 17 hours ago
There is a newer version of this series
.../devicetree/bindings/input/adi,ad714x.yaml | 48 +++++++++++++++++++
1 file changed, 48 insertions(+)
create mode 100644 Documentation/devicetree/bindings/input/adi,ad714x.yaml
[PATCH] dt-bindings: input: Add AD7147 CapTouch schema
Posted by Rob Herring (Arm) 2 days, 17 hours ago
Add a schema for the Analog Devices AD7147 CapTouch controller used by
the Microsoft Lumia 950 and Lumia 950 XL device trees. Document its I2C
address, interrupt, and optional vcc supply.

Assisted-by: LLM
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
---
 .../devicetree/bindings/input/adi,ad714x.yaml | 48 +++++++++++++++++++
 1 file changed, 48 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/input/adi,ad714x.yaml

diff --git a/Documentation/devicetree/bindings/input/adi,ad714x.yaml b/Documentation/devicetree/bindings/input/adi,ad714x.yaml
new file mode 100644
index 000000000000..8351c28147ee
--- /dev/null
+++ b/Documentation/devicetree/bindings/input/adi,ad714x.yaml
@@ -0,0 +1,48 @@
+# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
+%YAML 1.2
+---
+$id: http://devicetree.org/schemas/input/adi,ad714x.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Analog Devices AD7147 CapTouch Programmable Controller
+
+maintainers:
+  - Michael Hennerich <michael.hennerich@analog.com>
+
+properties:
+  compatible:
+    const: adi,ad7147_captouch
+
+  reg:
+    maxItems: 1
+
+  interrupts:
+    maxItems: 1
+
+  vcc-supply: true
+
+required:
+  - compatible
+  - reg
+  - interrupts
+
+additionalProperties: false
+
+examples:
+  - |
+    #include <dt-bindings/interrupt-controller/irq.h>
+
+    i2c {
+        #address-cells = <1>;
+        #size-cells = <0>;
+
+        touch@2c {
+            compatible = "adi,ad7147_captouch";
+            reg = <0x2c>;
+            interrupt-parent = <&tlmm>;
+            interrupts = <96 IRQ_TYPE_EDGE_FALLING>;
+            vcc-supply = <&vreg_l18a_2p85>;
+        };
+    };
+
+...
-- 
2.53.0
Re: [PATCH] dt-bindings: input: Add AD7147 CapTouch schema
Posted by Conor Dooley 1 day, 23 hours ago
On Mon, Sep 21, 2026 at 06:27:30PM -0500, Rob Herring (Arm) wrote:
> Add a schema for the Analog Devices AD7147 CapTouch controller used by
> the Microsoft Lumia 950 and Lumia 950 XL device trees. Document its I2C
> address, interrupt, and optional vcc supply.
> 
> Assisted-by: LLM
> Signed-off-by: Rob Herring (Arm) <robh@kernel.org>
> ---
>  .../devicetree/bindings/input/adi,ad714x.yaml | 48 +++++++++++++++++++
>  1 file changed, 48 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/input/adi,ad714x.yaml
> 
> diff --git a/Documentation/devicetree/bindings/input/adi,ad714x.yaml b/Documentation/devicetree/bindings/input/adi,ad714x.yaml
> new file mode 100644
> index 000000000000..8351c28147ee
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/input/adi,ad714x.yaml

Does the LLM guidance you provide not include filenames matching
compatibles?

> @@ -0,0 +1,48 @@
> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
> +%YAML 1.2
> +---
> +$id: http://devicetree.org/schemas/input/adi,ad714x.yaml#
> +$schema: http://devicetree.org/meta-schemas/core.yaml#
> +
> +title: Analog Devices AD7147 CapTouch Programmable Controller
> +
> +maintainers:
> +  - Michael Hennerich <michael.hennerich@analog.com>
> +
> +properties:
> +  compatible:
> +    const: adi,ad7147_captouch
> +
> +  reg:
> +    maxItems: 1
> +
> +  interrupts:
> +    maxItems: 1
> +
> +  vcc-supply: true
> +
> +required:
> +  - compatible
> +  - reg
> +  - interrupts
> +
> +additionalProperties: false
> +
> +examples:
> +  - |
> +    #include <dt-bindings/interrupt-controller/irq.h>
> +
> +    i2c {
> +        #address-cells = <1>;
> +        #size-cells = <0>;
> +
> +        touch@2c {
> +            compatible = "adi,ad7147_captouch";
> +            reg = <0x2c>;
> +            interrupt-parent = <&tlmm>;
> +            interrupts = <96 IRQ_TYPE_EDGE_FALLING>;
> +            vcc-supply = <&vreg_l18a_2p85>;
> +        };
> +    };
> +
> +...
> -- 
> 2.53.0
>