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

dt-bindings: input: touchscreen: st,stmfts: convert to dtschema

Convert the ST-Microelectronics FingerTip touchscreen controller
bindings to DT schema.

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

authored by

Krzysztof Kozlowski and committed by
Dmitry Torokhov
d9496240 04249314

+72 -41
-41
Documentation/devicetree/bindings/input/touchscreen/st,stmfts.txt
··· 1 - * ST-Microelectronics FingerTip touchscreen controller 2 - 3 - The ST-Microelectronics FingerTip device provides a basic touchscreen 4 - functionality. Along with it the user can enable the touchkey which can work as 5 - a basic HOME and BACK key for phones. 6 - 7 - The driver supports also hovering as an absolute single touch event with x, y, z 8 - coordinates. 9 - 10 - Required properties: 11 - - compatible : must be "st,stmfts" 12 - - reg : I2C slave address, (e.g. 0x49) 13 - - interrupts : interrupt specification 14 - - avdd-supply : analogic power supply 15 - - vdd-supply : power supply 16 - - touchscreen-size-x : see touchscreen.txt 17 - - touchscreen-size-y : see touchscreen.txt 18 - 19 - Optional properties: 20 - - touch-key-connected : specifies whether the touchkey feature is connected 21 - - ledvdd-supply : power supply to the touch key leds 22 - 23 - Example: 24 - 25 - i2c@00000000 { 26 - 27 - /* ... */ 28 - 29 - touchscreen@49 { 30 - compatible = "st,stmfts"; 31 - reg = <0x49>; 32 - interrupt-parent = <&gpa1>; 33 - interrupts = <1 IRQ_TYPE_NONE>; 34 - touchscreen-size-x = <1599>; 35 - touchscreen-size-y = <2559>; 36 - touch-key-connected; 37 - avdd-supply = <&ldo30_reg>; 38 - vdd-supply = <&ldo31_reg>; 39 - ledvdd-supply = <&ldo33_reg>; 40 - }; 41 - };
+72
Documentation/devicetree/bindings/input/touchscreen/st,stmfts.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/touchscreen/st,stmfts.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: ST-Microelectronics FingerTip touchscreen controller 8 + 9 + maintainers: 10 + - Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> 11 + 12 + description: 13 + The ST-Microelectronics FingerTip device provides a basic touchscreen 14 + functionality. Along with it the user can enable the touchkey which can work 15 + as a basic HOME and BACK key for phones. 16 + 17 + allOf: 18 + - $ref: touchscreen.yaml# 19 + 20 + properties: 21 + compatible: 22 + const: st,stmfts 23 + 24 + reg: 25 + maxItems: 1 26 + 27 + avdd-supply: 28 + description: Analogic power supply 29 + 30 + interrupts: 31 + maxItems: 1 32 + 33 + ledvdd-supply: 34 + description: Power supply to the touch key leds 35 + 36 + touch-key-connected: 37 + type: boolean 38 + description: The touchkey feature is connected 39 + 40 + vdd-supply: 41 + description: Power supply 42 + 43 + required: 44 + - compatible 45 + - reg 46 + - avdd-supply 47 + - interrupts 48 + - vdd-supply 49 + 50 + unevaluatedProperties: false 51 + 52 + examples: 53 + - | 54 + #include <dt-bindings/interrupt-controller/irq.h> 55 + 56 + i2c { 57 + #address-cells = <1>; 58 + #size-cells = <0>; 59 + 60 + touchscreen@49 { 61 + compatible = "st,stmfts"; 62 + reg = <0x49>; 63 + interrupt-parent = <&gpa1>; 64 + interrupts = <1 IRQ_TYPE_LEVEL_LOW>; 65 + touchscreen-size-x = <1599>; 66 + touchscreen-size-y = <2559>; 67 + touch-key-connected; 68 + avdd-supply = <&ldo30_reg>; 69 + vdd-supply = <&ldo31_reg>; 70 + ledvdd-supply = <&ldo33_reg>; 71 + }; 72 + };