Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp6710646imu; Mon, 3 Dec 2018 01:18:46 -0800 (PST) X-Google-Smtp-Source: AFSGD/UpS15rHqVwY5VrtoZNmribmszdXgXwbrG5j0inA6EjIMdBHLvv7SWUfFav0q1skyYj3z75 X-Received: by 2002:a62:5884:: with SMTP id m126mr15054604pfb.177.1543828726718; Mon, 03 Dec 2018 01:18:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543828726; cv=none; d=google.com; s=arc-20160816; b=wgs3cnkKc7qL9PI6WkE+tlEpPMRpGUgpIPMExC0yS9+vLdCa56i7gD1BlYqmlj05/n OjaOpcvN0BV796j8Jm8tuB30VKTNFPcPTMh5r5rmZWD1MoulokgvEri+thCR5vR34zSU 7knYAPJJjv4pV7bBuW+HKemrZdxPcVflO+m7fnZed+By8nBzNUFwj2oXtzjfYIb3wt1G RWRgbQqVuu4WS9r6fXz1aMiuEJejt48u31Pry4Do/pAhX3dhpg6RAE/h1L+83LKUtFC+ EGhaoapS5uVta+8dNU45gXMdfHBsNOKteLTlbZ1w/rqK0uTUOq68uH1LF6TXFvzjDgcI FPOQ== 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=4lOTb2ODUdzJEvdvuAOeDHYL8h9ANf1wzlbjT9WluBw=; b=OD8WcHLFnsBJeVRSNXgj+cxe7pJkEo7b2743xxmbxSdgetlIGs/dkOTi9zQt9Oahd6 RONXyUFNLdKJDqpAKZXn2nbY8B3slHzIVessADx4lEWiyC9xGhU+CdkZ4YqcukrA9Xn4 8wISMrvPsG/ZgN9jixp2g1EIHM8sTNjcBgwbBHSf25jmc2Zd6nDMs0RKeUr9RJ86aNno ORDuKxIkL+NeNM5t5CqnmNqfiv/2TMoL2DEZIjHHzKPTQSrmL8UoWz1nIMyjwzcpBCYC epriNJbD9IbUPejB2MY7HKD8wdXQj5kuTdyuf1vIGJcOUMVdsiXLpEtsUQYJdlSoxEWj sqQA== 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 x5si11081026pga.440.2018.12.03.01.18.31; Mon, 03 Dec 2018 01:18:46 -0800 (PST) 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 S1725959AbeLCJQk (ORCPT + 99 others); Mon, 3 Dec 2018 04:16:40 -0500 Received: from 212.199.177.27.static.012.net.il ([212.199.177.27]:55757 "EHLO herzl.nuvoton.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725872AbeLCJQk (ORCPT ); Mon, 3 Dec 2018 04:16:40 -0500 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 wB38ixbo010629; Mon, 3 Dec 2018 10:45:00 +0200 Received: by taln60.nuvoton.co.il (Postfix, from userid 10070) id F13A062DA6; Mon, 3 Dec 2018 11:14:57 +0200 (IST) From: Tomer Maimon To: dwmw2@infradead.org, computersforpeace@gmail.com, boris.brezillon@bootlin.com, marek.vasut@gmail.com, richard@nod.at, robh+dt@kernel.org, mark.rutland@arm.com, yuenn@google.com, venture@google.com, brendanhiggins@google.com, avifishman70@gmail.com, joel@jms.id.au Cc: linux-mtd@lists.infradead.org, openbmc@lists.ozlabs.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, Tomer Maimon Subject: [PATCH v1 0/2] SPI-NOR add NPCM FIU controller driver Date: Mon, 3 Dec 2018 11:14:54 +0200 Message-Id: <20181203091456.454030-1-tmaimon77@gmail.com> X-Mailer: git-send-email 2.14.1 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-NOR 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. Tomer Maimon (2): dt-binding: mtd: add NPCM FIU controller mtd: spi-nor: add NPCM FIU controller driver Documentation/devicetree/bindings/mtd/npcm-fiu.txt | 64 ++ drivers/mtd/spi-nor/Kconfig | 8 + drivers/mtd/spi-nor/Makefile | 1 + drivers/mtd/spi-nor/npcm-fiu.c | 930 +++++++++++++++++++++ 4 files changed, 1003 insertions(+) create mode 100644 Documentation/devicetree/bindings/mtd/npcm-fiu.txt create mode 100644 drivers/mtd/spi-nor/npcm-fiu.c -- 2.14.1