Received: by 2002:a05:7412:1492:b0:e2:908c:2ebd with SMTP id s18csp171204rdh; Mon, 21 Aug 2023 11:02:16 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFEELlWeQ0zkxaK9M2W275DoqGjeITA5yuPQh2kTlsgKHcIONx+5Jk+PPYRM9n7CBcjdzn6 X-Received: by 2002:a2e:b00c:0:b0:2b6:ccd6:3eae with SMTP id y12-20020a2eb00c000000b002b6ccd63eaemr5340720ljk.17.1692640936008; Mon, 21 Aug 2023 11:02:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692640935; cv=none; d=google.com; s=arc-20160816; b=e+WG/BarjFLVa7RVvFOb57KMhQWx8wJ6WXCD2a4G0OpY/FH5BEnbAv5TSj142aZINw 7jb2oQ8zVnyzlbI11+Bt9RqgpsW4foRVY3irs+rQz6d2KPuCfe7QwA1oCPrSaxrwwV+e FAyZhrroNcQaNWXoKX8hZrASE7PnjAyfJVleUoW8qZE9Dgl6bV+RFpZBy7C7JVVsxZky l0E74nwLiW5FNqLEyvGRWcvDAnl1r1YkdfDYXsl+qeyOCJ8knOIcIe9Clq3U8tWQPxeV VIWFHqBPuCtMcIH++KpyYhH0bZW255MBl7GbKjANO9CgF0QuCIZk2PllAHASiecfpfVI PmAA== 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:to:from; bh=KutNggAOiJhP9AbtFcj8cIrrcLta31mjzMzWeExjsGY=; fh=cnKRX3w1IvBX5QftRhXEq+slLgvqcMAGlueQ9BKQ6Ck=; b=pXPzgC8amA7Be0ZxwVU0zJK01vJtEGomt1oTUHol3DVb7U2CO0YjLlo0l4Zno1NqHR d9F1oHWv3kZXDS1XHcZ26+qg49cIJ1PDd9Um2JMLBYk6Lz0U/gttJgNC1N0kZhAoyqvy 8yyS+WTj5gQCqtm6JM75U7V7n9dhHq9WERsxb3lS7WaC88sVFN0oOEwjYSHmoJUJTO2q U7nzONYdy6yQJDttMLIStuRhmELg/qN7+y1z+ImiJWw0C+m6/w3M4G34D6h+50kgH42v UVbLfIlKdNobxvwr5JlCmgL3mrRumlrtpmS9888kQz0cP/k3hI5i5+ML/SFHyidR5ofG 5RZg== 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 o8-20020a1709061b0800b0099bd53f16b3si5682064ejg.391.2023.08.21.11.01.51; Mon, 21 Aug 2023 11:02:15 -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 S237008AbjHURMc (ORCPT + 99 others); Mon, 21 Aug 2023 13:12:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54524 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236987AbjHURMa (ORCPT ); Mon, 21 Aug 2023 13:12:30 -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 7499A100; Mon, 21 Aug 2023 10:12:28 -0700 (PDT) Received: from p200300ccff3fc7001a3da2fffebfd33a.dip0.t-ipconnect.de ([2003:cc:ff3f:c700: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 1qY8Rn-002tQT-8N; Mon, 21 Aug 2023 19:12:11 +0200 Received: from andi by aktux with local (Exim 4.96) (envelope-from ) id 1qY8Rm-002KPm-38; Mon, 21 Aug 2023 19:12:10 +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, andreas@kemnade.info, u.kleine-koenig@pengutronix.de, Jonathan.Cameron@huawei.com, linus.walleij@linaro.org, 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 v2 2/4] dt-bindings: touchscreen: neonode,zforce: Use standard properties Date: Mon, 21 Aug 2023 19:11:49 +0200 Message-Id: <20230821171151.555091-3-andreas@kemnade.info> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230821171151.555091-1-andreas@kemnade.info> References: <20230821171151.555091-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 c39662815a6c..c2ee89b76ea1 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