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: 13504150 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DC013C3DA6E for ; Sat, 23 Dec 2023 22:13:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=eBbPha6MmS+UCFT6g16pQJARtRYE58gXRKHQWfXNhY8=; b=ZprpXOvnywWDaf Y6CYmRykzU4ExSacL3WVLPINuSmAkEaPh4DKnR0gyhTbwWzDmFMajtGXdPRYLD2lgGCVN+bVTgUqz C8iFyFGXkoTQ6PAg2/9iTlr0gYKS2pKQLKTWEInPTWVDR8cVL+v6pmytz3xkAxeUdMGLdTSRUuvfS rcaoKSqHlrKqSljfbBep4rJivGXw7uT5eKKDfTohCbYBF+l162QNXFPYZEAwZRhJRuNGCR0PwfQVD Jsu0E+JmXx1TRsb4/6VNnRnrELUJqZetuMvtkX8eRzA/gUrHgMpj2PMGkmzpDUji6eC6d5rXETth3 fnBF4mys8fpOtqEtqH5A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rHAEh-008XB7-0A; Sat, 23 Dec 2023 22:12:47 +0000 Received: from mail.andi.de1.cc ([2a02:c205:3004:2154::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rHAEd-008X93-2U for linux-arm-kernel@lists.infradead.org; Sat, 23 Dec 2023 22:12:45 +0000 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> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231223_141243_839195_A751FAAD X-CRM114-Status: UNSURE ( 9.15 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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>; }; }; ...