Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp888992lqs; Fri, 14 Jun 2024 08:26:40 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVdfnK3xWCbmoj6ULTSYGBqZvbqPbX4wwX+Zizp9SabKtdlw8XXB9toJILva5rrS52yZSQUIp5I0Y0vzigWgu4JCYNbZOxvJtP6ZAr5pQ== X-Google-Smtp-Source: AGHT+IEIf/dZNcj+ts1O9iLPLVr3pbL9IA1h8P97ZTstddGnOEgMhJBIvvxbNvSlCxXks+44meNx X-Received: by 2002:a05:620a:1a8a:b0:795:81ae:e0ec with SMTP id af79cd13be357-798d258e253mr353470385a.51.1718378799683; Fri, 14 Jun 2024 08:26:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718378799; cv=pass; d=google.com; s=arc-20160816; b=Bhn1GI1KOwAdg+tqnV9Gpks6fbO1DjGctp6+Y6jHkZU6kUmDVhohORTtoZ9Wd9YBEW xKjxRND1Uaxihd4Lyj/UCyieC8UIPlxpJc79KOu1CCXkIh2yf7nI6EOeTOiOPFLJmz2l DECsfh1Xw1vvdMohyEilKjdb1wcvKRcokyPYNRmu2IXylxdxS/9d+MwJxnrkICLWsetC bDBr1moCEJ721zBhq7TdphPpcqnJSIWDaAxAcbKKvBcvaPER2PaBrqf9bELyh7L+6Uyw lCs3KN+623SMBbq9OYb6uvkHkGrCJ/uG3M0VIO+haV/KrnW/bBnYb/ZlChFzwDaiqEFK aJ1Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Zb5wj3At9EShFkqjXb4Hk/DqZ9X3PMDrXB6Dl4tzutM=; fh=SI1ULqxgCp01KBoSCfLjsHTJPtSVYhDAaXlMLWXpbic=; b=R5pG5EiGSdFTbtDghC+9tDZmrJd+pjKeq1hyOvdV/9Boj6jinkcOMK279am+Ga0C91 xqWYCmbQZJ8149moAsFOVq0m54IQLGshQxIyavmQ0To7NC6RPWoWEwFPiZkAQTpA+lLi l+aweCya+HY3XaPuXMfGj8AjMSPqZG7ZEE9YpOvFf+iVvdIiQA4xBIHPelsbqG9quKb2 qys9PRALs9H5FbKmJ9h1qJMBMlAOs3Lh12t8XD9r7Tk/MPMO1wKiByTMhk9U1Qy8Py38 Qv1ULL5LU9rSiPdO+DsIS+Likroq3EB1Z2HaEs0rKz61+BjVahSaepN6V7rzm2dLJlk7 2DpA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iGyqQvfg; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-215143-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215143-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-798ac08ee11si407187985a.771.2024.06.14.08.26.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 08:26:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-215143-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=iGyqQvfg; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-215143-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215143-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 4D6CA1C209F9 for ; Fri, 14 Jun 2024 15:26:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 42C0015FCE5; Fri, 14 Jun 2024 15:26:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="iGyqQvfg" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 614AA15ECCF; Fri, 14 Jun 2024 15:26:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718378788; cv=none; b=VUBYqmBCIQhgjG635kNT7Rqz7Ws/XzXtAbzXan8XC0Yf6iADmO4+Q1jAdfsIaHMFm37M9axMcULYn4l/9amcU3pmXHQzkeodvsbAbOsm92t10umHkh5Af4YdZnPEj0p0DVOJnJkd1j3R+dTCoAflfKcJZ5vbdFrHV5D20KFEGfo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718378788; c=relaxed/simple; bh=4NLhjLagJehuTOmWaUKeGAJfqt2/4rzGpxd/ChCEB5U=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=bb3tviDNpeqqHp53bGboPbmEds70s5Ht/M3ZzTgYof8WFJR0ZHYx0UVw2WCkm31Z4Bm0xcOun/61ufMyCDqD9sEu0f6oayKlp1LmVdQ9MgovXr0w2tYs1FgOdCrPppzZsB8y+QEk7FsCIk8qWQOAvHBcWD92XW2Nyn7JKwKBR+Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=iGyqQvfg; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8C0A6C4AF51; Fri, 14 Jun 2024 15:26:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718378787; bh=4NLhjLagJehuTOmWaUKeGAJfqt2/4rzGpxd/ChCEB5U=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=iGyqQvfgCKL29czXdLpI26pg+vOmhaS4MR18JazX3SZMzYsUam/IWoTAfgbTupIAf fpzu7hlTKxc78qkMSxp476JG5DD1XlI0o43+E4Ed9BTXHijTaHLn/S3lANfMuxGMlI k72u7fp3PSi3NsI2+ZBl96yfgelboWNj7AquyRSkbzHrzF0lUD0a8vaJdZPqP2wN8f DRKrLPoz2NEZOTCN4OoN3BpU1xST19LNQWAUv5NAC3XL65TsM0KOOaCbi5fKA7uJ2j sc2T9qtK3i3tH9yfBzWPWBMCRF1OYxqoSVM6G50ltrWI3GepJgdg8fJOlXP+ApV9om vDi4VotHx0TkQ== Date: Fri, 14 Jun 2024 16:26:22 +0100 From: Conor Dooley To: Charles Wang Cc: dmitry.torokhov@gmail.com, dan.carpenter@linaro.org, dianders@chromium.org, robh@kernel.org, krzk+dt@kernel.org, jikos@kernel.org, bentiss@kernel.org, hbarnor@chromium.org, linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 2/2] dt-bindings: input: Goodix SPI HID Touchscreen Message-ID: <20240614-renewably-snowless-861ca2ab9c93@spud> References: <20240614121538.236727-1-charles.goodix@gmail.com> <20240614121538.236727-3-charles.goodix@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="sIpVdyPJbqU7YAg0" Content-Disposition: inline In-Reply-To: <20240614121538.236727-3-charles.goodix@gmail.com> --sIpVdyPJbqU7YAg0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jun 14, 2024 at 08:15:38PM +0800, Charles Wang wrote: > The Goodix GT7986U touch controller report touch data according to the > HID protocol through the SPI bus. However, it is incompatible with > Microsoft's HID-over-SPI protocol. >=20 > Signed-off-by: Charles Wang > --- > .../bindings/input/goodix,gt7986u.yaml | 65 +++++++++++++++++++ > 1 file changed, 65 insertions(+) > create mode 100644 Documentation/devicetree/bindings/input/goodix,gt7986= u.yaml >=20 > diff --git a/Documentation/devicetree/bindings/input/goodix,gt7986u.yaml = b/Documentation/devicetree/bindings/input/goodix,gt7986u.yaml > new file mode 100644 > index 000000000..1c518d03b > --- /dev/null > +++ b/Documentation/devicetree/bindings/input/goodix,gt7986u.yaml > @@ -0,0 +1,65 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/input/goodix,gt7986u.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: GOODIX GT7986U SPI HID Touchscreen > + > +maintainers: > + - Charles Wang > + > +description: > + Supports the Goodix GT7986U touchscreen. > + This touch controller reports data packaged according to the HID proto= col, > + but is incompatible with Microsoft's HID-over-SPI protocol. > + > +allOf: > + - $ref: /schemas/spi/spi-peripheral-props.yaml# > + > +properties: > + compatible: > + enum: > + - goodix,gt7986u > + > + reg: > + maxItems: 1 > + > + interrupts: > + maxItems: 1 > + > + reset-gpios: > + maxItems: 1 > + description: reset gpio the chip is connected to. > + > + goodix,hid-report-addr: > + description: the register address for retrieving HID report data. > + $ref: /schemas/types.yaml#/definitions/uint32 > + > +additionalProperties: false unevaluatedProperties: false. Please test your binding w/ dt_binding_check. > + > +required: > + - compatible > + - reg > + - interrupts > + - goodix,hid-report-addr > + > +examples: > + - | > + #include > + #include > + spi { > + #address-cells =3D <1>; > + #size-cells =3D <0>; > + num-cs =3D <1>; > + cs-gpios =3D <&gpio 2 GPIO_ACTIVE_HIGH>; cs-gpios shouldn't be needed for a basic example. Blank line here before the child node please. Thanks, Conor. > + touchscreen@0 { > + compatible =3D "goodix,gt7986u"; > + reg =3D <0>; > + interrupt-parent =3D <&gpio>; > + interrupts =3D <25 IRQ_TYPE_LEVEL_LOW>; > + reset-gpios =3D <&gpio1 1 GPIO_ACTIVE_LOW>; > + spi-max-frequency =3D <10000000>; > + goodix,hid-report-addr =3D <0x22c8c>; > + }; > + }; > --=20 > 2.43.0 >=20 >=20 --sIpVdyPJbqU7YAg0 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZmxhHgAKCRB4tDGHoIJi 0jvDAQDDtZyVi/8NgabB8fDEa1enuIUIT8ggVNgMugIqpQnRNAEA+oBaBQsso5Pk mO2mB6FIEIQiIEctAIhGz5QpwWq+aAQ= =Ez+U -----END PGP SIGNATURE----- --sIpVdyPJbqU7YAg0--