* Re: [PATCH v2 1/2] dt-bindings: hwmon: moortec,mr75203: adapt multipleOf for T-Head TH1520
2026-03-05 14:40 ` [PATCH v2 1/2] dt-bindings: hwmon: moortec,mr75203: adapt multipleOf for T-Head TH1520 Icenowy Zheng
@ 2026-03-05 18:36 ` Drew Fustini
2026-03-05 18:39 ` Icenowy Zheng
2026-03-05 21:34 ` Guenter Roeck
2026-03-08 17:00 ` Drew Fustini
2 siblings, 1 reply; 9+ messages in thread
From: Drew Fustini @ 2026-03-05 18:36 UTC (permalink / raw)
To: Icenowy Zheng
Cc: Guenter Roeck, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Guo Ren, Fu Wei, Rahul Tanwar, linux-hwmon, devicetree,
linux-kernel, linux-riscv, Icenowy Zheng
On Thu, Mar 05, 2026 at 10:40:43PM +0800, Icenowy Zheng wrote:
> The G and J coefficients provided by T-Head TH1520 manual (which calls
> them A and C coefficients and calls H coefficient in the binding as B)
> has the 1/100 degree Celsius bit (the values are 42.74 and -0.16
> correspondingly), however the binding currently only allows cofficients
> as precise as 100 milli-Celsius (1/10 degree Celsius).
>
> Change the multipleOf value of these two cofficients to 10 (in the unit
> of milli-Celsius) to satisfy the need of TH1520.
>
> Signed-off-by: Icenowy Zheng <zhengxingda@iscas.ac.cn>
> ---
> New patch in v2.
>
> Documentation/devicetree/bindings/hwmon/moortec,mr75203.yaml | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/hwmon/moortec,mr75203.yaml b/Documentation/devicetree/bindings/hwmon/moortec,mr75203.yaml
> index 56db2292f062d..7d57c2934a8a1 100644
> --- a/Documentation/devicetree/bindings/hwmon/moortec,mr75203.yaml
> +++ b/Documentation/devicetree/bindings/hwmon/moortec,mr75203.yaml
> @@ -105,7 +105,7 @@ properties:
> G coefficient for temperature equation.
> Default for series 5 = 60000
> Default for series 6 = 57400
> - multipleOf: 100
> + multipleOf: 10
> minimum: 1000
> $ref: /schemas/types.yaml#/definitions/uint32
>
> @@ -131,7 +131,7 @@ properties:
> J coefficient for temperature equation.
> Default for series 5 = -100
> Default for series 6 = 0
> - multipleOf: 100
> + multipleOf: 10
> maximum: 0
> $ref: /schemas/types.yaml#/definitions/int32
>
> --
> 2.52.0
>
I am wondering if there is any backwards compatibility issue but there
are no other users of this compatible in mainline other than th1520.
There is also the precendent 030d2a0ce5dc ("dt-bindings: hwmon:
moortec,mr75203: fix multipleOf for coefficients") having change the
property. I suppose it is a not a problem unless other people on the
list raise an objection.
Thanks,
Drew
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: [PATCH v2 1/2] dt-bindings: hwmon: moortec,mr75203: adapt multipleOf for T-Head TH1520
2026-03-05 18:36 ` Drew Fustini
@ 2026-03-05 18:39 ` Icenowy Zheng
2026-03-05 18:45 ` Conor Dooley
0 siblings, 1 reply; 9+ messages in thread
From: Icenowy Zheng @ 2026-03-05 18:39 UTC (permalink / raw)
To: Drew Fustini
Cc: Guenter Roeck, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Guo Ren, Fu Wei, Rahul Tanwar, linux-hwmon, devicetree,
linux-kernel, linux-riscv
在 2026-03-05四的 10:36 -0800,Drew Fustini写道:
> On Thu, Mar 05, 2026 at 10:40:43PM +0800, Icenowy Zheng wrote:
> > The G and J coefficients provided by T-Head TH1520 manual (which
> > calls
> > them A and C coefficients and calls H coefficient in the binding as
> > B)
> > has the 1/100 degree Celsius bit (the values are 42.74 and -0.16
> > correspondingly), however the binding currently only allows
> > cofficients
> > as precise as 100 milli-Celsius (1/10 degree Celsius).
> >
> > Change the multipleOf value of these two cofficients to 10 (in the
> > unit
> > of milli-Celsius) to satisfy the need of TH1520.
> >
> > Signed-off-by: Icenowy Zheng <zhengxingda@iscas.ac.cn>
> > ---
> > New patch in v2.
> >
> > Documentation/devicetree/bindings/hwmon/moortec,mr75203.yaml | 4
> > ++--
> > 1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git
> > a/Documentation/devicetree/bindings/hwmon/moortec,mr75203.yaml
> > b/Documentation/devicetree/bindings/hwmon/moortec,mr75203.yaml
> > index 56db2292f062d..7d57c2934a8a1 100644
> > --- a/Documentation/devicetree/bindings/hwmon/moortec,mr75203.yaml
> > +++ b/Documentation/devicetree/bindings/hwmon/moortec,mr75203.yaml
> > @@ -105,7 +105,7 @@ properties:
> > G coefficient for temperature equation.
> > Default for series 5 = 60000
> > Default for series 6 = 57400
> > - multipleOf: 100
> > + multipleOf: 10
> > minimum: 1000
> > $ref: /schemas/types.yaml#/definitions/uint32
> >
> > @@ -131,7 +131,7 @@ properties:
> > J coefficient for temperature equation.
> > Default for series 5 = -100
> > Default for series 6 = 0
> > - multipleOf: 100
> > + multipleOf: 10
> > maximum: 0
> > $ref: /schemas/types.yaml#/definitions/int32
> >
> > --
> > 2.52.0
> >
>
> I am wondering if there is any backwards compatibility issue but
> there
> are no other users of this compatible in mainline other than th1520.
> There is also the precendent 030d2a0ce5dc ("dt-bindings: hwmon:
> moortec,mr75203: fix multipleOf for coefficients") having change the
> property. I suppose it is a not a problem unless other people on the
> list raise an objection.
Well mathematically any number that is a multiple of 100 is a multiple
of 10?
So theoretically there should be no compatibility issue.
Thanks
Icenowy
>
> Thanks,
> Drew
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: [PATCH v2 1/2] dt-bindings: hwmon: moortec,mr75203: adapt multipleOf for T-Head TH1520
2026-03-05 18:39 ` Icenowy Zheng
@ 2026-03-05 18:45 ` Conor Dooley
0 siblings, 0 replies; 9+ messages in thread
From: Conor Dooley @ 2026-03-05 18:45 UTC (permalink / raw)
To: Icenowy Zheng
Cc: Drew Fustini, Guenter Roeck, Rob Herring, Krzysztof Kozlowski,
Conor Dooley, Guo Ren, Fu Wei, Rahul Tanwar, linux-hwmon,
devicetree, linux-kernel, linux-riscv
[-- Attachment #1: Type: text/plain, Size: 3045 bytes --]
On Fri, Mar 06, 2026 at 02:39:40AM +0800, Icenowy Zheng wrote:
> 在 2026-03-05四的 10:36 -0800,Drew Fustini写道:
> > On Thu, Mar 05, 2026 at 10:40:43PM +0800, Icenowy Zheng wrote:
> > > The G and J coefficients provided by T-Head TH1520 manual (which
> > > calls
> > > them A and C coefficients and calls H coefficient in the binding as
> > > B)
> > > has the 1/100 degree Celsius bit (the values are 42.74 and -0.16
> > > correspondingly), however the binding currently only allows
> > > cofficients
> > > as precise as 100 milli-Celsius (1/10 degree Celsius).
> > >
> > > Change the multipleOf value of these two cofficients to 10 (in the
> > > unit
> > > of milli-Celsius) to satisfy the need of TH1520.
> > >
> > > Signed-off-by: Icenowy Zheng <zhengxingda@iscas.ac.cn>
> > > ---
> > > New patch in v2.
> > >
> > > Documentation/devicetree/bindings/hwmon/moortec,mr75203.yaml | 4
> > > ++--
> > > 1 file changed, 2 insertions(+), 2 deletions(-)
> > >
> > > diff --git
> > > a/Documentation/devicetree/bindings/hwmon/moortec,mr75203.yaml
> > > b/Documentation/devicetree/bindings/hwmon/moortec,mr75203.yaml
> > > index 56db2292f062d..7d57c2934a8a1 100644
> > > --- a/Documentation/devicetree/bindings/hwmon/moortec,mr75203.yaml
> > > +++ b/Documentation/devicetree/bindings/hwmon/moortec,mr75203.yaml
> > > @@ -105,7 +105,7 @@ properties:
> > > G coefficient for temperature equation.
> > > Default for series 5 = 60000
> > > Default for series 6 = 57400
> > > - multipleOf: 100
> > > + multipleOf: 10
> > > minimum: 1000
> > > $ref: /schemas/types.yaml#/definitions/uint32
> > >
> > > @@ -131,7 +131,7 @@ properties:
> > > J coefficient for temperature equation.
> > > Default for series 5 = -100
> > > Default for series 6 = 0
> > > - multipleOf: 100
> > > + multipleOf: 10
> > > maximum: 0
> > > $ref: /schemas/types.yaml#/definitions/int32
> > >
> > > --
> > > 2.52.0
> > >
> >
> > I am wondering if there is any backwards compatibility issue but
> > there
> > are no other users of this compatible in mainline other than th1520.
> > There is also the precendent 030d2a0ce5dc ("dt-bindings: hwmon:
> > moortec,mr75203: fix multipleOf for coefficients") having change the
> > property. I suppose it is a not a problem unless other people on the
> > list raise an objection.
>
> Well mathematically any number that is a multiple of 100 is a multiple
> of 10?
>
> So theoretically there should be no compatibility issue.
Ye I don't think this is likely worth worrying about. The restrictions
exist in these kinds of cases to tell users they're doing the wrong
thing and using a value the hardware doesn't support, the driver almost
certainly will never care and just "blindly" use the number without
doing any validation, so as long as the multipleOf matches the
capability of the hardware you're okay.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v2 1/2] dt-bindings: hwmon: moortec,mr75203: adapt multipleOf for T-Head TH1520
2026-03-05 14:40 ` [PATCH v2 1/2] dt-bindings: hwmon: moortec,mr75203: adapt multipleOf for T-Head TH1520 Icenowy Zheng
2026-03-05 18:36 ` Drew Fustini
@ 2026-03-05 21:34 ` Guenter Roeck
2026-03-08 17:00 ` Drew Fustini
2 siblings, 0 replies; 9+ messages in thread
From: Guenter Roeck @ 2026-03-05 21:34 UTC (permalink / raw)
To: Icenowy Zheng
Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Drew Fustini,
Guo Ren, Fu Wei, Rahul Tanwar, linux-hwmon, devicetree,
linux-kernel, linux-riscv, Icenowy Zheng
On Thu, Mar 05, 2026 at 10:40:43PM +0800, Icenowy Zheng wrote:
> The G and J coefficients provided by T-Head TH1520 manual (which calls
> them A and C coefficients and calls H coefficient in the binding as B)
> has the 1/100 degree Celsius bit (the values are 42.74 and -0.16
> correspondingly), however the binding currently only allows cofficients
> as precise as 100 milli-Celsius (1/10 degree Celsius).
>
> Change the multipleOf value of these two cofficients to 10 (in the unit
> of milli-Celsius) to satisfy the need of TH1520.
>
AI feedback:
This isn't a bug, but there are a few typos in the commit message:
- "cofficients" should be "coefficients"
- "correspondingly" should be "respectively"
- "has" should be "have" (referring to "The G and J coefficients")
Additionally, "has the 1/100 degree Celsius bit" is slightly confusing and
might be clearer as "have 1/100 degree Celsius precision".
Please fix.
Thanks,
Guenter
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH v2 1/2] dt-bindings: hwmon: moortec,mr75203: adapt multipleOf for T-Head TH1520
2026-03-05 14:40 ` [PATCH v2 1/2] dt-bindings: hwmon: moortec,mr75203: adapt multipleOf for T-Head TH1520 Icenowy Zheng
2026-03-05 18:36 ` Drew Fustini
2026-03-05 21:34 ` Guenter Roeck
@ 2026-03-08 17:00 ` Drew Fustini
2 siblings, 0 replies; 9+ messages in thread
From: Drew Fustini @ 2026-03-08 17:00 UTC (permalink / raw)
To: Icenowy Zheng
Cc: Guenter Roeck, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
Guo Ren, Fu Wei, Rahul Tanwar, linux-hwmon, devicetree,
linux-kernel, linux-riscv, Icenowy Zheng
On Thu, Mar 05, 2026 at 10:40:43PM +0800, Icenowy Zheng wrote:
> The G and J coefficients provided by T-Head TH1520 manual (which calls
> them A and C coefficients and calls H coefficient in the binding as B)
> has the 1/100 degree Celsius bit (the values are 42.74 and -0.16
> correspondingly), however the binding currently only allows cofficients
> as precise as 100 milli-Celsius (1/10 degree Celsius).
>
> Change the multipleOf value of these two cofficients to 10 (in the unit
> of milli-Celsius) to satisfy the need of TH1520.
>
> Signed-off-by: Icenowy Zheng <zhengxingda@iscas.ac.cn>
> ---
> New patch in v2.
>
> Documentation/devicetree/bindings/hwmon/moortec,mr75203.yaml | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/hwmon/moortec,mr75203.yaml b/Documentation/devicetree/bindings/hwmon/moortec,mr75203.yaml
> index 56db2292f062d..7d57c2934a8a1 100644
> --- a/Documentation/devicetree/bindings/hwmon/moortec,mr75203.yaml
> +++ b/Documentation/devicetree/bindings/hwmon/moortec,mr75203.yaml
> @@ -105,7 +105,7 @@ properties:
> G coefficient for temperature equation.
> Default for series 5 = 60000
> Default for series 6 = 57400
> - multipleOf: 100
> + multipleOf: 10
> minimum: 1000
> $ref: /schemas/types.yaml#/definitions/uint32
>
> @@ -131,7 +131,7 @@ properties:
> J coefficient for temperature equation.
> Default for series 5 = -100
> Default for series 6 = 0
> - multipleOf: 100
> + multipleOf: 10
> maximum: 0
> $ref: /schemas/types.yaml#/definitions/int32
>
> --
> 2.52.0
>
Reviewed-by: Drew Fustini <fustini@kernel.org>
^ permalink raw reply [flat|nested] 9+ messages in thread