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=-12.4 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham 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 4595EC4338F for ; Mon, 2 Aug 2021 06:27:36 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0736760FC1 for ; Mon, 2 Aug 2021 06:27:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 0736760FC1 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=sipeed.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=AypRqvBnSeNEQVzFsrW6GYt3SvLbIwiU1frSmglP3x4=; b=Cbe8ZypMmninCn lvZXsMeCRW8EaPtUz7/k0wPpRlI9geJbFLXbAR3fChNZFRlQE6d6gim3VvIAW7eRkgaiTmrrT/kvi +p+VFYQbF2Dr+boPZYnZbjM+58Vd5/XAi1vQUaP/JkmbudxuCXC0KOGaDOHfQaufifix9cGvhAlbg rHbmqEFbgbKFUDXWPC2LacH1CKFkXdfBNwr3vSQbZ4RdKf/88M43QP4DC1Y/w4jqOCaq6pRTlUzf8 Rl2lqLpwMa5u6/AS35a610vefr5kSYuM7PZL3YK5kBTPwQu7cIw1s/sDVubBEmPXLuH4GP3B9QxNw s20pB004Xa/aroPpPW2g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mAROD-00F4oj-DQ; Mon, 02 Aug 2021 06:25:29 +0000 Received: from smtpbg127.qq.com ([109.244.180.96] helo=smtpbg.qq.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mARMl-00F48O-SQ for linux-arm-kernel@lists.infradead.org; Mon, 02 Aug 2021 06:24:04 +0000 X-QQ-mid: bizesmtp41t1627885335t6snh1mb Received: from localhost.localdomain (unknown [113.89.245.207]) by esmtp6.qq.com (ESMTP) with id ; Mon, 02 Aug 2021 14:22:15 +0800 (CST) X-QQ-SSF: 01100000002000206000B00A0000000 X-QQ-FEAT: tC2PljDBqdOnSOAMdfK8/oTKxZqOlTXJ/nzFj4aElef7BKEDnL9OqCXepP4ZR wII5p+HPpxxMunVvTwyx2FgZWE9tJPFdxfiJKqw2X+4a2F4eNrAFaTcHPVXmgCkrukzzGp3 KwtTDKS/Ekha4OKV1kXsPOb8bHUS5C/tQkx3/HFozgD6ZVsigAYEmcALc4K7clp876XircB KCsWzpvLQIa5eaTiH24TTCcE6/P5hN+l9lekbwINEOXTv1yQ0mFF0NbiODLpM/QF3JNSqaR RaqTi0RdpOPU8jqUwuJIMzVr6/FvTSiRxnVIOah6bmkn/0vOl4GdXy10eXuYpMslPpkA== X-QQ-GoodBg: 0 From: Icenowy Zheng To: Rob Herring , Maxime Ripard , Chen-Yu Tsai , Jernej Skrabec , Ulf Hansson , Linus Walleij , Alexandre Belloni , Andre Przywara , Samuel Holland Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, Icenowy Zheng Subject: [PATCH 00/17] Basical Allwinner R329 support Date: Mon, 2 Aug 2021 14:21:55 +0800 Message-Id: <20210802062212.73220-1-icenowy@sipeed.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:sipeed.com:qybgspam:qybgspam1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210801_232400_325023_33C6096D X-CRM114-Status: GOOD ( 17.51 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This patchset tries to add basical support for Allwinner R329 SoC to the Linux kernel, including clock/pintrl driver and MMC support. Three patches from the H616 patchset, which are used to support the RTC with linear day, are attached into this patchset. Other RTC-related patches of that patchset is not included, because the binding of the clock part there is still under discussion. Then I added RTC binding and support (which is now only a struct addition). I added RTC into this patchset, with the same reason that H616 patchset contains RTC, which is to make the clock tree correct at the first inclusion. After RTC, main basical SoC-specific part, pinctrl and CCU, come. The R329 CCU is something special because PLLs are in R-CCU, no main CCU. MMC support is added here because it's also a simple struct addition work, no main driver code change needed. Finally it comes the DT part. The DT binding of MaixSense, the device that I am working on now, is added. Then the DTSI for R329 SoC, the DTSI file for Sipeed Maix IIA SoM (which is utilized on MaixSense) and the main DT file for MaixSense are added. Andre Przywara (3): rtc: sun6i: Fix time overflow handling rtc: sun6i: Add support for linear day storage rtc: sun6i: Add support for broken-down alarm registers Icenowy Zheng (14): dt-bindings: rtc: sun6i: add compatible string for R329 RTC rtc: sun6i: add support for R329 RTC dt-bindings: pinctrl: document Allwinner R329 PIO and R-PIO pinctrl: sunxi: add support for R329 CPUX pin controller pinctrl: sunxi: add support for R329 R-PIO pin controller dt-bindings: clock: sunxi-ng: add compatibles for R329 CCUs clk: sunxi=ng: add support for R329 R-CCU clk: sunxi-ng: add support for Allwinner R329 CCU dt-bindings: mmc: sunxi-mmc: add R329 MMC compatible string mmc: sunxi: add support for R329 MMC controllers dt-bindings: arm: sunxi: add compatible strings for Sipeed MaixSense arm64: allwinner: dts: add DTSI file for R329 SoC arm64: allwinner: dts: r329: add DTSI file for Sipeed Maix IIA arm64: allwinner: dts: r329: add support for Sipeed MaixSense .../devicetree/bindings/arm/sunxi.yaml | 6 + .../clock/allwinner,sun4i-a10-ccu.yaml | 4 + .../bindings/mmc/allwinner,sun4i-a10-mmc.yaml | 1 + .../pinctrl/allwinner,sun4i-a10-pinctrl.yaml | 4 + .../bindings/rtc/allwinner,sun6i-a31-rtc.yaml | 6 +- arch/arm64/boot/dts/allwinner/Makefile | 1 + .../dts/allwinner/sun50i-r329-maix-iia.dtsi | 34 ++ .../dts/allwinner/sun50i-r329-maixsense.dts | 37 ++ .../arm64/boot/dts/allwinner/sun50i-r329.dtsi | 244 ++++++++ drivers/clk/sunxi-ng/Kconfig | 10 + drivers/clk/sunxi-ng/Makefile | 2 + drivers/clk/sunxi-ng/ccu-sun50i-r329-r.c | 374 +++++++++++++ drivers/clk/sunxi-ng/ccu-sun50i-r329-r.h | 33 ++ drivers/clk/sunxi-ng/ccu-sun50i-r329.c | 526 ++++++++++++++++++ drivers/clk/sunxi-ng/ccu-sun50i-r329.h | 32 ++ drivers/mmc/host/sunxi-mmc.c | 10 + drivers/pinctrl/sunxi/Kconfig | 10 + drivers/pinctrl/sunxi/Makefile | 2 + drivers/pinctrl/sunxi/pinctrl-sun50i-r329-r.c | 292 ++++++++++ drivers/pinctrl/sunxi/pinctrl-sun50i-r329.c | 410 ++++++++++++++ drivers/rtc/rtc-sun6i.c | 154 +++-- include/dt-bindings/clock/sun50i-r329-ccu.h | 73 +++ include/dt-bindings/clock/sun50i-r329-r-ccu.h | 33 ++ include/dt-bindings/reset/sun50i-r329-ccu.h | 45 ++ include/dt-bindings/reset/sun50i-r329-r-ccu.h | 24 + 25 files changed, 2320 insertions(+), 47 deletions(-) create mode 100644 arch/arm64/boot/dts/allwinner/sun50i-r329-maix-iia.dtsi create mode 100644 arch/arm64/boot/dts/allwinner/sun50i-r329-maixsense.dts create mode 100644 arch/arm64/boot/dts/allwinner/sun50i-r329.dtsi create mode 100644 drivers/clk/sunxi-ng/ccu-sun50i-r329-r.c create mode 100644 drivers/clk/sunxi-ng/ccu-sun50i-r329-r.h create mode 100644 drivers/clk/sunxi-ng/ccu-sun50i-r329.c create mode 100644 drivers/clk/sunxi-ng/ccu-sun50i-r329.h create mode 100644 drivers/pinctrl/sunxi/pinctrl-sun50i-r329-r.c create mode 100644 drivers/pinctrl/sunxi/pinctrl-sun50i-r329.c create mode 100644 include/dt-bindings/clock/sun50i-r329-ccu.h create mode 100644 include/dt-bindings/clock/sun50i-r329-r-ccu.h create mode 100644 include/dt-bindings/reset/sun50i-r329-ccu.h create mode 100644 include/dt-bindings/reset/sun50i-r329-r-ccu.h -- 2.30.2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel