Received: by 2002:a05:7412:bb8d:b0:d7:7d3a:4fe2 with SMTP id js13csp1735322rdb; Wed, 16 Aug 2023 23:50:17 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE3nufIhpJbVtSGy6mE1OrbRE+eVKou41m2Dks3jkA+mSN5HD7fR0wHRnZm1MhxDFEaqjnA X-Received: by 2002:a17:906:30d2:b0:99d:e417:d6fb with SMTP id b18-20020a17090630d200b0099de417d6fbmr2232478ejb.25.1692255017570; Wed, 16 Aug 2023 23:50:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692255017; cv=none; d=google.com; s=arc-20160816; b=vqWeUxUTnOai5wW4JRk5IukPodXcWkuZTCEPh4Zz48eTKmi+IDMgzlQHJvCW5f70tI eLXEqcy1VC9VlIlA0k9cKKIzWkI1FHSFG5gWIq927o1fb88IgnpmNFNRifSBAe92HDyq 5t5BNSIgtdJxPwLhgFJLe+u7/jUcVOG3LB3LKXITIa48XPuMR+twq4+hzewC3bGDonE3 B+lfCrZ79YDP3+OmNQFMC4gm87eRCqXSWFQreJI0t6LXJmB6NFCO+e0N7lp9BN3+U/lQ xvDCkk23/0gwwSJTBZ9HgbvhGoO81Qy3vp7TQ4TTrAQS2bKm20MlcsM/nsF9V+ySn0GE MXXg== 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=BH+KedbIDNaRpcCeFSQoJh5r1tC0j9e/daHX/GLQwnA=; fh=V8iAieFyRYEzBvA/VG+aAukEprWlyjzwQtL2ZE5iOkI=; b=nfv7kRqw9MT9LiMV6u3by1HNtE+XwylWdSgHK2fOEqQnKz7BtJW7yP+mn3RpD+7/7w rhoA4y4e8mSA6kLwW52JgyS9wMjKKIzZm3bQSFUyM8EWLpoOygOfGNNnf6RtCFJNtxOy W6t/k3gcuxsURUcvmgFN5K7xI98btzbRen7jsZdgXCpZQCvJXAegBgykBMyhLkFCdXO0 2FNrNFjkyuKi6ZqiDKwM6xkzP+iXIkB4fyeVEhPEV0cyg7V9jK7D6iyMtv6lkgPQm2ws HMPUAqi9Ftja2MT/69wyNdf0ziPlu86HWemVd0sLWmG+ND9+mAPqWyW0/5Xfv0JRacmO aaKA== 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 lv11-20020a170906bc8b00b0099318060d40si11731400ejb.459.2023.08.16.23.49.52; Wed, 16 Aug 2023 23:50:17 -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 S239668AbjHOS6r (ORCPT + 99 others); Tue, 15 Aug 2023 14:58:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40868 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239616AbjHOS6F (ORCPT ); Tue, 15 Aug 2023 14:58:05 -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 487251FEA; Tue, 15 Aug 2023 11:57:56 -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 1qVyno-002fC2-Hd; Tue, 15 Aug 2023 20:30:00 +0200 Received: from andi by aktux with local (Exim 4.96) (envelope-from ) id 1qVyno-000tJ2-0a; 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 1/4] dt-bindings: touchscreen: convert neonode,zforce to json-schema Date: Tue, 15 Aug 2023 20:29:45 +0200 Message-Id: <20230815182948.212575-2-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,URIBL_BLOCKED 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 Convert Neonode infrared touchscreen controller binding to DT schema. Signed-off-by: Andreas Kemnade --- .../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 000000000000..1c45adb2407a --- /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 e3c27c4fd9c8..000000000000 --- 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>; - }; - - /* ... */ - }; -- 2.39.2