From patchwork Wed Apr 18 08:10:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoshihiro Shimoda X-Patchwork-Id: 10347523 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 A4FE96031B for ; Wed, 18 Apr 2018 08:11:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9C5D628595 for ; Wed, 18 Apr 2018 08:11:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8FE732859A; Wed, 18 Apr 2018 08:11:07 +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 220F228595 for ; Wed, 18 Apr 2018 08:11:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753365AbeDRILD (ORCPT ); Wed, 18 Apr 2018 04:11:03 -0400 Received: from relmlor4.renesas.com ([210.160.252.174]:64945 "EHLO relmlie3.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753685AbeDRIK6 (ORCPT ); Wed, 18 Apr 2018 04:10:58 -0400 Received: from unknown (HELO relmlir4.idc.renesas.com) ([10.200.68.154]) by relmlie3.idc.renesas.com with ESMTP; 18 Apr 2018 17:10:54 +0900 Received: from relmlii2.idc.renesas.com (relmlii2.idc.renesas.com [10.200.68.66]) by relmlir4.idc.renesas.com (Postfix) with ESMTP id DC9FD8A1F3; Wed, 18 Apr 2018 17:10:54 +0900 (JST) X-IronPort-AV: E=Sophos;i="5.48,464,1517842800"; d="scan'208";a="278555621" 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:50 +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=pplOf4Gmtjsz+v6fPNo/l16kvVHPWu+y2xjPeJ22/tk=; b=diJHeAtkH7hDa6SiE6bmHX5DHVyot2qx57MCNgZ6pRtNQTLNoe4uR9hprK0xQ+5cdxsRo/YQPFSfCi8wqRokr78YDPqsEbATK+DumTC8+YoFFv/bY3He7wvrlg4OTqoE0EmBcYBP7yl4qqHNlICkXP6RueBI3il2oP7tzGQSctk= 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:44 +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 10/11] arm64: dts: renesas: r8a7795: add OF graph for usb role switch Date: Wed, 18 Apr 2018 17:10:04 +0900 Message-Id: <1524039005-30618-11-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:qNgh/yKpVc2mu5gL9FUN9/7Syj8t1sHpMGYaulhraQD5YwVfxVfgG3rgo56JaI46xxNq6kBLtLaUm5PEMTl0mp8KDOI5D30mVBesf2EGKIKUJGfY2bw5Gl2DOgXcg2WSX92WHT1EWi+a2mgqRHC/L9vr0/brwLBZa2O5EWkJhskflhlJrztEMQIZF1uyh/xRPC6elt/pBbtxT6V3nsTVF3+hhlPFQ+t3ZzXWIOvnh4evxjMZH3KIkbMfDfAw0di6; 25:CWrrK2RlDk9MU5El4VQJMl0a1KbGH+NJgan9tVnAR58iUlPlI/w5h19kdbiywEAMgV1b4LazmLopQyDVXN9rqIXRsFRdQfM51Ynp0S1AeY8wcDiGndLHl30yZ51+UE1qUZLvrbpb6BtleGBwzs2Q4OGVisr0kQd6fA6lMf+TKGnEcstQQ2zQfBe25JqX+pO//OBArbQndlk6fKxLm9QQMjLLNYruwLRYlzLzR6MVTcXy0qxCfDnfKYD2zzp4kKIruutVm4cayYPAn5HGpY4lKa24khvguoYgmOMrMKygtki9W9EBwVOFDRKlcPlA0oY1vrHfFS8qOFBwxNbYCZ9P+w==; 31:EPD/zo6jRKAvJ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fufjuFPQXrUra90YS1oj94Qg== 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)(59450400001)(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:s4iWKhtdHq80c7PrrC/Xm9qlymGUd+7GshhKyZM2C?= =?us-ascii?Q?x29jhh7gUPHuu5sfFQur7vFFK8MeZlptGFBk8N8Wm7OjNPouPf2jdfy47sEa?= =?us-ascii?Q?r+4ArA/xfBEI7nq3tnY1Zcyddhpy6YQC5RVJSsCTaFfN3sVq7gwN1CN49cQH?= =?us-ascii?Q?lPOb9RCnHXyT+OtBXrjYoG9qsCSlMO5n/AaMfV47W2YvUcEJG6HoiQVnCJIK?= =?us-ascii?Q?xXHZG+3I2ZYr7x3lzYPEQs2swv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a9UExo= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; SG2PR06MB0982; 7:IifCM1sAcAyEsrhm/3GvSN2vz4iTtNDwbxsGtA3iFNbaO16DZc6XJR1o03gQmmuWWyzowbxZSQ9vPc9xPwnrtTVo4uipnwT0B86igp9gt7o2IYbvrov+4I04jNY8SBRn9OGuTtZ8vSOmO3WhO+0JaXTWj3nyWRLvDANbfS4Zp4nK27eRnRfQB8B3oDv16LDevnQVm+n+03HAF7omj0TRI31q3IdIlUS5M2yByjQaQn7zxObbBcBJm8EN5m8GT6Mg; 20:gCF7TIfhxceGiQwb5jWbYiWvV3YmFMNnKyIDxUj9O/NxAt47PNjmC4ISgvTIiOYQyQdFxwRICQ4bfPKxtqg60OfiLY7NC+WW7CJlulI/KdVCD0g4/HUv1iJkcrJ7OsXpIF5GT1EqJn68njW6HpAbJ7BcDth1MdqYjMg+TOBAyrM= X-MS-Office365-Filtering-Correlation-Id: 2191e32e-9c2e-4d22-0159-08d5a503e2fa X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Apr 2018 08:10:44.1656 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2191e32e-9c2e-4d22-0159-08d5a503e2fa 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 OF graph properties for usb role switch in r8a7795. Signed-off-by: Yoshihiro Shimoda --- arch/arm64/boot/dts/renesas/r8a7795.dtsi | 44 ++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a7795.dtsi b/arch/arm64/boot/dts/renesas/r8a7795.dtsi index 1d5e3ac..61c1fa0 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_host_ep0: endpoint { + remote-endpoint = <&usb3_host_ep0>; + }; + }; }; usb3_peri0: usb@ee020000 { @@ -1757,6 +1763,44 @@ power-domains = <&sysc R8A7795_PD_ALWAYS_ON>; resets = <&cpg 328>; status = "disabled"; + + port { + usb3_peri_ep0: endpoint { + remote-endpoint = <&usb3_peri_sw0>; + }; + }; + + usb3_role_sw0: usb3-role-sw { + compatible = "renesas,rcar-usb3-role-switch"; + renesas,host = <&xhci0>; + + 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 { + }; + }; + }; + }; }; usb_dmac0: dma-controller@e65a0000 {