devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ARM: dts: imx: tqma7: add lm75a sensor (rev. 01xxx)
@ 2023-10-27 19:15 jrodrigues
  2023-10-29  8:13 ` Krzysztof Kozlowski
  0 siblings, 1 reply; 2+ messages in thread
From: jrodrigues @ 2023-10-27 19:15 UTC (permalink / raw)
  Cc: devicetree, linux-arm-kernel, linux-kernel, jrodrigues


TQMa7x (revision 01xxx) uses a different (LM75A) temperature sensor.
The two sensors use different I2C address, so we can set both sensors
simultaneously.

Signed-off-by: João Rodrigues <jrodrigues@ubimet.com>
---
 arch/arm/boot/dts/nxp/imx/imx7-tqma7.dtsi | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/arch/arm/boot/dts/nxp/imx/imx7-tqma7.dtsi b/arch/arm/boot/dts/nxp/imx/imx7-tqma7.dtsi
index fe42b0a468..b87560d037 100644
--- a/arch/arm/boot/dts/nxp/imx/imx7-tqma7.dtsi
+++ b/arch/arm/boot/dts/nxp/imx/imx7-tqma7.dtsi
@@ -128,7 +128,14 @@ vgen6_reg: vldo4 {
 		};
 	};
 
-	/* NXP SE97BTP with temperature sensor + eeprom */
+	/* LM75A - temperature sensor, TQMa7x 01xx */
+	lm75a: temperature-sensor@48 {
+		compatible = "national,lm75a";
+		reg = <0x48>;
+		status = "okay";
+	};
+
+	/* NXP SE97BTP with temperature sensor + eeprom, TQMa7x 02xx */
 	se97b: temperature-sensor-eeprom@1e {
 		compatible = "nxp,se97b", "jedec,jc-42.4-temp";
 		reg = <0x1e>;
--

The differences in the ICs are shown here:
The TQMa7 manual only references the latest version
https://www.tq-group.com/filedownloads/files/products/embedded/manuals/arm/embedded-modul/TQ-Socket/TQMa7x/TQMa7x.UM.0203.pdf
in section 3.2.4, while the board manual
https://www.tq-group.com/filedownloads/files/products/embedded/manuals/arm/carrierboard/MBa7x/MBa7x.UM.0101.pdf
in section 4.1.2 references the old version, introduced by this patch.

I have tested this change in a board which uses the TQMa7x
module, and with this patch we always a temperature sensors available.


Best regards,

--
João Rodrigues <jrodrigues@ubimet.com>


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-10-29  8:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-27 19:15 [PATCH] ARM: dts: imx: tqma7: add lm75a sensor (rev. 01xxx) jrodrigues
2023-10-29  8:13 ` Krzysztof Kozlowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).