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.

AM625: Linux Driver for BQ32002

Part Number: AM625
Other Parts Discussed in Thread: BQ32002, BQ32000

Tool/software:

Hi Ti team,

We are working on a custom board and we have used the BQ32002 RTC module which is based on i2c.

Can you suggest if any driver available for this module and how can we configure the DTS file and any kernel configurations if need?

Regards,

Abhishek Lakhara

  • Hello,

    The subject owner is out of office, but will return in the 2nd half of July. Feel free to ping the thread if you do not get a response by July 17.

  • Hi ,

    Thanks for informing me. 

    I have solved the issue by using ti,bq32000 driver.

    Also, need to set the kernel configuration as below.

     RTC_DRV_BQ32K [=y]Type  : tristatePrompt: TI BQ32000  Location:    -> Device Drivers      -> Real Time Clock (RTC_CLASS [=y])  Defined at drivers/rtc/Kconfig:470  Depends on: RTC_CLASS [=y] && I2C [=y]


    We need to create node as per below.

    rtc: rtc@68 {
    compatible = "ti,bq32000";
    reg = <0x68>;
    interrupt-parent = <&main_gpio1>;
    interrupts = <13 IRQ_TYPE_EDGE_FALLING>;
    };

    We have interrupt on GPIO E19 which is GPIO1_13 so we set that GPIO and after that it is working.
  • Hello Abhishek,

    Glad to hear you were able to get things working! Thanks for posting your solution as well - that could be helpful for other people who run into the same question in the future.

    If you have any other questions that pop up in the future, feel free to create a new e2e thread to discuss.

    Regards,

    Nick