From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4F40EC3A59E for ; Tue, 20 Aug 2019 15:19:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 25508216F4 for ; Tue, 20 Aug 2019 15:19:44 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=megous.com header.i=@megous.com header.b="RqPDvgDP" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730485AbfHTPTi (ORCPT ); Tue, 20 Aug 2019 11:19:38 -0400 Received: from vps.xff.cz ([195.181.215.36]:32796 "EHLO vps.xff.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729137AbfHTPTh (ORCPT ); Tue, 20 Aug 2019 11:19:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megous.com; s=mail; t=1566314375; bh=3n0q7CBc9P4bQG/G0hfq9MsM1NWknDFFdma8+IRC/cg=; h=From:To:Cc:Subject:Date:From; b=RqPDvgDPVzlnaRwp8M3IghFK1wQglwVFc5+QYKZLLecgLDG5Wil2dozlnMco/EYls /tTRCmZRHy22lpoHwy9E9Fr/ySqpCuyc55Qs9fnt0P+1UVmbOrWTAtsc86mOFmndqh t3CYfwOjHBGp7SjGsGvlX8D7XF7SfRw54iJgeEMc= From: megous@megous.com To: Alessandro Zummo , Alexandre Belloni , Rob Herring , Mark Rutland , Maxime Ripard , Chen-Yu Tsai Cc: Ondrej Jirman , linux-rtc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com Subject: [PATCH v2 0/3] Add basic support for RTC on Allwinner H6 SoC Date: Tue, 20 Aug 2019 17:19:31 +0200 Message-Id: <20190820151934.3860-1-megous@megous.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Changes in v2: - bindings converted to yaml - added reviewed by tags Ondrej Jirman (3): dt-bindings: Add compatible for H6 RTC rtc: sun6i: Add support for H6 RTC arm64: dts: sun50i-h6: Add support for RTC and fix the clock tree .../bindings/rtc/allwinner,sun6i-a31-rtc.yaml | 13 ++++++ arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 30 +++++++------- drivers/rtc/rtc-sun6i.c | 40 ++++++++++++++++++- 3 files changed, 67 insertions(+), 16 deletions(-) -- 2.22.1