dt-bindings: hwmon: tmp102: move ti,tmp103 out of trivial-devices.yaml

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]+$'

Squashed with:
dt-bindings: hwmon: tmp102: Fix up TMP103 bindings

The TMP102 and TMP110 are backward compatible, therefore the valid
compatible strings are "ti,tmp110", "ti,tmp102" and "ti,tmp102" .

The TMP103 is not backward compatible with TMP102, but it does share a
schema now, therefore the only valid compatible string for the TMP103
should be "ti,tmp103" .

Make exactly those three compatible strings valid and everything else
rejected.

Signed-off-by: Frank Li <Frank.Li@nxp.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Signed-off-by: Marek Vasut <marex@nabladev.com>
Acked-by: Conor Dooley <conor.dooley@microchip.com>
Link: https://patch.msgid.link/20260901174847.97261-1-marex@nabladev.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
Frank Li 2026-08-26 17:14:19 -04:00 committed by Guenter Roeck
parent bc92fc9b12
commit 26d139cbc5
2 changed files with 4 additions and 6 deletions

View File

@ -4,7 +4,7 @@
$id: http://devicetree.org/schemas/hwmon/ti,tmp102.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#
title: TMP102 and TMP110 temperature sensor
title: TMP102/TMP103/TMP110 temperature sensor
maintainers:
- Krzysztof Kozlowski <krzk@kernel.org>
@ -15,8 +15,8 @@ properties:
- items:
- const: ti,tmp110
- const: ti,tmp102
- enum:
- ti,tmp102
- const: ti,tmp102
- const: ti,tmp103
interrupts:
maxItems: 1
@ -29,7 +29,7 @@ properties:
A descriptive name for this channel, like "ambient" or "psu".
"#thermal-sensor-cells":
const: 1
enum: [0, 1]
vcc-supply:
description: Power supply for the sensor

View File

@ -506,8 +506,6 @@ properties:
- ti,lm74
# Temperature sensor with integrated fan control
- ti,lm96000
# Low Power Digital Temperature Sensor with SMBUS/Two Wire Serial Interface
- ti,tmp103
# Thermometer with SPI interface
- ti,tmp121
- ti,tmp122