From patchwork Tue Oct 2 11:58:27 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoshihiro Shimoda X-Patchwork-Id: 10623511 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 4A82C14BD for ; Tue, 2 Oct 2018 12:00:33 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 401F828879 for ; Tue, 2 Oct 2018 12:00:33 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3E05F28896; Tue, 2 Oct 2018 12:00:33 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DBA9628879 for ; Tue, 2 Oct 2018 12:00:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727649AbeJBSn2 (ORCPT ); Tue, 2 Oct 2018 14:43:28 -0400 Received: from relmlor4.renesas.com ([210.160.252.174]:40665 "EHLO relmlie3.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727635AbeJBSn2 (ORCPT ); Tue, 2 Oct 2018 14:43:28 -0400 Received: from unknown (HELO relmlir3.idc.renesas.com) ([10.200.68.153]) by relmlie3.idc.renesas.com with ESMTP; 02 Oct 2018 21:00:28 +0900 Received: from relmlii1.idc.renesas.com (relmlii1.idc.renesas.com [10.200.68.65]) by relmlir3.idc.renesas.com (Postfix) with ESMTP id 7E40C87B52; Tue, 2 Oct 2018 21:00:28 +0900 (JST) X-IronPort-AV: E=Sophos;i="5.54,331,1534777200"; d="scan'208";a="292500119" Received: from mail-os2jpn01lp0151.outbound.protection.outlook.com (HELO JPN01-OS2-obe.outbound.protection.outlook.com) ([23.103.139.151]) by relmlii1.idc.renesas.com with ESMTP/TLS/AES256-SHA256; 02 Oct 2018 21:00:28 +0900 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesasgroup.onmicrosoft.com; s=selector1-renesas-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Qyy9ltCRYPso+/V/s0Se4AidveeDVCwQRP69vWKnojg=; b=C/b3pTgU5knWqBV0CaNJbKwMXO1K6N29whvij3faZid/dPV2Gou/Qzo1Jg9oADgBpOxu3IKdJpTdwXAZOToXXHVXSTLdD8I08dN/umNp8WnvE3CnNmh7fsdzzWxmhLnGC83ZX7qUWo1JUBsN/WEMV9U8/PhsIv6QPgwTq0t7Ens= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=<>; Received: from localhost.localdomain (211.11.155.144) by TYAPR01MB2303.jpnprd01.prod.outlook.com (2603:1096:404:8::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1185.22; Tue, 2 Oct 2018 12:00:24 +0000 From: Yoshihiro Shimoda To: balbi@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com Cc: gregkh@linuxfoundation.org, linux-usb@vger.kernel.org, linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, Yoshihiro Shimoda Subject: [PATCH 2/2] usb: gadget: udc: renesas_usb3: add support for r8a77990 Date: Tue, 2 Oct 2018 20:58:27 +0900 Message-Id: <1538481507-24821-3-git-send-email-yoshihiro.shimoda.uh@renesas.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1538481507-24821-1-git-send-email-yoshihiro.shimoda.uh@renesas.com> References: <1538481507-24821-1-git-send-email-yoshihiro.shimoda.uh@renesas.com> MIME-Version: 1.0 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: OS2PR01CA0120.jpnprd01.prod.outlook.com (2603:1096:602::14) To TYAPR01MB2303.jpnprd01.prod.outlook.com (2603:1096:404:8::17) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5c73e58a-a61a-4415-933d-08d6285ea323 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989299)(4534165)(4627221)(201703031133081)(8559020)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020);SRVR:TYAPR01MB2303; X-Microsoft-Exchange-Diagnostics: 1;TYAPR01MB2303;3:OaSXmWtuLio1h8BAlu/9Xl9nQhy0SJfD8dATZE3tkHLnEMHiLlbqLwj1wokcnRvkJbbKDxiQbB/ayuQwZ96F0X1ohTnh2KdCQbnlztl+GUN0kkMI0YXESeF+CD4RAMEXLcPOVxzuvGYTER4y7TteeQ+cM0DetzjRsAEz1ilhZm4ftVun7akdFsEKgL29D5hBK+HY4EeaCue5AHBtQdP3xpr0geSPYGO9YF6+QNKA7EBIPWkK5nmjNf94mtyJdTm6;25:kqX/LJLyYabnaw/slQuJFgYRjdG0cFC1K6Ii8ffJZXihU8duB7YlISsws1JR+h6Voputax/+6nIY/tDTSwcPld2FpSrAVsp21J0u52GQGS2bCcQK2HCk7aTfxU2s2zCkZEPc9z7zRy87+Ar1cqI9Mf349qbhHASUyUYJG5GwVmVJuRsRC76Pr7g2OOGh8KONe86rWoVGtbfAyViw8aAWz57o1DD3b3O5Rapqjo/KlWlbIVl0DcMXLmUjlXp17KEiVja06L1DD5gDKoXEOmyplAI9e2aQfQx1klCkwEo9qpbzYQ/YGRCiuiqE7D3mv1eRZRQMcJ/t9BUwtuBeAMMJDg==;31:kErrBWQeHnqiZVe4IZqLqFNsMjmGn9n7QdAEI7ILHPl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-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(93006095)(3231355)(944501410)(52105095)(10201501046)(3002001)(6055026)(149066)(150057)(6041310)(20161123562045)(20161123564045)(20161123558120)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061750153)(201708071742011)(7699051);SRVR:TYAPR01MB2303;BCL:0;PCL:0;RULEID:;SRVR:TYAPR01MB2303; X-Forefront-PRVS: 0813C68E65 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(6069001)(39860400002)(396003)(366004)(376002)(346002)(136003)(199004)(189003)(305945005)(8676002)(3846002)(8936002)(14444005)(6116002)(316002)(81156014)(81166006)(6486002)(16526019)(68736007)(6512007)(107886003)(51416003)(52116002)(76176011)(42882007)(36756003)(2906002)(16586007)(50226002)(106356001)(105586002)(5660300001)(6506007)(48376002)(26005)(50466002)(53936002)(386003)(476003)(78352004)(11346002)(956004)(486006)(69590400006)(2616005)(66066001)(97736004)(498600001)(4326008)(25786009)(7736002)(446003)(47776003)(3720700003);DIR:OUT;SFP:1102;SCL:1;SRVR:TYAPR01MB2303;H:localhost.localdomain;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:0;MX:0; Received-SPF: None (protection.outlook.com: localhost.localdomain does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: 1;TYAPR01MB2303;23:1EiCq0ABhRT/MrXcMLv0dL/gLurTrgYSlt/CNkk+yAatA+W/yW73hJ+EhkYyZSwBNw0HrkDshsiIX6oOeUqeEmxbQv164pR0uTsGkI1P07kicNncSrfOxtmrVi9CzSd9Kc6sL+xcRdwqpnORF11ozlQa/I99RIpEBO24xhLK8nZw2QIcXxVcPQS2cw22CTHZCMTlzcXjaChTo27f/yJzZgbIJgt0mZ0xhkWMkGo4VIyoQZ7BDHfjUgk7z5DNq32ot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EPKxz8cWv2/ni6aLnbJ/7BbPfCTuwVL56KPteI5uNrppmfnN6hAABckZ1di8vJ/tE31EC0aM5sJoFaomNRPij97u4CjlCrHhJ3KvXUHH4ikcR3Hjs/j09xZzRydNLQ2HaBPnv4AVQNnHHmrG/0qWNGuX3Ls33gxXbQ4eBxXtEGB/IXH SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;TYAPR01MB2303;20:xt2fIDO5baimy7XXSATNYjjfwsaNJsfbFfS/IosXg5pu+vLkmMrRmpGunBBp9cI6IyV5uoQDZ+hUqc5dEYN9aII2dpy8jD4ZwjhKQ74GukcbHWEbsQGxLEYGWQv8mflKrUMLXcvnn7NPUxtpM0i2fu4u1keEyW//A434P2zluN4= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Oct 2018 12:00:24.6296 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5c73e58a-a61a-4415-933d-08d6285ea323 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYAPR01MB2303 Sender: linux-usb-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Since r8a77990 (R-Car E3) doesn't have VBUS detect pin and number of ramif is 4, this patch adds a new renesas_usb3_priv variable for the SoC. Signed-off-by: Yoshihiro Shimoda --- drivers/usb/gadget/udc/renesas_usb3.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/usb/gadget/udc/renesas_usb3.c b/drivers/usb/gadget/udc/renesas_usb3.c index e1656f3..100e9fa 100644 --- a/drivers/usb/gadget/udc/renesas_usb3.c +++ b/drivers/usb/gadget/udc/renesas_usb3.c @@ -2600,6 +2600,13 @@ static void renesas_usb3_init_ram(struct renesas_usb3 *usb3, struct device *dev, .ramsize_per_pipe = SZ_4K, }; +static const struct renesas_usb3_priv renesas_usb3_priv_r8a77990 = { + .ramsize_per_ramif = SZ_16K, + .num_ramif = 4, + .ramsize_per_pipe = SZ_4K, + .workaround_for_vbus = true, +}; + static const struct of_device_id usb3_of_match[] = { { .compatible = "renesas,r8a7795-usb3-peri", @@ -2618,6 +2625,10 @@ static void renesas_usb3_init_ram(struct renesas_usb3 *usb3, struct device *dev, .soc_id = "r8a7795", .revision = "ES1.*", .data = &renesas_usb3_priv_r8a7795_es1, }, + { + .soc_id = "r8a77990", + .data = &renesas_usb3_priv_r8a77990, + }, { /* sentinel */ }, };