From patchwork Fri Jul 27 19:53:53 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Belloni X-Patchwork-Id: 10547677 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 2A42C139A for ; Fri, 27 Jul 2018 19:54:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 19613294CF for ; Fri, 27 Jul 2018 19:54:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0D0462BB07; Fri, 27 Jul 2018 19:54:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 74BCC294CF for ; Fri, 27 Jul 2018 19:54:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389410AbeG0VSV (ORCPT ); Fri, 27 Jul 2018 17:18:21 -0400 Received: from mail.bootlin.com ([62.4.15.54]:46734 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388815AbeG0VSV (ORCPT ); Fri, 27 Jul 2018 17:18:21 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 381C42093C; Fri, 27 Jul 2018 21:54:55 +0200 (CEST) Received: from localhost (unknown [88.191.26.124]) by mail.bootlin.com (Postfix) with ESMTPSA id 07B2920908; Fri, 27 Jul 2018 21:53:59 +0200 (CEST) From: Alexandre Belloni To: Mark Brown , James Hogan Cc: Paul Burton , Andy Shevchenko , linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@linux-mips.org, Thomas Petazzoni , Allan Nielsen , Alexandre Belloni Subject: [PATCH v3 0/5] Add support for MSCC Ocelot SPI Date: Fri, 27 Jul 2018 21:53:53 +0200 Message-Id: <20180727195358.23336-1-alexandre.belloni@bootlin.com> X-Mailer: git-send-email 2.18.0 Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hello, The MSCC MIPS SoC line uses a designware IP for the SPI controller but still requires some special handling to give control of the SPI interface to the IP and also has a specific handling for the chip select. Changes in v3: - Added a patch to export dw_spi_set_cs Changes in v2: - Removed already applied patches - separated DT binding changes from the driver patch Alexandre Belloni (5): spi: dw: export dw_spi_set_cs dt-bindings: spi: snps,dw-apb-ssi: document Microsemi integration spi: dw-mmio: add MSCC Ocelot support mips: dts: mscc: Add spi on Ocelot mips: dts: mscc: enable spi and NOR flash support on ocelot PCB123 .../bindings/spi/snps,dw-apb-ssi.txt | 5 +- arch/mips/boot/dts/mscc/ocelot.dtsi | 11 +++ arch/mips/boot/dts/mscc/ocelot_pcb123.dts | 10 +++ drivers/spi/spi-dw-mmio.c | 90 +++++++++++++++++++ drivers/spi/spi-dw.c | 3 +- drivers/spi/spi-dw.h | 1 + 6 files changed, 117 insertions(+), 3 deletions(-)