Received: by 2002:a05:7412:bb8d:b0:d7:7d3a:4fe2 with SMTP id js13csp2005469rdb; Thu, 17 Aug 2023 08:10:03 -0700 (PDT) X-Google-Smtp-Source: AGHT+IExBjX3dxZIYrKyKSHF1EY8P12JYlGK3o4k+kB4XpPK2cLbcJOumUb4QJtmvvNTBqNYUzgq X-Received: by 2002:a17:906:2da:b0:992:872:76d4 with SMTP id 26-20020a17090602da00b00992087276d4mr4546406ejk.17.1692285003262; Thu, 17 Aug 2023 08:10:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692285003; cv=none; d=google.com; s=arc-20160816; b=zIB84yLLQlprM2JjOQJkEuyvQjXsFtJZisuWzaF9CXcKxKPpg+S2DebJWc45BVmQk8 5w/uXbUIxwD1kmP4palKS+cqIkmQjMG3Sn7gBpUV69WGC6O3Jexfl6+9T64D9teeGKkG zZBN4PqtE2wDaAhy5wQrubzSurx6a+c2SOTTO2ajGiBb1ARgYJuSaBuQ7ihGeLfmu85i My2RZg6QB9CTBPlqsVn0eyH+mfoPU6fEwPqsisDjUWSrt3VAJR79avyRLqzuT/kDWv8R v/jUS1JdXH1n6mh8V5exB4Xm+NAHi3DjhRAXrvp2+xoLnsNPsmkUQCaruKW3KzSZBSbH GMEw== 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=yr89PYnevNAP4ecme2C8mdB3u3xQQSv2Ki3E5LGk/co=; fh=QnzoMCpDQLO5rKrutgvvTyr5SJ+vcHM/PioEb9srvMc=; b=OUenCS8D4BfXrng8AbYwx9Yjy9o3oUR5pKyRcYHOgRFGw2IGElRzfEkVGybl1qaiDb 4TRhDmNLuc7iN871H4xoj2A3jtCaGI95ml5eE0CLuQB4whMNjBbS6hJQ0es1tyduRKgC N9j6dYD4wmZenqjXuXfYsnreUrWMjYrtkbcDXaP1aMfNv3Byuor7RQuFffW5t8vTXBC/ 42Tpf3+Gr5uMLBv+GnptuwAa3oko/LW6B33XZwZpth/7P8XcpTuwFhuNHFgM+haOW6Aa AQ+7DT4wkZF9cQqUNehDnBD01r9UZYLm3dR6wvA5l1riaGp98UDUuTudJDda342XktI+ 7V1Q== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h8-20020a1709062dc800b009936afb1e23si12394640eji.130.2023.08.17.08.09.13; Thu, 17 Aug 2023 08:10:03 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=sntech.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345165AbjHPRTV (ORCPT + 99 others); Wed, 16 Aug 2023 13:19:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59926 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345181AbjHPRTG (ORCPT ); Wed, 16 Aug 2023 13:19:06 -0400 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5EE7698; Wed, 16 Aug 2023 10:19:03 -0700 (PDT) Received: from i53875bbf.versanet.de ([83.135.91.191] helo=diego.localnet) by gloria.sntech.de with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qWKAT-0006YA-LC; Wed, 16 Aug 2023 19:18:49 +0200 From: Heiko =?ISO-8859-1?Q?St=FCbner?= To: Andreas Kemnade , Conor Dooley Cc: 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 Subject: Re: [PATCH 1/4] dt-bindings: touchscreen: convert neonode,zforce to json-schema Date: Wed, 16 Aug 2023 19:18:48 +0200 Message-ID: <113333811.nniJfEyVGO@diego> In-Reply-To: <20230816-customary-service-8d9c5e5dbf1b@spud> References: <20230815182948.212575-1-andreas@kemnade.info> <20230815182948.212575-2-andreas@kemnade.info> <20230816-customary-service-8d9c5e5dbf1b@spud> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_PASS,T_SPF_HELO_TEMPERROR,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 Hi, Am Mittwoch, 16. August 2023, 16:52:16 CEST schrieb Conor Dooley: > On Tue, Aug 15, 2023 at 08:29:45PM +0200, Andreas Kemnade wrote: > > 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 > > It;d be good to CC the person you're volunteering! I've done so. BQ the company is no more. So I have no issue with me being in there, afterall I did that driver back then, but I guess my main and permanent address of heiko@sntech.de might be more appropriate :-) Heiko > > + > > +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>; > > - }; > > - > > - /* ... */ > > - }; >