Skip to contentSkip to conversation

dt-bindings: hwmon: tmp102: Document TMP113

PATCH Applied Marek Vasut 2 participants 4 messages Aug 13

Subsystems (2)

v1 of 2 Applied Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 dt-bindings: hwmon: tmp102: Document TMP113

The TMP113 temperature sensor part is register compatible with TMP102, document it using a fallback compatible. Unlike TMP102 and TMP110, the TMP113 does have additional unique ID registers, it is up to the driver to handle those.

---
Cc: Conor Dooley <[email protected]>
Cc: Flaviu Nistor <[email protected]>
Cc: Guenter Roeck <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
 Documentation/devicetree/bindings/hwmon/ti,tmp102.yaml | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/hwmon/ti,tmp102.yaml +4 -2
index f0dbe9f07b939..6bc10c73d2e2b 100644
@@ -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, TMP110 and TMP113 temperature sensor
 
 maintainers:
   - Krzysztof Kozlowski <[email protected]>
@@ -13,7 +13,9 @@ properties:
   compatible:
     oneOf:
       - items:
-          - const: ti,tmp110
+          - enum:
+              - ti,tmp110
+              - ti,tmp113
           - const: ti,tmp102
       - enum:
           - ti,tmp102
Signature · 1 line
2.53.0
#1 lore raw

PATCH 2/2 hwmon: (tmp102) Add TMP113 device ID

The TMP113 temperature sensor part is register compatible with TMP102, add non-DT I2C device ID. Unlike TMP102 and TMP110, the TMP113 does have additional unique ID registers, those are currently unused.

---
Cc: Conor Dooley <[email protected]>
Cc: Flaviu Nistor <[email protected]>
Cc: Guenter Roeck <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
 drivers/hwmon/tmp102.c | 1 +
 1 file changed, 1 insertion(+)
drivers/hwmon/tmp102.c +1 -0
index 26c461e95175b..50a8b050d8da1 100644
@@ -397,6 +397,7 @@ static DEFINE_SIMPLE_DEV_PM_OPS(tmp102_dev_pm_ops, tmp102_suspend, tmp102_resume
 static const struct i2c_device_id tmp102_id[] = {
 	{ .name = "tmp102" },
 	{ .name = "tmp110" },
+	{ .name = "tmp113" },
 	{ }
 };
 MODULE_DEVICE_TABLE(i2c, tmp102_id);
Signature · 1 line
2.53.0
maintainer Applied
#2 lore raw

Re: [PATCH 2/2] hwmon: (tmp102) Add TMP113 device ID

Quoted 5 lines · Marek Vasut

The TMP113 temperature sensor part is register compatible with TMP102, add non-DT I2C device ID. Unlike TMP102 and TMP110, the TMP113 does have additional unique ID registers, those are currently unused.

Applied.

Thanks,
Guenter

Quoted 25 lines

---
Cc: Conor Dooley <[email protected]>
Cc: Flaviu Nistor <[email protected]>
Cc: Guenter Roeck <[email protected]>
Cc: Krzysztof Kozlowski <[email protected]>
Cc: Rob Herring <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]

---
 drivers/hwmon/tmp102.c | 1 +
 1 file changed, 1 insertion(+)
drivers/hwmon/tmp102.c +1 -0
index 26c461e95175b..50a8b050d8da1 100644
@@ -397,6 +397,7 @@ static DEFINE_SIMPLE_DEV_PM_OPS(tmp102_dev_pm_ops, tmp102_suspend, tmp102_resume
 static const struct i2c_device_id tmp102_id[] = {
 	{ .name = "tmp102" },
 	{ .name = "tmp110" },
+	{ .name = "tmp113" },
 	{ }
 };
 MODULE_DEVICE_TABLE(i2c, tmp102_id);
#3 lore raw

Re: [PATCH 2/2] hwmon: (tmp102) Add TMP113 device ID

Quoted 8 lines · Guenter Roeck
Quoted 5 lines · Marek Vasut

The TMP113 temperature sensor part is register compatible with TMP102, add non-DT I2C device ID. Unlike TMP102 and TMP110, the TMP113 does have additional unique ID registers, those are currently unused.

Applied.

Thank you. I think this solves the TMP110 and TMP113 documentation concerns too.