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.

Linux/AM5718: I2C temperature sensor support

Part Number: AM5718


Tool/software: Linux

Dear Team,

On our custom board we are using MAX1668 temperature sensor connected using I2C. Software should read the temperature value based on user input and print it on the console. I thought of using I2C driver calls in-order to access the temperature sensor. So,

1. please help me in adding node for the corresponding chip.

2. Is it required to develop any slave driver for the temperature sensor?

Regards,

Noufal P

  • Hello Noufal,

    TI does not support questions on how to use drivers written by other companies or how to write drivers for other companies' parts.

    So how do you search for other companies' drivers? Let's check if Maxim upstreamed their driver to mainline Linux. I will assume you are using Linux Processor SDK 5.2. In your Linux Processor SDK, cd to board-support/linux-4.14.79... If you grep -r 'MAX1668' , you will see that Maxim did write a driver max1668.c. They provide a bindings document (which tells you how to set up your device tree) called max1668.

    Keep in mind companies (including TI) might write software for their parts without pushing that software to mainline Linux. In that case, you would need to reach out to the companies directly. The Maxim website actually includes something under www.maximintegrated.com/.../MAX1668.html , tab Design Resources, section software. That software might be useful, and may or may not have been mainlined. I am merely including this as an example, as TI does not specifically endorse any non-TI resources.

    Regards,
    Nick
  • Hi Nick,

    Thanks for your reply. I got the driver file from the mentioned path.

    For Device tree node, am checking with Max.

    Regards,

    Noufal P