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.

tps65910-rtc: probe of tps65910-rtc failed with error -22.

Other Parts Discussed in Thread: TPS65910

Hi,

I have a customised imx6sl board with TI-PMIC TPS65910. I am not able to register tps65910 rtc driver. I am getting the following error.

tps65910-rtc tps65910-rtc: IRQ 6 is not free.
tps65910-rtc: probe of tps65910-rtc failed with error -22

Platform : Linux

SDK : Yocto

Kernel version : linux-imx-3.14

  • Hi Vip,

    It looks like IRQ6 is already being utilized by another driver, does it support a shared IRQ?
  • Hi,

    Yes, from the logs it is clear that the irq 6 is already being used by some other driver. But when I am checking /proc/interrupts dir. there is no IRQ with number 6.

    This is the output of /proc/interrupts

    root@imx6sltixu:~# cat /proc/interrupts
                CPU0       
     34:       1231       GIC  34  sdma
     54:       6524       GIC  54  mmc0
     56:        239       GIC  56  mmc2
     58:         99       GIC  58  2020000.serial
     59:          8       GIC  59
     63:          2       GIC  63  2008000.ecspi
     68:         24       GIC  68  21a0000.i2c
     69:          0       GIC  69  21a4000.i2c
     74:          0       GIC  74  2184200.usb
     81:          0       GIC  81  imx_thermal
     87:       1373       GIC  87  i.MX Timer Tick
    112:          0       GIC 112  20bc000.wdog
    130:          0       GIC 130  pxp-dmaengine
    146:         64       GIC 146  2188000.ethernet
    263:          0  gpio-mxc   7  2190000.usdhc cd
    283:          1  gpio-mxc  27  wl18xx
    IPI0:          0  CPU wakeup interrupts
    IPI1:          0  Timer broadcast interrupts
    IPI2:          0  Rescheduling interrupts
    IPI3:          0  Function call interrupts
    IPI4:          0  Single function call interrupts
    IPI5:          0  CPU stop interrupts
    IPI6:         79  IRQ work interrupts
    IPI7:          0  completion interrupts
    Err:          0

  • Hi,

    Issue is solved .

    tps65910-rtc tps65910-rtc: rtc core: registered tps65910-rtc as rtc0

    The output of /proc/interrupts is :

    root@imx6sltixu:~# cat /proc/interrupts
                CPU0       
     34:        646       GIC  34  sdma
     37:          0       GIC  37  tps65910
     54:       3853       GIC  54  mmc0
     56:        240       GIC  56  mmc2
     58:       1337       GIC  58  2020000.serial
     59:          4       GIC  59
     63:          2       GIC  63  2008000.ecspi
     68:        183       GIC  68  21a0000.i2c
     69:          0       GIC  69  21a4000.i2c
     74:          0       GIC  74  2184200.usb
     81:          0       GIC  81  imx_thermal
     87:        868       GIC  87  i.MX Timer Tick
    112:          0       GIC 112  20bc000.wdog
    130:          0       GIC 130  pxp-dmaengine
    146:         64       GIC 146  2188000.ethernet
    263:          0  gpio-mxc   7  2190000.usdhc cd
    283:          1  gpio-mxc  27  wl18xx
    326:          0  tps65910   6  tps65910-rtc
    IPI0:          0  CPU wakeup interrupts
    IPI1:          0  Timer broadcast interrupts
    IPI2:          0  Rescheduling interrupts
    IPI3:          0  Function call interrupts
    IPI4:          0  Single function call interrupts
    IPI5:          0  CPU stop interrupts
    IPI6:         62  IRQ work interrupts
    IPI7:          0  completion interrupts
    Err:          0
    root@imx6sltixu:~#

  • Vipul,

    Can you tell us what you did to resolve the issue?

    Sincerely,

    Chase

  • Hi Chase Maupin,

    Interrupt pin of the PMIC TPS65910 was not configured in dts file. So, I just configured the Interrupt pin in dts file and it solve the issue.