From patchwork Fri Apr 22 14:08:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Icenowy Zheng X-Patchwork-Id: 12823519 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 198C0C433EF for ; Fri, 22 Apr 2022 14:10:41 +0000 (UTC) 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=+MvEWvZs7Nw0EAz/+HG2qyjQjTrfUZBLcPUf+Ex9nwQ=; b=cfqtvPL1BkTbCd bfDDR5scqq2Rly1v7aNNcGKRMaxj2cicDY8iLOD6az1lC9e6iC89qbG69ZbTTliPmuECPINldNKFX t6D9HkCvfKq3HxgulVChNY8oEmkILcXQ4NvLDG1JuaV+jwTUeNYEumSy/dbmW75XjDGLWMZ/4WQ+z dWB/4lBNQR2UQAvG8Bx8idn8jhszOwz3eoo1KS7qmZcidENIGBQTYP1OfjWCtzYNSV6Ixos4ib47b EuEQ5VgBydFCXpruckkaCCATDztE1TSumAs/5Kkowun5yye74C14yuhohmOKQ9yR9sMIPqG+BcPQ+ RoTVJEhIHqKLNZx7S1mA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nhtyV-000jPI-JC; Fri, 22 Apr 2022 14:09:31 +0000 Received: from relay3.mymailcheap.com ([217.182.66.161]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nhtyR-000jMU-6e for linux-arm-kernel@lists.infradead.org; Fri, 22 Apr 2022 14:09:29 +0000 Received: from filter2.mymailcheap.com (filter2.mymailcheap.com [91.134.140.82]) by relay3.mymailcheap.com (Postfix) with ESMTPS id 21E793F15F; Fri, 22 Apr 2022 16:09:19 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by filter2.mymailcheap.com (Postfix) with ESMTP id 0D7382A515; Fri, 22 Apr 2022 14:09:19 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at filter2.mymailcheap.com Received: from filter2.mymailcheap.com ([127.0.0.1]) by localhost (filter2.mymailcheap.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Yr8TcHWihmKf; Fri, 22 Apr 2022 14:09:17 +0000 (UTC) Received: from mail20.mymailcheap.com (mail20.mymailcheap.com [51.83.111.147]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by filter2.mymailcheap.com (Postfix) with ESMTPS; Fri, 22 Apr 2022 14:09:17 +0000 (UTC) Received: from petra.. (unknown [113.67.11.105]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail20.mymailcheap.com (Postfix) with ESMTPSA id B494640645; Fri, 22 Apr 2022 14:09:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=aosc.io; s=default; t=1650636557; bh=Y29WsT3fkq/qFvF6IalSVLgRdoaWb5L858TyF5FxPxo=; h=From:To:Cc:Subject:Date:From; b=Mz0eweHGXXE1Lf5SR7SWXolgpjAD0pBar7hynnu9fIafVNqAq5Iy3fsOYYBqY6+Sz mvgYQSeqmtL1HOTHfbl52bBmanshmTLxRKAtEn1DDHln20GwSc894UHt0GyZtNaYwd OW8wHKTAdq00uqWJ6gvLu2YwnN06Dgg78ca/tZgQ= From: Icenowy Zheng To: Rob Herring , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Ulf Hansson , Linus Walleij , Andre Przywara 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/12] Initial support for Allwinner R329 Date: Fri, 22 Apr 2022 22:08:50 +0800 Message-Id: <20220422140902.1058101-1-icenowy@aosc.io> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220422_070927_599507_6447D41C X-CRM114-Status: GOOD ( 16.20 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Allwinner R329 is a SoC targeting smart audio devices, with integrated 128M or 256M DRAM. This patchset adds initial support for it, including pinctrl, rtc (for rtc ccu), clocks and mmc. These makes a system booting. The demo board for this support is Sipeed MaixSense (based on Sipeed MIIA SoM). Icenowy Zheng (12): 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 rtc: sun6i: add support for R329 RTC dt-bindings: clock: sunxi-ng: add bindings for R329 CCUs clk: sunxi=ng: add support for R329 CCUs 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 | 62 +- .../bindings/mmc/allwinner,sun4i-a10-mmc.yaml | 1 + .../pinctrl/allwinner,sun4i-a10-pinctrl.yaml | 4 + 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 | 275 ++++++++ drivers/clk/sunxi-ng/Kconfig | 10 + drivers/clk/sunxi-ng/Makefile | 4 + drivers/clk/sunxi-ng/ccu-sun50i-r329-r.c | 401 ++++++++++++ drivers/clk/sunxi-ng/ccu-sun50i-r329-r.h | 25 + drivers/clk/sunxi-ng/ccu-sun50i-r329.c | 587 ++++++++++++++++++ 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 | 2 + include/dt-bindings/clock/sun50i-r329-ccu.h | 73 +++ include/dt-bindings/clock/sun50i-r329-r-ccu.h | 45 ++ include/dt-bindings/reset/sun50i-r329-ccu.h | 45 ++ include/dt-bindings/reset/sun50i-r329-r-ccu.h | 24 + 24 files changed, 2384 insertions(+), 8 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