Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3131391imu; Sun, 27 Jan 2019 22:31:08 -0800 (PST) X-Google-Smtp-Source: ALg8bN7A2p5uOFPm9BmmQZtXkWDmaab/LqdK2z55NhLxq7pZ/JiDqzWY91nXo0HEfhSYw7+Yuznd X-Received: by 2002:a62:18ce:: with SMTP id 197mr21428086pfy.88.1548657068772; Sun, 27 Jan 2019 22:31:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548657068; cv=none; d=google.com; s=arc-20160816; b=xJAxiKzi+10EJyG4I26M5sCI7iFixP96NSfHTOBXG0vlLRs95PjJOGKIgxP8t3RG6i dFoSbS7ASX4aHnJCEXe4raA0uwondn2v143bzK9vaQfgiKE3HntNW+kCXj7KlqB8L/qM kM9A5jEUrAVY1z7z7Ty6+TOo/U72Y2VrTdUikhkW9CMSecrz0LnJoWjpXOqZyG4uh8z2 XKgoUPzNfMvGUeZ/lojrWbCrNsNxfoCo9/3s5mcZcz+m/wi+FfIOY8irEDXes/tu3sps Rd7yz/AcGBvHF06vT4nlsog6V5S9HUe+eIFIOXhCa/ehHZugSp6IODLUh9OHQafhz6wH mRSw== 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=Vy7v2ZP54l1KmS0jq6RW/oZ13/BMJPZupA9801yehNU=; b=MoGRdS5ilYajlV/N1RJFfo1isHALKdFi5zwR1tuNEGlmCuRynEWM3WE7aH8Tl8he0W JKmxZk7aFFFmeRi900YndBXnVVteQ8zxRh6BFlZTZjn3RrfYIiJtvbhq/weCfzaq/eBy 9V7Boo9KBRqv7U04OIEMg7jYq6hl1QF+4JG2AAwzIFTRdA7xgA8QwSSKbcJPqcI9X49s qQTRQ9xq3vKURUP0VyVyuQGcLNH23zp02KWgNlT75JEpLIltBRBVc43iFCKq2Mda1bdF Lw0tesAiJMvsELS1o90HAvqeNx5qxRLHBDmoHa0cFdy1zg0njiNa/7WjyKoh//UG3mXj oPcg== 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 p3si34069606pgi.0.2019.01.27.22.30.53; Sun, 27 Jan 2019 22:31:08 -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 S1726695AbfA1Gam (ORCPT + 99 others); Mon, 28 Jan 2019 01:30:42 -0500 Received: from twhmllg4.macronix.com ([122.147.135.202]:64633 "EHLO TWHMLLG4.macronix.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726654AbfA1Gam (ORCPT ); Mon, 28 Jan 2019 01:30:42 -0500 Received: from localhost.localdomain ([172.17.195.96]) by TWHMLLG4.macronix.com with ESMTP id x0S6UHcR052474; Mon, 28 Jan 2019 14:30:17 +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, bbrezillon@kernel.org, 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 v8 0/2] spi: Add Renesas R-Car Gen3 RPC-IF SPI driver Date: Mon, 28 Jan 2019 14:49:16 +0800 Message-Id: <1548658158-5460-1-git-send-email-masonccyang@mxic.com.tw> X-Mailer: git-send-email 1.9.1 X-MAIL: TWHMLLG4.macronix.com x0S6UHcR052474 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Mark, v8 patch including: 1) Supported SoC-specific values in DTS. 2) Rename device node name as flash. v7 patch is according to Geert and Sergei's comments: 1) Add all R-Car Gen3 model in dts. 2) patch rpc-if child node search. 3) minror coding style. v6 patch is accroding to Geert, Marek and Sergei's comments: 1) spi_controller for new code. 2) "renesas,rcar-gen3-rpc" instead of "renesas,r8a77995-rpc." 3) patch external address read mode w/o u64 readq(). 4) patch dts for write buffer & drop "renesas,rpc-mode". 5) coding style and so on. v5 patch is accroding to Sergei's comments: 1) Read 6 bytes ID from Sergei's patch. 2) regmap_update_bits(). 3) C++ style comment. 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 Mason Yang (2): spi: Add Renesas R-Car Gen3 RPC-IF SPI controller driver dt-bindings: spi: Document Renesas R-Car Gen3 RPC-IF controller bindings .../devicetree/bindings/spi/spi-renesas-rpc.txt | 40 + drivers/spi/Kconfig | 6 + drivers/spi/Makefile | 1 + drivers/spi/spi-renesas-rpc.c | 804 +++++++++++++++++++++ 4 files changed, 851 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/spi-renesas-rpc.txt create mode 100644 drivers/spi/spi-renesas-rpc.c -- 1.9.1