Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp509798rdb; Mon, 29 Jan 2024 08:57:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IGENKwJKdEDJcnGlMiyE7Alg7LXHRGi4zWe474Ws8XmOHWsYj78eN3l2882z7sbNTLJKU8Y X-Received: by 2002:a17:906:35d9:b0:a35:e608:9486 with SMTP id p25-20020a17090635d900b00a35e6089486mr1419838ejb.65.1706547463804; Mon, 29 Jan 2024 08:57:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706547463; cv=pass; d=google.com; s=arc-20160816; b=A57DVXaIvh/2aIq1Pz1kI+jRfyU1yeWpaXCij/86iBpFJ1YziTc+/eEhIYK/Wj45J5 /s9B5H2TbP3RohVJBgPulQK2vbt28VXvVXAfNSg7WmVerbytVeoI0IF9EYvpOawS9kzH F2Vr3JTjV9xhG+58KcbLILCyVg+/F377n6XG8Mr8u/5HeMaiBtJG+qxsxrthKbocUMv4 kHffpn2sYQ5L5qhrQ7CzWdOSADFXxNVKxl1fkctHRNEPuKLIrQRs4jPissnMgXni9i4f uXdRz9VgDTR27K6al2OXBuHGIkTVCdf0lqztiLG+M9cQCax9bXO0C2jebjHbc2ixfP9W HVEQ== 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=P9wTVsDZPi9luD11blK9ZetydoMmmMOCQpHaskiEUG8=; fh=ybVJ8RGyJt+YYICiMnBmt23ccfkaMUEX5gzfCV5WoT0=; b=WCUxkHN85Kn7LYJQeWQ8cyTDfjxK9Z4g5VMEKZQY+BkPMglBDL+3bXzZkpCTbIMN6N 4Bzmbs0pbibYhDN3E11FkNgeP+g/DdOrGt7kBQMmsFoCinTfpmWKLAfjFYxOsRuT0Y8R c6Gtb+s0NvNm/uyMouK++JteJKiC6TSkAizzMC9Hfy+IEAf1pv9ZDEZ1jVnBtgAUEGEH 8fdLaq64/5UxUvnOszDAMdTUSA8FwFkxgs0aeZHwS56pg4t5+e0Vyl8Kp3q9h9zfvRdt nwaLsJDFnzCamzs83L8qm/TtYHqaawiinchm5m0SyKATq3hgjo3RzjpCuPZ49daS9O/V Yc3A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Vi8Y6JME; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-43159-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43159-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id la23-20020a170906ad9700b00a35a09a2055si1334576ejb.108.2024.01.29.08.57.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 08:57:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-43159-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=@linaro.org header.s=google header.b=Vi8Y6JME; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-43159-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43159-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 8D66E1F23299 for ; Mon, 29 Jan 2024 16:57:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 26F79157032; Mon, 29 Jan 2024 16:57:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Vi8Y6JME" Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A1257155A5F for ; Mon, 29 Jan 2024 16:57:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706547453; cv=none; b=he6z20ZTACsTSOqjW2yzkJC66Aeh6fSWewsCYtZWcN8mgk3q5Er3jd0mU1mHxqFOJWzJ9To/3t3gFz/fWqFJe3iTb8jZRHM7OS45PoOdtgBYWKoWLy3LfK19Y+PDs9K+FRE5DEhQPOueuWxgphsR9im5lgz0Jr0EL4MpBvkhVJ0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706547453; c=relaxed/simple; bh=PYJV/zCof9bA47ax26MefA3jG31IKhzbByzoCNvZ2I8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=gfPxLEkZDrs0hprL+Em/vJzELJBFoC1KzRLL4Dikrda+lt+91Pf4em/u39M8XcDEfl4vSLrFYiq7EOY4HWdTHu77805aK5UJCiZpkKC1qcgY9FTaEracTIp73OgSj0A5b9NwZb+O998ONk9ioq1fBh8ZxBSRqQK60tDGzFy1Vpo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=Vi8Y6JME; arc=none smtp.client-ip=209.85.128.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-40efcb37373so1828895e9.2 for ; Mon, 29 Jan 2024 08:57:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706547449; x=1707152249; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=P9wTVsDZPi9luD11blK9ZetydoMmmMOCQpHaskiEUG8=; b=Vi8Y6JME6K13PIHEYFpkm+UvY+QIqD97ax+RkQiaDwFIzCt4Di/UGvrvzCU6BnqMtW 91E7x4GPkp71SF6gIPiRmVQ3f+w0BgSAzMKnS8WqgSddsPXZn3y4BydHD8jIO3JPeefa h/1/4c/Pnseso6K34zWzAhjR2WPCULdHQbZzVH8L6IHoHQU3BMaqTRvf0+GhuPp4EQxr 4YgZLIyPXbAX2DMz8p1Jpy+/iHIo3ccV3VBg/pJH4XRkiC90C44XEkk6QjgOgTBUQDvE vmn+5GIgihywv/InYnCho+V1XnNhHplWqDtzYphi93bHNkvzrQZk+iDaBqiTV5nchBRm Mxlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706547449; x=1707152249; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=P9wTVsDZPi9luD11blK9ZetydoMmmMOCQpHaskiEUG8=; b=CcRomIUCgFJ5DYW60j3NR5B2274oaKu4iCRua0POVL7xumRi9/L1hs/97XpQ06f4fE /q/o47VgptGBUt4KEUPugmER6lJje3QsJEwHWa8DvN4fccm5+bH9ajPqqIenhNYZyeFA wL/ECdmcnzgVjnGinAEex0Luc1WJryq5UAaOS3Py1TqupsbonJuxKGPRPGNfv73gtjs2 KxdZ7Atw2u3MAImfAtHiqX96d5hX0+I6cEwUWyg4gp4D5aWF/5dL72DQ2dVCj6ztmJox FFBCadR0PJHPZHRLm5pHNSmnaQVw37O5j398UsgrI/rFfianzn3seYRnybahJ4L3Yzvk reRg== X-Gm-Message-State: AOJu0YxY36hwFwJ7H5xBfkQ1xrmOlPTlBVIQU5Cd+ROed/qnV3GtzJ0m Lm5CT4q8wnjqKnFNSLw0x492eM6II9R1I1Abp0jtHTj/f1QLZtRwoR7X/7F3O5E= X-Received: by 2002:a05:600c:3b82:b0:40e:5332:4062 with SMTP id n2-20020a05600c3b8200b0040e53324062mr5626780wms.33.1706547448841; Mon, 29 Jan 2024 08:57:28 -0800 (PST) Received: from aspen.lan (aztw-34-b2-v4wan-166919-cust780.vm26.cable.virginm.net. [82.37.195.13]) by smtp.gmail.com with ESMTPSA id k26-20020a05600c1c9a00b0040ef79b2fa6sm3008972wms.33.2024.01.29.08.57.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 08:57:28 -0800 (PST) Date: Mon, 29 Jan 2024 16:57:26 +0000 From: Daniel Thompson To: Bjorn Andersson Cc: Dmitry Torokhov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Benjamin Tissoires , Jiri Kosina , Bjorn Andersson , Konrad Dybcio , Johan Hovold , linux-arm-msm@vger.kernel.org, linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio , Krzysztof Kozlowski Subject: Re: [PATCH v3 2/2] arm64: dts: qcom: sc8280xp-x13s: Fix/enable touchscreen Message-ID: <20240129165726.GA4700@aspen.lan> References: <20240129-x13s-touchscreen-v3-0-c4a933034145@quicinc.com> <20240129-x13s-touchscreen-v3-2-c4a933034145@quicinc.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240129-x13s-touchscreen-v3-2-c4a933034145@quicinc.com> On Mon, Jan 29, 2024 at 08:47:48AM -0800, Bjorn Andersson wrote: > The touchscreen present on some SKUs of Lenovo Thinkpad X13s is never > detected by Linux. Power is applied and the device is brought out of > reset using the pinconfig in DeviceTree, but the read-test in > __i2c_hid_core_probe() fails to access the device, which result in probe > being aborted. > > Some users have reported success after rebinding the device. > > Looking to the ACPI tables, there's a 5ms after-power and a 200ms > after-reset delay. The power-supply is shared with other components, so > this is active all the way through boot. The reset GPIO, on the other > hand, is low (reset asserted) at boot, so this is first deasserted by > the implicit application of the pinconf state. > > This means the time between reset deassert and __i2c_hid_core_probe() is > significantly below the value documented in the ACPI tables. > > As the I2C HID binding and driver support specifying a reset gpio, > replace the pinconf-based scheme to pull the device out of reset. Then > specify the after-reset time. > > The shared power rail is currently always on, but in case this ever > change, the after-power delay is added as well, to not violate the > power-on to reset-deassert timing requirement. > > Fixes: 32c231385ed4 ("arm64: dts: qcom: sc8280xp: add Lenovo Thinkpad X13s devicetree") > Tested-by: Daniel Thompson For the sake of completeness (and to make sure I don't forget if anyone asks me in the future) I also (successfully) tested with the output high removed from the touchscreen pinctrl. Daniel. PS Strictly speaking I tested v2 and am replying to v3... but the DT should be the same for both versions ;-).