From patchwork Wed Sep 18 08:27:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Dahl X-Patchwork-Id: 13806688 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 1FF3ACCD18F for ; Wed, 18 Sep 2024 08:29:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: Content-Transfer-Encoding:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=drhLJCJD3fUeKeawJioBxbhjso2XLDpGbCh0ZnyLvyQ=; b=RhxaYVDowl1mJz tFdjCwFhy8veaeRPWJiDlW1VAFoDPb7lQU0NvyD0aBRZP6XLCHOcwK/661uh95p5kSkYvjKVSIbH1 yCFij5o1vz4P6xxtyV1Zc6y0/+fM3wJ7WGr+aZye2awqF8wngBse11Jg3tgMVgdtO8ie3ZZ8dlhET VHuhf8vSkRiBIBXoL2RS07gkLMiyx1/vC39nHyfjADKGLHjTsn6oK1S9kAS1MQLgd5WYtm3CeSTkQ i9EqUGOW2AaQ2PkKpiunCPHqssbHtVFLVMVe41I9wukRoKrXkgkG86ZXvS8B9GVHA7fGjLbrfa/k9 cVVsy/o2ulzvQGTgPsmg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1sqq3a-00000007oRa-3pa8; Wed, 18 Sep 2024 08:29:02 +0000 Received: from mail.thorsis.com ([217.92.40.78]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1sqq2T-00000007oCo-3uvq for linux-arm-kernel@lists.infradead.org; Wed, 18 Sep 2024 08:27:55 +0000 Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id A36E31489733; Wed, 18 Sep 2024 10:27:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=thorsis.com; s=dkim; t=1726648069; h=from:subject:date:message-id:to:cc:mime-version: content-transfer-encoding; bh=drhLJCJD3fUeKeawJioBxbhjso2XLDpGbCh0ZnyLvyQ=; b=Fum7bn6MLQl7l3LIUsKq5vwrr9um5QJnUAgKK8SGNr7n3m98Mca85sjPytr8nWqhoSSSKc IbwmkPp6Mq/YEojLULxgLuREjdzqB48LMmxA1Ojd1XIh+k6QiZYu1yzQJOIRPz1imfSxeN +p0r5bmqkefSKK6tj+bIeZ4ysHZMT79Pgmu9c34FfFMBR0U92dItTWnzgg1plasLq37/fG 2dmmozuSgVf6L8mnvdFpdUwvsbMaOmmFfQPftphjevZSXSX9z6rjgq8WPcmu7O0kbF0Lev fDWU4Bgqb34uJhOPKkn/SseAtdPySuFIZDIZoboUI1JCLE5bgeA0ROArY5NT9Q== From: Alexander Dahl To: Mark Brown Subject: [PATCH 0/2] spi: atmel-quadspi: Fix and add full CS delay support Date: Wed, 18 Sep 2024 10:27:42 +0200 Message-Id: <20240918082744.379610-1-ada@thorsis.com> X-Mailer: git-send-email 2.39.5 MIME-Version: 1.0 X-Last-TLS-Session-Version: TLSv1.3 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240918_012754_230130_3BF16B05 X-CRM114-Status: UNSURE ( 7.10 ) X-CRM114-Notice: Please train this message. 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: , Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-spi@vger.kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hello everyone, when testing on a SAM9X60 based board with an FPGA implementing a custom SPI-MEM protocol, we found the need to fully control the delay settings the atmel/microchip QSPI controller offers. Greets Alex (series based on v6.11, tested on top of v6.6.44) Cc: linux-spi@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org Alexander Dahl (2): spi: atmel-quadspi: Avoid overwriting delay register settings spi: atmel-quadspi: Add cs_hold and cs_inactive setting support drivers/spi/atmel-quadspi.c | 50 +++++++++++++++++++++++++++++-------- 1 file changed, 40 insertions(+), 10 deletions(-) base-commit: 98f7e32f20d28ec452afb208f9cffc08448a2652