From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C8CDD309EFB; Wed, 10 Sep 2025 10:18:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757499507; cv=none; b=Crb+FkBIYLSzqJ7qAGMBQwF5fYR6pl3NRWhBm4Idvdn00UmE8RRkRc7pqNO+tr0NC18ncBGBwMMYAAAnpZloOnrA4s4NwWQcdCeBggxsPg+UND1F06uAJNdmfaljNP32cIO6bkilgq0AkLa3sHPxADpjF3iaZreRuKqdkai/yrA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757499507; c=relaxed/simple; bh=BbK/5/N5DEttwRbyK9p+3UuFCTTMS4wF1GIjggC2Nlo=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=shIOnhIdB9X2aTzxYOzqsDHPrK+PHug/NW1D7wp7jrcV5p5lAJSCcW2ZMBC1p8+w5J+X+8jXG5RY8RcE9QPmuvTY91Ha/46HTLDOctulZ3zIFsGbgLWQXhxAr70beOinuXFbGe4AB8Olbn6s3woFXK1vQ6/uVLsBtF0KCSB92WU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=IVK4BzX9; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="IVK4BzX9" Received: by smtp.kernel.org (Postfix) with ESMTPS id 5F339C4CEF8; Wed, 10 Sep 2025 10:18:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1757499507; bh=BbK/5/N5DEttwRbyK9p+3UuFCTTMS4wF1GIjggC2Nlo=; h=From:Subject:Date:To:Cc:Reply-To:From; b=IVK4BzX9QJORREzevtaL/zp7np3zcM2kBPoWYxXuZBmihwBhvvMiN/kTSJmaj6WMp Y+l08htLGFW0Vegr4mY6eYU0cqBxdlbInJNPCMtS/83iJc9dI6RxbKOpmTY93d/W8q XAUlwuAGhrugVic0Ih7dDG0z83fe2A4CbGFlU8LAB8zyQzyrz6TVyvOt5VBBaPzVrL gyUz99aJ+ypJeL+oQugqYWFzxiIvXkQl1j/jS7dwp7Ocuop7immNEHioGfOMYJNVnU 9+vq82TM3qrjvXaOtYBHm3ppIl1rSv8jMGVb/BpiJ62mb2q7ctJ8hgUJe72R5q+70M FCrtHTn+bvRhg== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4A841CAC587; Wed, 10 Sep 2025 10:18:27 +0000 (UTC) From: Xianwei Zhao via B4 Relay Subject: [PATCH v6 0/3] support for Amlogic SPI Flash Controller IP Date: Wed, 10 Sep 2025 18:18:24 +0800 Message-Id: <20250910-spifc-v6-0-1574aa9baebd@amlogic.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAHBQwWgC/2XMTW7CMBCG4asgr2vk8c84ZsU9UBexMwOWCkExi qhQ7l6DGpoqy280z/sQhYZMRew2DzHQmEvuL3Xgx0akU3s5ksxd3UIr7VSjrCzXzEk6j0DGcSR gUX+vA3G+vzqHz7pPudz64fuVHeF5nQvNb2EEqSSzJaNIY4tx356/+mNO29SfxbMx6oXTMDtdX QQIjDa6pMLamaXD2ZnqPAWNykLnGdfOLl2Yna0OyHnuTGDX2LVzfy6ot3PVBdQxgfUdeP7vpmn 6AdSb/JR8AQAA To: Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Liang Yang , Feng Chen Cc: linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org, Xianwei Zhao , Conor Dooley X-Mailer: b4 0.12.4 X-Developer-Signature: v=1; a=ed25519-sha256; t=1757499505; l=2152; i=xianwei.zhao@amlogic.com; s=20231208; h=from:subject:message-id; bh=BbK/5/N5DEttwRbyK9p+3UuFCTTMS4wF1GIjggC2Nlo=; b=3z0r6eHSJGhKnflgUXglWaK8KQfYOk5kSmwKX6tRqdVICuN0wOphryrB0BIsoIMKMK5mhBoze Q5tA3dbEuWDAlrfePULm0R0q5pOYCFIbv5Rjw7yOKcn9OxSoMXPAHK4 X-Developer-Key: i=xianwei.zhao@amlogic.com; a=ed25519; pk=o4fDH8ZXL6xQg5h17eNzRljf6pwZHWWjqcOSsj3dW24= X-Endpoint-Received: by B4 Relay for xianwei.zhao@amlogic.com/20231208 with auth_id=107 X-Original-From: Xianwei Zhao Reply-To: xianwei.zhao@amlogic.com This Flash Controller is derived by adding an SPI path to the original raw NAND controller. This controller supports two modes: raw mode and SPI mode. The raw mode has already been implemented in the community (drivers/mtd/nand/raw/meson_nand.c). This submission supports the SPI mode. Add the drivers and bindings corresponding to the SPI Flash Controller. Signed-off-by: Xianwei Zhao --- Changes in v6: - Fix compilation warning appeared in v4 version tested by kernel test robot. - Link to v5: https://lore.kernel.org/r/20250909-spifc-v5-0-962bc147d17f@amlogic.com Changes in v5: - Initialize local variables and handle exceptions solve compilation error problems. - Link to v4: https://lore.kernel.org/r/20250829-spifc-v4-0-1e57fd39f584@amlogic.com Changes in v4: - Reword desc of 'amlogic, rx-adj' in bingding file. - Link to v3: https://lore.kernel.org/r/20250826-spifc-v3-0-7e926041d7f6@amlogic.com Changes in v3: - Restore message description and modify subject [1/3] that was omitted in v2. - Link to v2: https://lore.kernel.org/r/20250821-spifc-v2-0-b119f64b5c09@amlogic.com Changes in v2: - Remove clock reg descriptor and get clock from common clk. - Remove ecc and ramdom descriptor in bindings. - Modify the format and message description. - Link to v1: https://lore.kernel.org/r/20250808-spifc-v1-0-ff4e30e26a6b@amlogic.com --- Feng Chen (2): spi: dt-bindings: add Amlogic A113L2 SFC spi: amlogic: add driver for Amlogic SPI Flash Controller Xianwei Zhao (1): MAINTAINERS: Add an entry for Amlogic spifc driver .../devicetree/bindings/spi/amlogic,a4-spifc.yaml | 82 ++ MAINTAINERS | 10 + drivers/spi/Kconfig | 10 + drivers/spi/Makefile | 1 + drivers/spi/spi-amlogic-spifc-a4.c | 1222 ++++++++++++++++++++ 5 files changed, 1325 insertions(+) --- base-commit: 475541d2f3dfe72e8cfe94bfb1b824030f8d9b68 change-id: 20250804-spifc-5761e35fbe1f Best regards, -- Xianwei Zhao