[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ccbf7ae3-5d52-070a-ba19-3ff54e6161e8@linaro.org>
Date: Sat, 13 May 2023 20:35:02 +0200
From: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
To: Jonathan Cameron <jic23@...nel.org>
Cc: Anup Sharma <anupnewsmail@...il.com>,
Lars-Peter Clausen <lars@...afoo.de>,
Rob Herring <robh+dt@...nel.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
Conor Dooley <conor+dt@...nel.org>,
Peter Meerwald <pmeerw@...erw.net>, broonie@...nel.org,
linux-iio@...r.kernel.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] dt-bindings: iio: temperature: Add DT bindings for TMP006
On 13/05/2023 20:50, Jonathan Cameron wrote:
> On Fri, 12 May 2023 08:28:29 +0200
> Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org> wrote:
>
>> On 11/05/2023 21:06, Anup Sharma wrote:
>>> On Thu, May 11, 2023 at 11:28:50AM +0200, Krzysztof Kozlowski wrote:
>>>> On 10/05/2023 20:56, Anup Sharma wrote:
>>>>> Add devicetree binding document for TMP006, IR thermopile sensor.
>>>>
>>>> Why? Where is any user of this? DTS? Driver?
>>>>
>>>
>>> The support for TMP006 is available at driver/iio/temperature
>>
>> There is no such compatible in the kernel. If you add OF support, you
>> should change the driver.
>
> (Very) old driver, so it uses the fallback method that i2c provides to bind to
> the compatible with the vendor id dropped via i2c_device_id entry.
Yeah, I know it works... but is very confusing :)
>
> Having said that, I'd also prefer the addition of an explicit of_device_id table.
> As there is only one supported device in this driver should be trivial.
Best regards,
Krzysztof
Powered by blists - more mailing lists