Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Anshul Dalal and committed by
Dmitry Torokhov
aefebd19 c67f8a13

+50 -34
-17
Documentation/devicetree/bindings/input/ti,drv2665.txt
··· 1 - * Texas Instruments - drv2665 Haptics driver 2 - 3 - Required properties: 4 - - compatible - "ti,drv2665" - DRV2665 5 - - reg - I2C slave address 6 - - vbat-supply - Required supply regulator 7 - 8 - Example: 9 - 10 - haptics: haptics@59 { 11 - compatible = "ti,drv2665"; 12 - reg = <0x59>; 13 - vbat-supply = <&vbat>; 14 - }; 15 - 16 - For more product information please see the link below: 17 - http://www.ti.com/product/drv2665
-17
Documentation/devicetree/bindings/input/ti,drv2667.txt
··· 1 - * Texas Instruments - drv2667 Haptics driver 2 - 3 - Required properties: 4 - - compatible - "ti,drv2667" - DRV2667 5 - - reg - I2C slave address 6 - - vbat-supply - Required supply regulator 7 - 8 - Example: 9 - 10 - haptics: haptics@59 { 11 - compatible = "ti,drv2667"; 12 - reg = <0x59>; 13 - vbat-supply = <&vbat>; 14 - }; 15 - 16 - For more product information please see the link below: 17 - http://www.ti.com/product/drv2667
+50
Documentation/devicetree/bindings/input/ti,drv266x.yaml
··· 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 + };