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 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 A801ECA100B for ; Tue, 2 Sep 2025 06:10:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:CC:To:In-Reply-To:References :Message-ID:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:Date: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=dHSPKHZfHlEwGSktfKehwszLYW/R1q41P2ZiK9OHYCU=; b=HxbncIa2l63Y22j5hZMpJFsx6T Y50sOEqKqluoaKNwOUImkmgf/EcWW18pTFtl9uXKgZ6FuAMZ1lJ6biWnV1awtDzCq3MDy5sHbmg0P 4TmxLokBypETQsD1fLG6QtKol7Q0Om3vw8gcNER3dYUxQ++dYZ7dXUboN5X99JN9qWkpqpTkiIP9B lceLIHF5FoEgRrQssXCvfHmdnMXzoA2iZSCrT3dqcg15gcFVJ+O9PaTuO2ul9Eg14ZnXWJUMB4G6S 3gkwOayxEZ8q+UP8ccQqBr0udmf8MFz0t8L9cJeeV5eWZO27dSUoIPWf9HBEabzleil/TiiEV6Agt QKUrQkjA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1utKEB-0000000FSHu-1jmN; Tue, 02 Sep 2025 06:10:47 +0000 Received: from esa.microchip.iphmx.com ([68.232.154.123]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1utJxG-0000000FOba-3W8y for linux-arm-kernel@lists.infradead.org; Tue, 02 Sep 2025 05:53:20 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1756792398; x=1788328398; h=from:date:subject:mime-version:content-transfer-encoding: message-id:references:in-reply-to:to:cc; bh=f7DOA5wDFdEWR6ikCwi4zK/5qKnnx4GBTbYYi9JaLJw=; b=2XDfqHkjN9or4pHK0FqQPMmuP2934/dciHxrWEv+hFIJIka/yv7DuD6s 38bcuZiQ6r6SVGOMUeGLcC77sN1Acop1ES/7PBuoaMTlQINCv26tKFtQF r2ddr2YbT6ACdPq4FHfYq7xox3t6XEDPnr3F7b+Ska1J88WRr4t7jJfVt Sw52lkLJSvkBffpvxze9LGKlx8rieJMvtxDEvEVaN9rtxh2WbSNKbgQ2t nmcuRR60OeJb7OQZHApS/gIIGYXTXuHoWwg8bIqzPgQIeW+Lp4mKUjw8k 3UQp1D2At3VHM2UnmkZQJcTTpPk/Hsjhmx7E/YoMEhTF85EQcmgYmsJD/ Q==; X-CSE-ConnectionGUID: gpCMy0YOQ3KnEotuUPEfLQ== X-CSE-MsgGUID: vKmBLNbIQvGkTV7FOmwnCg== X-IronPort-AV: E=Sophos;i="6.18,230,1751266800"; d="scan'208";a="45366269" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa4.microchip.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 01 Sep 2025 22:53:16 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.87.72) by chn-vm-ex02.mchp-main.com (10.10.87.72) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.44; Mon, 1 Sep 2025 22:52:50 -0700 Received: from [127.0.0.1] (10.10.85.11) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.2507.44 via Frontend Transport; Mon, 1 Sep 2025 22:52:46 -0700 From: Dharma Balasubiramani Date: Tue, 2 Sep 2025 11:22:21 +0530 Subject: [PATCH 4/5] spi: atmel-quadspi: add support for SAM9X7 QSPI controller MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-ID: <20250902-microchip-qspi-v1-4-37af59a0406a@microchip.com> References: <20250902-microchip-qspi-v1-0-37af59a0406a@microchip.com> In-Reply-To: <20250902-microchip-qspi-v1-0-37af59a0406a@microchip.com> To: Mark Brown , Rob Herring , "Krzysztof Kozlowski" , Conor Dooley , "Nicolas Ferre" , Alexandre Belloni , Claudiu Beznea , Tudor Ambarus CC: , , , , Dharma Balasubiramani , Varshini Rajendran X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1756792344; l=1692; i=dharma.b@microchip.com; s=20240209; h=from:subject:message-id; bh=f7DOA5wDFdEWR6ikCwi4zK/5qKnnx4GBTbYYi9JaLJw=; b=+go7VqpZKGWssX4BiHB4VD7oA4MOm2sbqhMKZvwE3v7H9D3JptWnXIujiVjp/AISEQOofGT7u 2PTTzt9ftwLCZoZCuSVMZyzB3R7kmC5SGQsBZUz0msuKNGsHke0LbF+ X-Developer-Key: i=dharma.b@microchip.com; a=ed25519; pk=kCq31LcpLAe9HDfIz9ZJ1U7T+osjOi7OZSbe0gqtyQ4= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20250901_225318_964530_66403ACC X-CRM114-Status: GOOD ( 13.11 ) 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 Add support for the QuadSPI controller found on the SAM9X7 SoC. This controller does not implement pad calibration. It supports operation up to 100 MHz, and requires the GCK to run at twice the data rate. Signed-off-by: Varshini Rajendran Signed-off-by: Dharma Balasubiramani --- drivers/spi/atmel-quadspi.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/drivers/spi/atmel-quadspi.c b/drivers/spi/atmel-quadspi.c index 83cea5faff78..342cdd6e8d64 100644 --- a/drivers/spi/atmel-quadspi.c +++ b/drivers/spi/atmel-quadspi.c @@ -63,6 +63,7 @@ #define SAMA7G5_QSPI0_MAX_SPEED_HZ 200000000 #define SAMA7G5_QSPI1_SDR_MAX_SPEED_HZ 133000000 +#define SAM9X7_QSPI_MAX_SPEED_HZ 100000000 /* Bitfields in QSPI_CR (Control Register) */ #define QSPI_CR_QSPIEN BIT(0) @@ -1627,6 +1628,16 @@ static const struct atmel_qspi_caps atmel_sam9x60_qspi_caps = { .has_ricr = true, }; +static const struct atmel_qspi_caps atmel_sam9x7_ospi_caps = { + .max_speed_hz = SAM9X7_QSPI_MAX_SPEED_HZ, + .has_gclk = true, + .octal = true, + .has_dma = true, + .has_2xgclk = true, + .has_padcalib = false, + .has_dllon = false, +}; + static const struct atmel_qspi_caps atmel_sama7g5_ospi_caps = { .max_speed_hz = SAMA7G5_QSPI0_MAX_SPEED_HZ, .has_gclk = true, @@ -1660,6 +1671,10 @@ static const struct of_device_id atmel_qspi_dt_ids[] = { .compatible = "microchip,sama7g5-qspi", .data = &atmel_sama7g5_qspi_caps, }, + { + .compatible = "microchip,sam9x7-ospi", + .data = &atmel_sam9x7_ospi_caps, + }, { /* sentinel */ } }; -- 2.43.0