From patchwork Sun Jan 23 17:37:27 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Caleb Connolly X-Patchwork-Id: 534269 Delivered-To: patch@linaro.org Received: by 2002:ac0:f7d2:0:0:0:0:0 with SMTP id i18csp2276937imr; Sun, 23 Jan 2022 09:37:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJyfVmSO37ehuYOEnUhUGbsd/5I2SGIEgtaDQwgxeeiHL1AGbe8SRtnxz8c2LNMCNlLsZ1ef X-Received: by 2002:a50:fd08:: with SMTP id i8mr12715016eds.394.1642959462927; Sun, 23 Jan 2022 09:37:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642959462; cv=none; d=google.com; s=arc-20160816; b=u3j2Bw82V9pDwpLq9EfZoOyHha1ZaaSTaoExmIRgQMPDBsl0XTwUp5hollrCuRYVBs Xy33hz0ILpNNNFohruZUnp72ing0tf2sa03Jmxn39hHfLA1teUQJze+wQxyciHZjLUcp mpJA+eGkmtCW2nAoXsJyNR9lxuV3wWlVvkvRKQqA7PNqeLSRyFB8EPoRKGPKXEX0Qqrf tSoc3glW7CVcw+WI2qAP/3dRCDyT9OZDR+lEYxVxq3MCnB5ZxHHUOqgjGv23nYexRye3 GJ1KA/WRW74SlqMuj2KfEKvzjO03ZSsFP7rJf/wbUERvF4t1M/eNl/t9y8OCMwP1QkWR KT/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:from:to:dkim-signature:date:delivered-to; bh=RHM16+MmceCNT6uhKBo2gtAGjdHH8oLW9fjQXzk/4OU=; b=qqXFbApx31CqCBUeMcSViuGk8T/F0MKIMVznW4XZ+kWYWwAY/TG/1ExgnPhS0ztwT+ ncBGrm1XcF49x5jeSwZEYv8ZvCSIRsHfoXFe/LHYbPaCBQJHbKUT0LRmWAftURZJq9KJ KA6800TEE1CKZlNsTFwvXdgl5ExN0/sy5MZxBsARAtkVPGbKKHsyc2rZ/ckz7BehJ6rM EiIk0LGZHo69osVdzaous5aa+UxRllgYmjCGrFATszGHDcLh0gWL7nl6HZZiwR9JSb3y IxNMBSmQUWZS7HcAHblEuYu0ULNuP43UL1BsIyp80xN20Pha/JJ7WN/fhK7BmsEE2/Hr aMzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@connolly.tech header.s=protonmail header.b=cxB4KY5D; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=connolly.tech Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id v19si4196766ejv.696.2022.01.23.09.37.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Jan 2022 09:37:42 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=fail header.i=@connolly.tech header.s=protonmail header.b=cxB4KY5D; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=connolly.tech Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A4E9C10E674; Sun, 23 Jan 2022 17:37:33 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-4018.proton.ch (mail-4018.proton.ch [185.70.40.18]) by gabe.freedesktop.org (Postfix) with ESMTPS id F125D10E239 for ; Sun, 23 Jan 2022 17:37:31 +0000 (UTC) Date: Sun, 23 Jan 2022 17:37:27 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=connolly.tech; s=protonmail; t=1642959449; bh=RHM16+MmceCNT6uhKBo2gtAGjdHH8oLW9fjQXzk/4OU=; h=Date:To:From:Reply-To:Subject:Message-ID:In-Reply-To:References: From:To:Cc; b=cxB4KY5DJAAwKNBDIAvSzd5kzvDGoWpJjFA3SM5JpQk3rnRzF3B68WXywt3E9Zwfk W2Vyhnq2L6lCW1DEQw/VnG0Xty5y50bwxkfACsZyFjGb3w0w8lXjLLE7l1r1gVtbRs wb63Fd1PB9MD+jEcirvUE60dGHFT181MPAF3zlYE= To: Thierry Reding , Sam Ravnborg , David Airlie , Daniel Vetter , Rob Herring , Dmitry Torokhov , Andy Gross , Bjorn Andersson , Kees Cook , Anton Vorontsov , Colin Cross , Tony Luck , Henrik Rydberg , Harigovindan P , Caleb Connolly , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, linux-arm-msm@vger.kernel.org, Alexander Martinz From: Caleb Connolly Subject: [PATCH 1/6] dt-bindings: input: touchscreen: add bindings for focaltech, fts Message-ID: <20220123173650.290349-2-caleb@connolly.tech> In-Reply-To: <20220123173650.290349-1-caleb@connolly.tech> References: <20220123173650.290349-1-caleb@connolly.tech> MIME-Version: 1.0 X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Caleb Connolly Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Add devicetree bindings for the Focaltech FTS touchscreen drivers. Signed-off-by: Caleb Connolly --- .../input/touchscreen/focaltech,fts.yaml | 78 +++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/touchscreen/focaltech,fts.yaml -- 2.34.1 diff --git a/Documentation/devicetree/bindings/input/touchscreen/focaltech,fts.yaml b/Documentation/devicetree/bindings/input/touchscreen/focaltech,fts.yaml new file mode 100644 index 000000000000..bb25a4f8ad71 --- /dev/null +++ b/Documentation/devicetree/bindings/input/touchscreen/focaltech,fts.yaml @@ -0,0 +1,78 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/input/touchscreen/focaltech,fts.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Focaltech FTS I2C Touchscreen Controller + +maintainers: + - Caleb Connolly + +allOf: + - $ref: touchscreen.yaml# + +properties: + compatible: + enum: + - focaltech,fts5452 + - focaltech,fts8719 + reg: + const: 0x38 + + interrupts: + maxItems: 1 + + reset-gpios: + maxItems: 1 + + wakeup-source: + type: boolean + description: touchscreen can be used as a wakeup source. + + focaltech,max-touch-number: + $ref: /schemas/types.yaml#/definitions/uint32 + description: max number of fingers supported + minimum: 2 + maximum: 10 + + touchscreen-size-x: true + touchscreen-size-y: true + +additionalProperties: false + +required: + - compatible + - reg + - reset-gpios + - focaltech,max-touch-number + - touchscreen-size-x + - touchscreen-size-y + +examples: + - | + #include + #include + &i2c5 { + status="okay"; + + touchscreen: focaltech@38 { + compatible = "focaltech,fts8719"; + reg = <0x38>; + wakeup-source; + interrupt-parent = <&tlmm>; + interrupts = <125 0x2>; + vdd-supply = <&vreg_l28a_3p0>; + vcc-i2c-supply = <&vreg_l14a_1p88>; + + pinctrl-names = "default", "suspend"; + pinctrl-0 = <&ts_int_active &ts_reset_active>; + pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>; + + reset-gpio = <&tlmm 99 GPIO_ACTIVE_HIGH>; + irq-gpio = <&tlmm 125 GPIO_TRANSITORY>; + touchscreen-size-x = <1080>; + touchscreen-size-y = <2160>; + focaltech,max-touch-number = <5>; + }; + };