From patchwork Tue Aug 15 18:29:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Kemnade X-Patchwork-Id: 136168 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b82d:0:b0:3f2:4152:657d with SMTP id z13csp2102256vqi; Sat, 19 Aug 2023 09:24:47 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF2dlBCZUXkxuhGpdAVIbjnC1F9Zp/iuHAoARKey7/Kg28BYVt+j4ZhAbu3jW6C4oZ/wWfj X-Received: by 2002:a05:6870:4721:b0:1c8:d72a:d6b8 with SMTP id b33-20020a056870472100b001c8d72ad6b8mr3449173oaq.36.1692462287570; Sat, 19 Aug 2023 09:24:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692462287; cv=none; d=google.com; s=arc-20160816; b=V5B3/mqyAcssV1+5fMyZ48rWXgkC0SQNOfskdRlxzBLH48MZjXdn0GOMScl8MLPJnW WQjZAIVHzV70rw2moPluFFO4JgMMm3Bun8s/7njSx58W1ekvKpJSr1PjWxUaSTOXvbcJ EB0VmHLx72SfkIZ8t5P5gPO9XmiMl4IpWSOCYhQrn0KCokDTOqTdw3hs5pjNKxqdgZET PH9jtYLvILbtQ5APaMAGapi3Jv5JrFjnXWKhXKSA0N0LfoJTNUbyHRh2bhtmfkpypDrb 8Wb9/CDB8pBb/fCSV9jlHiLmngoW9qfKY7lUHUkFPqyFaQnT5P2+NQpeQVYgf3Po7jBR X1Tg== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o10-20020a655bca000000b0055c4c9cc010si3615770pgr.481.2023.08.19.09.24.32; Sat, 19 Aug 2023 09:24:47 -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 S239671AbjHOS6r (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 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1774428621089289695 X-GMAIL-MSGID: 1774675335546672132 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>; - }; - - /* ... */ - };