Received: by 2002:ab2:7855:0:b0:1f9:5764:f03e with SMTP id m21csp442852lqp; Wed, 22 May 2024 09:00:53 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXSQptmHTK0U/eZizx4o7wlptlBpdCNvjTltch15X84ZDqJpt/biHDjY6ugaalu6UvOIPpTOyCBk9YXdS1oqGHW8vYwlVrJNidjLG+uow== X-Google-Smtp-Source: AGHT+IFb1Gt7jcLelSOBEWSUMew7uxtl5Urkdi6Phq4+07WOdIBBR8nAuXwZYQkyxzYNQvEUWptz X-Received: by 2002:a17:902:e5c1:b0:1e4:2d13:cf68 with SMTP id d9443c01a7336-1f31c97eca6mr26121805ad.17.1716393652042; Wed, 22 May 2024 09:00:52 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716393652; cv=pass; d=google.com; s=arc-20160816; b=KFUGxtCYFnsbmsSxRjNUYUIuWXXECMW5uvSkPUY7dlb7CChKp7NWG5e/e0RQyvzk4R BsXw5JI2zWnE6yAUucBFyFuH65jCJEAplko6ETsoVi1Qikjt6DhIQ2DWOKP8yLkJuzaI 4MGV4D8Ji3dMljDTy8AuReu9Byns0GUkTmwfulsgi0tjOjz7m+dJwaBMP63FJMt3hYdu HZWSIbC/vlLvj9slzNHA4kr52dqmstB1oHDets4GBqR+jmUwOU7KlsmhzCjMO0WPfW64 Mma30HuBBESmyl37Lg01UlBFoUQnbEUaou2sGB3vKrYukSqIIoALMcs0xjGwVzKYYNKe kYcw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=ajxqgjEKnMOrF68kO1CKH80QE6nlB/0C/WuHcK2TQAo=; fh=upc/5Nc+BlBqR8sm5xFQJPIA0haQyCnFfW65JSgXhxc=; b=iAkQTHR/y55fJyr1JPTPBGIhCgZZx6RyIq399qm75Za4mGmGIeWScWz0sIpdBPV05m Lvttf/ndlGzbpJrLg4QRMwWcMyMvp3+R+u2VWqr1d8SxkYAHJCqUbqKa8o/VtoOBFPb8 FKJEMUsP3fpEIDhTE4vx81MgoDACD+GxkRn+T80Xp1d9XZXaRwSWI+YAxskkrReW/2E3 7GvbtRflh7QZuY7+onslt7CB31yYUAGQgO1P0mUcKhAoyT2/Z73j432tXU5MuG8fxRz8 6sNwJ6WJ+F4NGWA5nGfgnJm9GVkiutvrnDwe4ksdBhIHISvpETtI6xo6HaeZtVhiNev6 PzMQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=dWILjTSr; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-186470-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186470-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d2e1a72fcca58-6f4d2a72bafsi26335791b3a.63.2024.05.22.09.00.51 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 09:00:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-186470-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=dWILjTSr; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-186470-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-186470-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 107A4B229A4 for ; Wed, 22 May 2024 16:00:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id AE8E713DDB0; Wed, 22 May 2024 16:00:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="dWILjTSr" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (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 299F71CF9B for ; Wed, 22 May 2024 16:00:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716393626; cv=none; b=ZrC/DV5pJOOaM6WONZXliYXNlTFW9cZLM27VoOq2qlKylWQ99qrxC5Zs0ui1L1urm/PZroPqJ2ik9R5XFIuHtUbATBfPHw9oLx/OX81EjM4flqYlC6oQFjeUKruHPHCFlW6jaU2KHeVDUmBPI/kDmr3V2V/tibEFhhsjckFwaW4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716393626; c=relaxed/simple; bh=2C9fNAU+Yg3t9+muOOfWc9qfe3e2oqVbk6lel/Tnsrg=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=B7wvOcEhILahjridYf6s2P3xjQec4OFG3oX3f7ANrQioeJCmwoV55L90LSBdV4x+2QFSHzEhujt5wW21rJwq7KNVJJOLV/Py7ufOs3YbjMIufvncHA+dlSUmeV/Yk/Bw3OS9WRs+MXe/6C/il8EygtiQ+r5EWlFGZTiVHSvBIzQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=dWILjTSr; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1716393624; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ajxqgjEKnMOrF68kO1CKH80QE6nlB/0C/WuHcK2TQAo=; b=dWILjTSrBfrCtu/cUMSxkr6dbqNawx/tlVdLIiyDsvBPIdiDsuvfIVX4vBHX2rvIKFF02t ftLTQmdBEHYGX/NtRZXLoyj8UmEHEcYjJXmScFP/Vzl4gCUU44FH0mzVkRjutg0P+EyfoB mvSFi33FIGA1hfhcG5Kts+mI5mjXUyc= Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-548-hp5xS7cuO9KkFFLRJezAgQ-1; Wed, 22 May 2024 12:00:22 -0400 X-MC-Unique: hp5xS7cuO9KkFFLRJezAgQ-1 Received: by mail-wr1-f70.google.com with SMTP id ffacd0b85a97d-34eb54c888cso11176683f8f.3 for ; Wed, 22 May 2024 09:00:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716393621; x=1716998421; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ajxqgjEKnMOrF68kO1CKH80QE6nlB/0C/WuHcK2TQAo=; b=kT00JAZi7sA5EVIX4xbYhQAilurXiPgl3Hz/SyeBW4imv9M9oapH/in5Qu9a4SN+xA 1KKJCSJ50H7z812xsLey//WBpIQWI47mjS1UBCEAR3cr3/yPRTnFjvd+wwHbSa+sRQF0 eSSPNTynf/rIm+5N+ojUHFKHeQmsREOFhg/1RJu8LJrQ4kkKK3HT4zVnqnC+MgsHBRdl SXOUlvaqUnAkqhSw5jPcYTnHZ85Cqyrou1F1BHTTPOHWacSFwsx0jVwciT5xsvsVL+ni buhXfj6ZaIAA+294pPbtYTCyfT/Jhc5s5xcHvkK2vTIrO+4mfcAr00/ZjkYGlJFnwr5G k2Ug== X-Forwarded-Encrypted: i=1; AJvYcCV/+Ul7z0cw+N9gXlezaK9w9JO3L92VTdput9mvaucP0lgLibjFu+z73lMFrYWj9DoX5rKPj4xMo0AYOF6rIV1/9x/plx3cCW4fkY6h X-Gm-Message-State: AOJu0YwfFPJq4el++gV2QcmTYx78jna7NINfdmWvYDcMnU2OtHVO6QP6 9Bmv4C5zQny5pYg7q+T1M+xH9CrodTMXvKYEQGK2204KQGArvkMOB4Bxgh5a0REguj/ODEFPOPt psHn01TXTAO+vwtvHflgEtfxbg/digBRbnG/AUy0Hlli+/J1gNiIzMEiqjJGgSw== X-Received: by 2002:a05:6000:1b91:b0:34c:4d98:d6f7 with SMTP id ffacd0b85a97d-354d8cc565amr2110453f8f.26.1716393621163; Wed, 22 May 2024 09:00:21 -0700 (PDT) X-Received: by 2002:a05:6000:1b91:b0:34c:4d98:d6f7 with SMTP id ffacd0b85a97d-354d8cc565amr2110410f8f.26.1716393620727; Wed, 22 May 2024 09:00:20 -0700 (PDT) Received: from ?IPV6:2001:1c00:c32:7800:5bfa:a036:83f0:f9ec? (2001-1c00-0c32-7800-5bfa-a036-83f0-f9ec.cable.dynamic.v6.ziggo.nl. [2001:1c00:c32:7800:5bfa:a036:83f0:f9ec]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a1787c63bsm1798036266b.51.2024.05.22.09.00.19 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 22 May 2024 09:00:20 -0700 (PDT) Message-ID: <3aef46dc-ab15-4f29-909e-bb7500b32cf9@redhat.com> Date: Wed, 22 May 2024 18:00:19 +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: Krzysztof Kozlowski , joelselvaraj.oss@gmail.com, 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> Content-Language: en-US, nl From: Hans de Goede In-Reply-To: <6f22e42d-8a06-4c24-93bd-25b6ac141cea@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi, On 5/21/24 6:48 PM, 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? > >> 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. I wrote the novatek-nvt-ts driver for an Acer Iconia One 7 B1-750 tablet, this is a x86 tablet which ships with Android as factory OS and because Android OS images use kernels where everything is hardcoded the ACPI tables do not describe this touchscreen. Instead the i2c_client for the touchscreen is manually instantiated by some x86 platform glue code. Since it is manually instantiated it uses i2c_device_id binding rather then OF/ACPI. The generic "NVT-ts" i2c_device_id comes from me not knowing the controller panel type back then. In the mean time I have learned that the B1-750 uses NVT-NT11205 controller. So what I think needs to happen here is add a preparation patch as first patch to this series which basically does this: diff --git a/drivers/input/touchscreen/novatek-nvt-ts.c b/drivers/input/touchscreen/novatek-nvt-ts.c index 1a797e410a3f..224fd112b25a 100644 --- a/drivers/input/touchscreen/novatek-nvt-ts.c +++ b/drivers/input/touchscreen/novatek-nvt-ts.c @@ -278,7 +278,7 @@ static int nvt_ts_probe(struct i2c_client *client) } static const struct i2c_device_id nvt_ts_i2c_id[] = { - { "NVT-ts" }, + { "NT11205-ts" }, { } }; MODULE_DEVICE_TABLE(i2c, nvt_ts_i2c_id); diff --git a/drivers/platform/x86/x86-android-tablets/other.c b/drivers/platform/x86/x86-android-tablets/other.c index eb0e55c69dfe..5ecee6e66fb4 100644 --- a/drivers/platform/x86/x86-android-tablets/other.c +++ b/drivers/platform/x86/x86-android-tablets/other.c @@ -40,7 +40,7 @@ static const struct x86_i2c_client_info acer_b1_750_i2c_clients[] __initconst = { /* Novatek NVT-ts touchscreen */ .board_info = { - .type = "NVT-ts", + .type = "NT11205-ts", .addr = 0x34, .dev_name = "NVT-ts", }, This solves the too-generic ID problema nd can then be merged together with the rest of the series through the input tree. I'll give my ack as drivers/platform/x86 subsys maintainer for merging the x86-android-tablets change this way. >> + - novatek,nt36672a-ts > > Eh, we have already panel. Why there is a need for touchscreen binding > (binding, not driver)? I believe that the nt36672a identifier is an identifier for a novatek display assembly which contains both a DSI display panel as well as an I2C touchscreen. Since I2C devices need to be children of the I2C controller we need a separate node in the device tree for the I2c touchscreen-controller and since it is a separate node it needs it own compatible I believe ? Regards, Hans