This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMP100: Read data from the temperature sensor

Part Number: TMP100

Tool/software:

Hello TI,

 We are currently working in TMP100NA/3K temperature sensor. If you have any driver code for this sensor to initialize the I2c communication?.. and also provide the data calibration code for reference. 

  • Hello Sridhar,

    Below is the link to the page for the drivers. Please note that this driver was created by the linux community. TI does not contribute to, or have any control over, the linux kernel driver.

    Drivers: https://www.ti.com/tool/LM75SW-LINUX

    As for calibration, these devices are calibrated from factory and do not need additional calibration beyond that. 

    Regards,

    Harry Gill

  • Hi Harry,

    The above given driver code doesn't have a main function. Can you please provide the Main function (or) Where is it placed in the device tree.

    Regards,

    SRIDHAR P

  • Hi Harry,

    And also, we use this TMP100NA/3K in Arm625, the TMP100NA/3K is connected to the I2c2 of the Soc. Can you please provide me the example of device tree definition for initializing the TMP100NA/3K in AM62. 

  • Hello Sridhar,

    Please see the attached link for documentation and an example (it is also applicable to the TMP100):

    https://github.com/torvalds/linux/blob/master/Documentation/devicetree/bindings/hwmon/lm75.yaml

    As a friendly reminder, this was created by the linux community. TI does not contribute to, or have any control over this content.. 

    Additionally if you require additional support for the AM62, I would highly encourage you to reach out to that team for assistance on hardware implementation. 

    Hope this helps,

    Harry Gill

  • Hi Harry,

    Here i declared the i2c2 device tree definition for TMP100 in linux kernal,

    &main_i2c2 {
    	status = "okay";
    	pinctrl-names = "default";
    	pinctrl-0 = <&main_i2c2_pins_default>;
    	clock-frequency = <400000>;
    
          temperature-sensor@4A {
            compatible = "ti,tmp100";
            reg = <0x4A>;
            vs-supply = <&vcc_3v3_sys>;
          };
    
    };


    But unable to get the i2c address of the temperature sensor. Then the lm75.c and lm75.h files are already included in our device tree. Could you please let me know if there is any solution for this?

  • Hello Sridhar,

     

    My best recommendation would be to contact the team developing the AM62 (should be the Processors team on E2E) as they will be better suited to answer this question. 

     

    Regards,

    Harry