[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <d4b71376-2864-45af-8ad9-92c8a7cde291@kernel.org>
Date: Tue, 2 Jul 2024 17:09:35 +0200
From: Krzysztof Kozlowski <krzk@...nel.org>
To: Conor Dooley <conor@...nel.org>, Haylen Chu <heylenay@...look.com>
Cc: "Rafael J. Wysocki" <rafael@...nel.org>,
Daniel Lezcano <daniel.lezcano@...aro.org>, Zhang Rui <rui.zhang@...el.com>,
Lukasz Luba <lukasz.luba@....com>, Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>, Conor Dooley
<conor+dt@...nel.org>, Chen Wang <unicorn_wang@...look.com>,
Inochi Amaoto <inochiama@...look.com>,
Paul Walmsley <paul.walmsley@...ive.com>, Palmer Dabbelt
<palmer@...belt.com>, Albert Ou <aou@...s.berkeley.edu>,
Jisheng Zhang <jszhang@...nel.org>, linux-pm@...r.kernel.org,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-riscv@...ts.infradead.org
Subject: Re: [PATCH v3 1/3] dt-bindings: thermal: sophgo,cv1800-thermal: Add
Sophgo CV1800 thermal
On 02/07/2024 17:00, Conor Dooley wrote:
> Rob/Krzysztof, Haylen,
>> +
>> +maintainers:
>> + - Haylen Chu <heylenay@...look.com>
>> +
>> +description: Binding for Sophgo CV1800 on-SoC thermal sensor
Drop "Binding"
>> +
>> +properties:
>> + compatible:
>> + enum:
>> + - sophgo,cv1800-thermal
>> +
>> + reg:
>> + maxItems: 1
>> +
>> + clocks:
>> + description: The thermal sensor clock
>> +
>> + interrupts:
>> + maxItems: 1
>> +
>> + accumulation-period:
>> + $ref: /schemas/types.yaml#/definitions/uint32
>> + description: Accumulation period for a sample
>> + enum:
>> + - 512
>> + - 1024
>> + - 2048
>> + - 4096
>> + default: 2048
>> +
>> + chop-period:
period in what sort of units? Sounds like time to me, so this would
require proper unit suffix.
>> + $ref: /schemas/types.yaml#/definitions/uint32
>> + description: ADC chop period
>> + enum:
>> + - 128
>> + - 256
>> + - 512
>> + - 1024
>> + default: 1024
>> +
>> + sample-cycle-us:
>
> the more common term btw would be "sample-rate" rather than
> "sample-cycle".
yeah, sample-rate-hz
>
>> + description: Period between samples. Should be greater than 524us.
>
> The constraint here should be "minimum: 524". What's the upper limit?
>
>> + default: 1000000
>
> Rob/Krzysztof, could you comment on the suitability of the three custom
> properties here? I know if this was an IIO device, these kinds of things
> would be controllable from userspace, and not in the binding. I
> mentioned this on the previous version, but I'm not really sure if
> thermal devices are somehow different:
> https://lore.kernel.org/all/SEYPR01MB4221A739D0645EF0255336EBD7CE2@SEYPR01MB4221.apcprd01.prod.exchangelabs.com/
>
Why would different boards have different values here? Does it affect
accuracy? If so, how much?
I doubt there are any boards with different values, thus it sounds like
unnecessary tuning parameter.
Best regards,
Krzysztof
Powered by blists - more mailing lists