Adding support to P3T1755 on Linux

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Adding support to P3T1755 on Linux

Adding support to P3T1755 on Linux

P3T1755DP is a ±0.5°C accurate temperature-to-digital converter with a -40 °C to +125 °C range. It uses an on-chip band gap temperature sensor and an A-to-D conversion technique with overtemperature detection. The temperature register always stores a 12-bit two's complement data, giving a temperature resolution of 0.0625 °C P3T1755DP which can be configured for different operation conditions: continuous conversion, one-shot mode, or shutdown mode.

 

The device has very good features but, unfortunately, is not supported by Linux yet!

 

The P31755 works very similarly to LM75, pct2075, and other compatibles.

 

We can add support to P3T1755 in the LM75.c program due to the process to communicate with the device is the same as LM75 and equivalents.

 

https://github.com/nxp-imx/linux-imx/blob/lf-6.1.55-2.2.0/drivers/hwmon/lm75.c

route:

drivers/hwmon/lm75.c

 

The modifications that we have to do are the next:

 

 1. We have to add the configurations to the kernel on the imx_v8_defconfig file

CONFIG_SENSORS_ARM_SCMI=y

 CONFIG_SENSORS_ARM_SCPI=y

 CONFIG_SENSORS_FP9931=y

+CONFIG_SENSORS_LM75=m

+CONFIG_HWMON=y

+CONFIG_I2C=y

+CONFIG_REGMAP_I2C=y

 CONFIG_SENSORS_LM90=m

 CONFIG_SENSORS_PWM_FAN=m

 CONFIG_SENSORS_SL28CPLD=m

 

 2. Add the part on the list of parts compatible with the driver LM75.c

enum lm75_type {   /* keep sorted in alphabetical order */

  max6626,

  max31725,

  mcp980x,

+ p3t1755,

  pct2075,

  stds75,

  stlm75,

 

3. Add the configuration in the structure lm75_params device_params[].

.default_resolution = 9,

    .default_sample_time = MSEC_PER_SEC / 18,

  },

+ [p3t1755] = {

+   .default_resolution = 12,

+   .default_sample_time = MSEC_PER_SEC / 10,

+ },

  [pct2075] = {

    .default_resolution = 11,

    .default_sample_time = MSEC_PER_SEC / 10,

 

Notes: You can change the configuration of the device using .set_mask and .clear_mask, see more details on LM75.c lines 57 to 78

 

4. Add the ID to the list in the structure i2c_device_id lm75_ids and of_device_id __maybe_unused lm75_of_match 

 

 { "max31725", max31725, },

  { "max31726", max31725, },

  { "mcp980x", mcp980x, },

+ { "p3t1755", p3t1755, },

  { "pct2075", pct2075, },

  { "stds75", stds75, },

  { "stlm75", stlm75, },

 

+ {

+   .compatible = "nxp,p3t1755",

+   .data = (void *)p3t1755

+ },

 

5. In addition to all modifications, I modify the device tree of my iMX8MP-EVK to connect the Sensor in I2C3 of the board. 

https://github.com/nxp-imx/linux-imx/blob/lf-6.1.55-2.2.0/arch/arm64/boot/dts/freescale/imx8mp-evk.d...

 

    };

  };

+

+ p3t1755: p3t1755@48 {

+   compatible = "nxp,p3t1755";

+   reg = <0x48>;

+ };

+

 };

 

Connections:

We will use the expansion connector of the iMX8MP-EVK and J9 of the P3T1755DP-ARD board.

 

P3T1755DP-ARD boardChavira_1-1714499607542.pngChavira_1-1714499607542.png

 

Chavira_2-1714499681249.pngChavira_2-1714499681249.png

iMX8MP-EVK

 

P3T1755DP-ARD ----> iMX8MP-EVK

J9              ---------->            J21

+3v3 (Pin 9) ---> +3v3 (Pin 1)

GND(Pin 7) ---> GND (PIN 9)

SCL (Pin 4) ---> SCL (Pin 5)

SDA (Pin 3) ---> SDA (Pin 3)

Chavira_3-1714500611037.jpegChavira_3-1714500611037.jpegChavira_4-1714500618352.jpegChavira_4-1714500618352.jpeg

 

 

Reading the Sensor

We can read the sensor using the next commands:

 

Read Temperature:

$ cat /sys/class/hwmon/hwmon1/temp1_input

Reading maximum temperature:

$ cat /sys/class/hwmon/hwmon1/temp1_max

