Re: [PATCH 1/1] dt-bindings: hwmon: tmp102: move ti,tmp103 out of trivial-devices.yaml
From: Krzysztof Kozlowski
Date: Sun Aug 30 2026 - 16:57:43 EST
On 26/08/2026 23:14, Frank.Li@xxxxxxxxxxx wrote:
> From: Frank Li <Frank.Li@xxxxxxx>
>
> Move ti,tmp103 binding from trivial-devices.yaml to ti,tmp102.yaml. Both
> devices are single temperature sensors and update "#thermal-sensor-cells"
> property to accept values 0 and 1 (passing no argument is equivalent to
> passing 0 as the first argument)
>
> Fix below CHECK_DTBS warnings:
> arch/arm/boot/dts/nxp/imx/imx6dl-plym2m.dtb: temperature-sensor@70 (ti,tmp103): '#thermal-sensor-cells' does not match any of the regexes: '^pinctrl-[0-9]+$'
>
> Signed-off-by: Frank Li <Frank.Li@xxxxxxx>
> ---
> Documentation/devicetree/bindings/hwmon/ti,tmp102.yaml | 5 +++--
> Documentation/devicetree/bindings/trivial-devices.yaml | 2 --
> 2 files changed, 3 insertions(+), 4 deletions(-)
>
> diff --git a/Documentation/devicetree/bindings/hwmon/ti,tmp102.yaml b/Documentation/devicetree/bindings/hwmon/ti,tmp102.yaml
> index 96b2e4969f78a..cd96b1d8a2d5e 100644
> --- a/Documentation/devicetree/bindings/hwmon/ti,tmp102.yaml
> +++ b/Documentation/devicetree/bindings/hwmon/ti,tmp102.yaml
> @@ -4,7 +4,7 @@
> $id: http://devicetree.org/schemas/hwmon/ti,tmp102.yaml#
> $schema: http://devicetree.org/meta-schemas/core.yaml#
>
> -title: TMP102 temperature sensor
> +title: TMP102/TMP103 temperature sensor
>
> maintainers:
> - Krzysztof Kozlowski <krzk@xxxxxxxxxx>
> @@ -13,6 +13,7 @@ properties:
> compatible:
> enum:
> - ti,tmp102
> + - ti,tmp103
>
> interrupts:
> maxItems: 1
> @@ -25,7 +26,7 @@ properties:
> A descriptive name for this channel, like "ambient" or "psu".
>
> "#thermal-sensor-cells":
> - const: 1
> + enum: [0, 1]
I missed that old value was '1' which was not really correct. Looks good.
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxxxxxxxx>
Best regards,
Krzysztof