From patchwork Thu Apr 26 11:26:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoshihiro Shimoda X-Patchwork-Id: 10365629 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 A5B55602DC for ; Thu, 26 Apr 2018 11:27:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 957292906A for ; Thu, 26 Apr 2018 11:27:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8A0F429088; Thu, 26 Apr 2018 11:27:21 +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 19A492906A for ; Thu, 26 Apr 2018 11:27:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755248AbeDZL1R (ORCPT ); Thu, 26 Apr 2018 07:27:17 -0400 Received: from relmlor2.renesas.com ([210.160.252.172]:33061 "EHLO relmlie1.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754862AbeDZL1L (ORCPT ); Thu, 26 Apr 2018 07:27:11 -0400 Received: from unknown (HELO relmlir2.idc.renesas.com) ([10.200.68.152]) by relmlie1.idc.renesas.com with ESMTP; 26 Apr 2018 20:27:09 +0900 Received: from relmlii2.idc.renesas.com (relmlii2.idc.renesas.com [10.200.68.66]) by relmlir2.idc.renesas.com (Postfix) with ESMTP id 98C82956A4; Thu, 26 Apr 2018 20:27:09 +0900 (JST) X-IronPort-AV: E=Sophos;i="5.49,330,1520866800"; d="scan'208";a="279389821" Received: from mail-ty1jpn01lp0179.outbound.protection.outlook.com (HELO JPN01-TY1-obe.outbound.protection.outlook.com) ([23.103.139.179]) by relmlii2.idc.renesas.com with ESMTP/TLS/AES256-SHA256; 26 Apr 2018 20:27:09 +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=EtxVjaaT0E7m08FwbgTRviENmwuf0HJ2skZGaEqXYB0=; b=Hd9xi+swp5ihcJ9nJa1CQO0GLwyNhaVMQpDY4nte2eycuFJwBmnzpc89swiIJK2XvwNqhiEwZB2pW3JC4UDvw/pH6Gv/My71hUa8bql+Yn6uF+wB/93asRWyPo6g2lYoHdO3EUiWJpZITrvulnoWnRQEvDJrHPlAu4tF7+vIQjE= Received: from localhost.localdomain (211.11.155.138) by TYAPR01MB2304.jpnprd01.prod.outlook.com (2603:1096:404:8::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.696.13; Thu, 26 Apr 2018 11:27:06 +0000 From: Yoshihiro Shimoda To: gregkh@linuxfoundation.org, robh+dt@kernel.org, mark.rutland@arm.com Cc: heikki.krogerus@linux.intel.com, hdegoede@redhat.com, andy.shevchenko@gmail.com, linux-usb@vger.kernel.org, linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, Yoshihiro Shimoda Subject: [PATCH/RFC v2 1/6] dt-bindings: usb: add Renesas R-Car USB 3.0 role switch Date: Thu, 26 Apr 2018 20:26:41 +0900 Message-Id: <1524742006-17984-2-git-send-email-yoshihiro.shimoda.uh@renesas.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1524742006-17984-1-git-send-email-yoshihiro.shimoda.uh@renesas.com> References: <1524742006-17984-1-git-send-email-yoshihiro.shimoda.uh@renesas.com> MIME-Version: 1.0 X-Originating-IP: [211.11.155.138] X-ClientProxiedBy: OSAPR01CA0066.jpnprd01.prod.outlook.com (2603:1096:604:a::30) To TYAPR01MB2304.jpnprd01.prod.outlook.com (2603:1096:404:8::18) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4534165)(4627221)(201703031133081)(8559017)(2017052603328)(7153060)(7193020); SRVR:TYAPR01MB2304; X-Microsoft-Exchange-Diagnostics: 1; TYAPR01MB2304; 3:8xGbQj9de7630XjVbCUKlBS/V3FvcMRDGvp8ioCaNhgF9H05+BU+UgkmJrAWoC9JTaEaMSmM2rZTZ1JkkOgof7T9UZt7lQsWeh1TIkqKmiUKxo790uq0Cnoy6H0HzgP0bFJkvzco+KODWlvh0xwdKyTnkZO3q6tRFJkHAH9YEFKFjaNoOgcF5/roISGx++zt4Y1pBW07Im8higExkhKPZy4221qk5kuwzeT6hK7DWiHm9RSb1SpFIYvTq4NoT5qJ; 25:2e7AwUhg7QYcJObtqydmn9mA1QtNHgsmzueo79L4PjDYb2JJc7Fv2M0iEXwaI6mKlh3Hn/FemA/6ctnzSZP7TKTpeRq/Sho9bur2FyEZuAvZpJKujqH4CIUK4XotUauvYk5iQJDStbcUgdj36R4wNilFm6Y1Tuh6aH7+2qf/BzDBKiPYiOqxTQQatCL1wBb6BBXwqabpx/45w/DVpIlr3Ytf7GFFxMYFfsS1JAAj82WLSlEAljD5H00+GbSoHHMGSjGD7cGIu4RsO8Z9CD8Qxb3HOcO4qxMaLjyKszXw63h9TRo82gNjON9d1GB9X2eLzO+snbwtKME0M1KzHmHa1w==; 31:d9c4alHKM5C3mCbaLxlmKqxKj3wamKrzgsJHYCrFzTf9kMBB1wV/rQUPbA+ef5GwbyOa5CLVSrAAxKgmZzhIZMYtZjJKDe5Zx76kjGlyC6HnGlVH8yrwQh56SfTfUJtVgvMIs5Juj/wy3S778P1BEZ5RYXsweMFfppMYw2xO5vQZse3zaix/hMr2NUHkmrd9agHNSxboEwE0HpO7lbKkRSkxFfBHsY8dxa2hw2H/094= X-MS-TrafficTypeDiagnostic: TYAPR01MB2304: Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=<>; X-Microsoft-Exchange-Diagnostics: 1; TYAPR01MB2304; 20:qr1SdX3p+knPxtAAfZIArdlEA/5eEkxXWaAplX9nsyHB1aBL9bxeNA9F8WDrUQLE28Y19D7j6QMDUEYzGGvsNtuojX97kltEv81y9HnlYHEjdsrLuVIxa9KcskYfZzWhnL55F1fr/cWZyRXkiWy0ckGbdR+aCI6Eq3uXzFMF7N3lv28PUS6t3r28xYHwD8+7lbGHuoSee/1IhaVct9DaDNKCK/5F+nzSNQ2Ps0VHC13pfhskVccaVhcvOeXm1of/aDKcsyEWkiWDrKhlLr5onxkWFUERUpgRZ6ABlEea0wM7TgRw722kTu9qEbqFTk9ohzplPQKz4ZVlzHv5WzYNBJJgzuPVmEc7aTH6wQJ6BxOoPh2VwnRZLf0pkvH4ZjpS7OES7uk4FD9wKNapyLWVKe6FscyQDOqpsMcTd0vqAH6ejmzjCZ338TCsUG4hvcFN//X046PT3JnSlS/5JnQdFPjqXTRoLs3iBr8/rngORrx5wAH/znu1aVhjoLfDiwbL; 4:oXhLScH2SG1A3xZhhcJHT5ixyMnKhVDhuv0S8Yw7R54+5pSWgSINAHEsu2ieLyImnuLHq/NoN/8sF7ZPWZ+CffxHJP80lCVysoZDENSjAeVGps2sWbOkHc7QrY+dV4ZW2fhu/iSTWvU61qJK5y0XTit+cq7yKLLKTMBowa4SgeeoBVULPB91r2Nj+WcHfLV7gXLe4/Wo89vfAEIDVNFzskyGIZmrh/3pBsXeZr/Hja09yR9jdNONtedfDoTVFPklBQXu0Rsx1RB7jGP2Kho+kQ== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(3231232)(944501410)(52105095)(93006095)(10201501046)(6055026)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061750153)(20161123564045)(20161123560045)(20161123558120)(20161123562045)(6072148)(201708071742011); SRVR:TYAPR01MB2304; BCL:0; PCL:0; RULEID:; SRVR:TYAPR01MB2304; X-Forefront-PRVS: 0654257CF5 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6069001)(346002)(39380400002)(376002)(39860400002)(396003)(366004)(189003)(199004)(25786009)(48376002)(386003)(81166006)(6506007)(106356001)(316002)(16526019)(305945005)(50466002)(42882007)(26005)(16586007)(51416003)(52116002)(8936002)(81156014)(8676002)(50226002)(11346002)(53936002)(6666003)(78352004)(476003)(486006)(2616005)(446003)(7736002)(956004)(6486002)(6512007)(97736004)(2906002)(66066001)(6116002)(39060400002)(107886003)(3846002)(5660300001)(105586002)(4326008)(47776003)(498600001)(68736007)(36756003)(76176011)(3720700003); DIR:OUT; SFP:1102; SCL:1; SRVR:TYAPR01MB2304; H:localhost.localdomain; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:0; A:0; Received-SPF: None (protection.outlook.com: localhost.localdomain does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; TYAPR01MB2304; 23:arUpC0k8sa+hwBQE7lpolEbfatt/1K87/ULqjNlnw?= =?us-ascii?Q?XmqdAaQVuR4rZ1p9t9I8d+AFN8DqXhtgRMI8AgSfvlKxvYWnrax0DyCbozV1?= =?us-ascii?Q?R75rhJhAEZK2IFJs7HwlcrarQBKbUPhjcjM7HIRZ/l1nxwDH1/SByWs2vZGO?= =?us-ascii?Q?TpcriskiSgK10fBku50fQQ3ADQIHWZForu+sQMtFk2Yixj7Pl6wuRKn2WzPU?= =?us-ascii?Q?OQGmSp5rrA7GmwezfvNt4pGKui3Ul45sV1uUQtv6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3Vmcfl29mu6kAgq8GpByAkvdj3I+acXCk12lmU1344bHt3N/dw7nvioKiCuNiNnPxPnyjlZ9lJSsdHsNGwQWpJDddhyhrGM= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; TYAPR01MB2304; 7:6z1rGAEbThHhjQ82PA4hI4FM3cAyoI9cLh1BVsAS9laKgitC9PJahGHNP7ONyZ7iQQRR9hwYETYoC1YYbjCuh19xkBl50thmObL/lCcFOsf4xcZGLqC6Ru6jIQPSQTDb/cw8JN1O8qfp6snE87perodqWgbftKdflNYrdkKa2g8KNmLMs6jxDEQk6R5ANKYFOtvk3TA4xg10jWtIqnHhHvhXmGre9zeYec2nT/u0wfFmQLOOnR3akoT6r8sCm9xp; 20:2ZPiyQPetXNXlZ5GguZ0yvvKsZ2ODVIBuIBPZR2Gmo+2M3zKDlotssCFnaxBWWTlqPOxksJWYpJV69qoxsZzPQP0l+/4a0FXWQNO49W2JZ1+JgW0T3dLqFtQ+3Op6qIOtQXnhFlkvgFnz+dW3VuN0+BmeFfomEneoxOthbaWY+c= X-MS-Office365-Filtering-Correlation-Id: b5daab12-ba6f-41df-ba5e-08d5ab68a4c1 X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Apr 2018 11:27:06.8776 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b5daab12-ba6f-41df-ba5e-08d5ab68a4c1 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYAPR01MB2304 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 that can change the USB 3.0 role to either host or peripheral by a hardware register that is included in USB3.0 peripheral module. Signed-off-by: Yoshihiro Shimoda --- .../bindings/usb/renesas,rcar-usb3-role-sw.txt | 47 ++++++++++++++++++++++ 1 file changed, 47 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..e074c03 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/renesas,rcar-usb3-role-sw.txt @@ -0,0 +1,47 @@ +Renesas Electronics R-Car USB 3.0 role switch + +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 usb3.0 host node needs by using OF graph bindings. + - port@0 = USB 3.0 host port + - port@1 = USB 3.0 peripheral port + +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@0 { + reg = <0>; + + usb3_host_sw: endpoint { + remote-endpoint = <&usb3_host_ep>; + }; + }; + + port@1 { + reg = <1>; + + usb3_peri_sw: endpoint { + remote-endpoint = <&usb3_peri_ep>; + }; + }; + }; + }; + };