Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3324306imu; Sun, 23 Dec 2018 22:54:23 -0800 (PST) X-Google-Smtp-Source: ALg8bN4G+956Ycs5OOgE2uibhCBYyrcTAmTew2Mapsy+07944a0Fmmg+R8Pktm8G8/c8j4fmP2bj X-Received: by 2002:a63:ce50:: with SMTP id r16mr11285882pgi.217.1545634463477; Sun, 23 Dec 2018 22:54:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545634463; cv=none; d=google.com; s=arc-20160816; b=PZ85KdgPmwWb6KZ6hc//G/Slm+cba0ZtXDrz6r5ZUm4F1TQAKdw77fhig3vB8TLwX9 mNpVJBcDRDl+srtmrv0aJjIiPTNwKvtHM6YKDlxilNbLhp9s5J6HlpAKgptS92iIdS7l /PlHyvehh9ZglJKGKW7chd+DnfKajeQpZwxsMU0Elmo8NCJbfjt1L549jn1hQxTicb0/ 21cltUpeIUvZAxHbaInA9ovz61a981+OiILvMkjTLxtWIvIk8M6Ww0rLUYvn7ObUfTY9 5hDZZu+pMmN3FSqtcorT9OFUnebxnl7zEySMCNcn+gA/tm9f56IrcyhrXmqUfCvaBWPY LM4A== 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=3yDJBaQSF+v1lKpGBQmRhhvZnaxS4J2qAtfuXlRDnvU=; b=WgqUJm7TveYXsdHzawyHVfnMfCi8EehnF042W1wo7xu7sf7hIPMxRzOMtlT6m1RSOZ FmFPgAchgF4BVTeJgdneO4B26cAINvx0E3IHriROYI4tiKZr0R1gI902iAm7uw1IL/xc oQPgjW6miMIVVRqaLbOaaeraAyb0k7uKWztI/GIfdK7NbNYHpSdeL0gBXmK5KlyDNDTl NPsOxUBtvayeWJvyJSGh6AjcqCyWuVTu510/boa6mcAX8RVAIZ8KxKCZ7EFLa11CUxGo bI7rywiM7Y3MksEefQnqz9ByYK33jyTHz6eTIF4Nz2LN4+CB4I1UgOp38hXbogwyBpTp 3ZFQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v189si26069600pgb.398.2018.12.23.22.54.08; Sun, 23 Dec 2018 22:54:23 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726750AbeLXGxO (ORCPT + 99 others); Mon, 24 Dec 2018 01:53:14 -0500 Received: from twhmllg3.macronix.com ([122.147.135.201]:10572 "EHLO TWHMLLG3.macronix.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726726AbeLXGxN (ORCPT ); Mon, 24 Dec 2018 01:53:13 -0500 Received: from localhost.localdomain ([172.17.195.96]) by TWHMLLG3.macronix.com with ESMTP id wBO6qemS051271; Mon, 24 Dec 2018 14:52:40 +0800 (GMT-8) (envelope-from masonccyang@mxic.com.tw) From: Mason Yang To: broonie@kernel.org, marek.vasut@gmail.com, linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org, boris.brezillon@bootlin.com, linux-renesas-soc@vger.kernel.org, Geert Uytterhoeven , sergei.shtylyov@cogentembedded.com Cc: juliensu@mxic.com.tw, Simon Horman , zhengxunli@mxic.com.tw, Mason Yang Subject: [PATCH v4 0/2] spi: Add Renesas R-Car Gen3 RPC SPI driver Date: Mon, 24 Dec 2018 14:52:36 +0800 Message-Id: <1545634358-17485-1-git-send-email-masonccyang@mxic.com.tw> X-Mailer: git-send-email 1.9.1 X-MAIL: TWHMLLG3.macronix.com wBO6qemS051271 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Mark, This Renesas R-Car Gen3 RPC SPI driver is based on Boris's new spi-mem direct mapping read/write mode [1][2]. v4 patch is according to Sergei's comments including: 1) Drop soc_device_match() 2) Drop unused RPC registers 3) Use ilog2() instead of fls() 4) Patch read 6 bytes ID w/ one command. 5) Coding style and so on. v3 patch is according to Marek and Geert's comments including: 1) soc_device_mach() to set up RPC_PHYCNT_STRTIM. 2) get_unaligned() 3) rpc-mode for rpi-spi-flash or rpc-hyperflash. 4) coding style and so on. v2 patch including: 1) remove RPC clock enable/dis-able control, 2) patch run time PM, 3) add RPC module software reset, 4) add regmap, 5) other coding style and so on. thanks for your review. best regards, Mason [1] https://patchwork.kernel.org/patch/10670753 [2] https://patchwork.kernel.org/patch/10670747 Mason Yang (2): spi: Add Renesas R-Car Gen3 RPC SPI controller driver dt-bindings: spi: Document Renesas R-Car Gen3 RPC controller bindings .../devicetree/bindings/spi/spi-renesas-rpc.txt | 37 + drivers/spi/Kconfig | 6 + drivers/spi/Makefile | 1 + drivers/spi/spi-renesas-rpc.c | 788 +++++++++++++++++++++ 4 files changed, 832 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/spi-renesas-rpc.txt create mode 100644 drivers/spi/spi-renesas-rpc.c -- 1.9.1