From patchwork Mon Mar 7 14:34:07 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andre Przywara X-Patchwork-Id: 12771926 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 7A6EFC433F5 for ; Mon, 7 Mar 2022 14:35: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=op9nFYpWT2D2SO6bDrSeDOd10c086E95790No7Vzo9k=; b=kZEh4zEA2Drnac 0z6Q30oDqwtHQfgthYCl0+AE63WPxyQ5fyoqqxszIFYimx1/EcyHHURXsSi3ffkrOpf6bA7wAi9Wl 0+A7I20qOJwUy3WkUhXNqBUzb1NhSoPc8gifHRudmKzAwPJ3OxSjTgmGl1cs34vyqHhS4qD5OoI45 wK4tnkUS0IV3bxuCv6D9aUwHZoAKlhaUVvTC5GxAMKetqXnnVfd5qlo4ZtY0/Gvwg5ztOolmbIxYM siAqfBpCTsXhHX+CPYbzGWo+7PwMhz0hFVdEw5ZVf8qbVGz2q0g72jMWZ9h1GHkF8xq+QOYAHJpEm dszW9iLYmpE0nrNY9UOQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nRERY-000PT6-5n; Mon, 07 Mar 2022 14:34:36 +0000 Received: from foss.arm.com ([217.140.110.172]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nRERT-000PRB-Tz for linux-arm-kernel@lists.infradead.org; Mon, 07 Mar 2022 14:34:33 +0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 1DB53ED1; Mon, 7 Mar 2022 06:34:28 -0800 (PST) Received: from donnerap.arm.com (donnerap.cambridge.arm.com [10.1.196.172]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 55C763F66F; Mon, 7 Mar 2022 06:34:26 -0800 (PST) From: Andre Przywara To: Maxime Ripard , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland Cc: Rob Herring , Mesih Kilinc , Icenowy Zheng , Jesse Taube , Giulio Benetti , George Hilliard , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev Subject: [PATCH 00/14] ARM: suniv: dts: update Allwinner F1C100 Date: Mon, 7 Mar 2022 14:34:07 +0000 Message-Id: <20220307143421.1106209-1-andre.przywara@arm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220307_063432_087158_F8F4BE6D X-CRM114-Status: GOOD ( 16.19 ) 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 The Allwinner F1C100 SoC didn't see much love since its initial merge in 2018: the originally submitted .dts files were very basic, and didn't cover such simple peripherals as MMC and SPI. On top of that the watchdog compatible string was wrong, leading to a non-functional watchdog and reset functionality. This series aims to fix that, after the series MMC and SPI work, and make dtbs_check comes back clean. This was tested with mounting a filesystem on /dev/mmcblk0 on a LicheePi Nano, also with accessing the SPI flash through /dev/mtdblock and mtd_debug. Reboot and watchdog now also work. Mainline U-Boot recently gained F1C100 support, and those DT updates are needed there as well to get full MMC and SPI access. The series is structured as follows: - Patches 01/14 and 02/14 fix the watchdog, which allows to properly reboot the system. - Patches 03-06 fix some shortcomings of the existing DT files, to make them DT binding compliant. - Patches 07-09 are Jesse's recent MMC patches, with the comments from the last version addressed [1]. - Patches 10-12 add SPI support, to enable access to the SPI flash on the LicheePi Nano board. - The final two patches (13/14 and 14/14) add the F1C100 platform to the multi_v5_defconfig, since it was not covered by any other defconfig before, and an ARMv5 compliant kernel is not commonly offered by distributions. I saw George's series from two years ago to add USB support[2], that looks good on the first glance, I will comment on that once I did some testing on that. Cheers, Andre Changelog for the MMC patches [1]: - bindings doc: extend commit message - .dtsi: extend commit message, re-order mmc0_pins node, add drive-strength - .dts: extend commit message, add alias, regulator and disable-wp [1] https://lore.kernel.org/linux-arm-kernel/20220130220325.1983918-1-Mr.Bossman075@gmail.com/ [2] https://lore.kernel.org/linux-usb/20200331170219.267732-1-thirtythreeforty@gmail.com/ Andre Przywara (10): dt-bindings: watchdog: sunxi: fix F1C100s compatible ARM: dts: suniv: F1C100: fix watchdog compatible dt-bindings: arm: sunxi: document LicheePi Nano name ARM: dts: suniv: F1C100: fix CPU node ARM: dts: suniv: F1C100: fix timer node dt-bindings: spi: sunxi: document F1C100 controllers ARM: dts: suniv: F1C100: add SPI support ARM: dts: suniv: licheepi-nano: add SPI flash ARM: configs: sync multi_v5_defconfig from savedefconfig ARM: configs: multi_v5: Enable Allwinner F1C100 Jesse Taube (4): ARM: dts: suniv: F1C100: add clock and reset macros dt-bindings: mmc: sunxi: add Allwinner F1c100s compatible ARM: dts: suniv: F1C100: add MMC controllers ARM: dts: suniv: licheepi-nano: add microSD card .../devicetree/bindings/arm/sunxi.yaml | 5 + .../bindings/mmc/allwinner,sun4i-a10-mmc.yaml | 3 + .../bindings/spi/allwinner,sun6i-a31-spi.yaml | 1 + .../watchdog/allwinner,sun4i-a10-wdt.yaml | 2 +- .../boot/dts/suniv-f1c100s-licheepi-nano.dts | 31 ++++++ arch/arm/boot/dts/suniv-f1c100s.dtsi | 102 ++++++++++++++++-- arch/arm/configs/multi_v5_defconfig | 25 ++--- 7 files changed, 140 insertions(+), 29 deletions(-)