From patchwork Thu Sep 17 04:20:06 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 7201791 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 254699F859 for ; Thu, 17 Sep 2015 04:20:36 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 407AD208F4 for ; Thu, 17 Sep 2015 04:20:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EBB3C208F6 for ; Thu, 17 Sep 2015 04:20:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751418AbbIQEUb (ORCPT ); Thu, 17 Sep 2015 00:20:31 -0400 Received: from relmlor4.renesas.com ([210.160.252.174]:29624 "EHLO relmlie3.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751001AbbIQEUJ (ORCPT ); Thu, 17 Sep 2015 00:20:09 -0400 Received: from unknown (HELO relmlir3.idc.renesas.com) ([10.200.68.153]) by relmlie3.idc.renesas.com with ESMTP; 17 Sep 2015 13:20:08 +0900 Received: from relmlac3.idc.renesas.com (relmlac3.idc.renesas.com [10.200.69.23]) by relmlir3.idc.renesas.com (Postfix) with ESMTP id 6BD0C40F62; Thu, 17 Sep 2015 13:20:08 +0900 (JST) Received: by relmlac3.idc.renesas.com (Postfix, from userid 0) id 63EDA1800A; Thu, 17 Sep 2015 13:20:08 +0900 (JST) Received: from relmlac3.idc.renesas.com (localhost [127.0.0.1]) by relmlac3.idc.renesas.com (Postfix) with ESMTP id 5CB8518070; Thu, 17 Sep 2015 13:20:08 +0900 (JST) Received: from relmlii2.idc.renesas.com [10.200.68.66] by relmlac3.idc.renesas.com with ESMTP id PAB08564; Thu, 17 Sep 2015 13:20:08 +0900 X-IronPort-AV: E=Sophos;i="5.17,543,1437404400"; d="scan'";a="195829262" Received: from mail-hk2apc01lp0212.outbound.protection.outlook.com (HELO APC01-HK2-obe.outbound.protection.outlook.com) ([65.55.88.212]) by relmlii2.idc.renesas.com with ESMTP/TLS/AES256-SHA; 17 Sep 2015 13:20:07 +0900 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=kuninori.morimoto.gx@renesas.com; Received: from morimoto-PC.renesas.com (211.11.155.144) by HKXPR06MB0597.apcprd06.prod.outlook.com (10.161.181.146) with Microsoft SMTP Server (TLS) id 15.1.274.16; Thu, 17 Sep 2015 04:20:06 +0000 Message-ID: <87twqt7kav.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 01/20] i2c: rcar: add support for r8a7795 (R-Car H3) User-Agent: Wanderlust/2.15.9 Emacs/24.3 Mule/6.0 To: Simon , Magnus , Linux-SH In-Reply-To: <87vbb97kci.wl%kuninori.morimoto.gx@renesas.com> References: <87vbb97kci.wl%kuninori.morimoto.gx@renesas.com> MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Date: Thu, 17 Sep 2015 04:20:06 +0000 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: OS1PR01CA0011.jpnprd01.prod.outlook.com (25.161.225.149) To HKXPR06MB0597.apcprd06.prod.outlook.com (25.161.181.146) X-Microsoft-Exchange-Diagnostics: 1; HKXPR06MB0597; 2:qELPLFozYCJyhIc3hNHm50dfsOGmolK43b9DwIVbdceuJj63K3nP3fxWNaX/QEgJDljaV5AM82pyciWWWeaeCUXqaH0xcdzcVOv6qNpC/GtlXQlvTPd5cfJM3fDNZa3tf8qnkkD9Tm5QbV83l8gCqWpCZx4fOIHkt+krtNZ/hC0=; 3:HCcybSAsuWaRpI0x7VesJ3u0w857VDAdTJ1pi/1svIKcPwnZW67w/1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N1TEUoo7kEFitBlVQKIOLGf+H9sVNQyKlyI2nHk+r7f7ggp6mTHr8GI6zbSsKYuyWtrpZX7aRXuqVMQKODyd+qBgDAoC1WW9vOgbE0XuOhZaJP1D8tuV3krWD7IJaESLX2LbiZtTbeWVItwYVSk/11qk7KnYc60a5/MnviT2ng7PIVtN15O6hiePLhRh2zWclTzwNWpzktPh4/GhWU52SveKUY9IW23HTZrD8ZPgFWc6qYWatR2FZWcrjnbwc3oxYSiAw== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(520078)(5005006)(8121501046)(3002001); SRVR:HKXPR06MB0597; BCL:0; PCL:0; RULEID:; SRVR:HKXPR06MB0597; X-Forefront-PRVS: 07025866F6 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6009001)(189002)(199003)(68736005)(33646002)(2950100001)(92566002)(50986999)(77096005)(50466002)(46406003)(189998001)(5007970100001)(46102003)(229853001)(54356999)(87976001)(107886002)(19580395003)(5004730100002)(5001960100002)(19580405001)(5001860100001)(69596002)(76176999)(122386002)(42186005)(5001770100001)(64706001)(83506001)(47776003)(106356001)(97736004)(77156002)(5001830100001)(101416001)(62966003)(105586002)(86362001)(4001540100001)(66066001)(81156007)(4001350100001)(40100003)(36756003)(23726002)(53416004); DIR:OUT; SFP:1102; SCL:1; SRVR:HKXPR06MB0597; H:morimoto-PC.renesas.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HKXPR06MB0597; 23:mHgFc9DK9RcOt76jLVuhkc1Hfr7BynQXXN2+R8CWl?= =?us-ascii?Q?X76My1/LYC7E4qjMJ56dNpNCireDZKyC2j/Tkj3IoAYhJwiPswbjIFbSWtMc?= =?us-ascii?Q?jvls9pAQSg91bMa0Ab8Y5jEoVDX+cMD2aErNsSvL+dyOoOjG8sLuDppXjXZ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iR4B8aKKbja8t0+VmBi7dGXbuVXa/siwi?= =?us-ascii?Q?+zl/uNyURHXyFGv8B+CD9U17xt9Q2VkA2+z/G/QBDobG1/gBWYttutybOwrB?= =?us-ascii?Q?QJCwWr5r9rFmQLlk11PwbMWnr+8Kp4jSLdypSdRH//JGlEKPVviZ2YLS3kgZ?= =?us-ascii?Q?2KoeNSNj1GwI9c2Hy2aMxExq4SB131wXsHbmsQDJRuXRaIog8o3K1gWNW2OI?= =?us-ascii?Q?IAdDWKw5J7RinFZkihIQ9MTM/SFQLGcpK45EV/k?= X-Microsoft-Exchange-Diagnostics: 1; HKXPR06MB0597; 5:6doEWHlOHevCtfheUDZcdUW5uDuDQa5Kqg9iR2cxHbnGzjPWjGXuTQpneRyZ+sFA/ZY7xZKDHEmoJYntcSrcraHzGV9P5LoNRlozQH6zSYs97IDNRnIXXjZKIZ/2KNk6Mjbh/cMZ3kuu2mu/Rs+prg==; 24:MQjrvF3WXjWiG0mL+4QjXPx/mBUYr+M3Y09rgXO/9ZaXpTzEH3/mC6BBwoIKuQWP06pY9TXgX/dLyYShSBxQp2b4hEKa8BoYC3U82EJ4O5Y=; 20:TF/Qh0bgUV3bY6xg6Umh64z+anccN8l5pMkGkDNV7hdvHpn6nKCMnLiSVFToGXyqOKrkj54jgLyjeYetxj+9g200I/8x4WW5qhn9C/KuuXmFQWzJSoRBoEyfu+CnDT5Wg6oXGKYyaBYn21V9GNZCxnLPyOOZ2YOsFkPD/RGWinw= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Sep 2015 04:20:06.4990 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: HKXPR06MB0597 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_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 From: Wolfram Sang Enable the I2C core for this SoC. I add a new type because this version has new features (e.g. DMA) which will be added somewhen later. Signed-off-by: Wolfram Sang Signed-off-by: Kuninori Morimoto Acked-by: Geert Uytterhoeven --- Documentation/devicetree/bindings/i2c/i2c-rcar.txt | 1 + drivers/i2c/busses/i2c-rcar.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/Documentation/devicetree/bindings/i2c/i2c-rcar.txt b/Documentation/devicetree/bindings/i2c/i2c-rcar.txt index 16b3e07..ea406eb2 100644 --- a/Documentation/devicetree/bindings/i2c/i2c-rcar.txt +++ b/Documentation/devicetree/bindings/i2c/i2c-rcar.txt @@ -10,6 +10,7 @@ Required properties: "renesas,i2c-r8a7792" "renesas,i2c-r8a7793" "renesas,i2c-r8a7794" + "renesas,i2c-r8a7795" - reg: physical base address of the controller and length of memory mapped region. - interrupts: interrupt specifier. diff --git a/drivers/i2c/busses/i2c-rcar.c b/drivers/i2c/busses/i2c-rcar.c index d8361da..3e12565 100644 --- a/drivers/i2c/busses/i2c-rcar.c +++ b/drivers/i2c/busses/i2c-rcar.c @@ -103,6 +103,7 @@ enum rcar_i2c_type { I2C_RCAR_GEN1, I2C_RCAR_GEN2, + I2C_RCAR_GEN3, }; struct rcar_i2c_priv { @@ -178,6 +179,7 @@ static int rcar_i2c_clock_calculate(struct rcar_i2c_priv *priv, cdf_width = 2; break; case I2C_RCAR_GEN2: + case I2C_RCAR_GEN3: cdf_width = 3; break; default: @@ -625,6 +627,7 @@ static const struct of_device_id rcar_i2c_dt_ids[] = { { .compatible = "renesas,i2c-r8a7792", .data = (void *)I2C_RCAR_GEN2 }, { .compatible = "renesas,i2c-r8a7793", .data = (void *)I2C_RCAR_GEN2 }, { .compatible = "renesas,i2c-r8a7794", .data = (void *)I2C_RCAR_GEN2 }, + { .compatible = "renesas,i2c-r8a7795", .data = (void *)I2C_RCAR_GEN3 }, {}, }; MODULE_DEVICE_TABLE(of, rcar_i2c_dt_ids);