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 X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D611FFA3735 for ; Thu, 17 Oct 2019 14:21:41 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id AB6FA21835 for ; Thu, 17 Oct 2019 14:21:41 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="T72wnnN+" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AB6FA21835 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=bootlin.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject: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=kdybCU05jocbqakc9afFBeCoulMyWAFnZzIccYbxXWc=; b=T72wnnN+nc6rfb A53YqkrZxkCATcE0HK74PHcBQEKwgz0J6PH1gvseTzY1AOrbY11xADrl6x1dqi8FYHHgplXg6sj1k 78Mc7tKOi5O16GbSQUg0bRJ6/AQDh81AvY2rlQihw9bCCiuWqwalgheSIvR3fSQzN8N9PZ/7DdRwo yIZqStjcqGnHw/RZsSj4nsU8O8+//9vXSx0dYT3jhZPyT3Cn5iIZSdf1gAksTdYvE4woUStQqoDbQ 2WmkV2FT7AUSsYSuANfI+AudpZthPhrze/zwoRn5j5e2MIvkuLHB68Smoqcj3JS2D83D279wpLihO XwmBd9Aa2LFbw4fLXK3w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iL6eo-0003X6-Qu; Thu, 17 Oct 2019 14:21:38 +0000 Received: from relay7-d.mail.gandi.net ([217.70.183.200]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iL6dj-0002Wc-JV for linux-arm-kernel@lists.infradead.org; Thu, 17 Oct 2019 14:20:34 +0000 X-Originating-IP: 86.207.98.53 Received: from localhost (aclermont-ferrand-651-1-259-53.w86-207.abo.wanadoo.fr [86.207.98.53]) (Authenticated sender: gregory.clement@bootlin.com) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 533E220005; Thu, 17 Oct 2019 14:20:20 +0000 (UTC) From: Gregory CLEMENT To: Mark Brown , linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/7] atmel-spi: Allow using more than 4 GPIOs as CS Date: Thu, 17 Oct 2019 16:18:39 +0200 Message-Id: <20191017141846.7523-1-gregory.clement@bootlin.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191017_072031_780602_81D43D01 X-CRM114-Status: UNSURE ( 8.74 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alexandre Belloni , Gregory CLEMENT , Ludovic Desroches , Thomas Petazzoni , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org Hello, the main purpose of this series is allowing to use more than 4 GPIOs as CS. But while doing it, I also clean-up the code and the comments to match the actual support of the hardware. Thanks to this series, it is now more clear to see what can be done with CS GPIO and native CS. It is also possible to mix native and GPIO CS as expected by the SPI binding. In the end even managment of the specific use case for CS0 on AT91RM9200 has been simplified. Gregory Gregory CLEMENT (7): spi: atmel: Remove and fix erroneous comments spi: atmel: Fix CS high support spi: atmel: Configure GPIO per CS instead of by controller spi: atmel: Remove useless private field spi: atmel: Remove platform data support spi: atmel: Improve and fix GPIO CS usage spi: atmel: Improve CS0 case support on AT91RM9200 drivers/spi/Kconfig | 1 + drivers/spi/spi-atmel.c | 154 ++++++++++++++++++++++++---------------- 2 files changed, 92 insertions(+), 63 deletions(-) -- 2.23.0 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel