From: David Heidelberg <[email protected]> Introduce more recent STM FTS5 touchscreen support.
Signed-off-by: David Heidelberg <[email protected]> --- .../bindings/input/touchscreen/st,stmfts.yaml | 29 ++++++++++++++++------ 1 file changed, 21 insertions(+), 8 deletions(-) diff --git a/Documentation/devicetree/bindings/input/touchscreen/st,stmfts.yaml b/Documentation/devicetree/bindings/input/touchscreen/st,stmfts.yaml index 64c4f24ea3dd0..3de4bc5cd3f78 100644 --- a/Documentation/devicetree/bindings/input/touchscreen/st,stmfts.yaml +++ b/Documentation/devicetree/bindings/input/touchscreen/st,stmfts.yaml @@ -9,22 +9,21 @@ title: ST-Microelectronics FingerTip touchscreen controller maintainers: - Krzysztof Kozlowski <[email protected]> description: The ST-Microelectronics FingerTip device provides a basic touchscreen functionality. Along with it the user can enable the touchkey which can work as a basic HOME and BACK key for phones. -allOf: - - $ref: touchscreen.yaml# - properties: compatible: - const: st,stmfts + enum: + - st,stmfts + - st,stmfts5 reg: maxItems: 1 avdd-supply: description: Analogic power supply interrupts: @@ -35,42 +34,56 @@ properties: touch-key-connected: type: boolean description: The touchkey feature is connected vdd-supply: description: Power supply + mode-switch-gpios: + description: Optional switch between touchscreen SLPI and AP mode. + maxItems: 1 + reset-gpios: description: Reset GPIO (active-low) maxItems: 1 required: - compatible - reg - avdd-supply - interrupts - vdd-supply +allOf: + - $ref: touchscreen.yaml# + - if: + not: + properties: + compatible: + const: st,stmfts5 + then: + properties: + mode-switch-gpios: false + unevaluatedProperties: false examples: - | #include <dt-bindings/interrupt-controller/irq.h> i2c { #address-cells = <1>; #size-cells = <0>; touchscreen@49 { compatible = "st,stmfts"; reg = <0x49>; - interrupt-parent = <&gpa1>; - interrupts = <1 IRQ_TYPE_LEVEL_LOW>; - touchscreen-size-x = <1599>; - touchscreen-size-y = <2559>; + interrupts-extended = <&gpa1 1 IRQ_TYPE_LEVEL_LOW>; + touchscreen-size-x = <1600>; + touchscreen-size-y = <2560>; touch-key-connected; avdd-supply = <&ldo30_reg>; vdd-supply = <&ldo31_reg>; ledvdd-supply = <&ldo33_reg>; }; }; -- 2.55.0

