From patchwork Tue Sep 29 09:21:19 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoshihiro Shimoda X-Patchwork-Id: 7284341 X-Patchwork-Delegate: geert@linux-m68k.org 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 6D0AC9F32B for ; Tue, 29 Sep 2015 09:21:54 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 80110206D0 for ; Tue, 29 Sep 2015 09:21:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 93EB6206CC for ; Tue, 29 Sep 2015 09:21:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933782AbbI2JVv (ORCPT ); Tue, 29 Sep 2015 05:21:51 -0400 Received: from relmlor3.renesas.com ([210.160.252.173]:24665 "EHLO relmlie2.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S933513AbbI2JVs (ORCPT ); Tue, 29 Sep 2015 05:21:48 -0400 Received: from unknown (HELO relmlir4.idc.renesas.com) ([10.200.68.154]) by relmlie2.idc.renesas.com with ESMTP; 29 Sep 2015 18:21:46 +0900 Received: from relmlac4.idc.renesas.com (relmlac4.idc.renesas.com [10.200.69.24]) by relmlir4.idc.renesas.com (Postfix) with ESMTP id 5043841C6C; Tue, 29 Sep 2015 18:21:45 +0900 (JST) Received: by relmlac4.idc.renesas.com (Postfix, from userid 0) id 48B22480A4; Tue, 29 Sep 2015 18:21:45 +0900 (JST) Received: from relmlac4.idc.renesas.com (localhost [127.0.0.1]) by relmlac4.idc.renesas.com (Postfix) with ESMTP id 43C2248014; Tue, 29 Sep 2015 18:21:45 +0900 (JST) Received: from relmlii1.idc.renesas.com [10.200.68.65] by relmlac4.idc.renesas.com with ESMTP id UAQ01070; Tue, 29 Sep 2015 18:21:45 +0900 X-IronPort-AV: E=Sophos;i="5.17,607,1437404400"; d="scan'";a="195330664" Received: from mail-sg2apc01lp0244.outbound.protection.outlook.com (HELO APC01-SG2-obe.outbound.protection.outlook.com) ([65.55.88.244]) by relmlii1.idc.renesas.com with ESMTP/TLS/AES256-SHA; 29 Sep 2015 18:21:43 +0900 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=<>; Received: from localhost (211.11.155.144) by HK2PR06MB0915.apcprd06.prod.outlook.com (10.162.246.30) with Microsoft SMTP Server (TLS) id 15.1.280.20; Tue, 29 Sep 2015 09:21:41 +0000 From: Yoshihiro Shimoda To: , , , , , , CC: , , , Yoshihiro Shimoda Subject: [PATCH v2 2/2] usb: renesas_usbhs: Add support for R-Car H3 Date: Tue, 29 Sep 2015 18:21:19 +0900 Message-ID: <1443518479-2864-3-git-send-email-yoshihiro.shimoda.uh@renesas.com> X-Mailer: git-send-email 1.9.4.msysgit.1 In-Reply-To: <1443518479-2864-1-git-send-email-yoshihiro.shimoda.uh@renesas.com> References: <1443518479-2864-1-git-send-email-yoshihiro.shimoda.uh@renesas.com> MIME-Version: 1.0 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: OS1PR01CA0020.jpnprd01.prod.outlook.com (25.161.225.158) To HK2PR06MB0915.apcprd06.prod.outlook.com (25.162.246.30) X-Microsoft-Exchange-Diagnostics: 1; HK2PR06MB0915; 2:D1DmcYztBRlJNRvD1yLT96r+sVNmTGo71Hl/TAfKkU4EhLM2lk2s1JW8Z+9YI1UrGqUpgKYtIqOs/Ifg3fFjLUPF2kQlgFog6WutIBk7Fd1Sx0krwIMzM/Zlx6bdzTyeBggZRiEdEZkQflXvnH/e904YSzj7qWUGEtwrJujgBRE=; 3:3hapeZ8rWZw1eNgLymlWC4+5FXIeUSJFK1bCq1jRQQl0srBqF4/HRr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1Xk+IT4WucJj+ti4HfV+YFPZYmQthztxhyMkJDZOv6KON54VpBMAVxPEVNoWOTnXAAYpQQzIapgcGJgL7fhQU8BbFw54qPHnv6c7ccCBnZ9p3gkALu7LuNzESqkOI1eocL6EvmkSaO2m0xTBis5Q4d/bs6kfQpi943unbPhaMBzFS7atBGRiIF5yDJYcSvuFqyuGv5qVVX281POy9ABxrPB1YZx2+h/RPMNJKbCZWpZRJP3jrNQ4AR3fplXsyJfvfs/ytld2qDtD7BWrI= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(520078)(5005006)(3002001); SRVR:HK2PR06MB0915; BCL:0; PCL:0; RULEID:; SRVR:HK2PR06MB0915; X-Forefront-PRVS: 0714841678 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6009001)(6069001)(199003)(189002)(42382002)(33646002)(5001770100001)(5001830100001)(97736004)(19580395003)(92566002)(81156007)(87976001)(19580405001)(122386002)(2950100001)(40100003)(5004730100002)(4001540100001)(5007970100001)(47776003)(66066001)(64706001)(42186005)(48376002)(5003940100001)(76506005)(189998001)(76176999)(101416001)(62966003)(50466002)(50226001)(50986999)(5001960100002)(46102003)(105586002)(5001860100001)(77096005)(36756003)(77156002)(68736005)(106356001)(229853001)(107886002)(78352002)(4001430100001); DIR:OUT; SFP:1102; SCL:1; SRVR:HK2PR06MB0915; H:localhost; FPR:; SPF:None; PTR:InfoNoRecords; A:0; MX:0; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HK2PR06MB0915; 23:js2OD842NmV2shAdch+rZIB8U+FopJzDS5oB/+h/h?= =?us-ascii?Q?d1qpO3Cmjkv+OF+sOOljD9q+wulOtDeF6btU0QWNhCsJWze2RqgAB0kPs6i9?= =?us-ascii?Q?s9uO3+U5oKGX2RnbL4SWlJ106q3SQk6Of0g+9dpAl7Iw+s17a4RwL7V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y9k2BqB3W2iRW9IKJOuCWb4HpNBMdlhkFGr9?= =?us-ascii?Q?GRqPNOa4Zzsd3AhIk3C10gk8bKazh5qkBbOkrSeQLH76JSrxn7D9apbabuoB?= =?us-ascii?Q?z04IfckvIk+ENv9dm3IXMtgyQQQFc0iB90cA/BcaI5/jvtM/CQSmoT7mXBkh?= =?us-ascii?Q?h2rbHQokHfvAzTLPuw+D2tXEWcvrkDAWBNp2E9lYC+dVZHAzaGAPJowrF+72?= =?us-ascii?Q?Id6maT7WiJDRdZuanJcWzbWzXJ8An4QBKMV+zl+?= X-Microsoft-Exchange-Diagnostics: 1; HK2PR06MB0915; 5:l2p/vB9bekJPFCedr+XDv6aG6KC+ZW+Mdo7mjFJTPMjbHscqa6RpQF1iwNSvVS9X+qv4apA7xX3TqVJ/jYng15DvZp3vKYuvJnwLhqHbQt7c8WVTSkIMpq5gRBol0acDOrsA49B+ycxRF7rrC35D3g==; 24:09MhLB5xVNOnXcfLeuQ2ho+fbUQ8ZYKiKQXi76730vKjulcbhHTE2TdawuowuM5S6skFQCHiWVs9mRmIKTDJudR4uijEfZDwB4j5rKS/OOU=; 20:YFNe7oG8F70D6ujEUevTaL4TPPxaGOev+U/YBVYvW5CkD8SRgUt01O2Sfs6hP07H+NarC0rVCieO8cNtUid+YxwdA+jQbfCZdZzjeuK+SdhK6NWJEZpgQkUro1upnT/uSMt0adqmpf+tj92pz4pnypNxyAdipTQM/VQrHZoxXA4= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Sep 2015 09:21:41.9794 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: HK2PR06MB0915 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-4.1 required=5.0 tests=AXB_X_OUTLOOKPROT_ENVSDR, 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 This patch adds a compatible string to support for R-Car H3. Since the HS-USB controller of R-Car H3 is almost the same specification with R-Car Gen2 (these have 16 pipes and usb-dmac), this patch sets the "type" of renesas_usbhs_driver_param to USBHS_TYPE_RCAR_GEN2. Signed-off-by: Yoshihiro Shimoda Acked-by: Geert Uytterhoeven --- Documentation/devicetree/bindings/usb/renesas_usbhs.txt | 1 + drivers/usb/renesas_usbhs/common.c | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/usb/renesas_usbhs.txt b/Documentation/devicetree/bindings/usb/renesas_usbhs.txt index 64a4ca6..7d48f63 100644 --- a/Documentation/devicetree/bindings/usb/renesas_usbhs.txt +++ b/Documentation/devicetree/bindings/usb/renesas_usbhs.txt @@ -5,6 +5,7 @@ Required properties: - "renesas,usbhs-r8a7790" - "renesas,usbhs-r8a7791" - "renesas,usbhs-r8a7794" + - "renesas,usbhs-r8a7795" - reg: Base address and length of the register for the USBHS - interrupts: Interrupt specifier for the USBHS - clocks: A list of phandle + clock specifier pairs diff --git a/drivers/usb/renesas_usbhs/common.c b/drivers/usb/renesas_usbhs/common.c index 0ce398c..d82fa36 100644 --- a/drivers/usb/renesas_usbhs/common.c +++ b/drivers/usb/renesas_usbhs/common.c @@ -476,6 +476,11 @@ static const struct of_device_id usbhs_of_match[] = { .compatible = "renesas,usbhs-r8a7794", .data = (void *)USBHS_TYPE_RCAR_GEN2, }, + { + /* Gen3 is compatible with Gen2 */ + .compatible = "renesas,usbhs-r8a7795", + .data = (void *)USBHS_TYPE_RCAR_GEN2, + }, { }, }; MODULE_DEVICE_TABLE(of, usbhs_of_match);