Skip to content

Commit 9fbad55

Browse files
Griffin Kroah-Hartmandtor
authored andcommitted
dt-bindings: input: Add Awinic AW86927
Add bindings for the Awinic AW86927 haptic chip which can be found in smartphones. Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Griffin Kroah-Hartman <griffin.kroah@fairphone.com> Link: https://lore.kernel.org/r/20250925-aw86927-v3-1-1fc6265b42de@fairphone.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
1 parent 2728e71 commit 9fbad55

1 file changed

Lines changed: 48 additions & 0 deletions

File tree

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/input/awinic,aw86927.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Awinic AW86927 LRA Haptic IC
8+
9+
maintainers:
10+
- Griffin Kroah-Hartman <griffin.kroah@fairphone.com>
11+
12+
properties:
13+
compatible:
14+
const: awinic,aw86927
15+
16+
reg:
17+
maxItems: 1
18+
19+
reset-gpios:
20+
maxItems: 1
21+
22+
interrupts:
23+
maxItems: 1
24+
25+
required:
26+
- compatible
27+
- reg
28+
- reset-gpios
29+
- interrupts
30+
31+
additionalProperties: false
32+
33+
examples:
34+
- |
35+
#include <dt-bindings/gpio/gpio.h>
36+
#include <dt-bindings/interrupt-controller/irq.h>
37+
38+
i2c {
39+
#address-cells = <1>;
40+
#size-cells = <0>;
41+
42+
vibrator@5a {
43+
compatible = "awinic,aw86927";
44+
reg = <0x5a>;
45+
interrupts-extended = <&tlmm 101 IRQ_TYPE_EDGE_FALLING>;
46+
reset-gpios = <&tlmm 100 GPIO_ACTIVE_LOW>;
47+
};
48+
};

0 commit comments

Comments
 (0)