Received: by 2002:a05:7208:3003:b0:81:def:69cd with SMTP id f3csp4244228rba; Tue, 2 Apr 2024 11:09:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUqfENPXM0c3XK8+dEwqB9xEbY1dnbdwR4TLbSobMHRlHLxBXG67dXXq/MhFlzKHQ4jus5plmsF1c9Amv6rGcFpwxFM5JJak82gydLv+A== X-Google-Smtp-Source: AGHT+IF/HYsNDF5bReClORhRu7NCWllh0CdltKDsYc1nkktwDL5eH667WVbaGB9zzKMCJR0FmO8D X-Received: by 2002:a19:700b:0:b0:515:9185:652f with SMTP id h11-20020a19700b000000b005159185652fmr7931027lfc.33.1712081389300; Tue, 02 Apr 2024 11:09:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712081389; cv=pass; d=google.com; s=arc-20160816; b=Y7llICyKSL10i6+Z+KSn8nBsD/r5nmZ50woUV8Qh0ASwONYCkH3Ww2Hp1bJdlgzyjc kFkh3phn0O+DcHFMw61DKiotgPO5N9CNZ3VumEJrLj0nysR1oMMjtwMsEkfrExBlE7p5 jkHbBpI9212iIfrwvlfYxgo1iLOcVEob/DmyaxyBOsqcHZewJHRTH2lIzLJb73B0EGwH 08MPH5uUX0zQ9Zl8MNKrG3UTArvBTHMd08FpEia8PbgfrCMHKM1yiReb3j6cVMuHtIhE 9BI22mL/EsuekygGbu7UnzW9r1bVX586R411aOaaaNQTp7BqkCu44dfqsFw335fLJKRc 0YTw== 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=CwdYFDtExNC9rP5nqZxdDhmhcrUp62n+n0WDLSXTiiM=; fh=hDv+Hzpk0/B/gHMaphEiGNDxQl96ucksj9BS/As/4vA=; b=S0XXYamu32qWJjV8nQGjtSj7Tf4+epSBD9qegvhSP333TOjHyAlLjWq2X9vM90mIN2 13th4IuktvB9g9BSgrAOtnUYpFKVj5l0tEk7riUBJFXc3htRx/vl04tsTEAccF265emz bjZTKYR04NhRAcR5DgaAk/ak5tedWHaugaU+9HZMjHtR37PHE2bpPCH50jZ5cIxwr7do BD5WFAtpllr30Y20LcLK24V9jUlmfO1vHpC5Bhyj5kbR3/9nHmGK758OnDTegj966fuf +Jxnn/BTR9hDOX2bVZeRlRn6nOarlGoCqYWz10cNHmXsjvavRBQLwNY11BCwqINvuoI7 LdmA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rN1JPzb+; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-128486-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-128486-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id o6-20020a1709061b0600b00a4e98004a06si183449ejg.70.2024.04.02.11.09.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 11:09:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-128486-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=rN1JPzb+; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-128486-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-128486-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 am.mirrors.kernel.org (Postfix) with ESMTPS id DA95A1F2296E for ; Tue, 2 Apr 2024 18:09:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8A4B215AD87; Tue, 2 Apr 2024 18:09:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="rN1JPzb+" 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 91C1615AAC4; Tue, 2 Apr 2024 18:09:36 +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=1712081376; cv=none; b=uNxdED/5Va9PUz07e0GQ3DLEHGfzWKQAGwqooUZs/C4RnqznBPllnLrApwP7FevdrOCWB2pk5W7dNaO7XzUBdIROyMF8C/myjxh8s4ndbqA3LUC4X/aOv8db69QoRln8kDBcHNjuqtx/1anuHeQoy9HCSmKmw+5FFtTJ5LmOYh0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712081376; c=relaxed/simple; bh=v2yTSI5wVjubdh6O9XGd9XiQiEx2T9wjyrIYVBy4i5w=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Ea2Vhw8Pu7OTY53cxbBc77duR2jddElT5vnsnEil7Rw612xw76HpGHVSfMEbuj9K4GhcGHMswJspDGCulkiYtj6MW/O26DCiLQYJf7jLjbWNv0pJeMXyP3pRRmqTyg77aAl4bUE2j11Sjf4ayFkXNXR80LL5emXo9Cewyrm1oUA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=rN1JPzb+; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 43682C433C7; Tue, 2 Apr 2024 18:09:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712081376; bh=v2yTSI5wVjubdh6O9XGd9XiQiEx2T9wjyrIYVBy4i5w=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=rN1JPzb+MARtU6UczxPQ7h9luhxp2nCHkJALKqKjYduvj/tMkpNJnwvDaWcqPceGZ LrsnSR3TI7oBn+DZSYRPdwkAQ/yTwpNdM2clC/L2MscHkqpZDMMjyoRXR1l77zF+Bt u8srvdubSsKoHr8CPvbbqqEQX2nlD+gVwVGTE2YRjsg7rJT2kPcRDNq12SUbLSPAU3 7kbth671C937lhBHjXwLBaVsP4/QCi/ziYmyX8irs2jeFh97Zf5IuSwryLrzu4XSuj NlVefpZqL8ZKa1edzZjQXxM8Msy784onEpXwKltmZIHMDS1eklHcmiiBy+zI292XeG HueNZcfQlKAag== Date: Tue, 2 Apr 2024 19:09:32 +0100 From: Conor Dooley To: Allen_Lin Cc: dmitry.torokhov@gmail.com, robh@kernel.org, krzysztof.kozlowski+dt@linaro.org, jikos@kernel.org, benjamin.tissoires@redhat.com, linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/4] dt-bindings: input: Add Himax HX83102J touchscreen Message-ID: <20240402-doable-routine-8e8cb4f07ffb@spud> References: <20240402104930.1053016-1-allencl_lin@hotmail.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="wnkQWaX3HDVV3g+f" Content-Disposition: inline In-Reply-To: --wnkQWaX3HDVV3g+f Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Apr 02, 2024 at 06:49:27PM +0800, Allen_Lin wrote: > Add the HX83102j touchscreen device tree bindings documents. > HX83102j is a Himax TDDI touchscreen controller. > It's power sequence should be bound with a lcm driver, thus it > needs to be a panel follower. Others are the same as normal SPI > touchscreen controller. >=20 > Signed-off-by: Allen_Lin > --- > .../input/touchscreen/himax,hx83102j.yaml | 100 ++++++++++++++++++ > MAINTAINERS | 6 ++ > 2 files changed, 106 insertions(+) > create mode 100644 Documentation/devicetree/bindings/input/touchscreen/h= imax,hx83102j.yaml >=20 > diff --git a/Documentation/devicetree/bindings/input/touchscreen/himax,hx= 83102j.yaml b/Documentation/devicetree/bindings/input/touchscreen/himax,hx8= 3102j.yaml > new file mode 100644 > index 000000000000..fe79129f704a > --- /dev/null > +++ b/Documentation/devicetree/bindings/input/touchscreen/himax,hx83102j.= yaml > @@ -0,0 +1,100 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/input/touchscreen/himax,hx83102j.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Himax hx83102j touchscreen > + > +maintainers: > + - Allen Lin > + > +description: > + This Himax hx83102j touchscreen uses the spi protocol. > + > +allOf: > + - $ref: /schemas/input/touchscreen/touchscreen.yaml# > + - $ref: /schemas/spi/spi-peripheral-props.yaml# > + > +properties: > + compatible: > + const: himax,hx83102j > + > + reg: > + maxItems: 1 > + > + interrupts: > + maxItems: 1 > + > + reset-gpios: > + maxItems: 1 > + > + vccd-supply: > + description: A phandle for the regualtor supplying IO power. nit: regulator > +=20 > + vsn-supply: > + description: Negative supply regulator. > +=20 > + vsp-supply: > + description: Positive supply regulator. Cool, thanks for adding these. > + > + ddreset-gpios: > + description: A phandle of gpio for display reset controlled by the L= CD driver. > + This is the master reset, if this reset is triggered, the TP reset= will=20 > + also be triggered. > + =20 > + spi-cpha: true > + > + spi-cpol: true > + > + spi-max-frequency: true > + > + panel: true > + > + himax,firmware-name: firmware-name is a standard property, you don't need to vendor prefix it. > + $ref: /schemas/types.yaml#/definitions/string > + description: > + Specify the file name for firmware loading. > + > + himax,pid: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: > + PID for HID device, used to validate firmware. Why do you need this _and_ firmware-name? You should be able to trust the firmware that the dt has told you to use, no? Cheers, Conor. > + > +required: > + - compatible > + - reg > + - interrupts > + - reset-gpios > + - panel > + - vccd-supply > + - vsn-supply > + - vsp-supply > + - ddreset-gpios > + > +additionalProperties: false > + > +examples: > + - | > + #include > + #include > + spi { > + #address-cells =3D <1>; > + #size-cells =3D <0>; > + ap_ts: touchscreen@0 { > + compatible =3D "himax,hx83102j"; > + reg =3D <0>; > + pinctrl-names =3D "default"; > + pinctrl-0 =3D <&touch_int0 &touch_reset>; > + reset-gpios =3D <&gpio1 8 GPIO_ACTIVE_LOW>; > + spi-cpha; > + spi-cpol; > + interrupt-parent =3D <&gpio1>; > + interrupts =3D <7 IRQ_TYPE_LEVEL_LOW>; > + panel =3D <&panel>; > + vccd-supply =3D <®ulator>; > + vsn-supply =3D <®ulator>; > + vsp-supply =3D <®ulator>; > + ddreset-gpios =3D <&gpio1>; > + }; > + }; > diff --git a/MAINTAINERS b/MAINTAINERS > index 43b39956694a..aa51c60fd66d 100644 > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -9669,6 +9669,12 @@ L: linux-kernel@vger.kernel.org > S: Maintained > F: drivers/misc/hisi_hikey_usb.c > =20 > +HIMAX HID HX83102J TOUCHSCREEN > +M: Allen Lin > +L: linux-input@vger.kernel.org > +S: Maintained > +F: Documentation/devicetree/bindings/input/touchscreen/himax,hx83102j.ya= ml > + > HIMAX HX83112B TOUCHSCREEN SUPPORT > M: Job Noorman > L: linux-input@vger.kernel.org > --=20 > 2.34.1 >=20 --wnkQWaX3HDVV3g+f Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZgxJ3AAKCRB4tDGHoIJi 0ngTAP9sAj6qdFZruDOlfI5qPpSzZ9xkZKy3Gcy8R5RWuWZ+WAD+ILoYLlHXju8g Vaim33nrtscHEM4CFV/YvdfiUdicvgY= =OLuM -----END PGP SIGNATURE----- --wnkQWaX3HDVV3g+f--