From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 39D552ECE93; Thu, 25 Jun 2026 08:24:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782375843; cv=none; b=ii72swswSpmpwYVwuxs0XgzpJm0E15kTvIUTYQnXZYvDyhiY95GnauMEGFba6XC9CHMPJVSQt9YR7UwabDdyiz+Q/x97Rsam5toyNmEVTfDw/LgEURwSc2oIjuUSjVS6g0oKUQ4rtbWtzJ8TqCX/biLvEy/2hT96ydS6gs60SDw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782375843; c=relaxed/simple; bh=Bg/pBXR1ljQV1kPYgYEDT26DRA63SrGhEFKiMeCmgas=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=LRO74f9vjpOGXBUOxeSjNDQ6GjkEghQqpRM6qUaPt5nRWOLc9G+RtLHAfyps2Rl5LVqUBElMyXZYWxw7NQPtlvqDXOn85RcbA42RuCcu6te3VGNW7v3XLla4iLUHP1zUy0LN11fwzMk/5HNw77XLNuZCWTzUgzGtAYkf/0jUi4Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=g4Bunzbs; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="g4Bunzbs" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B39E71F000E9; Thu, 25 Jun 2026 08:23:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1782375841; bh=pK+QzjaIrDMGSwFN0yIS4xSTh+9abFcnTvB/WVfQAaM=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=g4BunzbsXz7N1LUMg79WhfSPHdiyUyBR7NMyymMuRf2NzyDlFFBRrZnnLZLrgBkDg doBTfquOnnobakMyqQMZhpgSbkYLOicNytp0iUtfD1g5aq8d7k2hHWoIRGyP1iQ2Jn U0cXqqISJOQu4mnnJSrcvZUQVeIXSpZgJctFTzRMxTyeHQR03FJYDoV6GSD0ze8ynt MdtuDk67HWGif689i52q12MbA+OmP6JqKtY6z5FvKPbPY2nstF1WUx42g/AZTTUmO4 MeLFXDd0VjDG0NI+b1/hdBjHYtyixTiKmycpxuuFuWSwpE1OEMluIsj74jfx9DXBMQ JA8YKSODO7wAw== Message-ID: Date: Thu, 25 Jun 2026 10:23:54 +0200 Precedence: bulk X-Mailing-List: linux-input@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 2/2] arm64: dts: qcom: sdm845-oneplus: Update compatible to include model To: Dmitry Torokhov , David Heidelberg Cc: Krzysztof Kozlowski , Konrad Dybcio , Rob Herring , Conor Dooley , "Jason A. Donenfeld" , Matthias Schiffer , Vincent Huang , Bjorn Andersson , Konrad Dybcio , linux-input@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, phone-devel@vger.kernel.org References: <20260523-synaptics-rmi4-dt-v2-0-0645122babdc@ixit.cz> <20260523-synaptics-rmi4-dt-v2-2-0645122babdc@ixit.cz> <1d0e7e31-f808-4347-955a-7246dea208f5@ixit.cz> <742c7a13-9465-40e8-8990-e679712e9784@ixit.cz> <52b7dd3a-3f6f-474c-8386-4fc2776b185b@ixit.cz> From: Krzysztof Kozlowski Content-Language: en-US Autocrypt: addr=krzk@kernel.org; keydata= x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HIsBv0oDcsQWXqY+NaFahT0lRPjYtrTa1v3tem/JoFzZ4B0 p27K+qQCF2R96hVvuEyjzBmdq2esyE6zIqftdo4MOJho8uctOiWbwNNq2U9pPWmu4vXVFBYI GmpyNPYzRm0QPwARAQABwsF2BBgBCgAgAhsMFiEEm9B+DgxR+NWWd7dUG5NDfTtBYpsFAmna YUkACgkQG5NDfTtBYptX+BAApg32CkxwNucNEi8WfWA8oKkW0y8YDuY6ORMo9FWNGiT/OTy0 vyJrLocrpn86zwfjVp+eCrssPYh8eqJfnWqmYv6ACQtHPYzPZQ3mSo8H97Z01oUxITzCxpXm ZkLgPIqtDPcC2E3dPM/fVxcyowM8XsaMA9wcsaUYrta8toOq2b9tKcjleKMfMrm0gQ9u7wUc QbLkwj6TCLOwucb07GXzLTNF9PZmaDUpKAZjMjmrW+le+SFvQbhamx0rxLWPR0NWntXpbCn+ +ACch03p/JyTBVktxFsFyCt7pTPE1kEaeuXBTe/a2D9iQvRxRW19LvuO2e59/u1wYUiH/orz wbIC2S4dBsPAPihL3ztOU1yE86GPyQtSE0kU+/7snnLt4QGi6PChf3t5gnNjAzjUUovO8rgI c+5yN5heq5loYHgK6OQ9OlHzsPHO9e9MOQcKlFycs1pyijFGzDwdNUm/SchK8iWT2QApTx4A K9bCVaboTA2T77QYkRcRJYSsO1alGX0ome/hMLD1daXlkrNUp1HWa3K4iytLRXjCSIorWiGs n+q3krnpXu3TFkA8qtOFZMdnIiFuiq1yLT8hptsV5xh1TA2nsVvSYiaCr3q4s4BKjS/KrLDb qoxzw8ISjdUp4pA85vb6YLCmb39NgidD+7PmAr65lBNveIFynTgsja1rRQ4= In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 25/06/2026 06:53, Dmitry Torokhov wrote: > On Wed, Jun 24, 2026 at 04:37:25PM +0200, David Heidelberg wrote: >> On 24/06/2026 06:28, Dmitry Torokhov wrote: >>> Hi David, >>> >>> On Sun, Jun 21, 2026 at 07:11:45PM +0200, David Heidelberg wrote: >>>> On 28/05/2026 00:13, David Heidelberg wrote: >>>>> On 27/05/2026 23:56, Dmitry Torokhov wrote: >>>>>> Hi David, >>>>>> >>>>>> On Sat, May 23, 2026 at 11:45:35AM +0200, David Heidelberg via B4 Relay wrote: >>>>>>> From: David Heidelberg >>>>>>> >>>>>>> We know the driver is reporting s3706b, introduce the compatible so we >>>>>>> can more easily introduce quirks for weird touchscreen replacements in >>>>>>> followup series. >>>>>>> >>>>>>> Reviewed-by: Konrad Dybcio >>>>>>> Signed-off-by: David Heidelberg >>>>>>> --- >>>>>>>   arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi | 2 +- >>>>>>>   1 file changed, 1 insertion(+), 1 deletion(-) >>>>>>> >>>>>>> diff --git a/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi >>>>>>> b/arch/ arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi >>>>>>> index 6b7378cf4d493..148164d456a5a 100644 >>>>>>> --- a/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi >>>>>>> +++ b/arch/arm64/boot/dts/qcom/sdm845-oneplus-common.dtsi >>>>>>> @@ -475,17 +475,17 @@ bq27441_fg: bq27441-battery@55 { >>>>>>>       }; >>>>>>>   }; >>>>>>>   &i2c12 { >>>>>>>       status = "okay"; >>>>>>>       clock-frequency = <400000>; >>>>>>>       synaptics-rmi4-i2c@20 { >>>>>>> -        compatible = "syna,rmi4-i2c"; >>>>>>> +        compatible = "syna,rmi4-s3706b", "syna,rmi4-i2c"; >>>>>> >>>>>> So I believe we established that this device (s3706b) does not in fact >>>>>> implement rmi4 protocol properly. Why do we have "syna,rmi4-i2c" as a >>>>>> fallback? Shouldn't it be just "syna,rmi4-s3706b"? >>>>> >>>>> The vendor supplies s3706b which does implement the RMI4 properly. >>>>> >>>>> The 3rd party replacement impersonating original parts may not implement >>>>> it properly, but I don't address this issue in this initial submission. >>>>> >>>>> With this compatible we know which original part is used by the vendor >>>>> and installed in the phones, so later we can deduct specific sequences >>>>> for the replacement aftermarket parts to keep phone touchscreen working >>>>> same as they do on Android without affecting other devices. >>>> >>>> Hello Dmitry. >>>> >>>> May I ask what is currently preventing this series from moving forward? >>>> >>>> The first version was posted in 2023 [1]. I picked it up again in 2025 [2] >>>> and am now on the 9th iteration (this patchset). At this point, the series >>>> has been under discussion for well over a year, with relatively little >>>> feedback and increasingly long gaps between review rounds. >>>> >>>> The current approach is based on the guidance I have received so far, >>>> including suggestions from the device-tree maintainers. When concerns were >>>> raised, I tried to address them and rework the series accordingly. >>>> >>>> What I am struggling with is understanding what specific issue still needs >>>> to be resolved before these patches can be accepted. If there are remaining >>>> requirements, objections to the approach, or technical concerns that I have >>>> not addressed, I would appreciate having them stated explicitly so I can >>>> work on them. >>>> >>>> I also split out the straightforward, self-contained changes in the hope >>>> that at least those could progress independently while I continued working >>>> on any follow-up requirements. However, even those patches do not appear to >>>> be moving forward. >>>> >>>> Could you please clarify what outcome you would like to see from this >>>> series, and what concrete changes would be required to get it accepted? >>> >>> I am still confused about how you want to differentiate between the full >>> RMI4 support vs the OnePlus flavor. The "syna,rmi4-s3706b", as you >>> mentioned, implements RMI4 protocol properly, so we do not need to >>> actually have it documented neither in binding nor in DTS. >> >> --- part 1 --- >> >> This series addresses identification within device-tree. It's normal >> recommended practice. >> >> If we know, the device ships specific, but **compliant** variant, we just >> put it as compatible = "more-specific", "less-specific"; in this case >> "syna,rmi4-s3706b", "syna,rmi4-i2c" >> >> This approach is used everywhere. This has nothing to do with after-market parts. > > We do this in many cases, sometimes when a part has different timings or > maybe additional functionality compared to the base model. Generic expectation is to have always dedicated front compatible for every device. rmi4-i2c is not really specific enough, more like a family, thus a specific device compatible is essential by the DT rules. It does not matter if that specific compatible is ever used. > > How does this new compatible for controller that fully implements RMI4 > protocol help here? It does not matter. This is a different device, thus it needs front-specific compatible. Also, the commit msg actually did mention how this helps: allowing further quirks (I did not verify that in practice, but explanation is plausible). > >> >> --- part 2 (irrelevant for this series) --- >> >>> >>> The issue you have with after-market parts that are not compliant and we >>> need to figure out how to deal with them. Inside the driver I >> >> As was suggested by device-tree folks, this is the first step, there isn't >> better one available. If there is, please suggest one, and I'll apply it. > > Was it clearly communicated to DT folks that the compatible you are > adding is fully compatible with the base "syna,rmi4-i2c" but other ones > will not be compatible? That was not communicated but also did not have to. You can install in your board whatever you wish, e.g. replacing foo device with bar being something completely different and incompatible. Does not matter really if this is after-market or a person just swapped things. DT does not solve that problem simply, because we describe static hardware configuration. > >> >>> essentially need a"incomplete protocol" flag that we can use to >>> implement additional checks or skip known to be not implemented >>> functions/queries. In DT we could introduce something like >>> "oneplus,rmi4-i2c" that is decidedly not compatible with "syna,rmi4-i2c" >>> and neither one should be a fallback for the other. >>> >>> This of course needs buy-in from DT maintainers. >> >> As you can see, this still holds Acked-by and Reviewed-by from the relevant >> people - Krzysztof and Konrad. > > I see that but the commit does not explain how exactly you are planning > to deal with knockoffs. I think it does not have to. David does not need to solve all possible problems. He is solving his problems and not preventing the other problems to be solved in the future. Unless you expect that the second part - future problems - will be blocked by this code. But then I think no one ever solved in DT a problem of replacement of valid parts with after-market incompatible parts. Therefore I do not even know what solution I could suggest to David. > >> >>> >>> Does this make sense? >> >> For the scope we're discussing it doesn't seems so. >> >> This discussion should be associated with the last revision of the full >> series I sent 3 months ago. We're in very unflattering state, where: >> >> 2018 - these aftermarket touchscreen worked on Android well enough for >> people to have working touch (let's say with slightly worse experience then >> the original). >> >> 2026 in the mainline, we cannot even more forward and report to user-space >> there is aftermarket non-compliant piece of hardware installed. >> >> Actionable steps I suggest after this series lands: >> >> 1. don't do any changes, but since we know what 3rd party touchscreen do >> incorrectly deviating from the standard, REPORT it to the userspace, so USER >> know, their device (phone/tablet) doesn't have original part. >> >> 2. then figure out, IF we can reasonably well workaround it and HOW to do it >> >> These two steps present some progress which could be discussed and could >> lead us somewhere, what do you think? > > So since we know that these devices can come with controllers that do > not implement RMI4 fully, can we: > > 1. Establish a new compatible that is separate from syna,rmi4-i2c? As I > mentioned, it could be oneplus,rmi4-i2c or event a concrete controller > vendor,id combo. The point that it should be completely separate from > the current compatible and not use the current compatible as a fallback. Board/machine level compatible already gives you that. after-market-incompatible-parts is not a problem of this s3706b, if I understood correctly. It feels to me more of a problem of the board: people install into this board some incompatible replacement parts. I would understand that this is not a board/machine level problem, if multiple different boards with s3706b were affected. Is this the case? > > 2. Make modifications to RMI4 implementation to handle these controllers > in a reasonable manner, but not mess up the full RMI4 support > > 3. Update DTS for the affected headsets to switch them to this new > implementation.2. Make modifications to RMI4 implementation to handle > these controllers in a reasonable manner, but not mess up the full RMI4 > support > > 3. Update DTS for the affected headsets to switch them to this new > implementation. > > Thanks. > Best regards, Krzysztof