Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp3998659pxb; Mon, 30 Aug 2021 16:03:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxx7kuA2f3rYnd4TSxPF/ZnDfa4NOGJk0a66KSBhZay8+RFz0xCd1Lh1G1HTEYkYqqXz+5c X-Received: by 2002:a02:860d:: with SMTP id e13mr32970jai.12.1630364604385; Mon, 30 Aug 2021 16:03:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630364604; cv=none; d=google.com; s=arc-20160816; b=ATKzeHQGd7VLuvFGtaurfiiofXP7ODMhoSxoiYYTolJ/0XSS/z0m2I4kvfDHn+z17t kAxdkPFS34kfNwtHNBVY1H6aBPtjZFMkDpfTk9L/HCmvdPo20QM+Bxa443Okvq394Jw8 6ma9MVT7aPPaYRAi/KH0cGJSvIM24xmEAGROKtp7fsK16IgsD4SWS7jLdu0ElB7VfCKm i47UVZkfEKO7cH7kuA0sLl6LlF1OrFupCKfItkE4caZGABFtHjC+BncU+9AEBgXMRSQ0 4aLnlXeqKM6dWRk9r8cvlyDTlkj3u3EVmqII3Z3gKffpJ0r25FASog+EigKAMWVZkuMq 0AHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=ixJZSCPYUqghFxgY2ACfUJu6Z0svU9uLoEDmRRvA6bc=; b=x2ZFpaOcVPNP1jbiaLl1PDwuRQSHgxP63AjL9DNh7lcgtriADISHew5zHTvHi1V2A6 mAXWxitQCVn+7l5jk0M9mnEGP7or9s0KjZpNSLiQ0ULhyes6dSamu75jeVtex+KuGhkE /PczukbirnAFAsAzyNhr0LDKbGKVjFMU91StWETvz1m5DEektkdj53nc0WbqeMnphSzb F7elsq9qEQ/OOKBD61PPOkkCYn9f/qik5/eqckLHRegDP6VRAS+iFy5P4CE8/l6VbSDm KOFl53jq8ZSeZPxUeB3IuriqMZywtQ/dX9NFfp+W6xsJDtJHejLacBSpyExtqNfQ8t6D J6ow== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n16si14520778jaf.92.2021.08.30.16.03.12; Mon, 30 Aug 2021 16:03:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238898AbhH3XDV (ORCPT + 99 others); Mon, 30 Aug 2021 19:03:21 -0400 Received: from relay12.mail.gandi.net ([217.70.178.232]:39659 "EHLO relay12.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238476AbhH3XDU (ORCPT ); Mon, 30 Aug 2021 19:03:20 -0400 Received: (Authenticated sender: contact@artur-rojek.eu) by relay12.mail.gandi.net (Postfix) with ESMTPSA id E07A0200002; Mon, 30 Aug 2021 23:02:21 +0000 (UTC) From: Artur Rojek To: Mark Brown , Rob Herring , Paul Cercueil , Thomas Bogendoerfer , Pavel Nadein Cc: Pavel Nadein , linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, Artur Rojek Subject: [5.16][PATCH 0/3] Support for Ingenic JZ47xx SPI controller Date: Tue, 31 Aug 2021 01:01:36 +0200 Message-Id: <20210830230139.21476-1-contact@artur-rojek.eu> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, This patchset introduces support for SPI controllers found in the Ingenic JZ47xx family of SoCs. Of particular note, this allows to replace GPIO backed SPI on the MIPS Creator CI20 board. Mark: Checkpatch generates a `need consistent spacing around '*'` error on this patchset, however I believe this is a false positive due to it confusing a pointer with multiplication operator inside a macro. Rob: I refrained from adding SPI pin groups into the bindings, as I felt that would be enforcing a policy (SPI signals can be multiplexed on multiple pin groups on the board, per use case). Instead, I included an example pin configuration into the relevant commit description. Other controllers already present in ci20.dts do specify their pin groups, but I think this is bad practice. Do you have particular guidelines on this? Pavel: Feel free to add your Tested-by, if you still have your CI20 setup around :) I tested this driver with two SPI mode MMC/SD card readers and also with the spi-loopback test driver. Cheers, Artur Artur Rojek (2): SPI: add Ingenic JZ47xx driver. MIPS: JZ4780: CI20: DTS: add SPI controller config Paul Cercueil (1): dt-bindings: spi: Document Ingenic SPI controller bindings .../devicetree/bindings/spi/ingenic,spi.yaml | 72 +++ arch/mips/boot/dts/ingenic/ci20.dts | 9 +- arch/mips/boot/dts/ingenic/jz4780.dtsi | 44 +- drivers/spi/Kconfig | 9 + drivers/spi/Makefile | 1 + drivers/spi/spi-ingenic.c | 482 ++++++++++++++++++ 6 files changed, 602 insertions(+), 15 deletions(-) create mode 100644 Documentation/devicetree/bindings/spi/ingenic,spi.yaml create mode 100644 drivers/spi/spi-ingenic.c -- 2.33.0