Hi Geert, On Friday, March 17, 2017, Geert Uytterhoeven wrote: > > On Friday, March 17, 2017, Geert Uytterhoeven wrote: > >> On Thu, Mar 16, 2017 at 6:51 PM, Chris Brandt > >> <chris.brandt@xxxxxxxxxxx> > >> wrote: > >> > +- clocks: the clock source for the RTC controller. > >> > >> The datasheet mentions 3 possible clock sources? > > > > There is the clock source that does the counting (RTC_X1, RTC_X3, XTAL), > and then a clock source that runs the register interface (run off of the > p0 clock). So I just need to turn on the p0 clock so I can get at the > registers. Note that if you do a hard reset with a RESET button, and all > the registers in the chip go back to their POR state, the counter still > counts off of the 32KHz XTAL even though the "peripheral clock" is stopped > (which just means you can't get to the registers). > > > > In reality, you have to assume the RTC counting source has already been > set up by u-boot, or from a past reboot, so I don't do any of that select > configuration at all. > > it would still be good to have phandles to the external clock sources as > well, as that describes the hardware topology. I'm confused, you mean make new clocks node for RTC_X1 (fixed at 32.768kHZ) and RTC_X3 (fixed at 4MHz), but then not really do anything with then? (the driver doesn't need them) Chris ��.n��������+%������w��{.n����z�{��ܨ}���Ơz�j:+v�����w����ޙ��&�)ߡ�a����z�ޗ���ݢj��w�f