Tom Rini | 93743d2 | 2024-04-01 09:08:13 -0400 | [diff] [blame] | 1 | # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) |
| 2 | %YAML 1.2 |
| 3 | --- |
| 4 | $id: http://devicetree.org/schemas/input/ti,drv266x.yaml# |
| 5 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | |
| 7 | title: Texas Instruments - drv266x Haptics driver |
| 8 | |
| 9 | description: | |
| 10 | Product Page: |
| 11 | http://www.ti.com/product/drv2665 |
| 12 | http://www.ti.com/product/drv2667 |
| 13 | |
| 14 | maintainers: |
| 15 | - Anshul Dalal <anshulusr@gmail.com> |
| 16 | |
| 17 | properties: |
| 18 | compatible: |
| 19 | enum: |
| 20 | - ti,drv2665 |
| 21 | - ti,drv2667 |
| 22 | |
| 23 | reg: |
| 24 | maxItems: 1 |
| 25 | |
| 26 | vbat-supply: |
| 27 | description: Required supply regulator |
| 28 | |
| 29 | required: |
| 30 | - compatible |
| 31 | - reg |
| 32 | - vbat-supply |
| 33 | |
| 34 | additionalProperties: false |
| 35 | |
| 36 | examples: |
| 37 | - | |
| 38 | #include <dt-bindings/gpio/gpio.h> |
| 39 | |
| 40 | |
| 41 | i2c { |
| 42 | #address-cells = <1>; |
| 43 | #size-cells = <0>; |
| 44 | |
| 45 | haptics@59 { |
| 46 | compatible = "ti,drv2667"; |
| 47 | reg = <0x59>; |
| 48 | vbat-supply = <&vbat>; |
| 49 | }; |
| 50 | }; |