Open xc-racer99 opened 4 years ago
Branch created at https://github.com/PabloPL/linux/tree/for-upstream/max8998-interrupt-fixes
@PabloPL if you could test (with using hwclock program in Linux) and submit upstream if it works for you that would be great.
Alright, IRQ fix is now pending upstream (in krzk's for-next branch). RTC patches/wakeup-source haven't been submitted anywhere.
There are multiple issues: 1) The GPH0(7) pin needs to be set to PULL_NONE in order for the interrupt to trigger 2) The wakeup-source property should be added to the DTS and parsed in drivers/mfd/max8998 (https://github.com/xc-racer99/linux/commit/80eb21426d1ff448cbf92407dcaff5116b21b28c) 3) RTC should be conditionally set to enable wakeup (https://github.com/xc-racer99/linux/commit/6bece195d0ecad82bd4c85889854beb6745ce2e5)