From patchwork Mon May 14 09:16:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoshihiro Shimoda X-Patchwork-Id: 10397637 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 C6CBF6038F for ; Mon, 14 May 2018 09:17:04 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B6419290DA for ; Mon, 14 May 2018 09:17:04 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AB078290DD; Mon, 14 May 2018 09:17: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 2D5D3290DA for ; Mon, 14 May 2018 09:17:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752313AbeENJRA (ORCPT ); Mon, 14 May 2018 05:17:00 -0400 Received: from relmlor4.renesas.com ([210.160.252.174]:60772 "EHLO relmlie3.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752192AbeENJQp (ORCPT ); Mon, 14 May 2018 05:16:45 -0400 Received: from unknown (HELO relmlir4.idc.renesas.com) ([10.200.68.154]) by relmlie3.idc.renesas.com with ESMTP; 14 May 2018 18:16:42 +0900 Received: from relmlii2.idc.renesas.com (relmlii2.idc.renesas.com [10.200.68.66]) by relmlir4.idc.renesas.com (Postfix) with ESMTP id 7371E82D81; Mon, 14 May 2018 18:16:42 +0900 (JST) X-IronPort-AV: E=Sophos;i="5.49,399,1520866800"; d="scan'208";a="280916057" Received: from mail-ty1jpn01lp0177.outbound.protection.outlook.com (HELO JPN01-TY1-obe.outbound.protection.outlook.com) ([23.103.139.177]) by relmlii2.idc.renesas.com with ESMTP/TLS/AES256-SHA256; 14 May 2018 18:16:41 +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=DouI4O8NdTW3i96L5rdoWYB1/KWIDiC2EUa6V4iptAk=; b=hCQ7R7hY1aT1RnIn6I5vuWMQ+50CraSZbARV3fLwvZ9CFUGJbz+k6NlMl/TcDMQV1NwOGj20PR658OuYuvm7rTwDItRm5rQsmyF3XgZsboli7OajI1Cu7g1yzz6RUwLUw1F44B4e4koJemWoC/JrisD2BaFVTDK5KmbW3BvtZOg= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=<>; Received: from localhost.localdomain (211.11.155.138) by OSBPR01MB2293.jpnprd01.prod.outlook.com (2603:1096:603:26::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.755.16; Mon, 14 May 2018 09:16:39 +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 v3 4/4] arm64: dts: renesas: r8a7795: add OF graph for usb role switch Date: Mon, 14 May 2018 18:16:00 +0900 Message-Id: <1526289360-3997-5-git-send-email-yoshihiro.shimoda.uh@renesas.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1526289360-3997-1-git-send-email-yoshihiro.shimoda.uh@renesas.com> References: <1526289360-3997-1-git-send-email-yoshihiro.shimoda.uh@renesas.com> MIME-Version: 1.0 X-Originating-IP: [211.11.155.138] X-ClientProxiedBy: TY1PR01CA0144.jpnprd01.prod.outlook.com (2603:1096:402:1::20) To OSBPR01MB2293.jpnprd01.prod.outlook.com (2603:1096:603:26::14) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(4534165)(4627221)(201703031133081)(5600026)(2017052603328)(7153060)(7193020); SRVR:OSBPR01MB2293; X-Microsoft-Exchange-Diagnostics: 1; OSBPR01MB2293; 3:Hb43YF6d8F/QxGvEZfch3/lSFnki27PUSHOoQRtSzmrscdrvDEayC3PZGLK7pF9JaUPAKrb4d3BNITSTKfj1Iec82hv3DG0ZUOctJcFXfo1VT7EKPIeC/beG7vpnFw5pl1CplfgDGHwY4AWybp45kg8qYIzKuUHrhczbOexe4Jg80PqhCtC6pM+9AOLo+rZ9ANpAiy/tg3yr3Sr+352DaoSCdjpfLhw1IkZ7I7Y5TknfM79x4E0Ma0xjiKMZaT6v; 25:kxXxQ6CxHb/cHLn6WgL4qinE+S64ecF4lmq/tfbMKwy6fHhqjz1vV+Jf0QK/0wwqpsO7UAsEyB9bW0IJAfJPCNygGPzPxSiZiu00mQpnMh5VfILVplnKPfI0xtpxjHJnUbFItG8o+tv8Jm1JhQN8VwSj4h0/ffckGYa9W3zV1KtKjKWmgFp2pk6pgO1Xg9/xt8aYvpsdGTwyPHqSkYmhWK5J7FZpLULDG2O5gX5IskJzeNGVhRYlyDFPrfpadfy8bQiop0kOLpH8UK1UquJUmehgA1Wqr8NYFS3I8fvpsrWA89PmIZtvZB8yPJbhKeN0zySP/BhBip+seYGHt2FGbA==; 31:HZ3paYHvKpO5TytRcCzFbwfmIcmDesAcCrNoakNP3ZOryVhDy3jcjIL9bxFFZw/Pi4aS/qKXqgzkl7nbORzzwQPyp9h0OZ3phiAgFbe/8aBrtuTee2PQz1HrenTPCc8eT1fFtRHsCtuwgpRs3eZdMT35HNc18gbWQNTN3dsnPIHWjHGlAiIPm5OIeD+OIgn3zVwjhQ9RUKigLU3yRyiU0Z/sI/hKk6ap0wjATr8WAuU= X-MS-TrafficTypeDiagnostic: OSBPR01MB2293: X-Microsoft-Exchange-Diagnostics: 1; OSBPR01MB2293; 20:j6WNdBbfZ1lmgj1ruwFAbKYNT2QcGZBHT5prh48f+kVbeOJvgUsr48d0QGQXE5px0GP9Gof2rN6BMy35nq4RwPFGqsbKJMLlQ05TtDEPQiQGEp87UkUTBgrR8bT1U7SrkutTccoOv6W9o4gbBnKKnXLU9TUKJu4n+FFQwydQ4Aii0yUzLiw8H6rLBwQnATn3wOOUukXLP/x2Fe1NnqgHEQ9jIBrx3N1tQ8fRx+C4eLtxosB+csrOLbgHjBvejS8xA3fxUu6NO6UtsIt54qNY6IIVlzGp5RdFzRGUPNA3vQUvrv/ekzYUP7GteaA8HqF9cBdYb9aBhfosceWqR0w3vAEpRVAmErwOIvZuo92OOt0K7BC4HIe/EwwxsB5udtdB+6z2uwGpfQmFo2iozKqxPx5EQLexS5ZtyJzH6hJTtNcT6xJFCJWQbxtCucQ35LiBqRfjC27j/xh1Epr29UwEfY2TMieNtAz2gRGcS9R0gMPzfgofE4vqCKhrvORZIs49; 4:aOIGKTNzHFKxBnj/yw/hpNfl4tu2RZxzJXLFPtJnATwX0nrbt6TJlwLW+3aRIMTwGgu8+x5j8YugEYX81Z/LWoevQ7aEJaHpBUIu86P2w+Q8oymqQxMzxMkVd/GkdeBYQ9WX1GlVWYLpjRUSxDSrChHYqtUFzlTgHN+mMs5xuAIsbBNFoRTLEytHJdySR1QiwhcK0pCHUk5bxC8at0ps4YpnO7OeIqi/XB4x0WBTCgng01F0VfgWt6P/r7NhbsdxiS0oLoRw25c63E+XZJjxSQ== X-Microsoft-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)(5005006)(8121501046)(3231254)(944501410)(52105095)(93006095)(3002001)(10201501046)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061750153)(20161123558120)(20161123560045)(20161123562045)(20161123564045)(6072148)(201708071742011); SRVR:OSBPR01MB2293; BCL:0; PCL:0; RULEID:; SRVR:OSBPR01MB2293; X-Forefront-PRVS: 067270ECAF X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6069001)(346002)(376002)(39380400002)(39860400002)(396003)(366004)(199004)(189003)(16526019)(107886003)(68736007)(97736004)(53936002)(36756003)(50466002)(4326008)(6512007)(316002)(6116002)(106356001)(6486002)(6506007)(386003)(16586007)(26005)(3846002)(25786009)(59450400001)(5660300001)(78352004)(47776003)(81166006)(7736002)(52116002)(81156014)(305945005)(50226002)(2906002)(51416003)(105586002)(39060400002)(11346002)(486006)(42882007)(2616005)(446003)(48376002)(476003)(6666003)(498600001)(956004)(76176011)(66066001)(8676002)(8936002)(3720700003); DIR:OUT; SFP:1102; SCL:1; SRVR:OSBPR01MB2293; 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: =?us-ascii?Q?1; OSBPR01MB2293; 23:gMlzIcmzsmoyQrqUmkFuL+Pb1/Y3hEa6HxoZwXL/Y?= =?us-ascii?Q?aXJW9nzVt9XyiVVP/IDEkqRjxd2zCKf0Xs8drFc5Fk1c/JSfTB+rjdiebEKP?= =?us-ascii?Q?JhAPQZW2PLdryadrgIo/0BquQP/zmAewCBw+U2NmEl2Ck9mHWj/sm/l53bSW?= =?us-ascii?Q?FIrWIQX2s5viEVntR2+D6WwPEVZChywGYH+ROkrqF929VMeVleoetHSwag1G?= =?us-ascii?Q?A+JV2gY5vtdl0N2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advcuQN?= =?us-ascii?Q?flYMG27aOyr16kWb+ZqGEnR0fecu/iqIWfYTUTlB+KZivWL6HwM58NEy82Ei?= =?us-ascii?Q?/I5fPYrkURPrXvu9BSUTi9PF+DioioFeBeqX6YvM2sIlDlYvHtTUMvu63rvf?= =?us-ascii?Q?w6FoBs9HGKoqxWXlHFdNPAuznUKkJy/GUS11ov7gMk9y/u+YUoXtnym5M1yu?= =?us-ascii?B?dz09?= X-Microsoft-Antispam-Message-Info: PffTUpE/7DDyE5kTn8dsdmqpesSggI0jFE46L2egNYycPta6Xdqim493dtI+XqeAG5pVlP9bbB9zcz290qYNCO3/SkyODn5Cbn3oEUKWgUIB3TIJ4o6bPgOHf/0Jb2bGDYgnbgBVKMkip10TMbHrGVRVMn6hu/OBFDHBo4h9M4JsoDTp3xSuIBqzE1PVCE1q X-Microsoft-Exchange-Diagnostics: 1; OSBPR01MB2293; 6:OjhBVTIuoxHU38Q3wU3j0gsfkLYjD2WAnmg4p3icXLtaF47nKps2antXEUzpWV1WuqvD1tGefVU0pd3N0C5ingNDDKZTnDeeNunB+OYrMoKIjCpMmGk4Gkw5bFl3bvO6gXopKSrNyXQ1PZqNk5iJLlFdrDysj0VxajKGb+gpGh5UmorEQgPEK5GDhl1dyXb4Sx8C/BikubgjDNaefpsatRfSJGRw+wiiwQK81EmQemxHs3VXCVPv758u67eWZ+XJOOL58kM49lkBPJdmJobIoYxukEGT2ear5ViiDrVe4pBuH0oxRMK3UhODboAySuDSc8bjJ81asIh9gkgZdEGItCmpwdX8a4ARSQOwvlcvYq6f8gZfQm8yx0bZFlN1W+cu9leE7ktrpEZChqQ9APGuWdt0s+MaFaq7HG67i2sYVOSXkX16lIFUGk999KDKzpT5Rqr9RP+dD2lw3UeL0BZgSw==; 5:pKMyFzvZ/serihSJ4cjsgSK7n39JDXA+sKQtk9ENWu9SJr/K+M89uDFaAQP8TxEtNVL4SSi2soO4kJH7acLULmj6qVdQpxazfof5lKC/4SLMKH1DPD7FSyjqDl3Hv16MK05lSMDhfw0adR1mzVf+1AiE5YovY0R/fZGONZ2TCEc=; 24:O9OCs6PqCFS8LphdIL8aeRjaw2CVuUvpqhYH0IG7QzsC+UGtX4tIo32zySyjnIqaZcXg2ftuG46ptU66jwCorB1Kl9tPejLjmDRBmszOt7M= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; OSBPR01MB2293; 7:QDom8UkJQIf90fcwmTK4xgNU6WxcwaWzdNhp8SjKYVD1zw9gPH8bIHwD5w6aOdbaHj/z5DSLHvjUz4TnkZieghTwD6ftsbVZprk/3jVpyqxqJrFSBlOlk68nkdP/7Xe8YaNvxdELePakL1i9Y0rlsaH6ISPvPNSBr3iyTGe2By9P3YhAlK2Dearmyvjv8dn3WS69uMp4PFal1pG78wZjAopxY8aJ9g08ZoxXQrsb/loozOVw6HcIN6rcYgcml0gJ; 20:r+6Lpv/IXO/3s7wLfC+sumEG7pZ1xhb+8Z6dpcD/LlFjLsXaFhkMTCsJSet5veOfGBCRHWuvrAJ05pk9pAOOr52EOmVoEbzD7B2cn1WlH2hUSAiUA6H6FWjah6qfpIPMuCZ/ME+8IiYVIQJjkYeKxSMows+bB5+YypOi0gxCddU= X-MS-Office365-Filtering-Correlation-Id: 78121a55-f415-4cb5-5b58-08d5b97b66bf X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 May 2018 09:16:39.6694 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 78121a55-f415-4cb5-5b58-08d5b97b66bf X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-Transport-CrossTenantHeadersStamped: OSBPR01MB2293 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 OF graph properties for usb role switch in r8a7795 into USB3.0 host/peripheral nodes. TODO: - need patches for other SoCs. Signed-off-by: Yoshihiro Shimoda --- arch/arm64/boot/dts/renesas/r8a7795.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a7795.dtsi b/arch/arm64/boot/dts/renesas/r8a7795.dtsi index 1d5e3ac..50d3312 100644 --- a/arch/arm64/boot/dts/renesas/r8a7795.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a7795.dtsi @@ -1746,6 +1746,12 @@ power-domains = <&sysc R8A7795_PD_ALWAYS_ON>; resets = <&cpg 328>; status = "disabled"; + + port { + usb3_host0_ep: endpoint { + remote-endpoint = <&usb3_peri0_ep>; + }; + }; }; usb3_peri0: usb@ee020000 { @@ -1757,6 +1763,12 @@ power-domains = <&sysc R8A7795_PD_ALWAYS_ON>; resets = <&cpg 328>; status = "disabled"; + + port { + usb3_peri0_ep: endpoint { + remote-endpoint = <&usb3_host0_ep>; + }; + }; }; usb_dmac0: dma-controller@e65a0000 {