Skip to contentSkip to conversation

ARM: dts: imx: tqma7: add lm75a sensor (rev. 01xxx)

PATCH In review jrodrigues 2 participants 2 messages Oct 27, 2023 – Oct 29, 2023

Subsystems (3)
lore
Share & tools
lore

jrodrigues

author
#0 lore raw

PATCH 1/1 ARM: dts: imx: tqma7: add lm75a sensor (rev. 01xxx)

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

---
 arch/arm/boot/dts/nxp/imx/imx7-tqma7.dtsi | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
arch/arm/boot/dts/nxp/imx/imx7-tqma7.dtsi +8 -1
index fe42b0a468..b87560d037 100644
@@ -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 <[email protected]>

#1 lore raw
Quoted 1 line · jrodrigues

1. Drop stray blank line
2. Please use scripts/get_maintainers.pl to get a list of necessary people and lists to CC (and consider --no-git-fallback argument). It might happen, that command when run on an older kernel, gives you outdated entries. Therefore please be sure you base your patches on recent Linux kernel.

Your patch will be ignored since you did not send it to anyone :(

Quoted 14 lines

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

---
 arch/arm/boot/dts/nxp/imx/imx7-tqma7.dtsi | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
arch/arm/boot/dts/nxp/imx/imx7-tqma7.dtsi +0 -0
index fe42b0a468..b87560d037 100644

arch/arm/boot/dts/nxp/imx/imx7-tqma7.dtsi vgen6_reg: vldo4 { · line 135

Quoted 9 lines
arch/arm/boot/dts/nxp/imx/imx7-tqma7.dtsi +5 -1
@@ -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";

Drop status.

Quoted 15 lines
arch/arm/boot/dts/nxp/imx/imx7-tqma7.dtsi +3 -1
+	};
+
+	/* 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.

Quoted 2 lines

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

This does not look like patch at all... Patches are created the easiest with b4 or git format-patch.

Best regards,
Krzysztof