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

dt-bindings: input: cypress,cyapa: convert to dtschema

Convert the Cypress All Points Addressable (APA) I2C Touchpad / Trackpad
bindings to DT schema.

Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20230511102559.175088-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Krzysztof Kozlowski and committed by
Dmitry Torokhov
17caa38a e96220bc

+49 -42
-42
Documentation/devicetree/bindings/input/cypress,cyapa.txt
··· 1 - Cypress I2C Touchpad 2 - 3 - Required properties: 4 - - compatible: must be "cypress,cyapa". 5 - - reg: I2C address of the chip. 6 - - interrupts: interrupt to which the chip is connected (see interrupt 7 - binding[0]). 8 - 9 - Optional properties: 10 - - wakeup-source: touchpad can be used as a wakeup source. 11 - - pinctrl-names: should be "default" (see pinctrl binding [1]). 12 - - pinctrl-0: a phandle pointing to the pin settings for the device (see 13 - pinctrl binding [1]). 14 - - vcc-supply: a phandle for the regulator supplying 3.3V power. 15 - 16 - [0]: Documentation/devicetree/bindings/interrupt-controller/interrupts.txt 17 - [1]: Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt 18 - 19 - Example: 20 - &i2c0 { 21 - /* ... */ 22 - 23 - /* Cypress Gen3 touchpad */ 24 - touchpad@67 { 25 - compatible = "cypress,cyapa"; 26 - reg = <0x67>; 27 - interrupt-parent = <&gpio>; 28 - interrupts = <2 IRQ_TYPE_EDGE_FALLING>; /* GPIO 2 */ 29 - wakeup-source; 30 - }; 31 - 32 - /* Cypress Gen5 and later touchpad */ 33 - touchpad@24 { 34 - compatible = "cypress,cyapa"; 35 - reg = <0x24>; 36 - interrupt-parent = <&gpio>; 37 - interrupts = <2 IRQ_TYPE_EDGE_FALLING>; /* GPIO 2 */ 38 - wakeup-source; 39 - }; 40 - 41 - /* ... */ 42 - };
+49
Documentation/devicetree/bindings/input/cypress,cyapa.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/cypress,cyapa.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Cypress All Points Addressable (APA) I2C Touchpad / Trackpad 8 + 9 + maintainers: 10 + - Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> 11 + 12 + properties: 13 + compatible: 14 + const: cypress,cyapa 15 + 16 + reg: 17 + maxItems: 1 18 + 19 + interrupts: 20 + maxItems: 1 21 + 22 + wakeup-source: true 23 + 24 + vcc-supply: 25 + description: 3.3V power 26 + 27 + required: 28 + - compatible 29 + - reg 30 + - interrupts 31 + 32 + additionalProperties: false 33 + 34 + examples: 35 + - | 36 + #include <dt-bindings/interrupt-controller/irq.h> 37 + 38 + i2c { 39 + #address-cells = <1>; 40 + #size-cells = <0>; 41 + 42 + trackpad@67 { 43 + reg = <0x67>; 44 + compatible = "cypress,cyapa"; 45 + interrupts = <2 IRQ_TYPE_EDGE_FALLING>; 46 + interrupt-parent = <&gpx1>; 47 + wakeup-source; 48 + }; 49 + };