Skip to contentSkip to conversation

ARM: dts: ti/omap: omap4-epson-embt2ws: Add temperature sensor

PATCH New Andreas Kemnade 2 participants 2 messages Nov 28

Subsystems (2)
lore
Share & tools
lore

Andreas Kemnade

author maintainer
#0 lore raw

PATCH 1/1 ARM: dts: ti/omap: omap4-epson-embt2ws: Add temperature sensor

The Jorjin SOM on that board has a temperature sensor. Type indentified by looking at default values and register width.

---
 arch/arm/boot/dts/ti/omap/omap4-epson-embt2ws.dts | 6 ++++++
 1 file changed, 6 insertions(+)
arch/arm/boot/dts/ti/omap/omap4-epson-embt2ws.dts +6 -0
index d51913620f06b..ee385423c7b76 100644
@@ -413,6 +413,12 @@ tlv320aic3x: codec@18 {
 		reset-gpios = <&gpio2 23 GPIO_ACTIVE_LOW>;
 	};
 
+	sensor@48 {
+		compatible = "ti,tmp102";
+		label = "som";
+		reg = <0x48>;
+	};
+
 	mpu9150: imu@68 {
 		compatible = "invensense,mpu9150";
 		reg = <0x68>;
Signature · 1 line
2.47.3
#1 lore raw
Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] ARM: dts: omap4-epson-embt2ws: non-standard node name and property order --

Thank you for your contribution! Sashiko AI review found 1 potential issue to consider:
- [Low] ARM: dts: omap4-epson-embt2ws: non-standard node name and property order
--

commit c96c04e3b7e272bcddbd33bdb194e678124b0be6
Author: Andreas Kemnade <[email protected]>

ARM: dts: ti/omap: omap4-epson-embt2ws: Add temperature sensor

This commit adds a TI TMP102 temperature sensor node on the i2c4 bus for the Jorjin SOM on the EpsonMoverio BT-200 board.

Quoted 7 lines
arch/arm/boot/dts/ti/omap/omap4-epson-embt2ws.dts +0 -0
index d51913620f06b..ee385423c7b76 100644
@@ -413,6 +413,12 @@ tlv320aic3x: codec@18 {
 		reset-gpios = <&gpio2 23 GPIO_ACTIVE_LOW>;
 	};

arch/arm/boot/dts/ti/omap/omap4-epson-embt2ws.dts tlv320aic3x: codec@18 { · line 424

Quoted 10 lines
arch/arm/boot/dts/ti/omap/omap4-epson-embt2ws.dts +6 -0
 
+	sensor@48 {
+		compatible = "ti,tmp102";
+		label = "som";
+		reg = <0x48>;
+	};
+
 	mpu9150: imu@68 {
 		compatible = "invensense,mpu9150";
 		reg = <0x68>;

[Severity: Low]
This isn't a bug, but per the Devicetree generic node naming guidelines and Documentation/devicetree/bindings/dts-coding-style.rst, should this node be named temperature-sensor@48 with reg placed immediately after compatible (before label)?

Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1