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 7title: Awinic AW86927 LRA Haptic IC 8 9maintainers: 10 - Griffin Kroah-Hartman <griffin.kroah@fairphone.com> 11 12properties: 13 compatible: 14 oneOf: 15 - const: awinic,aw86927 16 - items: 17 - enum: 18 - awinic,aw86938 19 - const: awinic,aw86927 20 21 reg: 22 maxItems: 1 23 24 reset-gpios: 25 maxItems: 1 26 27 interrupts: 28 maxItems: 1 29 30required: 31 - compatible 32 - reg 33 - reset-gpios 34 - interrupts 35 36additionalProperties: false 37 38examples: 39 - | 40 #include <dt-bindings/gpio/gpio.h> 41 #include <dt-bindings/interrupt-controller/irq.h> 42 43 i2c { 44 #address-cells = <1>; 45 #size-cells = <0>; 46 47 vibrator@5a { 48 compatible = "awinic,aw86927"; 49 reg = <0x5a>; 50 interrupts-extended = <&tlmm 101 IRQ_TYPE_EDGE_FALLING>; 51 reset-gpios = <&tlmm 100 GPIO_ACTIVE_LOW>; 52 }; 53 }; 54