Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp6824025ybh; Thu, 8 Aug 2019 06:16:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqwvmW9NRKmxdNwU982QbPIUC/MWhk25sS1Ld6G1C0kgcksCKshSKgSnIAhZYaAWko2AHrIn X-Received: by 2002:a17:90a:d58c:: with SMTP id v12mr4002408pju.7.1565270198653; Thu, 08 Aug 2019 06:16:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565270198; cv=none; d=google.com; s=arc-20160816; b=xwwFuuprTwv3qM1AdeMdL6CJr0Z0Lup7zSWGxZsiGPLG+vhWMJroKX2bFi9R65jxrh fHxsWfE2N8ydvgV2REJv6fgX5zOzaVplkaP4+PX35xexwC0FGd8UxYNhh2OQOltu/Rbo fBRpg7tLHPcdalEr6cNeQgHNWMglL4sHWC/9eoHZCEwG4yWKOeGC5d0PVUng2LWfRgkQ HyyfKtpABeu4vDdOAAwGB1NhX2edMMt2zNxdhRxmrZ4vXZIncfd6lfyHXuYTRJSoLYzi Zrlntkd9jaafaftn09nz7+nKNqOAXkHgm0NPCyQCHsPVeZ+d1yIXoBPyFkwOCwttcM4+ Cs0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=E3bltavSGnKh8IsuOv5g2hpuelGe08Z6fFfSzDPb58o=; b=WbUaN8VrQEQ0MZByhyJN4a2Oo9PLteNYthsyvmw73q7kgjsfZ0t4iPAWylP1w3WhaH gH0OqwhMrs+7nkQNbfdcG0SQ3dQvxmEZd/23w8ENWNHT7fooXnO46nJuqcFQBzQqaQBu uregdgCOyDu+KDT2e9u8rotCGqa6a/X4YyNbWNIf2aqiXd0nLCK8uWUNIKcrxz+wTau6 PDh1H3IIUvSY0KQ05ir4iCW6ZVQl/BEmotmq09rdle/ljbnAQWM5eboh2TYJHLTgrQSV aZA21/BjcqFLdiipxiRKEQNVRpNklM+tmBKHkusHNufmdYgVvLffrxyT6bmMTDnaJr2h /KaQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 124si54637248pgg.581.2019.08.08.06.16.22; Thu, 08 Aug 2019 06:16:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733036AbfHHNPh (ORCPT + 99 others); Thu, 8 Aug 2019 09:15:37 -0400 Received: from 212.199.177.27.static.012.net.il ([212.199.177.27]:40654 "EHLO herzl.nuvoton.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1732990AbfHHNPg (ORCPT ); Thu, 8 Aug 2019 09:15:36 -0400 Received: from taln60.nuvoton.co.il (ntil-fw [212.199.177.25]) by herzl.nuvoton.co.il (8.13.8/8.13.8) with ESMTP id x78DEorj024395; Thu, 8 Aug 2019 16:14:50 +0300 Received: by taln60.nuvoton.co.il (Postfix, from userid 10070) id E4AFE628F1; Thu, 8 Aug 2019 16:14:49 +0300 (IDT) From: Tomer Maimon To: broonie@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, vigneshr@ti.com, bbrezillon@kernel.org, avifishman70@gmail.com, tali.perry1@gmail.com, venture@google.com, yuenn@google.com, benjaminfair@google.com Cc: linux-spi@vger.kernel.org, devicetree@vger.kernel.org, openbmc@lists.ozlabs.org, linux-kernel@vger.kernel.org, Tomer Maimon Subject: [PATCH v2 0/2] spi: add NPCM FIU controller driver Date: Thu, 8 Aug 2019 16:14:46 +0300 Message-Id: <20190808131448.349161-1-tmaimon77@gmail.com> X-Mailer: git-send-email 2.18.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch set adds Flash Interface Unit(FIU) SPI master support for the Nuvoton NPCM Baseboard Management Controller (BMC). The FIU supports single, dual or quad communication interface. the FIU controller can operate in following modes: - User Mode Access(UMA): provides flash access by using an indirect address/data mechanism. - direct rd/wr mode: maps the flash memory into the core address space. - SPI-X mode: used for an expansion bus to an ASIC or CPLD. The NPCM750/730/715/710 supports up to three FIU devices: - FIU0 supports two chip select. - FIU3 supports four chip select. - FIUX supports two chip select. The NPCM FIU driver tested on NPCM750 evaluation board. The FIU controller driver using direct map API SPI-MEM interface and tested with the latest m25p80 driver patch https://www.spinics.net/lists/linux-mtd/msg07358.html According a conversion about direct SPI-MEM API https://www.spinics.net/lists/linux-mtd/msg08225.html The m25p80 driver will merge to the spi-nor driver we need to make sure the m25p80 direct SPI-MEM will merge as well. The FIU controller driver tested with the latest spi-nor driver patch https://www.spinics.net/lists/linux-mtd/msg08472.html Changes since version 1: - Support spi-mem no data transferred option (SPI_MEM_NO_DATA) Tomer Maimon (2): dt-binding: spi: add NPCM FIU controller spi: npcm-fiu: add NPCM FIU controller driver .../bindings/spi/nuvoton,npcm-fiu.txt | 47 ++ drivers/spi/Kconfig | 10 + drivers/spi/Makefile | 1 + drivers/spi/spi-npcm-fiu.c | 761 ++++++++++++++++++ 4 files changed, 819 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/nuvoton,npcm-fiu.txt create mode 100644 drivers/spi/spi-npcm-fiu.c -- 2.18.0