RTC TimeStamp enable from RTC Linux Driver
Hello!
I'm currently working with a stm32mp157f-dk2 development kit and designing a custom PCB with a STM32MP153A. I have working with the Developer/Distribution package of openST. I want to enable the TimeStamp function of the RTC, and be able to read the TimeStamp Time Register (RTC_TSTR) and Date Register (RTC_TSDR). I have been looking information for some time and I didn't found any support in the RTC linux driver bindings (<linux/rtc.h>), or in the stm32-rtc linux driver (<linux/drivers/rtc/rtc-stm32.c>). Also in the wiki I have not been able to find information about it's integration with the device tree. I have already check this post about reading from the M4: https://community.st.com/t5/stm32-mpus-products/how-can-the-cortex-m4-access-to-rtc-timestamp/td-p/276948 . But for reading the timestamp I have to enable it from the linux core.
Does anyone have any suggestions on how this situation can be addressed?
I have been modifying the linux driver, but I'm not sure if there is a more simplier way to do it.
Thank you!
