On 13/04/2020 08:51:12+0000, Claudiu.Beznea@xxxxxxxxxxxxx wrote: > > > On 11.04.2020 01:26, Alexandre Belloni wrote: > > EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe > > > > On 10/04/2020 19:26:58+0300, Claudiu Beznea wrote: > >> Add RTT. > >> > >> Signed-off-by: Claudiu Beznea <claudiu.beznea@xxxxxxxxxxxxx> > >> --- > >> arch/arm/boot/dts/at91-sam9x60ek.dts | 5 +++++ > >> arch/arm/boot/dts/sam9x60.dtsi | 7 +++++++ > >> 2 files changed, 12 insertions(+) > >> > >> diff --git a/arch/arm/boot/dts/at91-sam9x60ek.dts b/arch/arm/boot/dts/at91-sam9x60ek.dts > >> index ab3d2d9a420a..4020e79a958e 100644 > >> --- a/arch/arm/boot/dts/at91-sam9x60ek.dts > >> +++ b/arch/arm/boot/dts/at91-sam9x60ek.dts > >> @@ -617,6 +617,11 @@ > >> }; > >> }; > >> > >> +&rtt { > >> + atmel,rtt-rtc-time-reg = <&gpbr 0x0>; > >> + status = "okay"; > > > > Is there any point using a gpbr register while there is already a much > > better RTC in the system? > > Only to have it also enabled. > Why would one use the RTT while the RTC is far superior? > > > > In any case, this diff should be merge with the other at91-sam9x60ek.dts > > change instead of being with the dtsi change. > > The changes in this patch are related to enabling the RTT. The other dts > change is related to enabling gpbr. The RTT uses that enabled gpbr -> one > change per patch. > > If you still want to merge then, I'll do it, but then it becomes mixed. > This patch is already mixing add the gpbr in sam9x60ek and add the node in sam9x60.dtsi which is worse. Just have one patch adding the rtt node to the sam9x60.dtsi and then a patch adding the RTT to sam9x60ek. Because the RTT uses the gpbr, it is a good time to add enable the gpbr, this is a single functionnal change. Let's say that for some reason, the RTT patch on sam9x60ek has to be reverted, then the RTT node is still defined which is good for all the other eventual users. -- Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com