Received: by 2002:a05:7412:3290:b0:fa:6e18:a558 with SMTP id ev16csp710984rdb; Fri, 26 Jan 2024 08:23:29 -0800 (PST) X-Google-Smtp-Source: AGHT+IEgsTrqy8VWyt2k2KbCylIBCFOdnO0rneqCrACmBirc6dNvrg9z2rSEmpm7x9ck1Cb6C8lS X-Received: by 2002:a05:620a:cdb:b0:783:521d:5a56 with SMTP id b27-20020a05620a0cdb00b00783521d5a56mr1523570qkj.76.1706286209740; Fri, 26 Jan 2024 08:23:29 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706286209; cv=pass; d=google.com; s=arc-20160816; b=qjkwPhmga0YAUrfms8CuLS3jT3fHPk4XL7Q4piaxOvFRbKfEBfipEgSdnf5MOfwZKJ Wge92xhp95hAN7POc/jHLwtcryeQJdbQS/kAOecJ7b7HEHt3EzIiyU9dW/NpdJRKZEqG OSJYn5NDKduV5zCu3Gdj5hz6N2oQ4Gp686/YN3tw2+12kZ57IQA6RXeMPiiN98t5T2L3 N9Ggcll0OcJGafzS3GOjSMWIT4CnVGehSkSVog+sO/Zy1s9T29WRik73WF2KCmsOmtKn Lzv4V12qw5ZEA8zX1tO+0IVk8IdpQpdG0rGGYaa/oCwV4yjbUYkDpGivoPlKmjqm0EOK VuOg== 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=hvOk5ylxM3hMTVRoznTxepDvGwITvbu5GXqd0zIr1xA=; fh=WgWRwJVpdMEpOsleR0WuGTmGcP4ObQYxbbpHpTEund0=; b=Utwq1Y1Hp9wofkMnNh9sYkgH7LhMiGjolWBOAMC6cgN6wtJguDzTDvgl21rBL5dO5L UZW0w4SKC2ilSWdMAS7UdVWVkeP0G/BKKgJImF+eLF4mH1KTL5xcj2QfIaWCeCZdax2D oOav0fLwEAJfmi3GK0mz+LgdVKVD3ZNZWvOmj43+3c5q9+O8FxEu5jHN3CX4n9BnunXJ /7RA+VgegmbHRekb890TtpkENWUksG9jLaiw4pEW7q22Oj4ErjS/JcKv3XeEwuQpuTBF UcVPOcM+7NvBqe4+qRzGqi9i8W4PPcYIAnXE1yYaSNahphXVFHyTzJdAVniWMsRhfq1U aqJg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fEkTsWGm; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-40327-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-40327-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id n18-20020ae9c312000000b0078319e53b1csi1534264qkg.412.2024.01.26.08.23.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jan 2024 08:23:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-40327-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=fEkTsWGm; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-40327-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-40327-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 800F51C232F4 for ; Fri, 26 Jan 2024 16:23:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1AF451DA38; Fri, 26 Jan 2024 16:23:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="fEkTsWGm" 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 35A231CD3F; Fri, 26 Jan 2024 16:23:18 +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=1706286199; cv=none; b=fkpxCt6ZMbMfdTfQBW6ORKApV4y9LnkLq+p2JQ0xV7Z8RWaSg0Q/Hrt76rcge7Gh4RzSlp1SavikUVH3j7vPXyPwETml8Fnjf8PsBa6e62ZUgxyjr7Eus3L3qpk8ia/CyfEJxDvKMRt0i+9EK274nbzfUtW3VBYHefzDxMunJuk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706286199; c=relaxed/simple; bh=2JCXgq32qIglC6mO72WRbjPvok3iIvPLQe2ZqDXoq+4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ACJ4xEDku3bvSGTSw2JZKg6ICFGNRqGXbXlqj0sw14WqDgvT6lr7qE8kUzM4oZA96by1+Nn55tgOhpoUky2FEso6GWIB71FT/CZB/A70Mg2NKinkTCN0NAJvEOLABOLXlzls/oKTBM86zzCFh9R1CPz4UhI8Chu+1Ik/8edcD/k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=fEkTsWGm; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A10D0C433F1; Fri, 26 Jan 2024 16:23:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706286198; bh=2JCXgq32qIglC6mO72WRbjPvok3iIvPLQe2ZqDXoq+4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=fEkTsWGm+pTv3JpEFsZcSKKxEWVnImncAwsQyoI3Ld7l8SqlSPkkztT/6mu8pqEam vpLLbGXpWSpvxubuMPdi5uAwFg5PAsQpDJ2RYnDpXQb18Lkdozxrjscnx2eqEOnHm8 N3YGwkvhkqmRoM4YyAG0hwlgvuEX6Cw1xuO9WWStHUSB+R76n524qZSpZ52mqSDMbt qAmd1GVQf7jgU3LVhcwQgru0P+PSyZS1HKGCkz9QcV41zFIh+g6izksdFp3d+SIS53 oB319QBS/gebFb4F/ER1A13hzFoCVoHbdFA3lczGeOkC/6HOiU0ADFoxFjTG9zgJ8u 8cbQygMkAxiWg== Received: from johan by xi.lan with local (Exim 4.97.1) (envelope-from ) id 1rTOzK-000000007rm-46Kw; Fri, 26 Jan 2024 17:23:31 +0100 Date: Fri, 26 Jan 2024 17:23:30 +0100 From: Johan Hovold To: Bjorn Andersson Cc: Daniel Thompson , 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: References: <20240125-x13s-touchscreen-v1-0-ab8c882def9c@quicinc.com> <20240125-x13s-touchscreen-v1-2-ab8c882def9c@quicinc.com> <20240126130232.GA5506@aspen.lan> <20240126145346.GN2936378@hu-bjorande-lv.qualcomm.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: <20240126145346.GN2936378@hu-bjorande-lv.qualcomm.com> On Fri, Jan 26, 2024 at 06:53:46AM -0800, Bjorn Andersson wrote: > On Fri, Jan 26, 2024 at 03:31:02PM +0100, Johan Hovold wrote: > > On Fri, Jan 26, 2024 at 01:02:32PM +0000, Daniel Thompson wrote: > > > In short it looks like the delays make the difference and, even a short > > > delay, can fix the problem. > > > > Right, but since the suppliers are left enabled by the bootloader (and > > never disabled by the kernel), that only begs the question of why this > > makes a difference. > > You're right, the supply is kept on by other things, so this isn't the > problem. > > > Without the delay, the other HID devices are probing (successfully) > > slightly before, but essentially in parallel with the touchscreen while > > using the same resources. Is that causing trouble somehow? > > The difference to those other HID devices is GPIO 99 - the reset pin, > which is configured pull down input from boot - i.e. the chip is held in > reset. > > When the HID device is being probed, pinctrl applies &ts0_default starts > driving it high, bringing the device out of reset. But insufficient time > is given for the chip to come up so the I2C read fails. Ah, that's it. You should drop that 'output-high' from the pin config as part of this patch to avoid toggling the reset line twice at boot. Looks like we have the same problem on the CRD as well. There the touchscreen still works, possibly because it has been enabled by the boot firmware or simply because that touchscreen can handle a shorter delay. Where exactly did you find those delay values in the ACPI tables? I couldn't seem to find anything in the decompiled DSDT. > If you later try to probe again, 200ms has elapsed since the reset was > deasserted (driven high). Right. Johan