-------------------------------- ds1374:rtc@68 { compatible = "dallas,ds1374"; wakeup-capable; reg = <0x68>; }; -------------------------------- then, in the probe function of the driver rtc-ds1374.c, I added the "else if" following condition : ---------------------------------------------------------------------------- if (client->irq > 0) { ret = devm_request_irq(&client->dev, client->irq, ds1374_irq, 0, "ds1374", client); if (ret) { dev_err(&client->dev, "unable to request IRQ\n"); return ret; } device_set_wakeup_capable(&client->dev, 1); } else if (device_property_read_bool(&client->dev, "wakeup-capable")) { device_set_wakeup_capable(&client->dev, 1); }
----------------------------------------------------------------------------
-------------------------------- ds1374:rtc@68 { compatible = "dallas,ds1374"; interrupt-parent = <&gpio8>; interrupts = <7 IRQ_TYPE_EDGE_FALLING>;//or interrupts = <7 IRQ_TYPE_LEVEL_LOW>; reg = <0x68>; }; --------------------------------
Solved! Go to Solution.
The problem was solved by modifing the driver for kernel 4.19.89:
(see the join file).
Hi _Anthony
>There is no GPIO interrupt pin wired between rtc and CPU(i.MX6)..
I am afraid without gpio connection it is not possible to wake i.MX6Q as i2c can not wake
processor in the same way as SNVS RTC or for example UART. Wake capability
is described specially in each module chapter of i.MX 6Dual/6Quad Applications Processor Reference Manual
For UART please look at sect.64.8 Low Power Modes. I2C module has not such special wake
capability.
Example of external rtc can be found on :
Best regards
igor
Hi Igor, thanks for the reply.
To be more specific, the supply that powered the embedded card (not only the i.MX6), is wired to a smart switch. And the rtc ds1371 "SQW/INT" pin is wired to this switch. So if the switch detect the rtc interrupt alarm, then, it power on the card, else, the embedded card stay in its actual state (ON if it was ON, and OFF if it was OFF).
So as RTC alarm is used like this, SQW/INT pin is just linked to the switch and not i.MX6 gpio interrupt.
There is a link to the componant ds 1371 here: https://datasheets.maximintegrated.com/en/ds/DS1371.pdf
Thanks for all and best reguards: Anthony.