From patchwork Thu Aug 27 19:02:27 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 7086761 X-Patchwork-Delegate: horms@verge.net.au Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 0B81D9F372 for ; Thu, 27 Aug 2015 19:02:40 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 248362083D for ; Thu, 27 Aug 2015 19:02:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EA45920691 for ; Thu, 27 Aug 2015 19:02:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752750AbbH0TCg (ORCPT ); Thu, 27 Aug 2015 15:02:36 -0400 Received: from baptiste.telenet-ops.be ([195.130.132.51]:51960 "EHLO baptiste.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751794AbbH0TCf (ORCPT ); Thu, 27 Aug 2015 15:02:35 -0400 Received: from ayla.of.borg ([31.5.182.137]) by baptiste.telenet-ops.be with bizsmtp id 9v2Z1r00G2yGKqv01v2Zrr; Thu, 27 Aug 2015 21:02:34 +0200 Received: from ramsan.of.borg ([192.168.97.29] helo=ramsan) by ayla.of.borg with esmtp (Exim 4.82) (envelope-from ) id 1ZV2RV-0000Ob-8A; Thu, 27 Aug 2015 21:02:33 +0200 Received: from geert by ramsan with local (Exim 4.82) (envelope-from ) id 1ZV2RX-0000NQ-Lq; Thu, 27 Aug 2015 21:02:35 +0200 From: Geert Uytterhoeven To: Kuninori Morimoto , Simon Horman , Magnus Damm Cc: linux-sh@vger.kernel.org, Geert Uytterhoeven , Koji Matsuoka Subject: [PATCH 1/5] [RFC] spi: sh-msiof: Add support for R-Car H3 Date: Thu, 27 Aug 2015 21:02:27 +0200 Message-Id: <1440702151-1406-2-git-send-email-geert+renesas@glider.be> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1440702151-1406-1-git-send-email-geert+renesas@glider.be> References: <1440702151-1406-1-git-send-email-geert+renesas@glider.be> Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add support for MSIOF in r8a7795 (R-Car H3). Signed-off-by: Geert Uytterhoeven Cc: Koji Matsuoka --- As of commit 8ed545ee4d491d6f ("spi: sh-msiof: Fix FIFO size to 64 word from 256 word") the default rx fifo size in the driver is actually 64 instead of 256 on R-Car Gen2 (and now also on R-Car Gen3), but the DT binding documentation was not updated. As the datasheet for R-Car Gen3 still states 256, and there's still some confusion of FIFO size vs. transfer size length, I think this is still an open issue. Note that the aforementioned commit has a CC to stable@vger.kernel.org... --- Documentation/devicetree/bindings/spi/sh-msiof.txt | 3 ++- drivers/spi/spi-sh-msiof.c | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/spi/sh-msiof.txt b/Documentation/devicetree/bindings/spi/sh-msiof.txt index 8f771441be60556a..29356a4c9843b743 100644 --- a/Documentation/devicetree/bindings/spi/sh-msiof.txt +++ b/Documentation/devicetree/bindings/spi/sh-msiof.txt @@ -10,6 +10,7 @@ Required properties: "renesas,msiof-r8a7792" (R-Car V2H) "renesas,msiof-r8a7793" (R-Car M2-N) "renesas,msiof-r8a7794" (R-Car E2) + "renesas,msiof-r8a7795" (R-Car H3) - reg : A list of offsets and lengths of the register sets for the device. If only one register set is present, it is to be used @@ -51,7 +52,7 @@ Optional properties, deprecated for soctype-specific bindings: - renesas,tx-fifo-size : Overrides the default tx fifo size given in words (default is 64) - renesas,rx-fifo-size : Overrides the default rx fifo size given in words - (default is 64, or 256 on R-Car Gen2) + (default is 64, or 256 on R-Car Gen2/Gen3) Pinctrl properties might be needed, too. See Documentation/devicetree/bindings/pinctrl/renesas,*. diff --git a/drivers/spi/spi-sh-msiof.c b/drivers/spi/spi-sh-msiof.c index a7934ab00b96505f..3a4bc04a61b7b513 100644 --- a/drivers/spi/spi-sh-msiof.c +++ b/drivers/spi/spi-sh-msiof.c @@ -978,6 +978,7 @@ static const struct of_device_id sh_msiof_match[] = { { .compatible = "renesas,msiof-r8a7792", .data = &r8a779x_data }, { .compatible = "renesas,msiof-r8a7793", .data = &r8a779x_data }, { .compatible = "renesas,msiof-r8a7794", .data = &r8a779x_data }, + { .compatible = "renesas,msiof-r8a7795", .data = &r8a779x_data }, {}, }; MODULE_DEVICE_TABLE(of, sh_msiof_match);