Skip to content

Commit 17caa38

Browse files
krzkdtor
authored andcommitted
dt-bindings: input: cypress,cyapa: convert to dtschema
Convert the Cypress All Points Addressable (APA) I2C Touchpad / Trackpad bindings to DT schema. Reviewed-by: Rob Herring <robh@kernel.org> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20230511102559.175088-1-krzysztof.kozlowski@linaro.org Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
1 parent e96220b commit 17caa38

2 files changed

Lines changed: 49 additions & 42 deletions

File tree

Documentation/devicetree/bindings/input/cypress,cyapa.txt

Lines changed: 0 additions & 42 deletions
This file was deleted.
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/input/cypress,cyapa.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Cypress All Points Addressable (APA) I2C Touchpad / Trackpad
8+
9+
maintainers:
10+
- Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
11+
12+
properties:
13+
compatible:
14+
const: cypress,cyapa
15+
16+
reg:
17+
maxItems: 1
18+
19+
interrupts:
20+
maxItems: 1
21+
22+
wakeup-source: true
23+
24+
vcc-supply:
25+
description: 3.3V power
26+
27+
required:
28+
- compatible
29+
- reg
30+
- interrupts
31+
32+
additionalProperties: false
33+
34+
examples:
35+
- |
36+
#include <dt-bindings/interrupt-controller/irq.h>
37+
38+
i2c {
39+
#address-cells = <1>;
40+
#size-cells = <0>;
41+
42+
trackpad@67 {
43+
reg = <0x67>;
44+
compatible = "cypress,cyapa";
45+
interrupts = <2 IRQ_TYPE_EDGE_FALLING>;
46+
interrupt-parent = <&gpx1>;
47+
wakeup-source;
48+
};
49+
};

0 commit comments

Comments
 (0)