From patchwork Mon Feb 22 09:58:06 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoshihiro Shimoda X-Patchwork-Id: 8374531 X-Patchwork-Delegate: horms@verge.net.au 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 1444BC0553 for ; Mon, 22 Feb 2016 09:59:02 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 58A89203A1 for ; Mon, 22 Feb 2016 09:59:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9609520382 for ; Mon, 22 Feb 2016 09:59:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753319AbcBVJ67 (ORCPT ); Mon, 22 Feb 2016 04:58:59 -0500 Received: from relmlor2.renesas.com ([210.160.252.172]:21863 "EHLO relmlie1.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751614AbcBVJ65 (ORCPT ); Mon, 22 Feb 2016 04:58:57 -0500 Received: from unknown (HELO relmlir4.idc.renesas.com) ([10.200.68.154]) by relmlie1.idc.renesas.com with ESMTP; 22 Feb 2016 18:58:55 +0900 Received: from relmlac2.idc.renesas.com (relmlac2.idc.renesas.com [10.200.69.22]) by relmlir4.idc.renesas.com (Postfix) with ESMTP id C501D4CC65; Mon, 22 Feb 2016 18:58:55 +0900 (JST) Received: by relmlac2.idc.renesas.com (Postfix, from userid 0) id A3FA82806E; Mon, 22 Feb 2016 18:58:55 +0900 (JST) Received: from relmlac2.idc.renesas.com (localhost [127.0.0.1]) by relmlac2.idc.renesas.com (Postfix) with ESMTP id 9DCCB2806D; Mon, 22 Feb 2016 18:58:55 +0900 (JST) Received: from relmlii2.idc.renesas.com [10.200.68.66] by relmlac2.idc.renesas.com with ESMTP id UAA23482; Mon, 22 Feb 2016 18:58:55 +0900 X-IronPort-AV: E=Sophos;i="5.22,483,1449500400"; d="scan'";a="206147997" Received: from mail-pu1apc01lp0016.outbound.protection.outlook.com (HELO APC01-PU1-obe.outbound.protection.outlook.com) ([65.55.88.16]) by relmlii2.idc.renesas.com with ESMTP/TLS/AES256-SHA; 22 Feb 2016 18:58:54 +0900 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesasgroup.onmicrosoft.com; s=selector1-renesasgroup-onmicrosoft-com; h=From:To:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=cM4+Bl2dFzeSQ6EAUHL6eGEuqkQqXX4qyiE0+sPI/lo=; b=aTsF078NiRrtrEEm6zaXZ0o0pc515R7lE6bmi01XDUVYNHRVZfVDnOVMeYp/ug54f+g3swPVQkXWDnbraesSRY1LXft1xpFECF+A7d3GHLHcZcqKdNIyq0mEhG4W3U/FoBs6uniatIYaMwtNi25djKX7HMoquYqYdYXMGXJe2fk= 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.141) by SG2PR06MB0919.apcprd06.prod.outlook.com (10.162.204.152) with Microsoft SMTP Server (TLS) id 15.1.409.15; Mon, 22 Feb 2016 09:58:51 +0000 From: Yoshihiro Shimoda To: , , , , , , CC: , , Yoshihiro Shimoda Subject: [PATCH/RFC v2 7/9] arm64: dts: salvator-x: enable usb2_phy Date: Mon, 22 Feb 2016 18:58:06 +0900 Message-ID: <1456135088-7976-8-git-send-email-yoshihiro.shimoda.uh@renesas.com> X-Mailer: git-send-email 1.9.4.msysgit.1 In-Reply-To: <1456135088-7976-1-git-send-email-yoshihiro.shimoda.uh@renesas.com> References: <1456135088-7976-1-git-send-email-yoshihiro.shimoda.uh@renesas.com> MIME-Version: 1.0 X-Originating-IP: [211.11.155.141] X-ClientProxiedBy: TY1PR06CA0022.apcprd06.prod.outlook.com (25.164.91.32) To SG2PR06MB0919.apcprd06.prod.outlook.com (25.162.204.152) X-Microsoft-Exchange-Diagnostics: 1; SG2PR06MB0919; 2:XGp6SaB7goOfJVKyBiMmgiHXWe7ike7dZuPs+7RKivCP1szKHDb5gTuHNikN3OGdDht9oJYPD/gO7I8NRJuVnp6YSS5JGcRc9bYOGNVt8XzePT1Yral3gjeJh5GS9/mNIqQERRgx4uzUUKqATuPsTQ==; 3:ttfRqFa2s1hg8q/oOoTPNT0xgdl0nS/Z44/kmkISRF5CXtvIdLHda3jLxQbD2AllgAdgyPVGfV3oGU1ilmPNZ2Kvc+gcJFaC0SmIPCzkI98JPOUKursKz1a4sqPVRC/b; 25:B+U6A11ZtI2/9XQ3Yr5veU4bIQmjFDWS8VxcgAHMfw0DmXmbb85pF2R7F85dKAe9AzsFYw+aibVuViso0MiTmQf07hlbLmmpyj/jqyb8Ie6IePaq8ptc1Uo7XqO1tSApTAy49kCS80EDpP/kA8myhs2spo666mEnpUsg76Q1Ltchs9vLmChwGy8D7jbF+QXxJYZy6SMLneRqFeWBl8J8+Dbwyl13cdZjQg+hV84PW6riDUvyrK1f6qKHW5Ia4Aa531ls2HfwNwpkB8nFnCT98OvcaPR29bJuhIpvgQwZtKdv7mATK69LQE9mbgS3Bzr5yYrP+VwL9kuoEz6X3cbD004hoy1FJM3gQHgzMmvlNms= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:SG2PR06MB0919; X-MS-Office365-Filtering-Correlation-Id: 826d4864-eba2-4fc4-8ccc-08d33b6ec48f X-Microsoft-Exchange-Diagnostics: 1; SG2PR06MB0919; 20:7qC4sxUUGmkL68bEWbQgnyT5gFacBOdS/Xlv23FSTdpIG+x4gaCOeuCbvpxdOklwJ7U7Qu5B1oP/JtuHQc2icYLRZxTRQjYDrJHA6vVw6rutnoK6a67ZW81or7zh4zP5y/4kUT/hJcHtHS1d6iZ2YglSB/WBF9cBxLv3MkvlMKagO3lxCbmgX+2lRTYImR8XS/0mxmTAAIPPhz/7uFT/w5/p5bK91fGuoXsOQ4h1iDitUyyFt/gk9xTov9jvd1AvkxxECSoMCEkHDfzmTx1aK14IwWrxZqC+/BRFDffiyaVejMWiOmc8v/TcOdsdaHyk96R/Bvbgi+oi5TcK7n0fkeUIwacmdhAAQRqTeakGqsxZcAawb8oj3tLG1T6KEI0KoFZD24gq6yFxytLq/wZ/0dA7+upSUPFIme5PgKcX9EtHmRUBjvuJ1Eu2q/fdRhXwueuWiW5+MaGJzonjd6xRKVAUSDCLyICh2ojEreaOyYasxrLVUEexVxCPyj+GyF3r; 4:oym2yzJ3XXkZQVYq/UtXJlthPpgElc3caRw1ShrscbQEDojYlVNjyx8iLvKOgwGKUfw01htTcUmzZCrCjo9VG6euAK9P6wCNv+dhqIntUy1JSwD21hpxrXKalj2qWLfZTw5//SVm46QpkyV6YzdY52p6nx/JbHZVj8O6O8lJ1cdsf/tK6gE5IFnEB/HtyNo09PzkDNfonaJQypVyJ8bIKuR7Gl2co8IR9F9bs/uPqAf7esoY2OTLRNnoExNGiVg7X+UQXi6/dcoMW0/XP4QlZwKUbhmgVWZ3lQAkfyTeDPY4otnebWYp3nF5In5CdZAOGbkhIz20lT1W/4U9sbMUfoI4wKanET9lGJXF/lEtrH0JXCGRYhd2eWqpjoeHg++m X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001); SRVR:SG2PR06MB0919; BCL:0; PCL:0; RULEID:; SRVR:SG2PR06MB0919; X-Forefront-PRVS: 0860FE717F X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(6069001)(5001770100001)(33646002)(107886002)(76176999)(5001960100002)(50986999)(2950100001)(77096005)(42382002)(36756003)(50466002)(229853001)(50226001)(87976001)(5004730100002)(2906002)(4326007)(76506005)(92566002)(5008740100001)(586003)(48376002)(6116002)(3846002)(1096002)(78352003)(42186005)(66066001)(47776003)(4001430100002)(40100003)(189998001)(19580405001)(122386002)(19580395003); DIR:OUT; SFP:1102; SCL:1; SRVR:SG2PR06MB0919; H:localhost; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SG2PR06MB0919; 23:/hz5Wx5qUXEV/+bJ2cZh2EAEmCTAEFuGMH0J2oRHc?= =?us-ascii?Q?Gf/G+H1HNtHuoICxzkpL9OwyCxu1hJDdB4IOggXXsl0vCy03S8nLNjAXEyrn?= =?us-ascii?Q?W+Cddjy4JxmjayoXKysG/gIS4z/Xe5JX4v1eVndc7uXR4vLnFsaT9z8NPzd1?= =?us-ascii?Q?ZHifStMGT1IlsIrxcbjaUMgWYsUXiPiH+BYB3BDEKUBIeHCnGZPhMeyskMXo?= =?us-ascii?Q?yYwpmhJaN7G8GRX7x0Ebz0aoWtZkw56l1JCQnLixqQwXxRe4WSMHFbeUjkWy?= =?us-ascii?Q?nPV+NSf1JOoD3NY0+Kj908HWEzOMucJBqz0XHZXhs3AKXuoCqnwX2eqoEUFl?= =?us-ascii?Q?ARcnGcstGI56F1g4mEVWeAnllz3BzxBEK8KbOLJftWA0vmPl2iDaBqNIvDOv?= =?us-ascii?Q?gKS652D6qNmdVIFJoixIz9Fi+OVA4mLwiRr8JG4lQVvIZaCfYc1O3PxP9IKm?= =?us-ascii?Q?0/HHEtosyVuwjJzXfG+Z+9EYh5ozmq9eWnIwlhNFl3xpf16RCbcfJMi8p/7f?= =?us-ascii?Q?EjjgXdAogv/rcPeD0zi4LAPwqKvCwzlUT17ZqDoE2BTin/ijolhH5jke4ic5?= =?us-ascii?Q?bTwv0vzHGJj7kZABsEnoeRVtPf701MNzMenYhcrOSnuVUKJObQF7jBBco3Xc?= =?us-ascii?Q?3BbwzUR1sKchFhPxOp0+GuhGrUZGANto8fcV2YzxGLe0a/MTyKJWFBH2VLJ3?= =?us-ascii?Q?+aO16zb9HVBnlnJ1u6sj5rmjkJ4HwneAL7Y6re/V9RWpb54S364Qcj0j/kwQ?= =?us-ascii?Q?S2zUVDCpzHuekFPaxpjzPZLboxkjIRkGmGKyGHbVkQRACLZjm1Iv7q9aoyXJ?= =?us-ascii?Q?xleGYN4wlR7GJ7HWfwbOfQt2AtLr7fYNfFUV6Qk/iS2TgCDUrPNPKoY1X1MU?= =?us-ascii?Q?kbEUTdLqnv7+4BZMbSYyO48COX3iNukJ7r4+opt9jVeSP/Lq0b1vhyPR7WVD?= =?us-ascii?Q?OZ3p2BO/EfceHsT+56ZCAZohCf40kUcsFBaOGBGSQU5sOrXuGH1q2VUPUCgX?= =?us-ascii?Q?dYkMQhMYsjx2975N6fwDPk7Gy1K1ImaP6j5bbNzHHye0g=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; SG2PR06MB0919; 5:R54ARtHivPgBRXJVfRwhadftVdoseOTbQkfuog35zWUHoze5GCggYZbtzxBT+IfcP7h3ZfESfQA8kwKpyjgxSlAhTlN0cJUmDM9sNII+TPK1jlUOPXXkneIksCU2jueJoYTU5tidQFc3uzP9yQHE8w==; 24:XBLhBDlcBqM2qHg9DlhKLXuoJcbyXV7fhMWS/TES8cwt7M8gK21CE8qy+lSKNrl0PeaQlDz6EphpQbwK1HINwaTsZqpk6KaiP+2rWLpU528=; 20:ZibI8IRi8XLIRJRx5BF847hDHLd2Y9z58WjDDtQXG4qMFXAY9knY7rg0aWJnfPeKXVbTWSo7lRUu5wYfijUna7wAvgJ21FkyTZsWUiYs8EKIN3JsDWwjsYgfHBUimz5fZiiQYexrQAmMWX+31GVb9IBrPnPkwXdMHXLwlAIHG7Y= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Feb 2016 09:58:51.6430 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2PR06MB0919 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=-6.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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 This patch also adds a regulator node for USB2.0 to handle VBUS on/off by the generic PHY framework. This board has a MAX3355 chip. However, we cannot use the extcon/max3355 driver because the ID pin doesn't connect to a gpio pin (in other words, it connects to the SoC specific pin). Signed-off-by: Yoshihiro Shimoda --- arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts | 45 +++++++++++++++++++++- 1 file changed, 44 insertions(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts b/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts index fb1f382..6adb65f 100644 --- a/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts +++ b/arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts @@ -33,6 +33,7 @@ /dts-v1/; #include "r8a7795.dtsi" +#include / { model = "Renesas Salvator-X board based on r8a7795"; @@ -118,6 +119,15 @@ }; }; }; + + vcc_usb2_phy0: regulator@0 { + compatible = "regulator-fixed"; + regulator-name = "USB20_VBUS0"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + gpio = <&gpio6 16 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; }; &du { @@ -173,8 +183,22 @@ "audio_clkout_a", "audio_clkout3_a"; renesas,function = "audio_clk"; }; -}; + usb0_pins: usb0 { + renesas,groups = "usb0"; + renesas,function = "usb"; + }; + + usb1_pins: usb1 { + renesas,groups = "usb1"; + renesas,function = "usb"; + }; + + usb2_pins: usb2 { + renesas,groups = "usb2"; + renesas,function = "usb"; + }; +}; &scif1 { pinctrl-0 = <&scif1_pins>; pinctrl-names = "default"; @@ -321,3 +345,22 @@ &xhci0 { status = "okay"; }; + +&usb2_phy0 { + status = "okay"; + vbus-supply = <&vcc_usb2_phy0>; + pinctrl-0 = <&usb0_pins>; + pinctrl-names = "default"; +}; + +&usb2_phy1 { + status = "okay"; + pinctrl-0 = <&usb1_pins>; + pinctrl-names = "default"; +}; + +&usb2_phy2 { + status = "okay"; + pinctrl-0 = <&usb2_pins>; + pinctrl-names = "default"; +};