From patchwork Fri Sep 18 01:56:55 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 7212391 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id A6C5CBEEC1 for ; Fri, 18 Sep 2015 01:57:01 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BCA01206B5 for ; Fri, 18 Sep 2015 01:57:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B8FD02062E for ; Fri, 18 Sep 2015 01:56:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752415AbbIRB47 (ORCPT ); Thu, 17 Sep 2015 21:56:59 -0400 Received: from relmlor2.renesas.com ([210.160.252.172]:12645 "EHLO relmlie1.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752043AbbIRB46 (ORCPT ); Thu, 17 Sep 2015 21:56:58 -0400 Received: from unknown (HELO relmlir2.idc.renesas.com) ([10.200.68.152]) by relmlie1.idc.renesas.com with ESMTP; 18 Sep 2015 10:56:57 +0900 Received: from relmlac1.idc.renesas.com (relmlac1.idc.renesas.com [10.200.69.21]) by relmlir2.idc.renesas.com (Postfix) with ESMTP id 8781743B84; Fri, 18 Sep 2015 10:56:57 +0900 (JST) Received: by relmlac1.idc.renesas.com (Postfix, from userid 0) id 6834F8002E; Fri, 18 Sep 2015 10:56:57 +0900 (JST) Received: from relmlac1.idc.renesas.com (localhost [127.0.0.1]) by relmlac1.idc.renesas.com (Postfix) with ESMTP id 60C728002D; Fri, 18 Sep 2015 10:56:57 +0900 (JST) Received: from relmlii1.idc.renesas.com [10.200.68.65] by relmlac1.idc.renesas.com with ESMTP id LAF04724; Fri, 18 Sep 2015 10:56:57 +0900 X-IronPort-AV: E=Sophos;i="5.17,550,1437404400"; d="scan'";a="194700021" Received: from mail-hk2apc01lp0216.outbound.protection.outlook.com (HELO APC01-HK2-obe.outbound.protection.outlook.com) ([65.55.88.216]) by relmlii1.idc.renesas.com with ESMTP/TLS/AES256-SHA; 18 Sep 2015 10:56:56 +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 SG2PR06MB0602.apcprd06.prod.outlook.com (10.161.10.152) with Microsoft SMTP Server (TLS) id 15.1.268.17; Fri, 18 Sep 2015 01:56:55 +0000 Message-ID: <87k2ro1ok8.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto Subject: [PATCH 2/2 v3] i2c: sh_mobile: add support for r8a7795 (R-Car H3) User-Agent: Wanderlust/2.15.9 Emacs/24.3 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") To: Simon CC: Magnus , Linux-SH In-Reply-To: <87mvwk1om3.wl%kuninori.morimoto.gx@renesas.com> References: <87twqs1osz.wl%kuninori.morimoto.gx@renesas.com> <87mvwk1om3.wl%kuninori.morimoto.gx@renesas.com> Date: Fri, 18 Sep 2015 01:56:55 +0000 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: TY1PR0201CA0008.apcprd02.prod.outlook.com (25.164.90.146) To SG2PR06MB0602.apcprd06.prod.outlook.com (25.161.10.152) X-Microsoft-Exchange-Diagnostics: 1; SG2PR06MB0602; 2:us70ADXPL8vIxDO6jmwtv3lKooz3wWtFYlzuyr/p3jKfpWAFp2u4UFe1NEPI2J4Pxwy5IHyiBeGxfB2m98IUPPmLult9gnqwych8huIqIrLwVhlsq2/+Ya/mNE1SamA0rowfGm62q96W+ldLYTHLAMI8kai9+9if7qxm1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gIrEdF33+dlX7YFlzOkZroXs437PxxxfXOUAxFGh+NZRfFVRDTjYRO1Jg44j4d2o4YiUCWI2YfrBBPf7e+lwM5eGar56yxcoyq53B7bFH5LBsKlwSa/JNEOCxA/gxlOqPpKIoWzPtQmwGGhP0o9r4NkO7Eoaj2EWh82K6uHXc+AhkcOFPv5aeAS78bTzfC3ZvrUQ3fQK3ZvmxqgIoT77VkUyZgLqHyaG7fihon4C7NQa8F5m+Uo7NTGizU68PFAEeev55qvP8CTMnVyQq6CYUEHkg+ldMNy1DoJIAcPg1TAOZ+bZzdi5qlpuQexqjG49x9q2X66v5rHIexC59y2fpA/vcks+iFD6tg8+mb6Zx7LY7Ij X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5005006)(520058)(520078)(8121501046)(520075)(3002001); SRVR:SG2PR06MB0602; BCL:0; PCL:0; RULEID:; SRVR:SG2PR06MB0602; X-Forefront-PRVS: 0703B549E4 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6009001)(189002)(199003)(19580395003)(110136002)(122386002)(77096005)(5001860100001)(189998001)(46406003)(19580405001)(76176999)(5001960100002)(69596002)(33646002)(5007970100001)(86362001)(23726002)(54356999)(62966003)(50466002)(50986999)(46102003)(36756003)(5004730100002)(64706001)(81156007)(66066001)(229853001)(42186005)(2950100001)(101416001)(105586002)(87976001)(77156002)(68736005)(53416004)(83506001)(92566002)(97736004)(106356001)(4001540100001)(4001350100001)(40100003)(47776003)(5001830100001); DIR:OUT; SFP:1102; SCL:1; SRVR:SG2PR06MB0602; H:morimoto-PC.renesas.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SG2PR06MB0602; 23:3Wj2N5ajjb4G24imI9TxDkQYgHL1rNvJPi7rsvi7p?= =?us-ascii?Q?YX+zxHOzt2w7R9dVBC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=?us-ascii?Q?AV0SqwXamZ71ZLdBe6QpMGILldhfTn0ThKWKGJ8wBqpzJbCZN7CwtWLxVjhP?= =?us-ascii?Q?IKu9l+cOeltmezhP+OMPqwvdd9aaFQsEfbMJE/Me+VHDvNQObJ5NVdFGWayu?= =?us-ascii?Q?aQ9w5LWgJOZh4BzwcDpo4t+pLOUACnmuguOGOONBq7J6MvniC1JII5xl9Rpg?= =?us-ascii?Q?oG12YWOogBCuXrB7cWHCQZH1Qo777l0PJubB1zDytkKCgAi0ruJqB3T3MpCZ?= =?us-ascii?Q?6o0HS6cqaO+l3M+IgUjv+Iu8VOUYwE7iAqUt9Wksys0ZToQ1Wg0nO6ZZvvUM?= =?us-ascii?Q?932aPNMsh/k++Dr1Zg=3D?= X-Microsoft-Exchange-Diagnostics: 1; SG2PR06MB0602; 5:ZfysJ4NhpGZY13kOLlLZwIbDFj7GaXSqyERdtmOi6WiwhCg/SVjuiNHKz/yO0bKevZxjN6XHIWoxfj+Vx5X8a7uhGb5Grzu60vZfUwb3AJAcS0UUBTvYEzHOBnSDd1BQI3busRPqF+3h9kQnlKq7/Q==; 24:2pbRtGC+hhR1+MK8HcpmnbZc2rlXhup2lhfIuGU+hgwH2KvZccajW066HejvrCweQM52B3jehQJdNB6+7fdJu471ludD6iog0k8srqB7ST0=; 20:xWoYa3bOwx2IaDWuqCvl8nNEZxg2b1EwL8MuaZNJ+cyRaArfqNQbPOAqZg/rYyY5r/gSBsc9FDaYs2ATRFCVQocVfIGEzRLvVVkzaOterJf7YOz75i+Eyl8g4mbtxb2xWEDvAuPbUKdXhbh3IgWjFrFAIEL5g8YHB+tIbyGJ7s4= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Sep 2015 01:56:55.1505 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2PR06MB0602 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. It is compitable to Gen2 SoCs, so reuse the settings. Signed-off-by: Wolfram Sang Signed-off-by: Kuninori Morimoto Acked-by: Geert Uytterhoeven --- v2 -> v3 - add Geert's Acked-by Documentation/devicetree/bindings/i2c/i2c-sh_mobile.txt | 1 + drivers/i2c/busses/i2c-sh_mobile.c | 1 + 2 files changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/i2c/i2c-sh_mobile.txt b/Documentation/devicetree/bindings/i2c/i2c-sh_mobile.txt index 2bfc6e7..214f94c 100644 --- a/Documentation/devicetree/bindings/i2c/i2c-sh_mobile.txt +++ b/Documentation/devicetree/bindings/i2c/i2c-sh_mobile.txt @@ -10,6 +10,7 @@ Required properties: - "renesas,iic-r8a7792" (R-Car V2H) - "renesas,iic-r8a7793" (R-Car M2-N) - "renesas,iic-r8a7794" (R-Car E2) + - "renesas,iic-r8a7795" (R-Car H3) - "renesas,iic-sh73a0" (SH-Mobile AG5) - reg : address start and address range size of device - interrupts : interrupt of device diff --git a/drivers/i2c/busses/i2c-sh_mobile.c b/drivers/i2c/busses/i2c-sh_mobile.c index 47659a9..7d2bd3e 100644 --- a/drivers/i2c/busses/i2c-sh_mobile.c +++ b/drivers/i2c/busses/i2c-sh_mobile.c @@ -836,6 +836,7 @@ static const struct of_device_id sh_mobile_i2c_dt_ids[] = { { .compatible = "renesas,iic-r8a7792", .data = &fast_clock_dt_config }, { .compatible = "renesas,iic-r8a7793", .data = &fast_clock_dt_config }, { .compatible = "renesas,iic-r8a7794", .data = &fast_clock_dt_config }, + { .compatible = "renesas,iic-r8a7795", .data = &fast_clock_dt_config }, { .compatible = "renesas,iic-sh73a0", .data = &fast_clock_dt_config }, {}, };