Received: by 2002:a05:7412:bb8d:b0:d7:7d3a:4fe2 with SMTP id js13csp1158202rdb; Wed, 16 Aug 2023 03:39:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGzV6qjXALTrOBPKhbD2bArAMPGYHnSJf12e0SHeDP9oaqbLQRBXLig5fIbvITHshfZQzxP X-Received: by 2002:a17:907:3447:b0:993:da0b:8783 with SMTP id ac7-20020a170907344700b00993da0b8783mr1623164ejc.3.1692182370074; Wed, 16 Aug 2023 03:39:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692182370; cv=none; d=google.com; s=arc-20160816; b=c2QshmhTOlsLn3sD/VaqISrd0M++qi2Ea2gDlfpCEFm87N1R8Bl53inNSM4lH12Nlt btU2gw9TRsssmU7Lh3gPqcX2VT2mdBpMoNZRrGps4GmhSc5A8f2GOwfjkZIaDPowJCSn S/x7x36kxoMYoq/TUcmTP8axR+r6/DPBlWfgSsKORqUJgdkK1J2j9pV30gQ45od/BdM2 yrOYiuvAzhxDVReg5e24jrrdwBLjybQWEIshUVK8kaxDhYOs0yzNKj95URGJIZCKc4/Q CzG2Ovtk3rPCrQpRyLQtesXh+ES+GC5fMDk70IlVFiKn1vUBFy+gsSYJt8TvEqxOs3St 1H/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=yFAlyLIJ/qfUCdjZW66Je5Woe4V2UEfzsvLMU91smqE=; fh=V8iAieFyRYEzBvA/VG+aAukEprWlyjzwQtL2ZE5iOkI=; b=0cK4AzwhoGlY03GsCW7OgkS2VStCnLsrXIUgIu54GpbqDBjXiIPt9p2c0BhiQ+CokZ 10azr8qvCz2wMbuZc73FGP67bhQ2CX3H/+ee4TZfi4Vy0c8h5aj4LR+MK6MrCHG6d2mh HoavGAszqhKFS8tOWsDbGwd80ZuUoiwqYtcbJg0XBPS2KLsX+QmQzAQaXopmkEz0neNK YehijePwvKZi95vjAX1fWOgRGf8J6BmMekQBK1of6IiMh8CGSr3qFj391iINDUefI2tR miVnicMrZTa4FZwl1486zXiSyFjbKVw56x7JuiqiHxz5wcagxvTebT/6y+C/psB1CAry Rr0w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e9-20020a170906080900b0098debb6fa67si10268378ejd.495.2023.08.16.03.39.04; Wed, 16 Aug 2023 03:39:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239592AbjHOS6D (ORCPT + 99 others); Tue, 15 Aug 2023 14:58:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239633AbjHOS5z (ORCPT ); Tue, 15 Aug 2023 14:57:55 -0400 Received: from mail.andi.de1.cc (mail.andi.de1.cc [IPv6:2a02:c205:3004:2154::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26D211BEB; Tue, 15 Aug 2023 11:57:32 -0700 (PDT) Received: from p200300ccff31d1001a3da2fffebfd33a.dip0.t-ipconnect.de ([2003:cc:ff31:d100: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 1qVynp-002fC5-0r; Tue, 15 Aug 2023 20:30:01 +0200 Received: from andi by aktux with local (Exim 4.96) (envelope-from ) id 1qVyno-000tJ7-25; Tue, 15 Aug 2023 20:30:00 +0200 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, u.kleine-koenig@pengutronix.de, linus.walleij@linaro.org, Jonathan.Cameron@huawei.com, linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: Andreas Kemnade Subject: [PATCH 2/4] dt-bindings: touchscreen: neonode,zforce: Use standard properties Date: Tue, 15 Aug 2023 20:29:46 +0200 Message-Id: <20230815182948.212575-3-andreas@kemnade.info> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230815182948.212575-1-andreas@kemnade.info> References: <20230815182948.212575-1-andreas@kemnade.info> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Enable touchscreen orientation to be specified by using standard properties. Signed-off-by: Andreas Kemnade --- .../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 1c45adb2407a..03513f38c9cc 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>; }; }; ... -- 2.39.2