From patchwork Sat Dec 23 22:12:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Kemnade X-Patchwork-Id: 183018 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2483:b0:fb:cd0c:d3e with SMTP id q3csp1884630dyi; Sat, 23 Dec 2023 14:13:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IGbQE+Sil2qWW/JTxM/wpzEeSbgl2Qk5kM9ZJbwl69vW6aYbrTvjVd9XuMjDfJHfy2yAjMp X-Received: by 2002:ad4:5963:0:b0:67e:ea2b:1c4b with SMTP id eq3-20020ad45963000000b0067eea2b1c4bmr6079994qvb.96.1703369618931; Sat, 23 Dec 2023 14:13:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703369618; cv=none; d=google.com; s=arc-20160816; b=dRRDlw23otmEpuL/VwdxMxBEuBBob8lfUqYjRg8FllweL6sf5QEpTnA1MbJLJLTi38 u602/iF14gzJMUs/a3dBhthn7T4++euSst9pGMEYLE6J1dxWSyIjivRCQ24/KlGNCjl8 4gHICs7uF378ntDKPFTkxozGmG98cjfUENVcAjcAV9MIXGGujiNE+eV1qwEZ3JoYyOYP 1WC5l8Y4WxcAuArbQ4IsmNtCi06RtMGt214wYGVbWPFRZAkiM4ImumfV2Eclm/Lrmp0x WyhnHOkI6947TOTR/HTnbafRMX3pHc/XreSd98IG2lzEt+SzMO9IY57xH5g6HWRhNek7 XRSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=fbKwDDXwndQhx6klD6d+ZZNbZaa2yIeQizw0w4XCPfY=; fh=CHEiehW2rTqp9huOHwUzMgMetZNaLDaVMzu1EF/FdAE=; b=pqg76gUCu0HXvpmfDmFlyoDYcmlAwG+tR0ss2IAkUgKQrUGwy5Djgt7BM5Ipa/6Q5A KnVF3fm/Tip8Uj/UwcnNhWqBudjW0a/ehOcdBWV0fl1eCoX1zEq2ZM4C0FMYGcEKd5Pw LmHX5HE15+H54PvQi2TW+bXiqb3LdSjIfq+nCP5peCH27wMFtOFTTnAFnECYav4H4OQv giWY2LLTqhAMYFI6tiN4eZdx9Wh/cxBTaQ0TfKVzD8toBEL0/tAtsZWF9+wHSN+P8iQa JmmMbjqHg52TFkAMmT4q5suC6U18ISu5sRMvEfy8ObVZQArn/hIXvnGmRXYl/1Q3LqWY 77KA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kemnade.info header.s=20220719 header.b=W1MHS6GB; spf=pass (google.com: domain of linux-kernel+bounces-10596-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-10596-ouuuleilei=gmail.com@vger.kernel.org" Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id hu11-20020a056214234b00b0067fc9763ae6si1394521qvb.607.2023.12.23.14.13.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Dec 2023 14:13:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-10596-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=fail header.i=@kemnade.info header.s=20220719 header.b=W1MHS6GB; spf=pass (google.com: domain of linux-kernel+bounces-10596-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-10596-ouuuleilei=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id B42DA1C21109 for ; Sat, 23 Dec 2023 22:13:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CE84E224C9; Sat, 23 Dec 2023 22:12:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=kemnade.info header.i=@kemnade.info header.b="W1MHS6GB" X-Original-To: linux-kernel@vger.kernel.org Received: from mail.andi.de1.cc (mail.andi.de1.cc [178.238.236.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B9E26179A1; Sat, 23 Dec 2023 22:12:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kemnade.info Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kemnade.info DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kemnade.info; s=20220719; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=fbKwDDXwndQhx6klD6d+ZZNbZaa2yIeQizw0w4XCPfY=; b=W1MHS6GBmasrz2GYyrkZ3QaMbm R4+LVb5eRKkk3Ty9VZqcMrH1UZ4iNtndrqDdLPNAvKfZuW+f98V5cTGrMs0RrmR3sjGda3X1veeby 726vTC75sV8XTqs/d6sv6jTuLzmKD1S2J5nvlM5n0QuW7jQMRVRpxnOVOU+oJp6DoYFvQaZxKmikY xoXfLgmDU3SbKiDLgaJLx4qfauZrTkgKmRWg26J1CXQOF7UxhlwZdO+cwJEZxo3R21YscgdAfkfYG oj/0fBVnx954sptbQ6DtDgA+zz2mUCmk7ATUKNpCYlup9ukBSoGadJz8FLI1xRz/4OPXUzTQgxAFU 01SNZ8rg==; Received: from p200301077700c3001a3da2fffebfd33a.dip0.t-ipconnect.de ([2003:107:7700:c300:1a3d:a2ff:febf:d33a] helo=aktux) by mail.andi.de1.cc with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rHAEJ-007f7Y-Kf; Sat, 23 Dec 2023 23:12:23 +0100 Received: from andi by aktux with local (Exim 4.96) (envelope-from ) id 1rHAEI-003Fa7-3D; Sat, 23 Dec 2023 23:12:23 +0100 From: Andreas Kemnade To: dmitry.torokhov@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, rydberg@bitmath.org, andreas@kemnade.info, linus.walleij@linaro.org, Jonathan.Cameron@huawei.com, u.kleine-koenig@pengutronix.de, heiko@sntech.de, linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Krzysztof Kozlowski Subject: [PATCH v3 1/4] dt-bindings: touchscreen: convert neonode,zforce to json-schema Date: Sat, 23 Dec 2023 23:12:10 +0100 Message-Id: <20231223221213.774868-2-andreas@kemnade.info> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231223221213.774868-1-andreas@kemnade.info> References: <20231223221213.774868-1-andreas@kemnade.info> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1786112501082699895 X-GMAIL-MSGID: 1786112501082699895 Convert Neonode infrared touchscreen controller binding to DT schema. Signed-off-by: Andreas Kemnade Reviewed-by: Krzysztof Kozlowski --- .../input/touchscreen/neonode,zforce.yaml | 67 +++++++++++++++++++ .../bindings/input/touchscreen/zforce_ts.txt | 34 ---------- 2 files changed, 67 insertions(+), 34 deletions(-) create mode 100644 Documentation/devicetree/bindings/input/touchscreen/neonode,zforce.yaml delete mode 100644 Documentation/devicetree/bindings/input/touchscreen/zforce_ts.txt diff --git a/Documentation/devicetree/bindings/input/touchscreen/neonode,zforce.yaml b/Documentation/devicetree/bindings/input/touchscreen/neonode,zforce.yaml new file mode 100644 index 0000000000000..c39662815a6c5 --- /dev/null +++ b/Documentation/devicetree/bindings/input/touchscreen/neonode,zforce.yaml @@ -0,0 +1,67 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/input/touchscreen/neonode,zforce.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Neonode infrared touchscreen controller + +maintainers: + - Heiko Stuebner + +properties: + compatible: + const: neonode,zforce + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + reset-gpios: + maxItems: 1 + + irq-gpios: + maxItems: 1 + + x-size: + $ref: /schemas/types.yaml#/definitions/uint32 + + y-size: + $ref: /schemas/types.yaml#/definitions/uint32 + + vdd-supply: true + +required: + - compatible + - reg + - interrupts + - reset-gpios + - x-size + - y-size + +unevaluatedProperties: false + +examples: + - | + #include + + i2c { + #address-cells = <1>; + #size-cells = <0>; + + touchscreen@50 { + compatible = "neonode,zforce"; + reg = <0x50>; + interrupts = <2 0>; + vdd-supply = <®_zforce_vdd>; + + reset-gpios = <&gpio5 9 0>; /* RST */ + irq-gpios = <&gpio5 6 0>; /* IRQ, optional */ + + x-size = <800>; + y-size = <600>; + }; + }; +... diff --git a/Documentation/devicetree/bindings/input/touchscreen/zforce_ts.txt b/Documentation/devicetree/bindings/input/touchscreen/zforce_ts.txt deleted file mode 100644 index e3c27c4fd9c85..0000000000000 --- a/Documentation/devicetree/bindings/input/touchscreen/zforce_ts.txt +++ /dev/null @@ -1,34 +0,0 @@ -* Neonode infrared touchscreen controller - -Required properties: -- compatible: must be "neonode,zforce" -- reg: I2C address of the chip -- interrupts: interrupt to which the chip is connected -- reset-gpios: reset gpio the chip is connected to -- x-size: horizontal resolution of touchscreen -- y-size: vertical resolution of touchscreen - -Optional properties: -- irq-gpios : interrupt gpio the chip is connected to -- vdd-supply: Regulator controlling the controller supply - -Example: - - i2c@00000000 { - /* ... */ - - zforce_ts@50 { - compatible = "neonode,zforce"; - reg = <0x50>; - interrupts = <2 0>; - vdd-supply = <®_zforce_vdd>; - - reset-gpios = <&gpio5 9 0>; /* RST */ - irq-gpios = <&gpio5 6 0>; /* IRQ, optional */ - - x-size = <800>; - y-size = <600>; - }; - - /* ... */ - }; From patchwork Sat Dec 23 22:12:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Kemnade X-Patchwork-Id: 183021 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2483:b0:fb:cd0c:d3e with SMTP id q3csp1892631dyi; Sat, 23 Dec 2023 14:45:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IG600KjUryXVi6clBBp7gg42pHDjBxeDNpEnl+IylD+FABCrVFLC+SNvMqEp5qaHsbJbo8P X-Received: by 2002:a17:903:32d0:b0:1d4:22b0:20f3 with SMTP id i16-20020a17090332d000b001d422b020f3mr2969538plr.78.1703371516688; Sat, 23 Dec 2023 14:45:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703371516; cv=none; d=google.com; s=arc-20160816; b=L21Q0VEqIHw80HMfcg0RSVTuO5agyrjecGgDtiyTy6PMktjiClkF0gp5G1xQrffTQH oExJMJPo1cVjgUye/Z19lk15PlzU6AxyrHNZOgyWrfn9RiVhgWsjIDAoNcaSOF/z4muJ 3g/xTGkjZ+4Nz7yJ6qLt9FUWfz+2uZPnAJfNOiFonibvdRzsODTOwo1jXuymOOErsXZI GahJdrKfyaUhRPuzKZ3TI2A3AJi4mE66Kn8wMwOyNSJ4dUdl9B1X3WhPWAlyb4yqlRS7 r6GMivSPXjYyHEjYrjyUyNss1bgGwT6FgKH8x6lkRlDvpBMGPcDCHDft274XJwpCspaN ly+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=wNnMpPSuWfDBc3iHywduR+Ih2mlWoXSvgD9/nDYl3K0=; fh=NvbW7X9QQJkpUGT1YT3SKvK7ksbouV7aZzHmCoQiJp4=; b=NF51+X2n/4cz5FoMfclLwGjw3Gzwq9cCB2K8Q4xMRi/egjtm4vkaJQ7hYr2P1mXrI7 HKXg6HERJEHfo9K2Vo8Lcs0QUCXoxVT9+QlKDu4nz6HFNjZhNV14I4vpNvd7up5Yn5Hd /VG8C9zf4hIQ8kgCywSeVEVYD7ujUPFq7IEaT95YnXYQhOEVcH3DlfJEzSz8LNfUqQKH ic48Lvzn6OM7FEK7l/dxALaAgMOYazCAoYdy+y3+S5IgvHrjjQ2bekczJOyA21ug12Cg 8XBBavEJEJHY+3gnmeji8c6Iy4+i4PQTkDfsWniYON8hvV9d2gMP69xBPfs5lM87k72j 0BpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kemnade.info header.s=20220719 header.b=bDwJYrI4; spf=pass (google.com: domain of linux-kernel+bounces-10601-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-10601-ouuuleilei=gmail.com@vger.kernel.org" Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id p9-20020a1709027ec900b001d42405877bsi2834329plb.621.2023.12.23.14.45.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Dec 2023 14:45:16 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-10601-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=fail header.i=@kemnade.info header.s=20220719 header.b=bDwJYrI4; spf=pass (google.com: domain of linux-kernel+bounces-10601-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-10601-ouuuleilei=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 73754282C6D for ; Sat, 23 Dec 2023 22:45:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2F9401D689; Sat, 23 Dec 2023 22:45:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=kemnade.info header.i=@kemnade.info header.b="bDwJYrI4" X-Original-To: linux-kernel@vger.kernel.org Received: from mail.andi.de1.cc (mail.andi.de1.cc [178.238.236.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3B44818B1B; Sat, 23 Dec 2023 22:44:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kemnade.info Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kemnade.info DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kemnade.info; s=20220719; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=wNnMpPSuWfDBc3iHywduR+Ih2mlWoXSvgD9/nDYl3K0=; b=bDwJYrI4eAUzGR4S7S/zojT8+7 64BMJ+nQq+hoz4+tr5lmrmMEfP4k7idGp2zCzLMJ4kegGKmw4cLxMZW97SOwO82gCCkrm90oKIdBy VpGRCSqHtlnKqyERFHnrBt3rjl9MPXhyBV8ZQCBBlOfvv57Thdth1CXN8KrVTDau9c8AUxHuIVJKp eQm08vbj7mIxSCz59yDW0ojGk37SzHiUdWy2S6IPqX4Hu2jzT4Lxh9DCLvTL9dhrqLH/Idn7ElrTV k69Bc+R7MKj4UHCOhYrhW6/94RDMgo2eQ9to3yEi8iSxc6jDXRyVuVqOfjfbdDZtYAQgZsGsQbx1j iEOh+yGg==; Received: from p200301077700c3001a3da2fffebfd33a.dip0.t-ipconnect.de ([2003:107:7700:c300:1a3d:a2ff:febf:d33a] helo=aktux) by mail.andi.de1.cc with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rHAEK-007f7a-4q; Sat, 23 Dec 2023 23:12:24 +0100 Received: from andi by aktux with local (Exim 4.96) (envelope-from ) id 1rHAEJ-003FaC-20; Sat, 23 Dec 2023 23:12:23 +0100 From: Andreas Kemnade To: dmitry.torokhov@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, rydberg@bitmath.org, andreas@kemnade.info, linus.walleij@linaro.org, Jonathan.Cameron@huawei.com, u.kleine-koenig@pengutronix.de, heiko@sntech.de, linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Rob Herring Subject: [PATCH v3 2/4] dt-bindings: touchscreen: neonode,zforce: Use standard properties Date: Sat, 23 Dec 2023 23:12:11 +0100 Message-Id: <20231223221213.774868-3-andreas@kemnade.info> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231223221213.774868-1-andreas@kemnade.info> References: <20231223221213.774868-1-andreas@kemnade.info> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1786114491668458165 X-GMAIL-MSGID: 1786114491668458165 Enable touchscreen orientation to be specified by using standard properties. Signed-off-by: Andreas Kemnade Reviewed-by: Rob Herring --- .../bindings/input/touchscreen/neonode,zforce.yaml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/Documentation/devicetree/bindings/input/touchscreen/neonode,zforce.yaml b/Documentation/devicetree/bindings/input/touchscreen/neonode,zforce.yaml index c39662815a6c5..c2ee89b76ea13 100644 --- a/Documentation/devicetree/bindings/input/touchscreen/neonode,zforce.yaml +++ b/Documentation/devicetree/bindings/input/touchscreen/neonode,zforce.yaml @@ -9,6 +9,9 @@ title: Neonode infrared touchscreen controller maintainers: - Heiko Stuebner +allOf: + - $ref: touchscreen.yaml# + properties: compatible: const: neonode,zforce @@ -26,9 +29,11 @@ properties: maxItems: 1 x-size: + deprecated: true $ref: /schemas/types.yaml#/definitions/uint32 y-size: + deprecated: true $ref: /schemas/types.yaml#/definitions/uint32 vdd-supply: true @@ -38,8 +43,6 @@ required: - reg - interrupts - reset-gpios - - x-size - - y-size unevaluatedProperties: false @@ -60,8 +63,10 @@ examples: reset-gpios = <&gpio5 9 0>; /* RST */ irq-gpios = <&gpio5 6 0>; /* IRQ, optional */ - x-size = <800>; - y-size = <600>; + touchscreen-min-x = <0>; + touchscreen-size-x = <800>; + touchscreen-min-y = <0>; + touchscreen-size-y = <600>; }; }; ... From patchwork Sat Dec 23 22:12:12 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Kemnade X-Patchwork-Id: 183019 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2483:b0:fb:cd0c:d3e with SMTP id q3csp1884641dyi; Sat, 23 Dec 2023 14:13:41 -0800 (PST) X-Google-Smtp-Source: AGHT+IHD1dIzSSZ3vrek7nshMNoMIZptLXz0sxOgVW35mvh2xGG09geTOW43KuaB3TBt8q+OsIAh X-Received: by 2002:a05:6870:d202:b0:204:e5a:2b5a with SMTP id g2-20020a056870d20200b002040e5a2b5amr4078630oac.111.1703369621043; Sat, 23 Dec 2023 14:13:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703369621; cv=none; d=google.com; s=arc-20160816; b=v/r+7EwBUzGjOOW4mZFSFViSe+Cgoh6SXaEDV3zNgi2iKBALhk+YgCpLd0RL/ypSpQ 2p0gQ2tenRbrPOHxJmOV+JwQyJl9sA2A4jHiVjjlw4mmdGDd/8KQGHU1+St5827CsnBP g1mIg5BjRK3f9mDXj6e0OP8IbF7sUcqV5a7D9NH93/8K8tvox6P7k+mPm4cGJu507TwK igjZv8qWNfNDJwVx+LrYBYs5A3zqKXN9Fi8nFTHSoH6CnNE6qdGQr5INCzn405qcii72 IfV3uJSZGQpZScb6PCe+KPsw9cpw/CfmdWJLvooGSWUhDzwqdrWJzDYzksgU+0ylDZPp fLDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:to:from:dkim-signature; bh=NpY3EimOAO7fdKupobvAOCqbFhsZ6eizQExlx9KlQYE=; fh=19PAcIZvNFNleegirCCdfUNxsGxQC+zmYor10Ufsvac=; b=p3QCRmciSTbWP4qZ2FhGOtNBkEmhe/lvqf/9jmTZa7pLDfaOD2l7EoVvTsyFI4UCXG Y0c+YQBQI1tH9DQeo6JvHXU6ZVl8Xc4mQUT77sux6+74zx2fOVahfPV+P1CjDXL7nRDV vC5G2n3FvoRd3Oc9nzVkcjHirDNGCiuP22iEmazfhW6OmsxcwDO3abXIMt1Um1uheSnX FVvkXuyy2AiOFcT6LVAuSw9w4AKTP8rWBKLNw43GbHvR2gvGTaXQk61g1/2gkiXxHkXu EqIiPk6sBHkDXnQOdEu4axJLGyKcxkFYvQ6ZZaG/eMluHU//XVUSRag/Y2mLDnaEmRiv 80gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kemnade.info header.s=20220719 header.b="rq/Wl09B"; spf=pass (google.com: domain of linux-kernel+bounces-10597-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-10597-ouuuleilei=gmail.com@vger.kernel.org" Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id i69-20020a638748000000b005cdfa6ec012si2831949pge.529.2023.12.23.14.13.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Dec 2023 14:13:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-10597-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=fail header.i=@kemnade.info header.s=20220719 header.b="rq/Wl09B"; spf=pass (google.com: domain of linux-kernel+bounces-10597-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-10597-ouuuleilei=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id C9CA028179F for ; Sat, 23 Dec 2023 22:13:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 01408224D1; Sat, 23 Dec 2023 22:12:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=kemnade.info header.i=@kemnade.info header.b="rq/Wl09B" X-Original-To: linux-kernel@vger.kernel.org Received: from mail.andi.de1.cc (mail.andi.de1.cc [178.238.236.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F244A179A9; Sat, 23 Dec 2023 22:12:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kemnade.info Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kemnade.info DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kemnade.info; s=20220719; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:To:From:Sender:Reply-To:Cc: Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=NpY3EimOAO7fdKupobvAOCqbFhsZ6eizQExlx9KlQYE=; b=rq/Wl09BjslAj82DLo/FVvQuft mRUWIegLkCGz44P8oMlovQ/F3f3IEcn75Qy6NJt+AIRbt5Lcr3tD0ZLRymlgY6xCYFdb3jOoNS6Tw DjgaXKWW4E9Ip4rntf8lFStcPkil+Svsw47G1Xqn0YIXWGCcv8MR2e5xIObvpYo/2/LFquZYOSNOe asMNVHj7M5OBVUGI63K0nwgufPn92MW+j+mBUxZkmA5FIr4ert/qF/6Qp+HFDirM/gwK6jNYrFOYD xLcUtfhYitO795tnJH92CPSWt2cMqvreTsgCKsw7cE26AokolCZ8kv5clNnq0PTPIvFCKb1IZD5Ok kTmSb1SQ==; Received: from p200301077700c3001a3da2fffebfd33a.dip0.t-ipconnect.de ([2003:107:7700:c300:1a3d:a2ff:febf:d33a] helo=aktux) by mail.andi.de1.cc with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rHAEK-007f7c-OD; Sat, 23 Dec 2023 23:12:24 +0100 Received: from andi by aktux with local (Exim 4.96) (envelope-from ) id 1rHAEK-003FaH-0i; Sat, 23 Dec 2023 23:12:24 +0100 From: Andreas Kemnade To: dmitry.torokhov@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, rydberg@bitmath.org, andreas@kemnade.info, linus.walleij@linaro.org, Jonathan.Cameron@huawei.com, u.kleine-koenig@pengutronix.de, heiko@sntech.de, linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v3 3/4] Input: zforce_ts: Accept standard touchscreen properties Date: Sat, 23 Dec 2023 23:12:12 +0100 Message-Id: <20231223221213.774868-4-andreas@kemnade.info> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231223221213.774868-1-andreas@kemnade.info> References: <20231223221213.774868-1-andreas@kemnade.info> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1786112503854941057 X-GMAIL-MSGID: 1786112503854941057 Only driver-specific properties were accepted, change it to use the now-available standard properties. Signed-off-by: Andreas Kemnade --- drivers/input/touchscreen/zforce_ts.c | 36 +++++++++++++-------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/drivers/input/touchscreen/zforce_ts.c b/drivers/input/touchscreen/zforce_ts.c index 5be5112845e1e..f4397497bbe94 100644 --- a/drivers/input/touchscreen/zforce_ts.c +++ b/drivers/input/touchscreen/zforce_ts.c @@ -20,6 +20,7 @@ #include #include #include +#include #include #include #include @@ -106,6 +107,7 @@ struct zforce_point { struct zforce_ts { struct i2c_client *client; struct input_dev *input; + struct touchscreen_properties prop; const struct zforce_ts_platdata *pdata; char phys[32]; @@ -266,7 +268,6 @@ static int zforce_setconfig(struct zforce_ts *ts, char b1) static int zforce_start(struct zforce_ts *ts) { struct i2c_client *client = ts->client; - const struct zforce_ts_platdata *pdata = ts->pdata; int ret; dev_dbg(&client->dev, "starting device\n"); @@ -277,7 +278,7 @@ static int zforce_start(struct zforce_ts *ts) return ret; } - ret = zforce_resolution(ts, pdata->x_max, pdata->y_max); + ret = zforce_resolution(ts, ts->prop.max_x, ts->prop.max_y); if (ret) { dev_err(&client->dev, "Unable to set resolution, %d\n", ret); goto error; @@ -337,7 +338,6 @@ static int zforce_stop(struct zforce_ts *ts) static int zforce_touch_event(struct zforce_ts *ts, u8 *payload) { struct i2c_client *client = ts->client; - const struct zforce_ts_platdata *pdata = ts->pdata; struct zforce_point point; int count, i, num = 0; @@ -355,8 +355,8 @@ static int zforce_touch_event(struct zforce_ts *ts, u8 *payload) point.coord_y = payload[9 * i + 4] << 8 | payload[9 * i + 3]; - if (point.coord_x > pdata->x_max || - point.coord_y > pdata->y_max) { + if (point.coord_x > ts->prop.max_x || + point.coord_y > ts->prop.max_y) { dev_warn(&client->dev, "coordinates (%d,%d) invalid\n", point.coord_x, point.coord_y); point.coord_x = point.coord_y = 0; @@ -390,10 +390,11 @@ static int zforce_touch_event(struct zforce_ts *ts, u8 *payload) point.state != STATE_UP); if (point.state != STATE_UP) { - input_report_abs(ts->input, ABS_MT_POSITION_X, - point.coord_x); - input_report_abs(ts->input, ABS_MT_POSITION_Y, - point.coord_y); + touchscreen_report_pos(ts->input, + &ts->prop, + point.coord_x, + point.coord_y, + true); input_report_abs(ts->input, ABS_MT_TOUCH_MAJOR, point.area_major); input_report_abs(ts->input, ABS_MT_TOUCH_MINOR, @@ -719,15 +720,8 @@ static struct zforce_ts_platdata *zforce_parse_dt(struct device *dev) return ERR_PTR(-ENOMEM); } - if (of_property_read_u32(np, "x-size", &pdata->x_max)) { - dev_err(dev, "failed to get x-size property\n"); - return ERR_PTR(-EINVAL); - } - - if (of_property_read_u32(np, "y-size", &pdata->y_max)) { - dev_err(dev, "failed to get y-size property\n"); - return ERR_PTR(-EINVAL); - } + of_property_read_u32(np, "x-size", &pdata->x_max); + of_property_read_u32(np, "y-size", &pdata->y_max); return pdata; } @@ -856,6 +850,12 @@ static int zforce_probe(struct i2c_client *client) input_set_abs_params(input_dev, ABS_MT_POSITION_Y, 0, pdata->y_max, 0, 0); + touchscreen_parse_properties(input_dev, true, &ts->prop); + if (ts->prop.max_x == 0 || ts->prop.max_y == 0) { + dev_err(&client->dev, "no size specified\n"); + return -EINVAL; + } + input_set_abs_params(input_dev, ABS_MT_TOUCH_MAJOR, 0, ZFORCE_MAX_AREA, 0, 0); input_set_abs_params(input_dev, ABS_MT_TOUCH_MINOR, 0, From patchwork Sat Dec 23 22:12:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Kemnade X-Patchwork-Id: 183020 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:2483:b0:fb:cd0c:d3e with SMTP id q3csp1884668dyi; Sat, 23 Dec 2023 14:13:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IFUjYty2GuinlBDlheUXN/4NH6sb/a5s14TeH8zNGHOVYPFuzJpBoTo+0wZFUG6+hSqEvB1 X-Received: by 2002:a05:6871:713:b0:203:c39d:f522 with SMTP id f19-20020a056871071300b00203c39df522mr3961024oap.90.1703369628259; Sat, 23 Dec 2023 14:13:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703369628; cv=none; d=google.com; s=arc-20160816; b=dP6RUrswWlqNYlK2IfFYR7YBtm14eWkeRgGx7dRpZZL1yMut7PQdEXPNJ+DaVkRpCb wnnccnTT5rnUANN31RKkqzQX880kIl/XEZu31EzzOue2oW/GTc1mZaK6qD878qHCuYgy Qi73CX7YoZ3WFi9LZo0xTt1y58Luma2VhBk10QS7QQHrCHFGHdfPznm6KRML1ltlfkAf z1Bfa2Rv7pFwiv5G/P0MaLI2ysp10vPQCJKLPkJH6GjF4RRH62dfz+2EQOS1T6/gj/K5 zzByfn/VeMAdtF8ntGy9blK9Eq/LCKB7hUSGhS9CIeREy25OrF7l2475Y7NZJUd28o8H fGAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:to:from:dkim-signature; bh=b1HMz+ohMNl8A5LPDegcPK2gw7uCgp/vFwsqaqz/imM=; fh=19PAcIZvNFNleegirCCdfUNxsGxQC+zmYor10Ufsvac=; b=UhJ7V0tloIhU0s3JqKEB95bc9a82lF3o2KBpXlhhUr3Ro0JIydkzfmmr0V/Olnt6iG bAFChtVGAQqpa4SsCXm7SJUe85tN46QK9wUrOa+l+QknHv46SCPfPPpK/HgiKaYP9aNL vP824PEweT9wvEs33LuGoQNnXwQp/w1eKTEhJY3A3UNvgNAGjdq2lajznOeavgThRk3a bE5jiE3AgX6so2apRP2aGT0M517Nt4NdMU6swTROULXz38e+zUAvc0JllgPcvcODm+NJ WShCDnih7QdbiJoxIhN78tc5Il86K0oDcKu6LDlhd93M+C59jf8M5ARBjWpj9X7B81mA yW7w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@kemnade.info header.s=20220719 header.b=9VLlq4HG; spf=pass (google.com: domain of linux-kernel+bounces-10598-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-10598-ouuuleilei=gmail.com@vger.kernel.org" Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id l10-20020a65680a000000b005ce03c8d175si1541455pgt.810.2023.12.23.14.13.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Dec 2023 14:13:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-10598-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=fail header.i=@kemnade.info header.s=20220719 header.b=9VLlq4HG; spf=pass (google.com: domain of linux-kernel+bounces-10598-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-10598-ouuuleilei=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 0B1B4282CCC for ; Sat, 23 Dec 2023 22:13:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 72250224E7; Sat, 23 Dec 2023 22:12:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=kemnade.info header.i=@kemnade.info header.b="9VLlq4HG" X-Original-To: linux-kernel@vger.kernel.org Received: from mail.andi.de1.cc (mail.andi.de1.cc [178.238.236.174]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 891B118053; Sat, 23 Dec 2023 22:12:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kemnade.info Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kemnade.info DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kemnade.info; s=20220719; h=Content-Transfer-Encoding:MIME-Version: References:In-Reply-To:Message-Id:Date:Subject:To:From:Sender:Reply-To:Cc: Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=b1HMz+ohMNl8A5LPDegcPK2gw7uCgp/vFwsqaqz/imM=; b=9VLlq4HGCfbmZy4/v3pcoPm62r 3S/m3nXnPC7Rnd9mF2GaAKPmFZS9SXBa4FDrLzxwoWKibvw+BEkYdvjqrwZAk3IyhsXbRpcqgULWg xnnvZzGQlUDEZ9ByXJa3Hk9/LHabwdJGzEhFJYGFXXctzQ3Y0rQrAtnHYMAZQcDaviz814EGIb49C NYOYCuGxOG6QfmYcxzqIXfQPf4a3Lnm7s4yfJ/KGeBd14L558JkdX4O/vz6161ML4zuNdp7Mzg8dr 2DOxgVk01ZSb66MHawHK3SJlsHttSbEqucaxnmvbz/JTo071Swd001FIt7uzFUufYuEkNhARVdG3l hS2JwNBw==; Received: from p200301077700c3001a3da2fffebfd33a.dip0.t-ipconnect.de ([2003:107:7700:c300:1a3d:a2ff:febf:d33a] helo=aktux) by mail.andi.de1.cc with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rHAEL-007f7e-CM; Sat, 23 Dec 2023 23:12:25 +0100 Received: from andi by aktux with local (Exim 4.96) (envelope-from ) id 1rHAEK-003FaM-2N; Sat, 23 Dec 2023 23:12:24 +0100 From: Andreas Kemnade To: dmitry.torokhov@gmail.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, rydberg@bitmath.org, andreas@kemnade.info, linus.walleij@linaro.org, Jonathan.Cameron@huawei.com, u.kleine-koenig@pengutronix.de, heiko@sntech.de, linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v3 4/4] ARM: dts: imx6sl-tolino-shine2hd: fix touchscreen rotation Date: Sat, 23 Dec 2023 23:12:13 +0100 Message-Id: <20231223221213.774868-5-andreas@kemnade.info> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231223221213.774868-1-andreas@kemnade.info> References: <20231223221213.774868-1-andreas@kemnade.info> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1786112511392367753 X-GMAIL-MSGID: 1786112511392367753 The display is in landscape orientation, but the touchscreen is in portrait orientation. Specify that properly in the devicetree. Signed-off-by: Andreas Kemnade --- arch/arm/boot/dts/nxp/imx/imx6sl-tolino-shine2hd.dts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/nxp/imx/imx6sl-tolino-shine2hd.dts b/arch/arm/boot/dts/nxp/imx/imx6sl-tolino-shine2hd.dts index 815119c12bd48..5636fb3661e8a 100644 --- a/arch/arm/boot/dts/nxp/imx/imx6sl-tolino-shine2hd.dts +++ b/arch/arm/boot/dts/nxp/imx/imx6sl-tolino-shine2hd.dts @@ -141,8 +141,10 @@ zforce: touchscreen@50 { interrupts = <6 IRQ_TYPE_EDGE_FALLING>; vdd-supply = <&ldo1_reg>; reset-gpios = <&gpio5 9 GPIO_ACTIVE_LOW>; - x-size = <1072>; - y-size = <1448>; + touchscreen-size-x = <1072>; + touchscreen-size-y = <1448>; + touchscreen-swapped-x-y; + touchscreen-inverted-x; }; /* TODO: TPS65185 PMIC for E Ink at 0x68 */