From patchwork Wed Apr 18 08:09:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoshihiro Shimoda X-Patchwork-Id: 10347551 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1AF9B6031B for ; Wed, 18 Apr 2018 08:12:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 11B61284CE for ; Wed, 18 Apr 2018 08:12:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 061042859A; Wed, 18 Apr 2018 08:12:04 +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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham 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 87BED284CE for ; Wed, 18 Apr 2018 08:12:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753697AbeDRILx (ORCPT ); Wed, 18 Apr 2018 04:11:53 -0400 Received: from relmlor3.renesas.com ([210.160.252.173]:16273 "EHLO relmlie2.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753392AbeDRIKl (ORCPT ); Wed, 18 Apr 2018 04:10:41 -0400 Received: from unknown (HELO relmlir2.idc.renesas.com) ([10.200.68.152]) by relmlie2.idc.renesas.com with ESMTP; 18 Apr 2018 17:10:40 +0900 Received: from relmlii2.idc.renesas.com (relmlii2.idc.renesas.com [10.200.68.66]) by relmlir2.idc.renesas.com (Postfix) with ESMTP id 09E2A88F5B; Wed, 18 Apr 2018 17:10:40 +0900 (JST) X-IronPort-AV: E=Sophos;i="5.48,464,1517842800"; d="scan'208";a="278555596" Received: from mail-pu1apc01lp0019.outbound.protection.outlook.com (HELO APC01-PU1-obe.outbound.protection.outlook.com) ([65.55.88.19]) by relmlii2.idc.renesas.com with ESMTP/TLS/AES256-GCM-SHA384; 18 Apr 2018 17:10:38 +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; bh=9UQcCYtoFKvF40nTjAEtZEN6isx7p0gSZ1M6Oe5/quE=; b=S++Sw0+IHDX/gRRJg8FilMLDM8gLT3orsN32aYB90PMWmjchGzin4SzVeXh2R4QuGWPkzTzI5ibQfmHzUQV/NmvzFqGmIWu8o5slVk9q+K+yR9tk980fVc/AVCNOeEWUkMPAi+VNjYyOnK23XMPXT7F9uu7mziZ+alhdv5/FULE= Authentication-Results: linuxfoundation.org; dkim=none (message not signed) header.d=none; linuxfoundation.org; dmarc=none action=none header.from=renesas.com; Received: from localhost.localdomain (211.11.155.138) by SG2PR06MB0982.apcprd06.prod.outlook.com (2a01:111:e400:5213::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.675.14; Wed, 18 Apr 2018 08:10:32 +0000 From: Yoshihiro Shimoda To: gregkh@linuxfoundation.org, robh+dt@kernel.org, mark.rutland@arm.com, frowand.list@gmail.com Cc: heikki.krogerus@linux.intel.com, hdegoede@redhat.com, andy.shevchenko@gmail.com, p.zabel@pengutronix.de, linux-usb@vger.kernel.org, linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, Yoshihiro Shimoda Subject: [PATCH/RFC 03/11] dt-bindings: usb: add Renesas R-Car USB 3.0 role switch driver Date: Wed, 18 Apr 2018 17:09:57 +0900 Message-Id: <1524039005-30618-4-git-send-email-yoshihiro.shimoda.uh@renesas.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1524039005-30618-1-git-send-email-yoshihiro.shimoda.uh@renesas.com> References: <1524039005-30618-1-git-send-email-yoshihiro.shimoda.uh@renesas.com> MIME-Version: 1.0 X-Originating-IP: [211.11.155.138] X-ClientProxiedBy: OSAPR01CA0023.jpnprd01.prod.outlook.com (2603:1096:603:2a::35) To SG2PR06MB0982.apcprd06.prod.outlook.com (2a01:111:e400:5213::24) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(48565401081)(2017052603328)(7153060)(7193020); SRVR:SG2PR06MB0982; X-Microsoft-Exchange-Diagnostics: 1; SG2PR06MB0982; 3:8C8/xX6o9R63ditttzWTATlxwBsYkGCAsrjFK9+fDfrFO7XxQzn1weForAFaSNRVROokwOdO2o657xzU+pZo8XH+UVA5f8BXwsAnohkQ0XMgR6fiDf12m8SpAChkA2gP9kGhkOizwmeIPIs5ARlwXv/b1N7+mZYN9mWvQ8C9OAvgUxWqm2bNogOdIli89SyFSRWz6DcicQdcMf3Wnh34XpEoySEc24oOYIBQEQ0njBYfSS6yT7fftvHhvhqdGCOs; 25:TpnDzHaNVRIL2im2VJle16ojZK4wAAry8rPlSohrIpU1vgNofCTg4q8CYC3b3jHrxb30uCrpfoyn4Q4gihrFUJEFTqps+9BSZWaWzKILbq2H7katnsG4CnGBPuJ5WoOLyV3M0u1Rqoj+JWSod4Dn7OhhPZA8WU42/fYp3Qr3QCNoowVcY9tNuD8p/hoglb7fKI2b6gz8quqErfQ3wzse5+etKkWKNnY8ufui5lCujF1Tgiuleswv0cdPx/rAZyYWMCM1PZ5vyeuWDihPrsJCLfGEDMOv2qgpUDVC7I4wiV+KuuvlCUY7OUlHouBtLdvrzGQNoFRlVKcyBkg/1OpmWg==; 31:HobSJ++LTzcKRTEavpTf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X69zfAOA== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(10201501046)(3002001)(3231232)(944501327)(52105095)(93006095)(6055026)(6041310)(20161123562045)(20161123558120)(20161123560045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061750153)(6072148)(201708071742011); SRVR:SG2PR06MB0982; BCL:0; PCL:0; RULEID:; SRVR:SG2PR06MB0982; X-Forefront-PRVS: 06469BCC91 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6069001)(39860400002)(346002)(376002)(396003)(366004)(39380400002)(7416002)(956004)(2616005)(6116002)(446003)(3846002)(47776003)(8936002)(97736004)(66066001)(50466002)(4326008)(2906002)(76176011)(42882007)(53936002)(52116002)(6512007)(476003)(107886003)(386003)(11346002)(6506007)(51416003)(36756003)(25786009)(316002)(6666003)(305945005)(16586007)(5660300001)(7736002)(48376002)(78352004)(8676002)(6486002)(50226002)(16526019)(81166006)(39060400002)(498600001)(26005)(3720700003); DIR:OUT; SFP:1102; SCL:1; SRVR:SG2PR06MB0982; H:localhost.localdomain; FPR:; SPF:None; LANG:en; MLV:ovr; PTR:InfoNoRecords; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SG2PR06MB0982; 23:9uBIOTR2Tyn7X4eiLhdkEnDnJYNTMhYnbA9VzUJnW?= =?us-ascii?Q?ite2LBr+kXBDXWH9dnG7gKbB9SZrFKRaBxMG7H4CKJADb9Jv/5nk8WphftHa?= =?us-ascii?Q?ZVZ1nKMErjSDvMbipVjG1K1neTID6LWz8qSZ+1/kgOKkYf42NxuLdH82GYLm?= =?us-ascii?Q?mrktQbjzfa8xr6D4ja3fItJ63wM4SxiXW127LQbJOogvbnV7q6h2cn/NslU2?= =?us-ascii?Q?zuXXCLr69prRke9/iy3Zr0pnWsxzAQkZ9Y6Noa6NTgbcq9Vj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LK/a?= X-Microsoft-Antispam-Message-Info: ohEzCdVhGv0ozpDaiSilfJl8KOCmO2MSIhO4ZQce6IKO7NiwioBm2e+QghsjNRZLotdFogkrYWSFstfRhWfu1uLCYa/1aaairQRkKS2QUTpg2qrYZrFFM2HoScrZU/9zYyHESazak45k261RemjBTTiRWM1rsjWaPGELRFVAQatJoRZuMXIwtXfbMi/2JIam X-Microsoft-Exchange-Diagnostics: 1; SG2PR06MB0982; 6:l1qSvSwz7l9RBTYIeyjtyQl8LqACBE76/pg39AAMFJkMXQhH/AU1KV/FAI0RD0lJrKamfVQBz++PXL4enxIRhcIg6HnK1iVV1mtjM3fdohNvOifohUPZQzEREHCADjVaDZTp9YGZRs7OQDOaDeQSFQ+heiCUyvrk8yWXkGxOkf8oX1Kq+1hfOFDUR7iJPCCmBeCIdSoPsHQiAXcjRDO+hgXUEH1VWMz3GbzbaYjTcdLh6WlULBiwYoz6pSVCFF/LyzawUP6yWSRqmg/jwDy3gBpCq9kEj+kdXmdTulcgittlIOLBnfC6dk4SIzLtqVrjn15Vr9bd/y5eS05Z6fvkZsvPKqWQKqBwUDI27XSfAfv4z0tSISgHyPBdp+v7OmEOzbVd5gJkxjEginft2bwquKLxSVOFHQVgL7pWz1ygRNBF7j7REsAcBBYwRpvGNgyynAPlcnw7B8Rwq0xyBeuAXQ==; 5:2wJiy1AedcQbl09K7buNkifpjZBB5xK8EvQsg2PLJb7LFGmSO/+WxWxq+ru7hcIaQTN2yROuhDb/mRbN7g0ZZPpaBZT0ISBlNHiTzFfLmDwfzYeEG20CGvfDkBSGpC7QaHWkJ8FSS14fbUsEXpNrGDqUk8I7J8hh+GSZ6spkaJs=; 24:515aQU7hy6sBOu6tzdiBEgwVleji/pScmpmJeYafDZdiE5BuTzR+t4wOiCepL4tgzUZEJf8LakmWX0P7D8uLUdg4pAyPrVqje2zVUtckFfI= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; SG2PR06MB0982; 7:S25Xp0UAeyUaWIjfxoMObPC7HJL08ob0WyoJpf6AOLYnnQZ0Wd68vlZlxGIzW+5nx2UtnWeQqhLS1nIZPRXs1BxGxKkCXpeQvAwTGWb9oengbd5DE+3xCXpIZR3ec0vPbnct973m7tgKgctztYtn6CIJF3kPy03Oh11kW8wXRqJMZNYbm4vpt8Pu1OzSLftI2vflRJ7qkM58JTPedi+PcLdY5HqNOcUzh/HsJtc5H3wB89aqzmSDdZkGepxHwfQv; 20:TOz+X2p3/mDFPTeRAlBJj63Ew97KCiMNVyRAsr38Hjaw1nRfVjfT64Wbi4KVP30w2+mShZ+EHCJCBEKDOACfeOKjG53BooevOOvhLDjgK+4PXYrRQjB43g1IwXegS60DBxEODxrPS0A8x4Yvz7s1njWjHT6+h8Gber1YbuA0kH4= X-MS-Office365-Filtering-Correlation-Id: e4e08ba5-8041-4f2c-8d24-08d5a503dbd0 X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Apr 2018 08:10:32.1655 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e4e08ba5-8041-4f2c-8d24-08d5a503dbd0 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2PR06MB0982 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 This patch adds a new documentation for Renesas R-Car USB 3.0 role switch driver. Signed-off-by: Yoshihiro Shimoda --- .../bindings/usb/renesas,rcar-usb3-role-sw.txt | 56 ++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 Documentation/devicetree/bindings/usb/renesas,rcar-usb3-role-sw.txt diff --git a/Documentation/devicetree/bindings/usb/renesas,rcar-usb3-role-sw.txt b/Documentation/devicetree/bindings/usb/renesas,rcar-usb3-role-sw.txt new file mode 100644 index 0000000..ed60f66 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/renesas,rcar-usb3-role-sw.txt @@ -0,0 +1,56 @@ +Renesas Electronics R-Car USB 3.0 role switch driver + +A renesas_usb3's node can contain this node. + +Required properties: + - compatible: Must contain "renesas,rcar-usb3-role-switch". + +Required nodes: + +The connection to a USB connector node and USB role switch node need by +using OF graph bindings. Please refer to the usb-role-switch.txt about +port number of the OF graph. Note that port@3 is connected to +the usb-connector. + + +Example of R-Car H3 ES2.0: + usb3_peri0: usb@ee020000 { + compatible = "renesas,r8a7795-usb3-peri", + "renesas,rcar-gen3-usb3-peri"; + reg = <0 0xee020000 0 0x400>; + interrupts = ; + clocks = <&cpg CPG_MOD 328>; + power-domains = <&sysc R8A7795_PD_ALWAYS_ON>; + resets = <&cpg 328>; + + usb3-role-sw { + compatible = "renesas,rcar-usb3-role-switch"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + port@1 { + reg = <1>; + + usb3_host_sw0: endpoint { + remote-endpoint = <&usb3_host_ep0>; + }; + }; + + port@2 { + reg = <2>; + usb3_peri_sw0: endpoint { + remote-endpoint = <&usb3_peri_ep0>; + device-connection-id = "usb-role-switch"; + }; + }; + + port@3 { + reg = <3>; + usb3_role_sw0_ep: endpoint { + }; + }; + }; + }; + };