Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp513032rdb; Mon, 29 Jan 2024 09:02:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IG2yfD5IfmBdn/me/QAuVnoS/FxtC6hyXFJHMDieLNc4v/LepSlkzdajTxOnLo4NlUWi7JH X-Received: by 2002:a05:6358:5905:b0:178:7ac1:527d with SMTP id g5-20020a056358590500b001787ac1527dmr900854rwf.48.1706547733785; Mon, 29 Jan 2024 09:02:13 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706547733; cv=pass; d=google.com; s=arc-20160816; b=vcOoNh7yc9idmJ6YEFHpZfTLaPxRInKI70Au+Yor3k05dfuSxpNHpwcefEu49VhAYV frSWj4V0gPjtz+uKubBpNRw2iqcxo2hsl6oiN3FMiNwjS+sY59rZXRKFDko1qjYG8UpE BJBL19FgQXW/7xZtt60XaG3+6KsvOVkPSdDpA5ahk/Na7WPsfFF90SNWUxO6lQ5wSC5y mh4o7NAj30Txqjvtb1RBkmSMowdNJexMoAFzxPCf0v0l5bFP8USvfo/bSggq+N5gQNJB uJS4+nYpanv4qX9P0Ish88zn00eKiaEE8Mm2oUSt4AunllWLT/L/7qlFUQU3NlF6ImRt I/Cg== 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=54hEM1o+cLcM79rjTOhwMi4RhYjtoK+SKgVS/yNR4OI=; fh=qDZq/EaiKEQhpIRz8cmsoZOoWQuzhT5w81ilO/g1kCc=; b=Mxzs5kZprfXUKZ+Tj4CKR06fDec/+pL6LJpmk8+8Ec4ENoyfHZdPw/whkfk1KCVSdQ Aua4+ox1cDG+9ZFNQ1ksKgtDcC4aa7/7VtWq2LrcIljgFA0Ljc5j1nBjzGBAxjJhwXIB IKTS0Olu41jJatonUTYlX713MQzxlk2FbnMmdOML7zTTO7wKvxE9F70tBDzfJrdtrojc CtvUqxJkpyaEpphZOeQIVzHjejqBAlDEhyEYs2yrAVAvdHsq2y6hVQLWrvbwdum6p2Gv Mqbgf+jETfjHt+GDkPer1iC1ZBpX9eQFyww9tzoWGGjXQ8cPRveP3427FNsvdA97ESjZ r2bQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Q1YXFNdo; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-43166-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43166-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id v14-20020a056a00148e00b006dda301fb4csi5922030pfu.325.2024.01.29.09.02.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 09:02:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-43166-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Q1YXFNdo; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-43166-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43166-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 3EC8728A933 for ; Mon, 29 Jan 2024 17:00:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2B92E157E8F; Mon, 29 Jan 2024 16:59:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Q1YXFNdo" 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 3ED0F157020; Mon, 29 Jan 2024 16:59:52 +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=1706547593; cv=none; b=UjhP2uyRz2OQDQ1hBRykiwZhcFVI/FOHU9q8WCuXatRCJ5gOu76dmAtGJf7bZpX5dHdRWhQuhZ7A/BmJPXFwXwZzmJP/W94LzPN7BhH4rG4iRg4BBowTFwaU+tpuqrdsuitboTZD88hdcxX08fMOxPKcQ6VFse0p7iZDLzJKPm4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706547593; c=relaxed/simple; bh=/UzI7ZXEeoI0XJZVFqiFBLMZ5LqRbK9eEwG+B6vZnBk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=cxaCdV5gSTZ0wv0W8eriKbRQgsYNw+rfEcnk1iaK0LjRYcSVxVnvrlch3lJJ0oCJt4gHd1aAWKn+L3iF4g8DgLQwqn9KiViUWEx2gJYVeXJMvhB79XefDK7PGHWp6Ao0lqZSpKbf53PzbXinjLTYtHSgcW6Qmyxj2iejxXCt4z8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Q1YXFNdo; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A6395C43390; Mon, 29 Jan 2024 16:59:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706547592; bh=/UzI7ZXEeoI0XJZVFqiFBLMZ5LqRbK9eEwG+B6vZnBk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Q1YXFNdowXzkFlFk+S2jJSFXdtePJ8WtKVPS0bpw7dA7113IN4q/pFcidJLRSQkwQ e5IO5h57TV6jnPCTYyNxneodq+SZp9LV+MOAL5PTSFPaT55u6QUu008zQJTruYgllh YPpKBI7B6exftv6f3J+VW2seBu+Qj8ReYRkb1TDtT3so+ET+jjbqLwvxAW1t1hQpkT ywimP/C9gpY7UsqZL4sdK/iIJ8A1DBaZM5LlWlmF2JAkGerBBkBv2QrURd6f4ztZEI wlBE9FJ+Kb++RWc1Wi+2lYkkWq1pSRKwBSRc8Y3zkjXcDlFHZa1ygVtGbU9rfr9yWC EuQqguqcq4UpA== Received: from johan by xi.lan with local (Exim 4.97.1) (envelope-from ) id 1rUUz4-000000001o4-2is6; Mon, 29 Jan 2024 17:59:46 +0100 Date: Mon, 29 Jan 2024 17:59:46 +0100 From: Johan Hovold 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 , Daniel Thompson Subject: Re: [PATCH v3 2/2] arm64: dts: qcom: sc8280xp-x13s: Fix/enable touchscreen Message-ID: 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 > Signed-off-by: Bjorn Andersson Thanks for the update. Reviewed-by: Johan Hovold