Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp7362024ybi; Thu, 1 Aug 2019 07:06:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqyI46p/p3uKWYT/0sSmqqqXFM5MhAMKbZ+rfB5/TdZ4iAKjcpuLAiDMVtx0M6OVrWlqpVZp X-Received: by 2002:a63:5162:: with SMTP id r34mr2249491pgl.229.1564668402816; Thu, 01 Aug 2019 07:06:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564668402; cv=none; d=google.com; s=arc-20160816; b=Rv8qKmAQIspDDolEEMGDVUCEaCft0RanTFeNDzokcx7AwhesNrUGVJNDcqnhICQkQ5 VK1a3jnc3Zmh16dXEqHrVV7IiSaMOS8jTI50ESfiKt48TteJWdOTttkuW7IKpilrDn9a jDR2oS5TxAvwjvToMplSBVruG61X6+FFl37kHdlalq79bwNUHvpVvv4dYkbni3Zta5sG LX6+qMrPGNTjJS117To/I+mRWsCLr/OqU1nhzMv+IINeFjjN6Oerx2IR5tJqXkYWc5Qq 8ZE8gwoZDOMV5eGpD+YoPFm7j8UiCEacS996wQmlNroMNBJu2lH2PWF/f5kn/VWNKPYI YT4A== 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=c6be5Vo5ZSUXY7MzFweisOAujGipfoy1TLddaUGT06Y=; b=Tyrt3g4J8dJO87X8BJ0lq1yMnUfBBN5Lv2qtCd2CvHRjAYQVEubFRpBx8C/EPNXPM9 9t8hpIPo3r/hULaQDBb/SLekfhms0abuqVdHqeTMkpmtzqcvODDSrGB4p9WBqLIu6Uhq IhLj3Mg5yCoP+/QVVAy4mtBJP3uWtLr86kfjRWtsEkHmduJjpQSuGXTQKtZdj9HQyEJI h52B1TuUrMt1gyPljFLYqyuM64ES8iOWIxM2Co7WLlAphqcxTlWn8h7NwdXcj5pxI2C/ c92SfL8yyh0AGHfCw8ET4NxRxKsFripSbRhjVUDoSxNW2mDXa/bB8uChp64cFblEKJDI bZ0w== 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 n5si13738694pgq.154.2019.08.01.07.06.26; Thu, 01 Aug 2019 07:06:42 -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 S1730664AbfHAOFS (ORCPT + 99 others); Thu, 1 Aug 2019 10:05:18 -0400 Received: from 212.199.177.27.static.012.net.il ([212.199.177.27]:40364 "EHLO herzl.nuvoton.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731484AbfHAOFR (ORCPT ); Thu, 1 Aug 2019 10:05:17 -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 x71E4LrY012596; Thu, 1 Aug 2019 17:04:21 +0300 Received: by taln60.nuvoton.co.il (Postfix, from userid 10070) id 279DB62A2E; Thu, 1 Aug 2019 17:04:21 +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 v1 0/2] spi: add NPCM FIU controller driver Date: Thu, 1 Aug 2019 17:04:17 +0300 Message-Id: <20190801140419.58029-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. 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 | 760 ++++++++++++++++++ 4 files changed, 818 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/nuvoton,npcm-fiu.txt create mode 100644 drivers/spi/spi-npcm-fiu.c -- 2.18.0