Reading hysteresis:

$ cat /sys/class/hwmon/hwmon1/temp1_max_hyst
Chavira_0-1714498794795.pngChavira_0-1714498794795.png
 
 
 
%3CLINGO-SUB%20id%3D%22lingo-sub-1855874%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EAdding%20support%20to%20P3T1755%20on%20Linux%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1855874%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%0A%3CP%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3EP3T1755DP%20is%20a%20%C2%B10.5%C2%B0C%20accurate%20temperature-to-digital%20converter%20with%20a%20-40%20%C2%B0C%20to%20%2B125%20%C2%B0C%20range.%20It%20uses%20an%20on-chip%20band%20gap%20temperature%20sensor%20and%20an%20A-to-D%20conversion%20technique%20with%20overtemperature%20detection.%20The%20temperature%20register%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3Ealways%3C%2FSPAN%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%26nbsp%3Bstores%20a%2012-bit%20two's%20complement%20data%2C%20giving%20a%20temperature%20resolution%20of%200.0625%20%C2%B0C%20P3T1755DP%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3Ewhich%3C%2FSPAN%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%26nbsp%3Bcan%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3Ebe%20configured%3C%2FSPAN%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%26nbsp%3Bfor%20different%20operation%20conditions%3A%20continuous%20conversion%2C%20one-shot%20mode%2C%20or%20shutdown%20mode.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3EThe%20device%20has%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3Every%20good%3C%2FSPAN%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%26nbsp%3Bfeatures%20but%3C%2FSPAN%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%2C%20unfortunately%3C%2FSPAN%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%2C%20is%20not%20supported%20by%20Linux%20yet!%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3EThe%20P31755%20works%20very%20similarly%20to%20LM75%2C%20pct2075%2C%20and%20other%20compatibles.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3EWe%20can%20add%20support%20to%20P3T1755%20in%20the%20LM75.c%20program%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3Edue%20to%3C%2FSPAN%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%26nbsp%3Bthe%20process%20to%20communicate%20with%20the%20device%20is%20the%20same%20as%20LM75%20and%20equivalents.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fnxp-imx%2Flinux-imx%2Fblob%2Flf-6.1.55-2.2.0%2Fdrivers%2Fhwmon%2Flm75.c%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Fnxp-imx%2Flinux-imx%2Fblob%2Flf-6.1.55-2.2.0%2Fdrivers%2Fhwmon%2Flm75.c%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3Eroute%3A%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3Edrivers%2Fhwmon%2Flm75.c%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3EThe%20modifications%20that%20we%20have%20to%20do%20are%20the%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3Enext%3C%2FSPAN%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%3A%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%26nbsp%3B1.%20%3C%2FSPAN%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3EWe%20have%20to%20add%20the%20configurations%20to%20the%20kernel%20on%20the%20imx_v8_defconfig%20file%3C%2FSPAN%3E%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3ECONFIG_SENSORS_ARM_SCMI%3Dy%0A%0A%20CONFIG_SENSORS_ARM_SCPI%3Dy%0A%0A%20CONFIG_SENSORS_FP9931%3Dy%0A%0A%2BCONFIG_SENSORS_LM75%3Dm%0A%0A%2BCONFIG_HWMON%3Dy%0A%0A%2BCONFIG_I2C%3Dy%0A%0A%2BCONFIG_REGMAP_I2C%3Dy%0A%0A%20CONFIG_SENSORS_LM90%3Dm%0A%0A%20CONFIG_SENSORS_PWM_FAN%3Dm%0A%0A%20CONFIG_SENSORS_SL28CPLD%3Dm%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%26nbsp%3B2.%20%3C%2FSPAN%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3EAdd%20the%20part%20on%20the%20list%20of%20parts%20compatible%20with%20the%20driver%20LM75.c%3C%2FSPAN%3E%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3Eenum%20lm75_type%20%7B%20%20%20%2F*%20keep%20sorted%20in%20alphabetical%20order%20*%2F%0A%0A%20%20max6626%2C%0A%0A%20%20max31725%2C%0A%0A%20%20mcp980x%2C%0A%0A%2B%20p3t1755%2C%0A%0A%20%20pct2075%2C%0A%0A%20%20stds75%2C%0A%0A%20%20stlm75%2C%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E3.%20%3C%2FSPAN%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3EAdd%20the%20configuration%20in%20the%20structure%20lm75_params%20device_params%5B%5D.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E.default_resolution%20%3D%209%2C%0A%0A%20%20%20%20.default_sample_time%20%3D%20MSEC_PER_SEC%20%2F%2018%2C%0A%0A%20%20%7D%2C%0A%0A%2B%20%5Bp3t1755%5D%20%3D%20%7B%0A%0A%2B%20%20%20.default_resolution%20%3D%2012%2C%0A%0A%2B%20%20%20.default_sample_time%20%3D%20MSEC_PER_SEC%20%2F%2010%2C%0A%0A%2B%20%7D%2C%0A%0A%20%20%5Bpct2075%5D%20%3D%20%7B%0A%0A%20%20%20%20.default_resolution%20%3D%2011%2C%0A%0A%20%20%20%20.default_sample_time%20%3D%20MSEC_PER_SEC%20%2F%2010%2C%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3ENotes%3A%20You%20can%20change%20the%20configuration%20of%20the%20device%20using%20.set_mask%20and%20.clear_mask%3C%2FSPAN%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%2C%20see%3C%2FSPAN%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%26nbsp%3Bmore%20details%20on%20LM75.c%20lines%2057%20to%2078%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E4.%20%3C%2FSPAN%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3EAdd%20the%20ID%20to%20the%20list%20in%20the%20structure%20i2c_device_id%20lm75_ids%20and%20of_device_id%20__maybe_unused%20lm75_of_match%3C%2FSPAN%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E%20%7B%20%22max31725%22%2C%20max31725%2C%20%7D%2C%0A%0A%20%20%7B%20%22max31726%22%2C%20max31725%2C%20%7D%2C%0A%0A%20%20%7B%20%22mcp980x%22%2C%20mcp980x%2C%20%7D%2C%0A%0A%2B%20%7B%20%22p3t1755%22%2C%20p3t1755%2C%20%7D%2C%0A%0A%20%20%7B%20%22pct2075%22%2C%20pct2075%2C%20%7D%2C%0A%0A%20%20%7B%20%22stds75%22%2C%20stds75%2C%20%7D%2C%0A%0A%20%20%7B%20%22stlm75%22%2C%20stlm75%2C%20%7D%2C%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E%2B%20%7B%0A%0A%2B%20%20%20.compatible%20%3D%20%22nxp%2Cp3t1755%22%2C%0A%0A%2B%20%20%20.data%20%3D%20(void%20*)p3t1755%0A%0A%2B%20%7D%2C%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E5.%20In%20addition%20to%20all%20modifications%2C%20I%20modify%20the%20device%20tree%20of%20my%20iMX8MP-EVK%20to%20connect%20the%20Sensor%20in%20I2C3%20of%20the%20board.%3C%2FSPAN%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20data-preserver-spaces%3D%22true%22%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fnxp-imx%2Flinux-imx%2Fblob%2Flf-6.1.55-2.2.0%2Farch%2Farm64%2Fboot%2Fdts%2Ffreescale%2Fimx8mp-evk.dts%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Fnxp-imx%2Flinux-imx%2Fblob%2Flf-6.1.55-2.2.0%2Farch%2Farm64%2Fboot%2Fdts%2Ffreescale%2Fimx8mp-evk.dts%3C%2FA%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E%20%20%20%20%7D%3B%0A%0A%20%20%7D%3B%0A%0A%2B%0A%0A%2B%20p3t1755%3A%20p3t1755%4048%20%7B%0A%0A%2B%20%20%20compatible%20%3D%20%22nxp%2Cp3t1755%22%3B%0A%0A%2B%20%20%20reg%20%3D%20%26lt%3B0x48%26gt%3B%3B%0A%0A%2B%20%7D%3B%0A%0A%2B%0A%0A%20%7D%3B%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%3CSTRONG%3EConnections%3A%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EWe%20will%20use%20the%20expansion%20connector%20of%20the%20iMX8MP-EVK%20and%20J9%20of%20the%20P3T1755DP-ARD%20board.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EP3T1755DP-ARD%20board%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Chavira_1-1714499607542.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Chavira_1-1714499607542.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F276711iD6058F05C245DF13%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Chavira_1-1714499607542.png%22%20alt%3D%22Chavira_1-1714499607542.png%22%20%2F%3E%3Cspan%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EChavira_1-1714499607542.png%3C%2Fspan%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%0A%3CDIV%20class%3D%22lia-message-template-content-zone%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%20class%3D%22lia-message-template-content-zone%22%3E%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Chavira_2-1714499681249.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Chavira_2-1714499681249.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F276712i09B6087EE2028D6F%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Chavira_2-1714499681249.png%22%20alt%3D%22Chavira_2-1714499681249.png%22%20%2F%3E%3Cspan%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EChavira_2-1714499681249.png%3C%2Fspan%3E%3C%2Fspan%3E%3C%2FSPAN%3E%0A%3CP%3EiMX8MP-EVK%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EP3T1755DP-ARD%20----%26gt%3B%20iMX8MP-EVK%3C%2FP%3E%0A%3CP%3EJ9%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20----------%26gt%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20J21%3C%2FP%3E%0A%3CP%3E%2B3v3%20(Pin%209)%20---%26gt%3B%20%2B3v3%20(Pin%201)%3C%2FP%3E%0A%3CP%3EGND(Pin%207)%20---%26gt%3B%20GND%20(PIN%209)%3C%2FP%3E%0A%3CP%3ESCL%20(Pin%204)%20---%26gt%3B%20SCL%20(Pin%205)%3C%2FP%3E%0A%3CP%3ESDA%20(Pin%203)%20---%26gt%3B%20SDA%20(Pin%203)%3C%2FP%3E%0A%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Chavira_3-1714500611037.jpeg%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Chavira_3-1714500611037.jpeg%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F276715i93A01A0CB3F3835A%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Chavira_3-1714500611037.jpeg%22%20alt%3D%22Chavira_3-1714500611037.jpeg%22%20%2F%3E%3Cspan%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EChavira_3-1714500611037.jpeg%3C%2Fspan%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Chavira_4-1714500618352.jpeg%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Chavira_4-1714500618352.jpeg%22%20style%3D%22width%3A%20225px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F276716iA3F91DBD10F7E1CE%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Chavira_4-1714500618352.jpeg%22%20alt%3D%22Chavira_4-1714500618352.jpeg%22%20%2F%3E%3Cspan%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EChavira_4-1714500618352.jpeg%3C%2Fspan%3E%3C%2Fspan%3E%3C%2FSPAN%3E%0A%3CBR%20%2F%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%3CSTRONG%3EReading%20the%20Sensor%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CP%3EWe%20can%20read%20the%20sensor%20using%20the%20next%20commands%3A%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%3CSTRONG%3ERead%20Temperature%3A%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E%24%20cat%20%2Fsys%2Fclass%2Fhwmon%2Fhwmon1%2Ftemp1_input%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%3CSTRONG%3EReading%20maximum%20temperature%3A%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E%24%20cat%20%2Fsys%2Fclass%2Fhwmon%2Fhwmon1%2Ftemp1_max%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%3CSTRONG%3EReading%20hysteresis%3A%3C%2FSTRONG%3E%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E%24%20cat%20%2Fsys%2Fclass%2Fhwmon%2Fhwmon1%2Ftemp1_max_hyst%3C%2FCODE%3E%3C%2FPRE%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Chavira_0-1714498794795.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Chavira_0-1714498794795.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F276708iE557D700410B690F%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Chavira_0-1714498794795.png%22%20alt%3D%22Chavira_0-1714498794795.png%22%20%2F%3E%3Cspan%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EChavira_0-1714498794795.png%3C%2Fspan%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FDIV%3E%0A%3CDIV%20class%3D%22lia-message-template-content-zone%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%20class%3D%22lia-message-template-content-zone%22%3E%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fdesign%2Fdesign-center%2Fdevelopment-boards-and-designs%2Fanalog-toolbox%2Farduino-shields-solutions%2Fp3t1755dp-arduino-shield-evaluation-board%3AP3T1755DP-ARD%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fwww.nxp.com%2Fdesign%2Fdesign-center%2Fdevelopment-boards-and-designs%2Fanalog-toolbox%2Farduino-shields-solutions%2Fp3t1755dp-arduino-shield-evaluation-board%3AP3T1755DP-ARD%3C%2FA%3E%3C%2FDIV%3E%0A%3CDIV%20class%3D%22lia-message-template-content-zone%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CDIV%20class%3D%22lia-message-template-content-zone%22%3E%26nbsp%3B%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1855874%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3Ei.MX%208M%20%7C%20i.MX%208M%20Mini%20%7C%20i.MX%208M%20Nano%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ELinux%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EYocto%20Project%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
No ratings
Version history
Last update:
‎04-30-2024 11:23 AM
Updated by: