From patchwork Tue May 22 12:01:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoshihiro Shimoda X-Patchwork-Id: 10418273 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 5852860545 for ; Tue, 22 May 2018 12:02:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4966528C49 for ; Tue, 22 May 2018 12:02:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3DF8C28C4E; Tue, 22 May 2018 12:02:13 +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 C53D828C52 for ; Tue, 22 May 2018 12:02:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751477AbeEVMCJ (ORCPT ); Tue, 22 May 2018 08:02:09 -0400 Received: from relmlor3.renesas.com ([210.160.252.173]:18129 "EHLO relmlie2.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751382AbeEVMBy (ORCPT ); Tue, 22 May 2018 08:01:54 -0400 Received: from unknown (HELO relmlir3.idc.renesas.com) ([10.200.68.153]) by relmlie2.idc.renesas.com with ESMTP; 22 May 2018 21:01:52 +0900 Received: from relmlii1.idc.renesas.com (relmlii1.idc.renesas.com [10.200.68.65]) by relmlir3.idc.renesas.com (Postfix) with ESMTP id BC13E79F6F; Tue, 22 May 2018 21:01:52 +0900 (JST) X-IronPort-AV: E=Sophos;i="5.49,430,1520866800"; d="scan'208";a="280262389" Received: from mail-ty1jpn01lp0180.outbound.protection.outlook.com (HELO JPN01-TY1-obe.outbound.protection.outlook.com) ([23.103.139.180]) by relmlii1.idc.renesas.com with ESMTP/TLS/AES256-SHA256; 22 May 2018 21:01:52 +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:X-MS-Exchange-SenderADCheck; bh=DouI4O8NdTW3i96L5rdoWYB1/KWIDiC2EUa6V4iptAk=; b=e/xd5zpgzARm6i58CCUGjPNKm6FRN2DXWCmky1v8UgcnnIyWj95O6HExONGlL0yN0DnkaIIQbevzGRoMcmsdggjM9qqcdbtl1EO0gYVWymOL+Zyw9e23bdfjTeCVhhd6RdqkjQMa7TAYjtdyqVvq1SBYo91GnhQ+FuZ0REiD3IY= 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.776.11; Tue, 22 May 2018 12:01:50 +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 v4 4/4] arm64: dts: renesas: r8a7795: add OF graph for usb role switch Date: Tue, 22 May 2018 21:01:09 +0900 Message-Id: <1526990469-20739-5-git-send-email-yoshihiro.shimoda.uh@renesas.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1526990469-20739-1-git-send-email-yoshihiro.shimoda.uh@renesas.com> References: <1526990469-20739-1-git-send-email-yoshihiro.shimoda.uh@renesas.com> MIME-Version: 1.0 X-Originating-IP: [211.11.155.138] X-ClientProxiedBy: TY2PR01CA0016.jpnprd01.prod.outlook.com (2603:1096:404:a::28) 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)(5600026)(4534165)(4627221)(201703031133081)(48565401081)(2017052603328)(7153060)(7193020); SRVR:OSBPR01MB2293; X-Microsoft-Exchange-Diagnostics: 1; OSBPR01MB2293; 3:EoN4T2kpyp/U1gfyFLMcuj69GtqQIZI2yDlxWnvF8xAi2U3UP1Rx+pwHgVLUSI3647RKidVo2czWVXClhnwa4fq4Pf7XY3slvqbICbBsneCE/IlIBkwOKW68PcywFHJ+d1HRScrNoB+7qcdLF2TD1ROy8I4iDJKnKNyK05bGyYa0vMDfX73A+oQR+0xbJ59v2dp7OArAX3hZTAuEEfOD6w0tmyzdPXcIv1njucw3gR9TNyy0UPk+OqV8VkLSPQDD; 25:B27W74FypujEd3BphsJtIZncRbplwfFbXEescvH8aYDF+/fkHVAqAqC9UcOJj90gaizyZ7xcJLjBWoq8zndCi/5iqmQ8Vq1ADiaLUOkEUTguyq/tSpzLf6lS3HJhsGERpZLHu0iTWAt0AdCCf108aCTQhTCgddjqLQ/+fT1wmZOlBlU9QXkQ5sKZ43Td+T+7cqk5t9Bv+P8tl9SOyfqjcdWCNc/3sBFPiluDhGyYbmFemsfDERiu8oSTZD1tPC0woKOPPDQA49RE+rwShbWx4juVKvyXJ0GXVFHjc02NtgPGAaL3VK4/pte6yInCJCxVMuqre/Um0FPbGbODCBQH+Q==; 31:u68JyX1UxqzNRs5tjqCJRPZ7dJJE2hdd9xgkElRZWFxzkWPUKxBisGBrk8wO28adHLicEqgyGaCpLXo+/q4QEnTdn7RIO/PLIlU/gdYOmBd93WJpCB+q2PV7bcw0Cq1cch834XMQETWM5NV9adLS6E2OcMifao6ewgVMRQ5jd/1aqLA0/i2L01HqxnIZXhvCBdnXGzvNxX6YGWj2SU1oIknF6tKVNCjtZblWtcBieDE= X-MS-TrafficTypeDiagnostic: OSBPR01MB2293: X-Microsoft-Exchange-Diagnostics: 1; OSBPR01MB2293; 20:VYOAR31M63bgU2+eITr2lzGpKXqsL/Nmz2MJwYgEp+FdijVlnduijSjk4l5EAe7JOxq83yMnZNfJxisWz5kIGkCOzNV+pIhAMrAhdgyLxD8VZ8A8O4isfQoAxp5SHweqZJd/9GLuKQ/VICod++zO3KwLNMdRZ7xjQkbZ4041t/HqYw8w7tj+XrjfJEsCzF4EbgIk6eTwax48OFeddQ/KwFJJqELf/mY34RhoxctDDYT+0E10BBKHuCfXCpWFPcVCVY+csI2SSZ51pP0NRcZNOUiKXUA3k205l0Q+7yPKdmoFq23SPwdrgRTGSHMiZTYA4pIrgdA4bf/HnUPdt9QEqQeMIyFh4tW4thx5lcjxaTprnG6Tee2cjxqCVCAmcUcmnxIpl4BIKNYigGoty8QpFfXfzl1JRPaAArbWKkyOPySlXmxe8c8zCYgrNsApcKZ8sxwgAHGvSHb9NqRbRho/WsfgQZ8dU8LmFfJgElHrf+zLBbaCtmx94+B1nelVydGh; 4:1Bv5NG2YtF/HODTOgSFJk7gRBfLovcYxTKqDIjfImpDxhjNPwBor2f/t7f5Vu7HPIKxndbSoFka0va24otNHrGu62WdSP/ffkLiwrb9QMe3GpCQwlobZ41YMNbDGAa2vYDc49aYgBFg6YbgnBmnluHrDBzWwdCeQVbqSO8SMZnMT0lWIfv97l1x3Caq7riQg11MpgmOMLVUfr0ffcx9G+0jKDOkDhjZErn0IFAxx9y6Tldbb19giU2d/qJjApxUxu8rw6sJCeJHPK6YOUsZ4yg== 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)(8121501046)(5005006)(10201501046)(3231254)(944501410)(52105095)(93006095)(3002001)(6055026)(149027)(150027)(6041310)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061750153)(20161123562045)(20161123564045)(20161123560045)(6072148)(201708071742011)(7699016); SRVR:OSBPR01MB2293; BCL:0; PCL:0; RULEID:; SRVR:OSBPR01MB2293; X-Forefront-PRVS: 0680FADD48 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6069001)(39860400002)(346002)(396003)(39380400002)(366004)(376002)(199004)(189003)(16526019)(97736004)(6116002)(3846002)(8936002)(66066001)(7736002)(81166006)(81156014)(36756003)(8676002)(48376002)(78352004)(305945005)(50466002)(316002)(16586007)(50226002)(51416003)(52116002)(498600001)(76176011)(42882007)(5660300001)(59450400001)(6666003)(956004)(11346002)(446003)(2906002)(2616005)(386003)(39060400002)(6506007)(4326008)(476003)(106356001)(68736007)(486006)(25786009)(47776003)(26005)(53936002)(6512007)(107886003)(6486002)(105586002)(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:YchD1lhNJNhR7BzYB09OJuLNkZonW88ssMl27KyYW?= =?us-ascii?Q?FYv8HwkQmLGPZYBOvLb6jB1ShxB6sYHjhIL1AhTq6sui2HUQxXsKjsxLbGp7?= =?us-ascii?Q?Zsdbmtn/oMquk5VunJ+1BJg/CsBkPq5w5zDkjSy3aoYRV39+uKDpkTGNWNEP?= =?us-ascii?Q?ao/7a1lsNrAd8ujsEGiunyoduKqGJTsLlXvHpP+e5yGpNWMl7iJZLCo22eB1?= =?us-ascii?Q?whU0lit9pIkMdAXfQK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Fe51ibMcTsObYDZtctM/0/aRkY6qNZb4c268htld1zXRkB6P/9J8=; 24:+Nvsas5X63B6E0DdKj3mMCg+b1W5fqBAfeR9oLIVIpTyRQ9Q5bMKCXy7RIR51hx4U0On+/YIKCUbfGiIoA52PpbD4K0rt22sBJN0zSENODM= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; OSBPR01MB2293; 7:JL+M5nbpi3eMMc84juXnciu+Xz8GfJCQCyfTi35QOPAFBSrF3YWDrx8YyEgpldLe1ZalW8Tj64ZlRGu3CINTDggKyaXrro266KiFXCjtA5S0u9BoPrQP7sSPimmBeQSr0yAEA6GEAVSsaIqaX2KcIyeeOgOleqx01jpaoVNM8mA6KD/EjU3HjxynujqhS+zzUV01E/JcALyfOK6d8lWs50yQdY/pbhTOOX3LMH42Sh0K0sOEjtBBL0k4sGe0fW1T; 20:CqYb7EXntWKhi+OwdNmPtSyJtdnVSX8/hQap+asNG8i5/syFZSnPgBZm1ih+6FfSP8Fc15Nqqw8jC5jrYlVugkhwSHfPO8IhBldA2YzAUrDvWqWkWmdcXGVSah2Z5c7R6Xa0hdjqS+pbxAcBAKrH4LuQ8ba5hb/IEy+mEn1dkWM= X-MS-Office365-Filtering-Correlation-Id: 2e4f1a8a-d72f-42f5-78ab-08d5bfdbcd28 X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 May 2018 12:01:50.1330 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2e4f1a8a-d72f-42f5-78ab-08d5bfdbcd28 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 {