Skip to content

Commit aefebd1

Browse files
ArchUsr64dtor
authored andcommitted
dt-bindings: input: convert drv266x to json-schema
Convert devicetree binding documentation for ti drv2665 and drv2667 haptics driver to json-schema. The previously two separate bindings have been merged into a single drv266x.yaml. Signed-off-by: Anshul Dalal <anshulusr@gmail.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20231221183109.684325-1-anshulusr@gmail.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
1 parent c67f8a1 commit aefebd1

3 files changed

Lines changed: 50 additions & 34 deletions

File tree

Documentation/devicetree/bindings/input/ti,drv2665.txt

Lines changed: 0 additions & 17 deletions
This file was deleted.

Documentation/devicetree/bindings/input/ti,drv2667.txt

Lines changed: 0 additions & 17 deletions
This file was deleted.
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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+
};

0 commit comments

Comments
 (0)