From patchwork Tue Feb 2 10:18:49 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoshihiro Shimoda X-Patchwork-Id: 8188281 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: X-Original-To: patchwork-linux-renesas-soc@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 3BCA4BEEE5 for ; Tue, 2 Feb 2016 10:19:25 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 65B1620263 for ; Tue, 2 Feb 2016 10:19:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A8E8420211 for ; Tue, 2 Feb 2016 10:19:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754494AbcBBKTX (ORCPT ); Tue, 2 Feb 2016 05:19:23 -0500 Received: from relmlor3.renesas.com ([210.160.252.173]:28782 "EHLO relmlie2.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754281AbcBBKTW (ORCPT ); Tue, 2 Feb 2016 05:19:22 -0500 Received: from unknown (HELO relmlir2.idc.renesas.com) ([10.200.68.152]) by relmlie2.idc.renesas.com with ESMTP; 02 Feb 2016 19:19:20 +0900 Received: from relmlac3.idc.renesas.com (relmlac3.idc.renesas.com [10.200.69.23]) by relmlir2.idc.renesas.com (Postfix) with ESMTP id 3EB006840B; Tue, 2 Feb 2016 19:19:20 +0900 (JST) Received: by relmlac3.idc.renesas.com (Postfix, from userid 0) id 38FFF1806F; Tue, 2 Feb 2016 19:19:20 +0900 (JST) Received: from relmlac3.idc.renesas.com (localhost [127.0.0.1]) by relmlac3.idc.renesas.com (Postfix) with ESMTP id 309191800A; Tue, 2 Feb 2016 19:19:20 +0900 (JST) Received: from relmlii1.idc.renesas.com [10.200.68.65] by relmlac3.idc.renesas.com with ESMTP id VAG14342; Tue, 2 Feb 2016 19:19:20 +0900 X-IronPort-AV: E=Sophos;i="5.22,384,1449500400"; d="scan'";a="203571080" Received: from mail-hk2apc01lp0213.outbound.protection.outlook.com (HELO APC01-HK2-obe.outbound.protection.outlook.com) ([65.55.88.213]) by relmlii1.idc.renesas.com with ESMTP/TLS/AES256-SHA; 02 Feb 2016 19:19:18 +0900 Authentication-Results: verge.net.au; dkim=none (message not signed) header.d=none; verge.net.au; dmarc=none action=none header.from=renesas.com; Received: from localhost (211.11.155.144) by TY1PR06MB0927.apcprd06.prod.outlook.com (10.164.99.153) with Microsoft SMTP Server (TLS) id 15.1.396.15; Tue, 2 Feb 2016 10:19:17 +0000 From: Yoshihiro Shimoda To: , , , , , , CC: , , Takeshi Kihara , Yoshihiro Shimoda Subject: [PATCH/RFC 01/10] pinctrl: sh-pfc: r8a7795: Add USB2.0 host support Date: Tue, 2 Feb 2016 19:18:49 +0900 Message-ID: <1454408338-4612-2-git-send-email-yoshihiro.shimoda.uh@renesas.com> X-Mailer: git-send-email 1.9.4.msysgit.1 In-Reply-To: <1454408338-4612-1-git-send-email-yoshihiro.shimoda.uh@renesas.com> References: <1454408338-4612-1-git-send-email-yoshihiro.shimoda.uh@renesas.com> MIME-Version: 1.0 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: OS1PR01CA0011.jpnprd01.prod.outlook.com (25.161.225.149) To TY1PR06MB0927.apcprd06.prod.outlook.com (25.164.99.153) X-Microsoft-Exchange-Diagnostics: 1; TY1PR06MB0927; 2:GTR/uj+vvKvc/MNNMZJHOJrVjZ6I7x5BzRsGntALzt1IMxmCZFCR62GKFFZWo1DzGYY/MB/ySBs8AtpI+J/5kIOJUi9gif30GpTNnDwxF1N+2ZFfdsfWRl2jmdqDZ1TNx6e1uys17fwS4wcVU1ZvGw==; 3:T2JuAwMSkv1sAbCdhVVkvLLHFxujD6g1fhCT3ajBt0L8VyL3HmYuZtb62VhtrWY+bTmQdVB3re+Q+1We6bFRFAZ/QKynsYsV7XI0PWuHeqTZ0ZC/5th5SuyEaYDqgOBE; 25:8manaOF/I3mCg86rMG+lV+/e68wsgCXTknwIfQHxQHD4tZzXYH5f/hc2FS1UA+3O5V+h87kikO+L9rp4oyzcaEo1/JKKLPCZVbyiM5SfbkKY8L/Vu2jo1Wdsr98VgjRQsGK4oQ4BMuLFYboKveuZ1dGfwygnUfjdLlYGQEP0xW05AV/qnbKD4dZxm/+vx+wp+Ni7YJqzTJlqvvjR3jMrvHqmKs+WUwbzsIb4qTf6NwvLKTIe3zAvLDBEnioql/I9 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:TY1PR06MB0927; X-MS-Office365-Filtering-Correlation-Id: e4b7d2c9-5061-41a4-4e81-08d32bba4ecd X-Microsoft-Exchange-Diagnostics: 1; TY1PR06MB0927; 20:3HLcWXg4bWB2zi4QKBK52aBjNTYM52++iroQG4NEQYWUF0sME6Z1KuUmb84/62a5/gJljsx9ccss73139FPU9bwKhhq+fdV827cEsUegmAvBvU5mMOTtWinO15GTKg72xGmzoGTfgUhmOR5/e728tm3Kw4/hnf8TZzzJLqXZl3wqZR1Ukylh0ak2MychZydo36XANoRRIJyYKse+KVw7z6P8S5pWG0+jwR2KhKeNQNvAIgJouyT9BMyp1LuLwn4PZ9Opfn56XfletatJQcpSqHxRPPzseB1WI8C59GZ+by/l3fARca0SsIV35BcgSfUFQ2o3ohzeOTLqD5cNmK+oJNUBTcdGU1Pc1/U9I9z/TjQKHoQUfeIFtx80k9IglyA+Z9e4+W0jDENXCZtjTxLAPmiTdKNE69GwEjjJ8FYzgVrW37nbkPx5Z73Md7t7Xv2JqasbzV1wDqEtVSBfCmJIbm2b7wUIh4FAX34Ww8SihTuwDFOTcIWyzIlc+gN3CPAm; 4:JggubtBGVIZ+mViBBg6NpxQVZnYmln5qBobMUhQAmEOpMHCgqQqnGO41Ng/FHcA8jHhUpL3o8Ae10/e8PbXu2lDWuvLtVAcocwBE5Hc3wutI4DSp/GnEwNtSCUNbPqSTFdNgCaDD02IVr4dIQlyBMaMqHcbQhHZAYXZHeJ+IgzXIh6TDe7PshKQ+L9VQiK3JRyhAVDul1XgXuy3bUY3ttLll29+WRa/7YFa8WITc5g03ENYMXf1TlAv0JR3M1OkHR4XPfVpcBGns2e84aJjABk2JwfQxZpsZnQnALQCDMc17W+ek/tJme3Qyo3lJPdDKSMScL4b5k7pF7BLTbs1sPLElmBj4VV6I1FRMQvaEfbUq/R2ZuN9hjf5UW5+XJKJF+bBaqICtjOjP0/zmSnLbfH25QV2Zt+Hukj47yM bos5E= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(85106069007906); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046); SRVR:TY1PR06MB0927; BCL:0; PCL:0; RULEID:; SRVR:TY1PR06MB0927; X-Forefront-PRVS: 084080FC15 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6069001)(6009001)(77096005)(50986999)(42382002)(48376002)(36756003)(5001770100001)(33646002)(5003940100001)(5001960100002)(107886002)(229853001)(47776003)(87976001)(42186005)(66066001)(50466002)(76506005)(2906002)(4001430100002)(4326007)(1096002)(122386002)(50226001)(586003)(78352003)(189998001)(40100003)(92566002)(6116002)(3846002)(5008740100001)(5004730100002)(76176999)(2950100001)(19580405001)(3470700001)(19580395003); DIR:OUT; SFP:1102; SCL:1; SRVR:TY1PR06MB0927; H:localhost; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; TY1PR06MB0927; 23:A3UIOcMWci16ksB60OTGCd/DC+tN1k4QWIPAuWK5i?= =?us-ascii?Q?IO2UQY1TAxaPh8zZAmS1malgaUxOUKir/4MsiSEuvPV3uejNyTiO4XNYCqHs?= =?us-ascii?Q?uB31lT5f9rCgWdBbksjb023dea8nybPswPts6qGr3X/A07Y/2tg9JllChXay?= =?us-ascii?Q?4hA+DHDpGg439ScgO7FfShvhf+aCIVmnOWYGAwEtXXj4X88paD9aJvIcORO3?= =?us-ascii?Q?+vWQKUc5QZRWCb4z/3g3BiyOIMdY4CRoCaREFY5jm/pN56zRapBIBC6OzuAi?= =?us-ascii?Q?h7fNuigT9auVjjG1QSF/wbUzT3tylBUOGXSLSSLXVvIGkKCK1kfGGphj6XxY?= =?us-ascii?Q?uPq3EX/BfkL4zk7Dqu/2X56lRqYrgehipz551CNhzXSRpyJT5uK4Ex+FA3F+?= =?us-ascii?Q?7C/rmNNDM39nF51W+Gxx+O/4TjlqquTkCzS3EDZGl7H5X9m5HC634ydlZVRH?= =?us-ascii?Q?2Kmauq/tv0TUlpb1RHa7mrgJghsJZPkZ+H9H3fvyXhjLpQLH3d4Rf2FHxnll?= =?us-ascii?Q?9dkX53O3rO0SYd1yhtPzbdXL24k/kiWQGROWRZyk+zzWqhreX22aYM4GCUm6?= =?us-ascii?Q?qyxcgnK8F2sDXAdx2lvxcf+S76vPR10FVocEOOIkXu3JmOVyWrlz1a3XlwDt?= =?us-ascii?Q?cAe8xDa634Cf/g7S91hxN0Ze3XCoWvr459kMApLWjo/HX6/jjVHoNYHQ7Xqz?= =?us-ascii?Q?pO4AnbSDVtWAiSZKau85Ou4R9078xvDaViKPjssVzU2O3r9j415CIb+eUuLz?= =?us-ascii?Q?hMbRpKHY7n/mXO+smPOXQeDyog6LeRh69QGxKv0MInWgZJhI+gACpjY3XUqC?= =?us-ascii?Q?jTB/CG5PmO97/9od9GnCZn7QHvggq5VdM5TdRQXnrv32Djr2e0T9EyAMIQB5?= =?us-ascii?Q?isUgcWlsAI0fcYmOAlJ4ev6EmGCqjPqTAYFd02tLSz2BztJUpIPBFE0dWNSj?= =?us-ascii?Q?F/NDwWhYgFDAWD0GW69KtO44Olt89/UjLLH/F2fo/GCmif7po/p0uROf5T9x?= =?us-ascii?Q?FnCNgtunQ7nOGyKFAZ8hvLxxMwOBmiEhWsEcTvf7mg8IU4ah3JXYQYQ4IXpQ?= =?us-ascii?Q?oOQmzxp0QTEQgrLYuQPP7UDBQMU?= X-Microsoft-Exchange-Diagnostics: 1; TY1PR06MB0927; 5:gAT8WRNKmvEC5SxWq+s6ESlGelhrYAXIFzNX2MVl84PMk4ZgFt8qWQJAvwjuSiL4fqnvz3zqXXtkqT9C7kZDr1/wip1vPspdA7lknzBOOv1zRiN++rfUZPvaGQxOmQVWyJi5a4rBbM+YYl100BOjYA==; 24:BUllTUWJqhXE14LurTHKlQYcKY0UpRmapnOGgjgVSrYfAhxHIF41hdIqDkbnTMagHJQbmfAsqINHzd93OikIsxU4aZ7jlTyw1bGAHH+i9As=; 20:lw2Di/W9I3qGywDPSKep87Ep4R5ZV/FE5wTw8JX9bZn2XZb4PGZSo86jGpYcIZITsFFsFNhl2mqCXh773NkAwaakp0grLkbns5hsUDUPeej3bTe9crExyRAkrGbmKkxQ6n+Uxwq9CoHXn2GDlIAGEN8BcBz42fDQnvRiWW3xSms= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Feb 2016 10:19:17.2861 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY1PR06MB0927 Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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: Takeshi Kihara This patch adds USB[0-2] (USB2.0 host) pinmux support to r8a7795 SoC. Signed-off-by: Takeshi Kihara Signed-off-by: Yoshihiro Shimoda --- drivers/pinctrl/sh-pfc/pfc-r8a7795.c | 43 ++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/drivers/pinctrl/sh-pfc/pfc-r8a7795.c b/drivers/pinctrl/sh-pfc/pfc-r8a7795.c index ce4f5cd..19819ca 100644 --- a/drivers/pinctrl/sh-pfc/pfc-r8a7795.c +++ b/drivers/pinctrl/sh-pfc/pfc-r8a7795.c @@ -3090,6 +3090,31 @@ static const unsigned int ssi9_ctrl_b_mux[] = { SSI_SCK9_B_MARK, SSI_WS9_B_MARK, }; +/* - USB0 ------------------------------------------------------------------- */ +static const unsigned int usb0_pins[] = { + /* PWEN, OVC */ + RCAR_GP_PIN(6, 24), RCAR_GP_PIN(6, 25), +}; +static const unsigned int usb0_mux[] = { + USB0_PWEN_MARK, USB0_OVC_MARK, +}; +/* - USB1 ------------------------------------------------------------------- */ +static const unsigned int usb1_pins[] = { + /* PWEN, OVC */ + RCAR_GP_PIN(6, 26), RCAR_GP_PIN(6, 27), +}; +static const unsigned int usb1_mux[] = { + USB1_PWEN_MARK, USB1_OVC_MARK, +}; +/* - USB2 ------------------------------------------------------------------- */ +static const unsigned int usb2_pins[] = { + /* PWEN, OVC */ + RCAR_GP_PIN(6, 14), RCAR_GP_PIN(6, 15), +}; +static const unsigned int usb2_mux[] = { + USB2_PWEN_MARK, USB2_OVC_MARK, +}; + static const struct sh_pfc_pin_group pinmux_groups[] = { SH_PFC_PIN_GROUP(audio_clk_a_a), SH_PFC_PIN_GROUP(audio_clk_a_b), @@ -3322,6 +3347,9 @@ static const struct sh_pfc_pin_group pinmux_groups[] = { SH_PFC_PIN_GROUP(ssi9_data_b), SH_PFC_PIN_GROUP(ssi9_ctrl_a), SH_PFC_PIN_GROUP(ssi9_ctrl_b), + SH_PFC_PIN_GROUP(usb0), + SH_PFC_PIN_GROUP(usb1), + SH_PFC_PIN_GROUP(usb2), }; static const char * const audio_clk_groups[] = { @@ -3636,6 +3664,18 @@ static const char * const ssi_groups[] = { "ssi9_ctrl_b", }; +static const char * const usb0_groups[] = { + "usb0", +}; + +static const char * const usb1_groups[] = { + "usb1", +}; + +static const char * const usb2_groups[] = { + "usb2", +}; + static const struct sh_pfc_function pinmux_functions[] = { SH_PFC_FUNCTION(audio_clk), SH_PFC_FUNCTION(avb), @@ -3664,6 +3704,9 @@ static const struct sh_pfc_function pinmux_functions[] = { SH_PFC_FUNCTION(sdhi2), SH_PFC_FUNCTION(sdhi3), SH_PFC_FUNCTION(ssi), + SH_PFC_FUNCTION(usb0), + SH_PFC_FUNCTION(usb1), + SH_PFC_FUNCTION(usb2), }; static const struct pinmux_cfg_reg pinmux_config_regs[] = {