On 26.10.23 12:21, Alexandre Belloni wrote: > On 26/10/2023 12:13:23+0200, Javier Carrasco wrote: >> I want to model the INTA pin as a clock source that only should run in >> sleep mode because its clock is only used in that mode. Therefore I want >> the pin to stay in hi-Z during normal operation. > > Can you disclose what is the user of the clock, do you have a driver for > this device? > It is a Rockchip PMU through its CLK32K_IN pin. I can't disclose the exact model (yet) though, but the use case is that the PMU can run with the RTC clock connected to that pin in low-power modes. That pin is configured in the proper mode and maybe it could be configured differently with pinctrl in "default" mode, but the RTC INTA would still output the clock, which is what I want to avoid in this particular case. I just want to stop the clock at the RTC end i.e. write PIN_IO_INTA_HIZ into the PIN_IO_INTAPM. >> >> I do not want to get any interrupts from the INTA pin and the battery >> mode indication is not relevant for me either. I do not know the CCF >> mechanism in other RTCs though, but I think that the hi-Z mode >> accomplishes exactly what I described.The assumption about the battery >> mode is therefore beyond my knowledge, but my first reaction is that we >> already have the hi-Z for that. >> >> So in the end I just need a mechanism to configure INTA as hi-Z, which >> the driver still does not support. There is another application where >> the clock output is not required even though it is physically connected, >> so hi-Z is again an interesting mode and the battery mode would be >> available if it ever becomes relevant for anyone. >> >