From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jernej =?utf-8?B?xaBrcmFiZWM=?= Subject: Re: [PATCH v2 0/3] Add basic support for RTC on Allwinner H6 SoC Date: Sat, 24 Aug 2019 10:04:24 +0200 Message-ID: <3686940.YHdMKP4MVq@jernej-laptop> References: <20190820151934.3860-1-megous@megous.com> Reply-To: jernej.skrabec-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Sender: linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org In-Reply-To: <20190820151934.3860-1-megous-5qf/QAjKc83QT0dZR+AlfA@public.gmane.org> List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , To: linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org, megous-5qf/QAjKc83QT0dZR+AlfA@public.gmane.org Cc: Alessandro Zummo , Alexandre Belloni , Rob Herring , Mark Rutland , Maxime Ripard , Chen-Yu Tsai , linux-rtc-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: devicetree@vger.kernel.org Hi! Dne torek, 20. avgust 2019 ob 17:19:31 CEST je megous-5qf/QAjKc83QT0dZR+AlfA@public.gmane.org napisal(a): > From: Ondrej Jirman > > I went through the datasheets for H6 and H5, and compared the differences. > RTCs are largely similar, but not entirely compatible. Incompatibilities > are in details not yet implemented by the rtc driver though. > > I also corrected the clock tree in H6 DTSI. > > This patchset is necessary for implementing the WiFi/Bluetooth support > on boards using H6 SoC. > > There was some discussion previously of describing HOSC, DCXO and XO > oscillators and clocks as part of RTC in DT, but I decided against it > because it's not necessary, becuse information that would be provided > as a part of DT can already be determined at runtime from RTC registers, > so this woudn't add any value and would only introduce complications > to the driver. See: https://patchwork.kernel.org/cover/10898083/ > > Please take a look. > > > Thank you and regards, > Ondrej Jirman Sorry for a bit late test, but with your patches on Tanix TX6 box I get this in dmesg: [ 17.431742] sun6i-rtc 7000000.rtc: Failed to set rtc time. [ 20.439742] sun6i-rtc 7000000.rtc: rtc is still busy. [ 21.435744] sun6i-rtc 7000000.rtc: rtc is still busy. [ 24.055741] sun6i-rtc 7000000.rtc: rtc is still busy. [ 24.439752] sun6i-rtc 7000000.rtc: rtc is still busy. Last line is repeated non-stop. Any idea what could be wrong? Best regards, Jernej