Received: by 2002:a05:7412:3290:b0:fa:6e18:a558 with SMTP id ev16csp585641rdb; Fri, 26 Jan 2024 05:02:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IG9eCbwtkP9rmVN3xmA8K691L/FHbaQ70Xyg3oDDif1Ya1DejkSvwn4ApJjGiDMvv0eORTh X-Received: by 2002:a9d:7557:0:b0:6dd:e752:308b with SMTP id b23-20020a9d7557000000b006dde752308bmr1301921otl.0.1706274178799; Fri, 26 Jan 2024 05:02:58 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706274178; cv=pass; d=google.com; s=arc-20160816; b=O1F1icra0Jh5phM6iBZ2h5UXC1+CtZTer5tksFpPCsWmkr/qXVG6VxFbJaUWIwR8x2 AJTxi1/+PjR60cgWwqbr4GXSA2UBCun7W3rp6OkVR7iZiFPDjkMUnJ7QfXYgUWk4oHJi d0FZwoOfn1tq5V2dsNjnw/9pTX2i7cv0ARBuUYqotNtTsaGTBmrbL/1IXp94ZsPmIHHk je8a/7edpk6aVIUiOnGOGiL+dTmDwh65OOFeCF4NcYfFblzkSKh5W6RkU5JVw++aCjSv anhbQvEpsl7sdN0NKv35EkGVlXvMFyz+3RfvnpcgRjHRbZeufQo+YSs22SpGhpHcXDcf qcPQ== 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=a3+07jRFtwaufVPIk/XTD0i2kvGZ4Tbho2wTMEbnG0c=; fh=CuWM9A0w7hStZZjsjZRytDQTsy4SWShOFoeHa0clfLE=; b=EyGXmWVn5/wPxI3kP9MVzaFxoECfsYGQkJP++vVLXX9tErunCZOGc3d7yuYxyHjW2w Kqu9qWixAytAMQiWMYts71ZNwc9kG4G0Jj0BfhjARZkx6pcyPFQIAW2eP5vp5UdXem3d AZsNKS/K2wZ1vXVjKcALJab+TdV6JDUhEpkEzcj305z6STX4J63pijuT4LiUzVmZTX1X hh+eqEgiyLu/p1NZaMf1OJx12DDyfHsz7pSqd0PNJgm5dcTmK0DLHerbdyNA/v1+3bkC zgwv2kPUEhSS6HETEaS2muYQu6ejERkiCXa1THnTfLFUYBf0jlLegdTYe3N0swvPqZ61 If2A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=RXnoB0RI; 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-40117-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-40117-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 x26-20020a67be1a000000b0046b1b2cc968si110987vsq.773.2024.01.26.05.02.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jan 2024 05:02:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-40117-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=@linaro.org header.s=google header.b=RXnoB0RI; 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-40117-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-40117-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 750C91C209F8 for ; Fri, 26 Jan 2024 13:02:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9850C1B95B; Fri, 26 Jan 2024 13:02:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="RXnoB0RI" Received: from mail-wr1-f44.google.com (mail-wr1-f44.google.com [209.85.221.44]) (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 00B781B80E for ; Fri, 26 Jan 2024 13:02:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706274158; cv=none; b=Kz7otqrKJya6HrAzrV9kw99LFCfVEJO2asSIfqNCZXR/+nLf5llANZqHUMeL2VxGmyDaNnzXmUW29UfP7yXXqBZB6CRx0YDMc68husXSD+498mtcNjMSpxwoioHKrAIfD2wdEYP6f7GVoU7WTgRDTyoF5nj+4959f4UD2uFyrAw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706274158; c=relaxed/simple; bh=mBXiWmO43x4IedI7eW45Poke+eFkqHYazw7gPasItoA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Fgmvf5LT0Np28SvWaf0wYxE/sCjr1mJmcfU8dnK4rVZJPuRF3AFFT/w+6kh64YxIKHz17tQEFOm0VLBRSN0RpFJIm4W8QQBHoz9C9XXmJviRD2k2R4DjT/VLLkl5Phrw4X3I87+/bRq9/UrlCmRnbVuH8P3ejueW8HuT4e09CHs= 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=RXnoB0RI; arc=none smtp.client-ip=209.85.221.44 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-wr1-f44.google.com with SMTP id ffacd0b85a97d-337d5480a6aso400106f8f.1 for ; Fri, 26 Jan 2024 05:02:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706274155; x=1706878955; 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=a3+07jRFtwaufVPIk/XTD0i2kvGZ4Tbho2wTMEbnG0c=; b=RXnoB0RIxwv/NQSIzOtszHrLgNebcQjJd5nF1JqvwwYVz0q2yhfZPY/L8RSal11skC 0ZLnJHAP1vWwaqCKFDknubpEnWq6HawZenu5H0jfUMAnitZEbDSKHejVlGIMnwtlJo24 qBwednnHhCsH4QOLccTxqHyzIJwDtfYbdKwlRaXgNx/AHt0mhGSm6d4RO7C3Odz4VQgY 13EiuJgpOBB9HUrqhoPlKm8hF7gwHv6YzMe83QYeFsyb88Jwik4v1o2giVllb/nsyK3q 54g3HtS5qPh+8gqqNHeJrI/0+ns8wzghbXPKWd0NzKJYod00DAWE8LWccLtSy3bhSSGJ Ak8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706274155; x=1706878955; 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=a3+07jRFtwaufVPIk/XTD0i2kvGZ4Tbho2wTMEbnG0c=; b=YW8l0FDfv+ojv7eskeOlW4ZGOGph/+8Le1jFleRH2OPijZbynGC8TNjoh6GaaVkXIR 7qVJHx5KICUoBihF/drffEnqnvLWajlgV1UeBVJ2v3p1+B7GR+nT2gWEa2zuBW4KNIzT ZGy92iu6znAoSXa73IodEVO8IPeSdry2C/JvSsdSMMXMhpmQADWK1vmbzKOFOG5dREkr /spgpJRet2c8NwYnV3YBJRMZ2dwFby1axk/iM6HIrBLU+doRaOnvwQu+MVe3IJOPpPLU KUdtdmSdleNJv5xfcDpN/ep8iAlgJScPfCkJkI+O6vBwmkrjc7uGFPZWDFDg7Qj+R0ZL DNPw== X-Gm-Message-State: AOJu0YzYG1yb3+MEPDlQTlaKopEaU7h9uYo6JTzar7srNiEdHDaobYpa yixQabvgJLUpGONjqKnLwAr0K/9cDGmCZXtZABXNzPhU84anoRyOYaIaqqUa1iI= X-Received: by 2002:a5d:694e:0:b0:33a:dec4:1d88 with SMTP id r14-20020a5d694e000000b0033adec41d88mr10537wrw.75.1706274155128; Fri, 26 Jan 2024 05:02:35 -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 j17-20020adfe511000000b00339214d70b5sm1231554wrm.85.2024.01.26.05.02.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jan 2024 05:02:34 -0800 (PST) Date: Fri, 26 Jan 2024 13:02:32 +0000 From: Daniel Thompson To: Johan Hovold Cc: Bjorn Andersson , 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 2/2] arm64: dts: qcom: sc8280xp-x13s: Fix/enable touchscreen Message-ID: <20240126130232.GA5506@aspen.lan> References: <20240125-x13s-touchscreen-v1-0-ab8c882def9c@quicinc.com> <20240125-x13s-touchscreen-v1-2-ab8c882def9c@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: On Fri, Jan 26, 2024 at 09:12:37AM +0100, Johan Hovold wrote: > On Thu, Jan 25, 2024 at 07:55:14PM -0800, Bjorn Andersson wrote: > > The failing read-test in __i2c_hid_core_probe() determines that there's > > nothing connected at the documented address of the touchscreen. > > > > Introduce the 5ms after-power and 200ms after-reset delays found in the > > ACPI tables. Also wire up the reset-gpio, for good measure. > > As the supplies for the touchscreen are always on (and left on by the > bootloader) it would seem that it is really the addition of the reset > gpio which makes things work here. Unless the delay is needed for some > other reason. > > (The power-on delay also looks a bit short compared to what is used for > other devices.) > > Reset support was only recently added with commit 2be404486c05 ("HID: > i2c-hid-of: Add reset GPIO support to i2c-hid-of") so we should not > backport this one before first determining that. This comment attracted my attention so I tried booting with each of the three lines individually. On Thu, Jan 25, 2024 at 07:55:14PM -0800, Bjorn Andersson wrote: > + reset-gpios = <&tlmm 99 GPIO_ACTIVE_LOW>; This is not enough, on it's own, to get the touch screen running. I guess that's not so much of a surprise since the rebind-the-driver from userspace trick wouldn't have been touching this reset. > + post-power-on-delay-ms = <5>; This line alone is enough (in v6.7.1). > + post-reset-deassert-delay-ms = <200>; This line alone is also enough! In short it looks like the delays make the difference and, even a short delay, can fix the problem. Of course, regardless of the line-by-line results I also ran with all the changes so, FWIW: Tested-by: Daniel Thompson Daniel.