Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp800924lqp; Wed, 22 May 2024 23:27:25 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVFAuLArnjy+iB3dnXvRb9zNzV7Wr7HJndOrrgqyPeAWauy7nJyp9fp8ZEaUx/hl6kWXs22asfe0Vu7hO1zNx/jHvBNbY3YQC2h9t0xbA== X-Google-Smtp-Source: AGHT+IEv9rMP07Tm83syZ10p1CH2tPPSm7kUewqHxfk6gIK9b/9Uq9zKBWImUSSQ9OhEDpJ7umAJ X-Received: by 2002:a50:c015:0:b0:572:9f60:783d with SMTP id 4fb4d7f45d1cf-57832c89e3emr2396900a12.36.1716445645325; Wed, 22 May 2024 23:27:25 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716445645; cv=pass; d=google.com; s=arc-20160816; b=cCxFgDpLtCCs2b6B1YUjKLhQLhWdAhZUo4jALZ4INMOvPNFGhhjkZa4TBGDbceZ7vR H9cjdt2bT/2anr3OS3UMk86M5lPKK8Xj9idMcNE/GpSxQ0mRzmT0p40kDKY/NxtrqnIp Dph6QXwh4pH4h5EeAuVK4GppMi/SpDVvoIXP81UUR7NCx5s9xg2MZF8mF3mbuAEC1blg enNspG6QfloqEAzkoVtdvCPE7IMfjeeXBILRF65pp4KStVtfx/xLB9qbpGX9iq/6jMm4 iCfTRb+os0WHsBEpcaZk7zH2kR0dRaBaGeR4kbtD4GPC4Ukc9Kf5Z0S0bBitiDB2A6YL 0Lrw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:content-language :from:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=FMr3C+xAwYTfj8gnkyOBza9r7oHKFtvh9tVlBI+SPio=; fh=ychlk+kbdtOZSd3//Lasfhe/iA/2Jb9LjpwqbZzd71k=; b=GAI8p9GpSJZJRt7TXdlGhGOQo2srKSCHi/s5dlJR2nS40jzeYHp01BJWNfouEur8QF iOm/UH5SuU5pFkUMhiJk0/0VLAEuguNjUCp9wx6q7NWmQduSQZ2OdtNJel4ISt38keY/ gm1p25VBq1m4Qah/7rizn4kK8g8c1ryYaVRlnjf4HhsYY0APnSArB+EaAEj5ojlQ8AHc UAi3ueiuli/fz9U1MgL2obAAe1IqJYTmlixhZ3ocs1llsLPqOwve/bB9yeMO2KRre4Bk 5U9cr8v8vF5fbu3A2ySz7q3qyxI5koZCQRq059u+E2HLHCVztsKB0YAioBzTYBGk4HFz b4Kw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=D1iBK16J; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-187040-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187040-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. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-5782a4227f7si1800742a12.673.2024.05.22.23.27.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 23:27:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-187040-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=D1iBK16J; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-187040-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-187040-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 A96EF1F24418 for ; Thu, 23 May 2024 06:18:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C311313B7A3; Thu, 23 May 2024 06:18:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="D1iBK16J" 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 AAFB713B5B4; Thu, 23 May 2024 06:18:11 +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=1716445091; cv=none; b=LILyC8qw8GKUPQ7vJMdQ8HcaaK+FA94RYl4rFpSE0BabKGLqArwiWffrjU83UW3l03J8RGqAq1mASEOpfL3/fiDhkfF5bZ9SKT/K2M9otXkEmT0wOCkf1vw7UOh1v2EoPqRL4scmsqWOoKMjCBH8r597gjXiIqtWA8CZjJE5NN0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716445091; c=relaxed/simple; bh=OTVberI1BuWIOdkUJoRqDYrgj07Ee4OnvLviPQ6WZyA=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=Zufap+hg9pJjTT7oCgei8pMmKcIdNBiFtxieXu6a9v8KldgICMMPuPn5UnzO68Mw5y6Y528gJrJrDQL6ua6mua7HojOGyMrK1jiFp6IH/CVa6qbdBkSFw/L8oYNWmcEk6tYHTTIh1nCBKhQdrZPfaQo89xf1z0qm10j2mgH+BiU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=D1iBK16J; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 685D6C2BD10; Thu, 23 May 2024 06:18:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1716445091; bh=OTVberI1BuWIOdkUJoRqDYrgj07Ee4OnvLviPQ6WZyA=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=D1iBK16JsfklLNDCeR2CthstsTpZqlPFXA4X1zV+lmD26PIYA5DbMSLdsk5XHlgYd Gfz0cUTb478dCKnZ9Ip1SDKs9qi2dHCiyp+G6K9te5xeEX97Sa7xk51zCtH0CVSpDd /8jzGZA3j9n2hg7gxa/iCO5wb3es6PygQ0qxmv4hwvdGRJgb/KkVgqJRIj2XOEnyeq 3MXwOEaBmMYSEDtM/z09EYgC5nMrq68ihui4j9cFY49iYPFcfM+TLrl7ELCLr9OtXn 9kutEJ+CeySg6OcDj1576zPJSfoGrkkFFFUWS1onHGYSH+R2W2cNsqs3f8KDAHyyIu Z3eMQFvXGznxA== Message-ID: <6635cbee-be58-4c84-9caf-309866f1002b@kernel.org> Date: Thu, 23 May 2024 08:18:06 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/2] dt-bindings: input: document Novatek NVT touchscreen controller To: Joel Selvaraj , Hans de Goede , Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240521-nvt-ts-devicetree-regulator-support-v1-0-8d766c639dca@gmail.com> <20240521-nvt-ts-devicetree-regulator-support-v1-1-8d766c639dca@gmail.com> <6f22e42d-8a06-4c24-93bd-25b6ac141cea@kernel.org> <7d84912f-7bc4-4376-9f13-31fae16013f4@gmail.com> From: Krzysztof Kozlowski Content-Language: en-US Autocrypt: addr=krzk@kernel.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzSVLcnp5c3p0b2Yg S296bG93c2tpIDxrcnprQGtlcm5lbC5vcmc+wsGVBBMBCgA/AhsDBgsJCAcDAgYVCAIJCgsE FgIDAQIeAQIXgBYhBJvQfg4MUfjVlne3VBuTQ307QWKbBQJgPO8PBQkUX63hAAoJEBuTQ307 QW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vTRRdC3g9hmCEuNSr+CLMdnRBY fv0= In-Reply-To: <7d84912f-7bc4-4376-9f13-31fae16013f4@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 22/05/2024 16:00, Joel Selvaraj wrote: > Hi Krzysztof Kozlowski, > > On 5/21/24 11:48, Krzysztof Kozlowski wrote: >> On 21/05/2024 14:09, Joel Selvaraj via B4 Relay wrote: >>> From: Joel Selvaraj >>> >>> Document the Novatek NVT touchscreen driver which is used in devices like >> >> driver? or device? > > touchscreen "controller" would be correct I think. I will fix it in v2. > >>> the Xiaomi Poco F1 [1]. Also, include the devictree binding file in the >>> MAINTAINERS file. >>> >>> [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm64/boot/dts/qcom/sdm845-xiaomi-beryllium-tianma.dts?h=v6.9 >>> >>> Signed-off-by: Joel Selvaraj >>> --- >>> .../bindings/input/touchscreen/novatek,nvt-ts.yaml | 62 ++++++++++++++++++++++ >>> MAINTAINERS | 1 + >>> 2 files changed, 63 insertions(+) >>> >>> diff --git a/Documentation/devicetree/bindings/input/touchscreen/novatek,nvt-ts.yaml b/Documentation/devicetree/bindings/input/touchscreen/novatek,nvt-ts.yaml >>> new file mode 100644 >>> index 0000000000000..7839c6a028e4a >>> --- /dev/null >>> +++ b/Documentation/devicetree/bindings/input/touchscreen/novatek,nvt-ts.yaml >>> @@ -0,0 +1,62 @@ >>> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) >>> +%YAML 1.2 >>> +--- >>> +$id: http://devicetree.org/schemas/input/touchscreen/novatek,nvt-ts.yaml# >>> +$schema: http://devicetree.org/meta-schemas/core.yaml# >>> + >>> +title: Novatek NVT Touchscreen Controller >>> + >>> +maintainers: >>> + - Hans de Goede >>> + >>> +allOf: >>> + - $ref: touchscreen.yaml# >>> + >>> +properties: >>> + compatible: >>> + enum: >>> + - novatek,nvt-ts >> >> That's too generic. Looking at your driver change, it is not even needed. >> >>> + - novatek,nt36672a-ts >> >> Eh, we have already panel. Why there is a need for touchscreen binding >> (binding, not driver)? > > I am not sure I understand this correctly. Help me a bit here. For > context, in mainline there is an existing driver for the novatek nvt > touchscreen controller. The driver did not have devicetree support. It > only had a i2c_device_id "NVT-ts". I don't know what is the variant of I just got a bit confused that you add another binding for the same device, but now I see these are different interfaces - DSI and I2C. > that Novatek touchscreen controller. To use the driver in Xiaomi Poco > F1, I introduced a devicetree compatible for it "novatek,nvt-ts". The > However, the Novatek touchscreen controller present in Xiaomi Poco F1 is > "NT36672A" which has a different chip id than the one in existing > driver. So I created a separate compatible for this touchscreen > controller variant "novatek,nt36672a-ts". I used compatible data to > differentiate the two variants. Since there are two variants, I am > mentioning both here. Just to be clear, I don't care about driver here but hardware. You have two separate interfaces on this hardware - DSI virtual channel and I2C? Best regards, Krzysztof