From patchwork Tue Sep 22 10:46:47 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Li X-Patchwork-Id: 297550 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, MSGID_FROM_MTA_HEADER, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C693FC4727E for ; Tue, 22 Sep 2020 10:54:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 70BAF23A74 for ; Tue, 22 Sep 2020 10:54:18 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="dlF84oEL" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726543AbgIVKyR (ORCPT ); Tue, 22 Sep 2020 06:54:17 -0400 Received: from mail-eopbgr60075.outbound.protection.outlook.com ([40.107.6.75]:10333 "EHLO EUR04-DB3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726454AbgIVKyR (ORCPT ); Tue, 22 Sep 2020 06:54:17 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KR0VRtxxgNvqgVoOLnCrkAT/wcQBocdiT2FtxVP1LdCZ1NOXzyrvA+7NTLbnP8/gpePciX7vDQzkiPz0aicqtPlfPUWiCcITnE8wt/B9hLi2iTf8GqRAPH2sITfIsvk5HnqATXwLGoBDRtRMheDGlT0FLsS9mbTNKYFBToP8O5MlMTH9FD6coMQOHlTlQ9HbORMJQatpczFS8ao9HYvFkr6yRcvcrwIVsrdydd4aS3Hm156FjNzJtmEA0r42clJYq1aWjfk0hWdHi3XXowVkRFI3tD2ArKaszfk09lHo/w6eL1tvzyJfujSJLFoOoBSeAQwwFPoA17BUtGulqmc4mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=sFy2fXuiEpKYhzI0Tqc9zHGXNcryPKf6Q8hUDAg23wI=; b=ifNBC8SmXBC+kzShFwARQiAM7YEslhsNLMo0AM5njNT+RT88bi5tJL9Q66L5+LPgVH8pluPLXTHqFQrfkerDMAD7pLWsZPQTKOLBTV3ImHKFLbAZuot+KAblctrbhJwhWuwvaK6Vr4LSLTD46r9Rdd00Qu7UFaFku9tg1/LJ5R4afFqSL/xiFFTkA0nQ4V7sQQxjuCg7SWga6RdNkY42tdiTqkUNErGkN0aq3ExPKFSHi/D2gvV1PaYiMpH7jCG5IwhefTR1LHjlyz9a68iQj/unBQzi+OF1qv7F5EciQSQGQ3TmS318ZmE8EPKQ4sjNEXj42EVDY6PXdrPOon7eFg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=sFy2fXuiEpKYhzI0Tqc9zHGXNcryPKf6Q8hUDAg23wI=; b=dlF84oELjaVHHdFBd/D9BcfnTDiC/Y1x0YNVn3ZV5GV54yC9gemdMLpKVDrZNuVb5CdWad3wgDHUIA9h4CanQoUndjif1mmCFRdBHPOKvTlgQd4MjuXfAdkwYPT5AY8TZi+h1pX+FiDjnZcEZiGfo2lHdDB9OkXHwxzdWdtQQx8= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none; kernel.org; dmarc=none action=none header.from=nxp.com; Received: from VE1PR04MB6528.eurprd04.prod.outlook.com (2603:10a6:803:127::18) by VI1PR04MB4255.eurprd04.prod.outlook.com (2603:10a6:803:3f::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3412.20; Tue, 22 Sep 2020 10:54:14 +0000 Received: from VE1PR04MB6528.eurprd04.prod.outlook.com ([fe80::acd3:d354:3f34:3af7]) by VE1PR04MB6528.eurprd04.prod.outlook.com ([fe80::acd3:d354:3f34:3af7%4]) with mapi id 15.20.3391.025; Tue, 22 Sep 2020 10:54:14 +0000 From: Li Jun To: robh+dt@kernel.org, shawnguo@kernel.org, balbi@kernel.org, mathias.nyman@intel.com Cc: gregkh@linuxfoundation.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, Anson.Huang@nxp.com, jun.li@nxp.com, aisheng.dong@nxp.com, peng.fan@nxp.com, fugang.duan@nxp.com, qiangqing.zhang@nxp.com, horia.geanta@nxp.com, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v3 1/6] dt-bindings: usb: xhci: add property to disable xhci 64bit support Date: Tue, 22 Sep 2020 18:46:47 +0800 Message-Id: <1600771612-30727-2-git-send-email-jun.li@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1600771612-30727-1-git-send-email-jun.li@nxp.com> References: <1600771612-30727-1-git-send-email-jun.li@nxp.com> X-ClientProxiedBy: SG2PR0401CA0017.apcprd04.prod.outlook.com (2603:1096:3:1::27) To VE1PR04MB6528.eurprd04.prod.outlook.com (2603:10a6:803:127::18) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from 10.192.242.69 (119.31.174.66) by SG2PR0401CA0017.apcprd04.prod.outlook.com (2603:1096:3:1::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3391.13 via Frontend Transport; Tue, 22 Sep 2020 10:54:08 +0000 X-Mailer: git-send-email 2.7.4 X-Originating-IP: [119.31.174.66] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 8aef5c4d-91af-441a-896a-08d85ee5d805 X-MS-TrafficTypeDiagnostic: VI1PR04MB4255: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:8273; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: oDvuuxs2W1LpIgqYanwO98xx0KHFpcU1y1QeGn10524JGfiIFnPgkJtvckJZFdnWuTwZ5WLLNIvxVAUgG05GKJAg7kOVUMEYqS5FTiAntmTfs1lANfiVieWZE7j6Djc16NPJoYc3YWs9orpsUNN4oMh4GB2eosAPEU7EOBOfNhesDE4TscenGKTEzyVESBGFm7ne0laF9Si18nzE5WCA5fjRdaED+ZAytFE8lap4NAle48NTpz7qBydP6f7VsGlSs21T1MqBGj988PZ3VI1karguI9Ng9ChQlOLCO4vmgVmeNTCvKraVfN1WtjevL0JY X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VE1PR04MB6528.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(396003)(366004)(39860400002)(136003)(346002)(376002)(316002)(16526019)(86362001)(956004)(2616005)(478600001)(8936002)(26005)(52116002)(5660300002)(8676002)(6666004)(186003)(66476007)(66556008)(16576012)(4326008)(66946007)(2906002)(6486002)(36756003)(7416002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: B107vV4EKZ/5haqje46+R98iPd9n9F4pgvExIjUpR+weP5PpWXBZROZpswA/R5qiAWUQCPlttqxtzedm8cr9agYYXmiXmqXL8dNnzR6aXPQZNo2q0+/1GTcIUeo0Mldw+jtnFrbbrTgMvSDF8FzValKdfAzSUMx9Xcrs/srsCe8mCtOBuzleSAYVpSMBSZsCkgTafac7RixmpVkzKfT27Ir8cTvNn//MQBT9rrPi69gJ5mL6UXkjv87gTgAmExF7+zrQcJRVwTDzfJSVDYq+Nssj18mZ45KrHmBGWlCpB+RzifKWXLdeqDZO4FA5KduPqbbbEOhFM4MKGJwtLCYVFo9LqStWbmWI7VozAbFuJhrcW6AFhrG32wE7eLTLnRkla7glDjwXDJPoL9AWSzLYuMjlpbxEqg2AImASZ2/7zbzn2eZk3hnmmjxM5N2eYRAkESiWwpk4Zopu5e1G0KOxV2gaE2oVNAgyEc1hO65XQY2RYJqiGx4HuXAfsjydRqdIeLlTMB8vy2wAvP0ZRHtkPa3eu69tHSlnkNAVLRhHirDZt3q8q/cvI6kLZ1D4CvDhAQ3kQFWpDzdr3P/XWSBIn773hW9gOV7xXrnsMAjZdu0nkp1NFZBJNgzH9h62s6x8JX8a5Os0XPV/cL95alWs1A== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8aef5c4d-91af-441a-896a-08d85ee5d805 X-MS-Exchange-CrossTenant-AuthSource: VE1PR04MB6528.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Sep 2020 10:54:14.1996 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 02a7snJbpPgHcmKJ8eJJ0JlYfeEMfER0X/3rXvQw8CjR2idytee8Oc9qF+4p4hvF X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB4255 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Add a property "xhci-64bit-support-disable" to disable xhci 64bit address dma, some SoC integration may not support 64bit DMA but the AC64 bit (bit 0) of HCCPARAMS1 is kept to be 1. Signed-off-by: Li Jun --- Documentation/devicetree/bindings/usb/usb-xhci.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/usb/usb-xhci.txt b/Documentation/devicetree/bindings/usb/usb-xhci.txt index 0c5cff8..26446fb 100644 --- a/Documentation/devicetree/bindings/usb/usb-xhci.txt +++ b/Documentation/devicetree/bindings/usb/usb-xhci.txt @@ -28,6 +28,9 @@ Optional properties: - quirk-broken-port-ped: set if the controller has broken port disable mechanism - imod-interval-ns: default interrupt moderation interval is 5000ns - phys : see usb-hcd.yaml in the current directory + - xhci-64bit-support-disable: set if the AC64 bit (bit 0) of HCCPARAMS1 is + set to be 1, but the controller actually can't handle 64-bit address + due to SoC integration. additionally the properties from usb-hcd.yaml (in the current directory) are supported. From patchwork Tue Sep 22 10:46:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Li X-Patchwork-Id: 258461 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, MSGID_FROM_MTA_HEADER, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C39DEC2D0E2 for ; Tue, 22 Sep 2020 10:54:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6CBDB23A1E for ; Tue, 22 Sep 2020 10:54:28 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="D2nW5oSI" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726607AbgIVKyY (ORCPT ); Tue, 22 Sep 2020 06:54:24 -0400 Received: from mail-eopbgr60085.outbound.protection.outlook.com ([40.107.6.85]:61895 "EHLO EUR04-DB3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726601AbgIVKyX (ORCPT ); Tue, 22 Sep 2020 06:54:23 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=X5U7QGMQoWlkm5WiT8nhQquC6/YiNpUdawUbSthq5BPIxAJo295mI2yMhRQ8WwN40nQrJd9J18MQBHBWk8DnkoZO7GHdJzvqS4/FBCYWWxRRnT5Jvn0iLI9YJpdkbQmimmQYHA7jrrDSIZWVRSXrO+UOYn4CRf3e47/SDTWSILYdbHD7tueCF6TV1cfY+nCvn4UnMI97xT1S2cF8HerVZmtngH9fBy/x/2tO+AJ4Aev9xSeaGIGrQoFT4C3whSU9UlQY+8cnlZE3ei8qQTstn3KNfUb6wLba1YReD4sCj5GSLLjXEq9l6dl20xg77SzvFUY1kZUzGV3Byx6U/K14gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0bgdhs5OoBZnz7BF//YAw/NcT+QQ36Us3UjmjwbIHks=; b=I8FJm30Hb+/H2c3X69PGG8Z0a7Go89V5dlFTyR06Gzo9lUY65V+f5oY+A+w6GhwfLs1bp04oEgnvnhKo3TE/R7dzv6207NyTHP1kqDLOm5BD04V+AiPkvENNNpdudi4WblKklq282ifByDwGhn9BN8UAQjG27XB+kILVhFO5t9Ca2f6LuX3ZJ3gD/Vt8pm4vGvtAIG8NlzSGRIdGcv4Vw31Hwpeo4SmdceX4zUwBczdn+e4ZLo30c5tn2JfiQCI9l1EsXCh6swREs1ccwCcb22NuKDyjRgB8nh5I8N/R6x8yq1UJliF+phqec5/Cx8Q4oIvNVFBjNPiE4VOhv8qy8Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0bgdhs5OoBZnz7BF//YAw/NcT+QQ36Us3UjmjwbIHks=; b=D2nW5oSIfRUI0goMK5TyihufTXwBRh6+kPhzkGARkyW55/8ceXP+QLb0afosKqlzaab1p6IohZXMDfQdaYPqNKB8an7g8zFxRzn9Fe07R5HkqWe8fb7wsNhG9e732ozcBBUfywS6h1wYZLgH3nFq5hdnD5TdyOVkPXXr0gMrAGc= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none; kernel.org; dmarc=none action=none header.from=nxp.com; Received: from VE1PR04MB6528.eurprd04.prod.outlook.com (2603:10a6:803:127::18) by VI1PR04MB4255.eurprd04.prod.outlook.com (2603:10a6:803:3f::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3412.20; Tue, 22 Sep 2020 10:54:20 +0000 Received: from VE1PR04MB6528.eurprd04.prod.outlook.com ([fe80::acd3:d354:3f34:3af7]) by VE1PR04MB6528.eurprd04.prod.outlook.com ([fe80::acd3:d354:3f34:3af7%4]) with mapi id 15.20.3391.025; Tue, 22 Sep 2020 10:54:20 +0000 From: Li Jun To: robh+dt@kernel.org, shawnguo@kernel.org, balbi@kernel.org, mathias.nyman@intel.com Cc: gregkh@linuxfoundation.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, Anson.Huang@nxp.com, jun.li@nxp.com, aisheng.dong@nxp.com, peng.fan@nxp.com, fugang.duan@nxp.com, qiangqing.zhang@nxp.com, horia.geanta@nxp.com, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v3 2/6] usb: host: xhci-plat: add support of XHCI_NO_64BIT_SUPPORT via property Date: Tue, 22 Sep 2020 18:46:48 +0800 Message-Id: <1600771612-30727-3-git-send-email-jun.li@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1600771612-30727-1-git-send-email-jun.li@nxp.com> References: <1600771612-30727-1-git-send-email-jun.li@nxp.com> X-ClientProxiedBy: SG2PR0401CA0017.apcprd04.prod.outlook.com (2603:1096:3:1::27) To VE1PR04MB6528.eurprd04.prod.outlook.com (2603:10a6:803:127::18) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from 10.192.242.69 (119.31.174.66) by SG2PR0401CA0017.apcprd04.prod.outlook.com (2603:1096:3:1::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3391.13 via Frontend Transport; Tue, 22 Sep 2020 10:54:14 +0000 X-Mailer: git-send-email 2.7.4 X-Originating-IP: [119.31.174.66] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: a6d99bb3-2dbc-4530-2439-08d85ee5db77 X-MS-TrafficTypeDiagnostic: VI1PR04MB4255: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:1303; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: pcA2cKBZXB+6hzFYMMzZJowl3xi+QjRCkgzMqoQhgI+pr9m9DCx5k054yFEGAmSnmEabQB07vwwzoshRk+r4pNXF0QXCQ4+QA9QO5jg3ajqUT7bjFHWDyrW2nTnxecKirpttzaR9w4CgBCRMxiQaMUNg4ULKZ6xohR1RxVeYarkoRro9RQR+m0JHuCHc1XlBtEf94fKyP0faVMAJxlMTwTn61srIsyW+U+lfAl/KyUuIdqyGCgbhDztC96IbnO5OvgyutUdHxFDI7IipZiPE+YGtcuN2VEapg2ASzmw64mBChlOu91uqs9o7E4JDt36ldIQB8/QCkgrsvR1Z0h1Ovg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VE1PR04MB6528.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(396003)(366004)(39860400002)(136003)(346002)(376002)(316002)(16526019)(86362001)(956004)(2616005)(478600001)(8936002)(26005)(52116002)(5660300002)(8676002)(6666004)(186003)(66476007)(66556008)(16576012)(4744005)(4326008)(66946007)(2906002)(6486002)(36756003)(7416002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: 663BYzMHabYQ/rP5h3Z8GMzuz61V23Ep96FDMMgs/NoBKhGEmZuN4hPlcZY0/1aJwthbgnHVNe0UWm/fjKuGUcxYnRcnCHtGnGM/RHhJYseBG6WkSJQA6M3/jYApihO2XehE2j8Archs98RkCJgpo03tKberIfHtJmU/aqu+d9fFq0FOPIAFJbUzbWASENm7IkbKuCGXsSAlPBaAgSydJI1RiDLn3Cn8P9TMXVKCjITjyxeozkfEvatgo9YYfkPqgiqJuFDwyheRm56BqToriazv5LJFASHX+2QI1OJY/+/J4JTJbEk5u6BBPVu3Hfx5vvY4x0Yl46yvjInxWBAOJ1a7nxBcTjA5BbkFrpnXMMTmDScltt8da+2HkN3gXNr75CcptG4/rkDtL+WcaUPaSmsjzYVL5QC0xkBnBoCyUZcSLiE8NnkikIgEtauckdRnkulbunewMFtafuW0PodUx9RBJSvFIWB4zQ0Zi5o+nDWBOlkMZatB2K2DV9FNd4obwE6Sc2I0q1PdVZttdmssnpgJBsXeYBi/WM9gPwq5CK+yObwDqfhaRKWOhKsLSUuzhmmLwZf62tmFmDnJYPgCaMZgjm+fJhfaO9Bhg/5jqFAg+oQL6GktWDapBwCVYQ71wYF8pSEYRyAE7DrqyT7qVA== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: a6d99bb3-2dbc-4530-2439-08d85ee5db77 X-MS-Exchange-CrossTenant-AuthSource: VE1PR04MB6528.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Sep 2020 10:54:19.9522 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: fAU/cajtJ+H2xAiSUypUjg6CyL9Q3QTV+FAn97dOp0aBVRW8OsU2bn1P5kpoRjB1 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB4255 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Some OF platforms may also have the problem AC64 bit (bit 0) of HCCPARAMS1 set to be 1 but the controller actually can't support 64-bit address when SoC integration, so enable XHCI_NO_64BIT_SUPPORT via dts property "xhci-64bit-support-disable". Signed-off-by: Li Jun --- drivers/usb/host/xhci-plat.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c index 3057cfc..2b63c8b 100644 --- a/drivers/usb/host/xhci-plat.c +++ b/drivers/usb/host/xhci-plat.c @@ -300,6 +300,10 @@ static int xhci_plat_probe(struct platform_device *pdev) device_property_read_u32(tmpdev, "imod-interval-ns", &xhci->imod_interval); + + if (device_property_read_bool(tmpdev, + "xhci-64bit-support-disable")) + xhci->quirks |= XHCI_NO_64BIT_SUPPORT; } hcd->usb_phy = devm_usb_get_phy_by_phandle(sysdev, "usb-phy", 0); From patchwork Tue Sep 22 10:46:49 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Li X-Patchwork-Id: 297549 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, MSGID_FROM_MTA_HEADER, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0D66CC4727F for ; Tue, 22 Sep 2020 10:54:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BC8F8239E5 for ; Tue, 22 Sep 2020 10:54:32 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="ouD0sMR1" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726623AbgIVKyb (ORCPT ); Tue, 22 Sep 2020 06:54:31 -0400 Received: from mail-eopbgr60072.outbound.protection.outlook.com ([40.107.6.72]:65518 "EHLO EUR04-DB3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726621AbgIVKyb (ORCPT ); Tue, 22 Sep 2020 06:54:31 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DdnGnQqMVFABELJAshjw5OJAwBWX6o9c/Ctn2SZ7Iv+ZqIdMKOnTTeVeATw9+XUY6iYFBqwhTAh4Ci2Jz0OXjeCluzthC7b3DQgEZhGqzxAOtyRK199fCT+3fH95b/tcvijEur55qHXBHjmiDRnH6C/5nGlsDERmLy7JKIdvYdjmR/oi8I3yx83jHVvssyHaQofIFNLD1ggz/y2CO9fNLoGGqwyQCdrVcbDzUGDt8HbXKTOT9YsEfFUH+ykY5YIe3Vfd1zRNypTNfxeMqV+zeGL2RIc7ZUvLq9oBO7ovPtziKNhsSkfNO8t2ky00Qs/vxGRbvSPmKg8f6b8dH3LFiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=7h+RW2S95s26pL+s4RUgXNZ94U1YMXzUOAY36hkE7aw=; b=QDT5cEjYvMLVxyxrkA2WK7qryCST071ctGGSqtikeyZMV/mDLEhDocQnSfYnjdF/79gWwOMV/ES9+Ao+YE4IrIa9D/ACNd8a9nod2+NO2AHRzNpQNzOqm23XU/S41Q+72oW8n99vSe25jlsx+V56diWatG4E1yurYJJ+3I+12hlxyNdlOhUcPPnFR9JldKjMsRgvIj13MtbMKXRF9NH8vFrDQ6iKanrNJoH0n5PMwQDL1ibgTiGz2CNtnryWgsbHee71XBEvbPfUZ5Zwb6KANfxeMNLhd7LKPCfiI27zvnz+QY96G7NVrklcOsTr7UA2F0m+BX/GGCPowmKvJBWTVg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=7h+RW2S95s26pL+s4RUgXNZ94U1YMXzUOAY36hkE7aw=; b=ouD0sMR1bekObJByTv1JZTUzEz352+54e5qCwbklj/XP2Zw6Fk3uFjEY2YD4dC1Aut1koF8G55ZVD9ClTEhCxs+/tb9tkyzYXXz8o2e2+KmDmUB0HfF04JLPNImLVYIm6kd27KBDig/WL6TIE8oRdXaitF7cO6VYP8p+AC7H1T8= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none; kernel.org; dmarc=none action=none header.from=nxp.com; Received: from VE1PR04MB6528.eurprd04.prod.outlook.com (2603:10a6:803:127::18) by VI1PR04MB4255.eurprd04.prod.outlook.com (2603:10a6:803:3f::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3412.20; Tue, 22 Sep 2020 10:54:25 +0000 Received: from VE1PR04MB6528.eurprd04.prod.outlook.com ([fe80::acd3:d354:3f34:3af7]) by VE1PR04MB6528.eurprd04.prod.outlook.com ([fe80::acd3:d354:3f34:3af7%4]) with mapi id 15.20.3391.025; Tue, 22 Sep 2020 10:54:25 +0000 From: Li Jun To: robh+dt@kernel.org, shawnguo@kernel.org, balbi@kernel.org, mathias.nyman@intel.com Cc: gregkh@linuxfoundation.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, Anson.Huang@nxp.com, jun.li@nxp.com, aisheng.dong@nxp.com, peng.fan@nxp.com, fugang.duan@nxp.com, qiangqing.zhang@nxp.com, horia.geanta@nxp.com, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v3 3/6] dt-bindings: usb: dwc3-imx8mp: add imx8mp dwc3 glue bindings Date: Tue, 22 Sep 2020 18:46:49 +0800 Message-Id: <1600771612-30727-4-git-send-email-jun.li@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1600771612-30727-1-git-send-email-jun.li@nxp.com> References: <1600771612-30727-1-git-send-email-jun.li@nxp.com> X-ClientProxiedBy: SG2PR0401CA0017.apcprd04.prod.outlook.com (2603:1096:3:1::27) To VE1PR04MB6528.eurprd04.prod.outlook.com (2603:10a6:803:127::18) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from 10.192.242.69 (119.31.174.66) by SG2PR0401CA0017.apcprd04.prod.outlook.com (2603:1096:3:1::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3391.13 via Frontend Transport; Tue, 22 Sep 2020 10:54:20 +0000 X-Mailer: git-send-email 2.7.4 X-Originating-IP: [119.31.174.66] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: e25ad223-71c1-43e6-5eaa-08d85ee5dee7 X-MS-TrafficTypeDiagnostic: VI1PR04MB4255: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:6430; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: AhXtzMkp4UAWfBs/G3jN1W7IJNV8GIR+K+AzZY7UKjWg47AwZn/tWhZyNxmeDxm+xUQHKmDooCqTOkZXD95Nbnfm2OESnH2H0pL/8yB6c5oEpqqUBVsFeKY2Ne/DdrTAhJW3DYPsMNlE4qyqoIPXtfnWX64Nv2s4dlfiqfRgYPBcTdnRsQaZiPet9Nrnf3Z7Ntf/cgPQTbYhLKwXdMRJCABeI38yVmbjZVlO8xlFxxTlq3k7ZghrvwB3SNpj2u1vlRSuQ2AbgW/vYSvgo+wgMhWndZKz/Kxmsq7TDaPBuY1ZWyf3YaOgvjGBD14oIsVqAElkvDQGib/R6AWRU0aE28/Od6QHLJQKLWO4dFxOhZxwbu8xI6kictPzedkI2UTJexuGouWZdYE7cpH2a+4lm7m1XZEjJvRrkn5v48sV/ilEoqLrCekq+GmnJpWeU9U+cufOlxLDazixfmgtep4tDQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VE1PR04MB6528.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(396003)(366004)(39860400002)(136003)(346002)(376002)(316002)(16526019)(86362001)(956004)(2616005)(478600001)(8936002)(26005)(52116002)(83380400001)(5660300002)(8676002)(6666004)(186003)(66476007)(66556008)(16576012)(966005)(4326008)(66946007)(2906002)(6486002)(36756003)(7416002)(32563001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: XNb/QbklvHM4K6mERjSdwjZLTjIWV+NKh4k9XMN0+KXQvjBb/VZshzo/GNOfAKoK1qe9sJ8kjuH9CbbNch74XyDWReegZa7cqRkdatcrHC9xDTd6BkNI0if4L21NSSWNIVMBru9+wKyjMxq/ZUfx0FR0dK4IvzittltMV+3O82vjJr8gF8H4+B25FnZqlql+PTPse88ehMEsotMsquLG70EswMkTPf8H753cIqPlldDmjninf/m7IVzfRabLVWAPo/Bn9n5uhUtwFDEpCpDSlK4C3O4TYTmTg07Orf2rd/UiraGzZVzBoksmDiJ0J5M9iVp7DFplrqLVArZHc32JRGEAgPEYLT6NO/OAK/AR5vSCEzxMhnUwmPmQY1IthqtjGOVuv5qP/qQSqcbhTgB6FzGRDxc8c4Blx1Vrq1e7JFQA+ndldDaLljVk+ioO3+9s1u/Qb0R7+X50ajTGJlgxkNivvhNKV+2GrmF8fpex4y5WATALPnONLGkjKoFPvVFm95m7lSMJ/FbVO35h3RmGIFPdAi1I1Y1IsNAnTbCT1GtQSzTiXRNorFpe+YEAdqllJau18rEDpjPF4UhC2a4ItNU0EWiHkXYlyK4S7Z9fZyZ4bC5infm7h6D2uGtv31PKqwz37Dgt7xQ674Uo21YN/w== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: e25ad223-71c1-43e6-5eaa-08d85ee5dee7 X-MS-Exchange-CrossTenant-AuthSource: VE1PR04MB6528.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Sep 2020 10:54:25.5530 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: U/mTV44C39LarwO4CFTS+7DVj+XeiELYz5/SjHcs3U2G+0Bf1nTbzOpNmmEqGmig X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB4255 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org NXP imx8mp integrates 2 dwc3 3.30b IP and add some wakeup logic to support low power mode, the glue layer is for this wakeup functionality, which has a separated interrupt, can support wakeup from U3 and connect events for host, and vbus wakeup for device. Signed-off-by: Li Jun --- .../devicetree/bindings/usb/fsl,imx8mp-dwc3.yaml | 99 ++++++++++++++++++++++ 1 file changed, 99 insertions(+) diff --git a/Documentation/devicetree/bindings/usb/fsl,imx8mp-dwc3.yaml b/Documentation/devicetree/bindings/usb/fsl,imx8mp-dwc3.yaml new file mode 100644 index 0000000..a5d5566 --- /dev/null +++ b/Documentation/devicetree/bindings/usb/fsl,imx8mp-dwc3.yaml @@ -0,0 +1,99 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +# Copyright (c) 2020 NXP +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/usb/fsl,imx8mp-dwc3.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: NXP iMX8MP Soc USB Controller + +maintainers: + - Li Jun + +properties: + compatible: + items: + - const: fsl,imx8mp-dwc3 + + reg: + maxItems: 1 + description: Address and length of the register set for the wrapper of + dwc3 core on the SOC. + + "#address-cells": + enum: [ 1, 2 ] + + "#size-cells": + enum: [ 1, 2 ] + + ranges: true + + interrupts: + maxItems: 1 + description: The interrupt that is asserted when a wakeup event is + received. + + clocks: + description: + A list of phandle and clock-specifier pairs for the clocks + listed in clock-names. + items: + - description: system hsio root clock. + - description: suspend clock, used for usb wakeup logic. + + clock-names: + items: + - const: hsio + - const: suspend + +# Required child node: + +patternProperties: + "^dwc3@[0-9a-f]+$": + type: object + description: + A child node must exist to represent the core DWC3 IP block + The content of the node is defined in dwc3.txt. + +required: + - compatible + - reg + - "#address-cells" + - "#size-cells" + - ranges + - clocks + - clock-names + - interrupts + +additionalProperties: false + +examples: + - | + #include + #include + usb3_0: usb@32f10100 { + compatible = "fsl,imx8mp-dwc3"; + reg = <0x32f10100 0x8>; + clocks = <&clk IMX8MP_CLK_HSIO_ROOT>, + <&clk IMX8MP_CLK_USB_ROOT>; + clock-names = "hsio", "suspend"; + interrupts = ; + #address-cells = <1>; + #size-cells = <1>; + ranges; + + dwc3@38100000 { + compatible = "snps,dwc3"; + reg = <0x38100000 0x10000>; + clocks = <&clk IMX8MP_CLK_HSIO_AXI>, + <&clk IMX8MP_CLK_USB_CORE_REF>, + <&clk IMX8MP_CLK_USB_ROOT>; + clock-names = "bus_early", "ref", "suspend"; + assigned-clocks = <&clk IMX8MP_CLK_HSIO_AXI>; + assigned-clock-parents = <&clk IMX8MP_SYS_PLL2_500M>; + assigned-clock-rates = <500000000>; + interrupts = ; + phys = <&usb3_phy0>, <&usb3_phy0>; + phy-names = "usb2-phy", "usb3-phy"; + }; + }; From patchwork Tue Sep 22 10:46:50 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Li X-Patchwork-Id: 258460 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, MSGID_FROM_MTA_HEADER, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B6BD7C4727E for ; Tue, 22 Sep 2020 10:54:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7824A23A74 for ; Tue, 22 Sep 2020 10:54:36 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="If9X4X7R" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726629AbgIVKyf (ORCPT ); Tue, 22 Sep 2020 06:54:35 -0400 Received: from mail-eopbgr140053.outbound.protection.outlook.com ([40.107.14.53]:37088 "EHLO EUR01-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726627AbgIVKyf (ORCPT ); Tue, 22 Sep 2020 06:54:35 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bYeUKvBz2NRCroXlMvYLfkF+9UIY2tTkB0Xy+c1dq7CgPQ3n2ObHmxMvR8oKvBu6O6IT9lHKQCHo5x2s+hX9vDkWBV9Vzh7VxNB0jGjySak4GWDDTTvzv9ecN0Tsnq147I4uaKxcLaNlJrgZHrBEtfJ0XAD6xh1IdGUl7pJtr2wacb1wwFMaE3pnXLurClgUx/P2KboRLrhW7O84KB72NXKmrI7ZrTMbcQr1lXMkrxRPIEQs6x7uN5AyWKGj7ljZCOqlItv8RYdW0SkNLPQhalzImmxH0hT94o1rSuPx7sgcUfAYJRaUejgbyuI64BBw/ZB2uQ6tMfgZNuRR6eqzxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=J1ZHb9nKC1jaMU0wzeDCWAt3Wlj7zGMTGS/Y2i2RtTs=; b=auonAr4QpCE0OVuLiplbTjJhY08WQ+tzdecxHHVSqc37trrG77DEhUWiQG1EXU3ruEGi0IaT4ml3wX+EqHyVSCcfXaJbtXMQFC7tZny4mB9fwfuMUvsqVik3Gx88aUwZHwtVjb3kRn206XbduFxeYSnrXEO/J79A7rCLTetcJQRZgKn6W6p4fiu+jsUfB9lUqOvMQFSyAhMYFfmyHXSJMlr1+LTsir77ECHRkz+CQYyl4uOYb9CYKDvwjhSo/SkUQRjUMy2QaFjk4gq3GfAcyteahi1BYGrhkYHMMT/obDphi7SbdhhkVO/tJAG93N4/ZTVgMoZv18UNoYz/l3qemQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=J1ZHb9nKC1jaMU0wzeDCWAt3Wlj7zGMTGS/Y2i2RtTs=; b=If9X4X7RHkTqpL4Ikrg9UwCeMqNeymWp6kDNI2h0S+sCVFbOw6NyLNgx85vRmnto4qIF1Nx2KSi486v1BcdMTzvNIB99SinZ4seaB3WRzs++JR4732QPvlP06YH4vZtvS0wXWhDylmjB8+EdHshw7KXNbr6CqDp3i0OcaqciAN0= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none; kernel.org; dmarc=none action=none header.from=nxp.com; Received: from VE1PR04MB6528.eurprd04.prod.outlook.com (2603:10a6:803:127::18) by VI1PR04MB5055.eurprd04.prod.outlook.com (2603:10a6:803:53::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3391.17; Tue, 22 Sep 2020 10:54:31 +0000 Received: from VE1PR04MB6528.eurprd04.prod.outlook.com ([fe80::acd3:d354:3f34:3af7]) by VE1PR04MB6528.eurprd04.prod.outlook.com ([fe80::acd3:d354:3f34:3af7%4]) with mapi id 15.20.3391.025; Tue, 22 Sep 2020 10:54:31 +0000 From: Li Jun To: robh+dt@kernel.org, shawnguo@kernel.org, balbi@kernel.org, mathias.nyman@intel.com Cc: gregkh@linuxfoundation.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, Anson.Huang@nxp.com, jun.li@nxp.com, aisheng.dong@nxp.com, peng.fan@nxp.com, fugang.duan@nxp.com, qiangqing.zhang@nxp.com, horia.geanta@nxp.com, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v3 4/6] usb: dwc3: add imx8mp dwc3 glue layer driver Date: Tue, 22 Sep 2020 18:46:50 +0800 Message-Id: <1600771612-30727-5-git-send-email-jun.li@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1600771612-30727-1-git-send-email-jun.li@nxp.com> References: <1600771612-30727-1-git-send-email-jun.li@nxp.com> X-ClientProxiedBy: SG2PR0401CA0017.apcprd04.prod.outlook.com (2603:1096:3:1::27) To VE1PR04MB6528.eurprd04.prod.outlook.com (2603:10a6:803:127::18) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from 10.192.242.69 (119.31.174.66) by SG2PR0401CA0017.apcprd04.prod.outlook.com (2603:1096:3:1::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3391.13 via Frontend Transport; Tue, 22 Sep 2020 10:54:25 +0000 X-Mailer: git-send-email 2.7.4 X-Originating-IP: [119.31.174.66] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: bb927312-f378-4838-2e39-08d85ee5e241 X-MS-TrafficTypeDiagnostic: VI1PR04MB5055: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:605; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: LGSYnC4uLTr9SiOTR5ggT+oo0I43SWD8nA2RLir4mH1a1lv4eKzrMImgJO18nrCiN0pHJ2a92xbpfLmfXXXVWNsXzBDJxYiYuBXLydnMcyW8WDfJeU/neB5B2jD0FFYPDrFFdVf5bQdaBOLFT2BPUDdHlJJ2boNf0jq4RMsNzByoNB4C92UGDMDjaPm/+dHa1PR/cSRTwTGZ2L29PRpj30tGLvb7fdxS6ld6ihi/N6cZwj7ZXBJg6PJin6V8lNYUEZ9ZVP84bsX4RtpWIcqIJGArgSQlPJrUILdpD1RnLKdeR5SqjyiKr/ixmg85JAEvekrXb2lGKraol8mtlIXXlCisAtaYHIPtLOScToWtiaWi3oQKgjuz3sGkupBH9KgH X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VE1PR04MB6528.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(346002)(39860400002)(376002)(366004)(136003)(396003)(8936002)(478600001)(86362001)(186003)(36756003)(6666004)(6486002)(26005)(4326008)(2906002)(16576012)(83380400001)(66946007)(316002)(5660300002)(8676002)(30864003)(7416002)(52116002)(956004)(2616005)(66556008)(16526019)(66476007)(32563001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: ajhDN+Wm93fEvp8SavNow1oybdZJWgaTALYcZ+YTo99jJwvfc1R77JUjbuE2VB3nkJ+pTlmMLK+Jh3udz/YxYDTGozCG/gkVz8kTfzgJ+qISXWtD4uCIW4L2diyrgMpwq0c8Cdc9dT+j/uxs1CJOTRU1QEJ7T3Qd6AIXfBDaJ1hnj5J0f3XxLlZyg9VvyTI5KDwZPKdg4+wIu8GjwH5ATmg0O4jYfbs3Zc3xUOyayxVyYzNjDGmJqna5Hjj5zRatComdAXYa7bRE5FOjTX1ZBXU2GsUL0n2PNgmhrqUxlsNyO0gZ4oXPy2zQHin0zQVf/0c3oDoyhocRvuxnyQliDThyWVLbK9bo29YBfc2XPs2PHxzUHi+6LSE0oIoXBIe6F7Tt1d0w0uXNlOBaIouOHqnndWzWG4OkQTQPhh2J2domBqFq4oklkh7/xOwnada8YGIyZVrlRzPiqg+kp7KLQo9WlHnzQ6dcG9gdlbPsKzsV+pcrSdz6FPZPrgDEoCu2Nx3l7IRF/V4mCdVjAUU7iurHzUPV5dLlGzcgZUbzU3QdiUQJ5TO2o46jNyGKYnfSDU8m4XEeVqukV78oeMMHlPAGaE0t4W5sRFWcHcOcSHVEIO9bhJwI4Ge/ZaD11OKZv+ztuFfnI/dcPxnE0MDzFg== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: bb927312-f378-4838-2e39-08d85ee5e241 X-MS-Exchange-CrossTenant-AuthSource: VE1PR04MB6528.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Sep 2020 10:54:31.3357 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: BRGoT4ganPetNyBXgJy82zfTgXWlcAmjwSX2fJ2qjI2rIuvxRI0UrYjxnQ0WhyrT X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB5055 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org imx8mp SoC integrate dwc3 3.30b IP and has some customizations to support low power, which has a seprated wakeup irq and additional logic to wakeup usb from low power mode both for host mode and device mode. Signed-off-by: Li Jun --- drivers/usb/dwc3/Kconfig | 10 ++ drivers/usb/dwc3/Makefile | 1 + drivers/usb/dwc3/dwc3-imx8mp.c | 363 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 374 insertions(+) diff --git a/drivers/usb/dwc3/Kconfig b/drivers/usb/dwc3/Kconfig index 7a23045..2133acf 100644 --- a/drivers/usb/dwc3/Kconfig +++ b/drivers/usb/dwc3/Kconfig @@ -139,4 +139,14 @@ config USB_DWC3_QCOM for peripheral mode support. Say 'Y' or 'M' if you have one such device. +config USB_DWC3_IMX8MP + tristate "NXP iMX8MP Platform" + depends on OF && COMMON_CLK + depends on (ARCH_MXC && ARM64) || COMPILE_TEST + default USB_DWC3 + help + NXP iMX8M Plus SoC use DesignWare Core IP for USB2/3 + functionality. + Say 'Y' or 'M' if you have one such device. + endif diff --git a/drivers/usb/dwc3/Makefile b/drivers/usb/dwc3/Makefile index ae86da0..2259f88 100644 --- a/drivers/usb/dwc3/Makefile +++ b/drivers/usb/dwc3/Makefile @@ -51,3 +51,4 @@ obj-$(CONFIG_USB_DWC3_MESON_G12A) += dwc3-meson-g12a.o obj-$(CONFIG_USB_DWC3_OF_SIMPLE) += dwc3-of-simple.o obj-$(CONFIG_USB_DWC3_ST) += dwc3-st.o obj-$(CONFIG_USB_DWC3_QCOM) += dwc3-qcom.o +obj-$(CONFIG_USB_DWC3_IMX8MP) += dwc3-imx8mp.o diff --git a/drivers/usb/dwc3/dwc3-imx8mp.c b/drivers/usb/dwc3/dwc3-imx8mp.c new file mode 100644 index 0000000..75f0042 --- /dev/null +++ b/drivers/usb/dwc3/dwc3-imx8mp.c @@ -0,0 +1,363 @@ +// SPDX-License-Identifier: GPL-2.0 +/** + * dwc3-imx8mp.c - NXP imx8mp Specific Glue layer + * + * Copyright (c) 2020 NXP. + */ + +#include +#include +#include +#include +#include +#include +#include +#include + +#include "core.h" + +/* USB wakeup registers */ +#define USB_WAKEUP_CTRL 0x00 + +/* Global wakeup interrupt enable, also used to clear interrupt */ +#define USB_WAKEUP_EN BIT(31) +/* Wakeup from connect or disconnect, only for superspeed */ +#define USB_WAKEUP_SS_CONN BIT(5) +/* 0 select vbus_valid, 1 select sessvld */ +#define USB_WAKEUP_VBUS_SRC_SESS_VAL BIT(4) +/* Enable signal for wake up from u3 state */ +#define USB_WAKEUP_U3_EN BIT(3) +/* Enable signal for wake up from id change */ +#define USB_WAKEUP_ID_EN BIT(2) +/* Enable signal for wake up from vbus change */ +#define USB_WAKEUP_VBUS_EN BIT(1) +/* Enable signal for wake up from dp/dm change */ +#define USB_WAKEUP_DPDM_EN BIT(0) + +#define USB_WAKEUP_EN_MASK GENMASK(5, 0) + +struct dwc3_imx8mp { + struct device *dev; + struct platform_device *dwc3; + void __iomem *glue_base; + struct clk *hsio_clk; + struct clk *suspend_clk; + int irq; + bool pm_suspended; + bool wakeup_pending; +}; + +static void dwc3_imx8mp_wakeup_enable(struct dwc3_imx8mp *dwc3_imx) +{ + struct dwc3 *dwc3 = platform_get_drvdata(dwc3_imx->dwc3); + u32 val; + + if (!dwc3) + return; + + val = readl(dwc3_imx->glue_base + USB_WAKEUP_CTRL); + + if ((dwc3->current_dr_role == DWC3_GCTL_PRTCAP_HOST) && dwc3->xhci) + val |= USB_WAKEUP_EN | USB_WAKEUP_SS_CONN | + USB_WAKEUP_U3_EN | USB_WAKEUP_DPDM_EN; + else if (dwc3->current_dr_role == DWC3_GCTL_PRTCAP_DEVICE) + val |= USB_WAKEUP_EN | USB_WAKEUP_VBUS_EN | + USB_WAKEUP_VBUS_SRC_SESS_VAL; + + writel(val, dwc3_imx->glue_base + USB_WAKEUP_CTRL); +} + +static void dwc3_imx8mp_wakeup_disable(struct dwc3_imx8mp *dwc3_imx) +{ + u32 val; + + val = readl(dwc3_imx->glue_base + USB_WAKEUP_CTRL); + val &= ~(USB_WAKEUP_EN | USB_WAKEUP_EN_MASK); + writel(val, dwc3_imx->glue_base + USB_WAKEUP_CTRL); +} + +static irqreturn_t dwc3_imx8mp_interrupt(int irq, void *_dwc3_imx) +{ + struct dwc3_imx8mp *dwc3_imx = _dwc3_imx; + struct dwc3 *dwc = platform_get_drvdata(dwc3_imx->dwc3); + + if (!dwc3_imx->pm_suspended) + return IRQ_HANDLED; + + disable_irq_nosync(dwc3_imx->irq); + dwc3_imx->wakeup_pending = true; + + if ((dwc->current_dr_role == DWC3_GCTL_PRTCAP_HOST) && dwc->xhci) + pm_runtime_resume(&dwc->xhci->dev); + else if (dwc->current_dr_role == DWC3_GCTL_PRTCAP_DEVICE) + pm_runtime_get(dwc->dev); + + return IRQ_HANDLED; +} + +static int dwc3_imx8mp_probe(struct platform_device *pdev) +{ + struct device *dev = &pdev->dev; + struct device_node *dwc3_np, *node = dev->of_node; + struct dwc3_imx8mp *dwc3_imx; + int err, irq; + + if (!node) { + dev_err(dev, "device node not found\n"); + return -EINVAL; + } + + dwc3_imx = devm_kzalloc(dev, sizeof(*dwc3_imx), GFP_KERNEL); + if (!dwc3_imx) + return -ENOMEM; + + platform_set_drvdata(pdev, dwc3_imx); + + dwc3_imx->dev = dev; + + dwc3_imx->glue_base = devm_platform_ioremap_resource(pdev, 0); + if (IS_ERR(dwc3_imx->glue_base)) + return PTR_ERR(dwc3_imx->glue_base); + + dwc3_imx->hsio_clk = devm_clk_get(dev, "hsio"); + if (IS_ERR(dwc3_imx->hsio_clk)) { + err = PTR_ERR(dwc3_imx->hsio_clk); + dev_err(dev, "Failed to get hsio clk, err=%d\n", err); + return err; + } + + err = clk_prepare_enable(dwc3_imx->hsio_clk); + if (err) { + dev_err(dev, "Failed to enable hsio clk, err=%d\n", err); + return err; + } + + dwc3_imx->suspend_clk = devm_clk_get(dev, "suspend"); + if (IS_ERR(dwc3_imx->suspend_clk)) { + err = PTR_ERR(dwc3_imx->suspend_clk); + dev_err(dev, "Failed to get suspend clk, err=%d\n", err); + goto disable_hsio_clk; + } + + err = clk_prepare_enable(dwc3_imx->suspend_clk); + if (err) { + dev_err(dev, "Failed to enable suspend clk, err=%d\n", err); + goto disable_hsio_clk; + } + + irq = platform_get_irq(pdev, 0); + if (irq < 0) { + err = irq; + goto disable_clks; + } + dwc3_imx->irq = irq; + + err = devm_request_threaded_irq(dev, irq, NULL, dwc3_imx8mp_interrupt, + IRQF_ONESHOT, dev_name(dev), dwc3_imx); + if (err) { + dev_err(dev, "failed to request IRQ #%d --> %d\n", irq, err); + goto disable_clks; + } + + pm_runtime_set_active(dev); + pm_runtime_enable(dev); + err = pm_runtime_get_sync(dev); + if (err < 0) + goto disable_rpm; + + dwc3_np = of_get_child_by_name(node, "dwc3"); + if (!dwc3_np) { + dev_err(dev, "failed to find dwc3 core child\n"); + goto disable_rpm; + } + + err = of_platform_populate(node, NULL, NULL, dev); + if (err) { + dev_err(&pdev->dev, "failed to create dwc3 core\n"); + goto err_node_put; + } + + dwc3_imx->dwc3 = of_find_device_by_node(dwc3_np); + if (!dwc3_imx->dwc3) { + dev_err(dev, "failed to get dwc3 platform device\n"); + err = -ENODEV; + goto depopulate; + } + of_node_put(dwc3_np); + + device_set_wakeup_capable(dev, true); + pm_runtime_put(dev); + + return 0; + +depopulate: + of_platform_depopulate(dev); +err_node_put: + of_node_put(dwc3_np); +disable_rpm: + pm_runtime_disable(dev); + pm_runtime_put_noidle(dev); +disable_clks: + clk_disable_unprepare(dwc3_imx->suspend_clk); +disable_hsio_clk: + clk_disable_unprepare(dwc3_imx->hsio_clk); + + return err; +} + +static int dwc3_imx8mp_remove(struct platform_device *pdev) +{ + struct dwc3_imx8mp *dwc3_imx = platform_get_drvdata(pdev); + struct device *dev = &pdev->dev; + + pm_runtime_get_sync(dev); + of_platform_depopulate(dev); + + clk_disable_unprepare(dwc3_imx->suspend_clk); + clk_disable_unprepare(dwc3_imx->hsio_clk); + + pm_runtime_disable(dev); + pm_runtime_put_noidle(dev); + platform_set_drvdata(pdev, NULL); + + return 0; +} + +static int __maybe_unused dwc3_imx8mp_suspend(struct dwc3_imx8mp *dwc3_imx, + pm_message_t msg) +{ + if (dwc3_imx->pm_suspended) + return 0; + + /* Wakeup enable */ + if (PMSG_IS_AUTO(msg) || device_may_wakeup(dwc3_imx->dev)) + dwc3_imx8mp_wakeup_enable(dwc3_imx); + + dwc3_imx->pm_suspended = true; + + return 0; +} + +static int __maybe_unused dwc3_imx8mp_resume(struct dwc3_imx8mp *dwc3_imx, + pm_message_t msg) +{ + struct dwc3 *dwc = platform_get_drvdata(dwc3_imx->dwc3); + int ret = 0; + + if (!dwc3_imx->pm_suspended) + return 0; + + /* Wakeup disable */ + dwc3_imx8mp_wakeup_disable(dwc3_imx); + dwc3_imx->pm_suspended = false; + + if (dwc3_imx->wakeup_pending) { + dwc3_imx->wakeup_pending = false; + if (dwc->current_dr_role == DWC3_GCTL_PRTCAP_DEVICE) { + pm_runtime_mark_last_busy(dwc->dev); + pm_runtime_put_autosuspend(dwc->dev); + } else { + /* + * Add wait for xhci switch from suspend + * clock to normal clock to detect connection. + */ + usleep_range(9000, 10000); + } + enable_irq(dwc3_imx->irq); + } + + return ret; +} + +static int __maybe_unused dwc3_imx8mp_pm_suspend(struct device *dev) +{ + struct dwc3_imx8mp *dwc3_imx = dev_get_drvdata(dev); + int ret; + + ret = dwc3_imx8mp_suspend(dwc3_imx, PMSG_SUSPEND); + + if (device_may_wakeup(dwc3_imx->dev)) + enable_irq_wake(dwc3_imx->irq); + else + clk_disable_unprepare(dwc3_imx->suspend_clk); + + clk_disable_unprepare(dwc3_imx->hsio_clk); + dev_dbg(dev, "dwc3 imx8mp pm suspend.\n"); + + return ret; +} + +static int __maybe_unused dwc3_imx8mp_pm_resume(struct device *dev) +{ + struct dwc3_imx8mp *dwc3_imx = dev_get_drvdata(dev); + int ret; + + if (device_may_wakeup(dwc3_imx->dev)) { + disable_irq_wake(dwc3_imx->irq); + } else { + ret = clk_prepare_enable(dwc3_imx->suspend_clk); + if (ret) + return ret; + } + + ret = clk_prepare_enable(dwc3_imx->hsio_clk); + if (ret) + return ret; + + ret = dwc3_imx8mp_resume(dwc3_imx, PMSG_RESUME); + + pm_runtime_disable(dev); + pm_runtime_set_active(dev); + pm_runtime_enable(dev); + + dev_dbg(dev, "dwc3 imx8mp pm resume.\n"); + + return ret; +} + +static int __maybe_unused dwc3_imx8mp_runtime_suspend(struct device *dev) +{ + struct dwc3_imx8mp *dwc3_imx = dev_get_drvdata(dev); + + dev_dbg(dev, "dwc3 imx8mp runtime suspend.\n"); + + return dwc3_imx8mp_suspend(dwc3_imx, PMSG_AUTO_SUSPEND); +} + +static int __maybe_unused dwc3_imx8mp_runtime_resume(struct device *dev) +{ + struct dwc3_imx8mp *dwc3_imx = dev_get_drvdata(dev); + + dev_dbg(dev, "dwc3 imx8mp runtime resume.\n"); + + return dwc3_imx8mp_resume(dwc3_imx, PMSG_AUTO_RESUME); +} + +static const struct dev_pm_ops dwc3_imx8mp_dev_pm_ops = { + SET_SYSTEM_SLEEP_PM_OPS(dwc3_imx8mp_pm_suspend, dwc3_imx8mp_pm_resume) + SET_RUNTIME_PM_OPS(dwc3_imx8mp_runtime_suspend, + dwc3_imx8mp_runtime_resume, NULL) +}; + +static const struct of_device_id dwc3_imx8mp_of_match[] = { + { .compatible = "fsl,imx8mp-dwc3", }, + {}, +}; +MODULE_DEVICE_TABLE(of, dwc3_imx8mp_of_match); + +static struct platform_driver dwc3_imx8mp_driver = { + .probe = dwc3_imx8mp_probe, + .remove = dwc3_imx8mp_remove, + .driver = { + .name = "imx8mp-dwc3", + .pm = &dwc3_imx8mp_dev_pm_ops, + .of_match_table = dwc3_imx8mp_of_match, + }, +}; + +module_platform_driver(dwc3_imx8mp_driver); + +MODULE_ALIAS("platform:imx8mp-dwc3"); +MODULE_AUTHOR("jun.li@nxp.com"); +MODULE_LICENSE("GPL v2"); +MODULE_DESCRIPTION("DesignWare USB3 imx8mp Glue Layer"); From patchwork Tue Sep 22 10:46:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Li X-Patchwork-Id: 297548 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, MSGID_FROM_MTA_HEADER, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5F49FC4727E for ; Tue, 22 Sep 2020 10:54:42 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0E33423A1B for ; Tue, 22 Sep 2020 10:54:42 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="JX2NaCKP" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726633AbgIVKyl (ORCPT ); Tue, 22 Sep 2020 06:54:41 -0400 Received: from mail-eopbgr140042.outbound.protection.outlook.com ([40.107.14.42]:62350 "EHLO EUR01-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726625AbgIVKyk (ORCPT ); Tue, 22 Sep 2020 06:54:40 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CDXaCCpnrUNE0qL9M59wGM6J7eBd6DXmfM+wEnQaMiGoA4StmugKxycbnvTbGLTJyIivplQkfScuEiYd9Fl7Qc33JfcjHeQi894ZMFxBge+rLgI22LzJCzoM0OZWnORyhJ4iYoLlcmjw9Yzd74EasHh0inws+YlvjQ6m9SEKQ4g+sDbxpVHsvz4z3o1xBLpitTP+y6lsrw/LohXr6ms1qvcV2tAcSnHFxptw9qbwfs4MbHMJFmo7oqSCq72xGyDFwE/t5ArAGufdPL2bg81BVBr7cHxLpwaq3UvojrpsYJtnkU6Jv9Gjfx/pMNi6mxMuuah/RYqnmkTeU4+Auo94fg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=s0a+X9wc5guutenoiOKhyriP4zoUXBc6SkNCW+vBD8Q=; b=UNY+C8h3HkNETUH/Y9I8V1/wKBwPMLnLIEP5gSwUs/P7x+PcihurPcZ2KV8MGzP7e0NchebRx3rHrffT41aPrEkBT0cm5uZMBftqasJQOdZDBtEU23NZ/DFtXUdt33aA/wgGVboBgHMPrOjEVrbZnHzGYslachmI5ErppfFNfko7Q7U5ndrCcGHsYH8FXT++9GEyRvgwgXRm1Y9Gp+oR1lurGRa3SBx3mbQ/8cmAmJvQiCz4P7DCn2Ql59YiWIYCHszk1mzsDGgp50sDWbqT43t7DL7UGJ25g3wEhy0NM9yssSSAIcjBxYspy8YCOrR93JaZfz1xFfLIOJtpqNEt7A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=s0a+X9wc5guutenoiOKhyriP4zoUXBc6SkNCW+vBD8Q=; b=JX2NaCKPAQ/7SkpLSCIc8pKnusazL7yT2xnH0Gf0zFcOQbGlpw+qqH51qlh+v4J/J7i5m1OKem7Fje0Gi6NR8bZlaQrUYHogklAsm4bsG+0zloHo1JIddW6PhPO1wEzYEeI0b0Fu8Li1Ia81zdX0e3EKIrDLOk8/IQohu507Wmg= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none; kernel.org; dmarc=none action=none header.from=nxp.com; Received: from VE1PR04MB6528.eurprd04.prod.outlook.com (2603:10a6:803:127::18) by VI1PR04MB5055.eurprd04.prod.outlook.com (2603:10a6:803:53::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3391.17; Tue, 22 Sep 2020 10:54:37 +0000 Received: from VE1PR04MB6528.eurprd04.prod.outlook.com ([fe80::acd3:d354:3f34:3af7]) by VE1PR04MB6528.eurprd04.prod.outlook.com ([fe80::acd3:d354:3f34:3af7%4]) with mapi id 15.20.3391.025; Tue, 22 Sep 2020 10:54:37 +0000 From: Li Jun To: robh+dt@kernel.org, shawnguo@kernel.org, balbi@kernel.org, mathias.nyman@intel.com Cc: gregkh@linuxfoundation.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, Anson.Huang@nxp.com, jun.li@nxp.com, aisheng.dong@nxp.com, peng.fan@nxp.com, fugang.duan@nxp.com, qiangqing.zhang@nxp.com, horia.geanta@nxp.com, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v3 5/6] arm64: dtsi: imx8mp: add usb nodes Date: Tue, 22 Sep 2020 18:46:51 +0800 Message-Id: <1600771612-30727-6-git-send-email-jun.li@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1600771612-30727-1-git-send-email-jun.li@nxp.com> References: <1600771612-30727-1-git-send-email-jun.li@nxp.com> X-ClientProxiedBy: SG2PR0401CA0017.apcprd04.prod.outlook.com (2603:1096:3:1::27) To VE1PR04MB6528.eurprd04.prod.outlook.com (2603:10a6:803:127::18) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from 10.192.242.69 (119.31.174.66) by SG2PR0401CA0017.apcprd04.prod.outlook.com (2603:1096:3:1::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3391.13 via Frontend Transport; Tue, 22 Sep 2020 10:54:31 +0000 X-Mailer: git-send-email 2.7.4 X-Originating-IP: [119.31.174.66] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: e9a0eb09-31f9-49d3-08b3-08d85ee5e5b9 X-MS-TrafficTypeDiagnostic: VI1PR04MB5055: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:849; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 5PQJZrTEQFd90YcxkDVubnxpTykgHCpcOkLoYGcYKD6WklUQ7JTciG+kRBPiLnc8kHodsinpciefJYw5/Oktt9NOvdu+48Z2/Cme/yvSZTLlH1Lz/IFmL1d1B2TGyO16OAiaTxSwxzL31rRIyhmq1ylLY46sm5V9QLw8Dg18UHM11gOdYS00OaxnK4A74Dxt7NhRGC3qpubEtRzUpP33+KgqVmYY8iMw6coQbzbav6cUc5fXBgwkhhxhP96z6sPjd0GqzgS7s9Gu4LL3F1Eq74c51KrgWQI13SEvs0IAjUoJp5JoYD3QuhLTpYfp03tyqodT4nl9wpH1w23bcykHK61J6XVG8xtAVKp2MV41qoZiMOnXzVqJN/O3s4rY6LjJ X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VE1PR04MB6528.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(346002)(39860400002)(376002)(366004)(136003)(396003)(8936002)(478600001)(86362001)(186003)(36756003)(6666004)(6486002)(26005)(4326008)(2906002)(16576012)(83380400001)(66946007)(316002)(5660300002)(8676002)(7416002)(52116002)(956004)(2616005)(66556008)(16526019)(66476007)(32563001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: deEUqUQBYE33shCOCMtrpBLI5xd/IqeblE5c4OvBP82z1t1Xp2IiZs3W6ztvrJHHzpYxKR+LBEtyjXMypboiSqvHWqSJgkSlZDtWdaDmP0gAv4B2621kB30LZVd0L13myj47J/kDqXbRwrkkNo+Nw/SH04IAPqwHQNczqDOOBgTbCPtShmRjgK0ij8bvebswYDEeP17uiZ97PNTYem8D896osWTRcXaNW+UOU5weKuic2/OcKv3SSL2kbA+Y0Xe/A3YAL6/hSKy/ob8VF2CT02AeFB6eRZ/YIlKJYFd9yGCHok9mhLlve7aeKptYD1E+vuV6F6JQDLaWNxBf+4nN7ghhE5cYhhVIczXnu70+C0dtpIDpCTCqL/FnM7FkOzPKRMEfCiWIQrwM8wBej8XSeF2iDYcVWVto7rQkpqASYdEBDGeAbBAWTpwfYic3wYUDWMWnsdxXZ1QTlYmby7tXRrmeLPZ2GZ2YsqQmnkCLg/KP0x4xh4QaRxmT5KfL2vAmFxvnYXkp4oHhIJIx/bvTNowF7aDqkD+w6aIxevpBPHKuc/VOu8HhK7xHESYzlMFyd9JGTxcq8h+2z3BVDah1eOctF0ZWMFt1vyIQLPuevXodmjooPmzHNyEBSEKO02kk4sqAoO6HAKgNRlGV2Tou+A== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: e9a0eb09-31f9-49d3-08b3-08d85ee5e5b9 X-MS-Exchange-CrossTenant-AuthSource: VE1PR04MB6528.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Sep 2020 10:54:37.0084 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: hv2lmUIjMpleT5/n3UTQxGdsxAV8HB0f733XQGgtYD9CYzbyKgQboMflyice8r3w X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB5055 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org imx8mp integrates 2 identical dwc3 based USB3 controllers and Synopsys phys, each instance has additional wakeup logic to support low power mode, so the glue layer need a node with dwc3 core sub node. Signed-off-by: Li Jun --- arch/arm64/boot/dts/freescale/imx8mp.dtsi | 88 +++++++++++++++++++++++++++++++ 1 file changed, 88 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi b/arch/arm64/boot/dts/freescale/imx8mp.dtsi index 9de2aa1..1b7ed4c 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mp.dtsi @@ -750,5 +750,93 @@ reg = <0x3d800000 0x400000>; interrupts = ; }; + + usb3_phy0: usb-phy@381f0040 { + compatible = "fsl,imx8mp-usb-phy"; + reg = <0x381f0040 0x40>; + clocks = <&clk IMX8MP_CLK_USB_PHY_ROOT>; + clock-names = "phy"; + assigned-clocks = <&clk IMX8MP_CLK_USB_PHY_REF>; + assigned-clock-parents = <&clk IMX8MP_CLK_24M>; + #phy-cells = <0>; + status = "disabled"; + }; + + usb3_0: usb@32f10100 { + compatible = "fsl,imx8mp-dwc3"; + reg = <0x32f10100 0x8>; + clocks = <&clk IMX8MP_CLK_HSIO_ROOT>, + <&clk IMX8MP_CLK_USB_ROOT>; + clock-names = "hsio", "suspend"; + interrupts = ; + #address-cells = <1>; + #size-cells = <1>; + ranges; + status = "disabled"; + + usb_dwc3_0: dwc3@38100000 { + compatible = "snps,dwc3"; + reg = <0x38100000 0x10000>; + clocks = <&clk IMX8MP_CLK_HSIO_AXI>, + <&clk IMX8MP_CLK_USB_CORE_REF>, + <&clk IMX8MP_CLK_USB_ROOT>; + clock-names = "bus_early", "ref", "suspend"; + assigned-clocks = <&clk IMX8MP_CLK_HSIO_AXI>; + assigned-clock-parents = <&clk IMX8MP_SYS_PLL2_500M>; + assigned-clock-rates = <500000000>; + interrupts = ; + phys = <&usb3_phy0>, <&usb3_phy0>; + phy-names = "usb2-phy", "usb3-phy"; + snps,dis-u2-freeclk-exists-quirk; + xhci-64bit-support-disable; + status = "disabled"; + }; + + }; + + usb3_phy1: usb-phy@382f0040 { + compatible = "fsl,imx8mp-usb-phy"; + reg = <0x382f0040 0x40>; + clocks = <&clk IMX8MP_CLK_USB_PHY_ROOT>; + clock-names = "phy"; + assigned-clocks = <&clk IMX8MP_CLK_USB_PHY_REF>; + assigned-clock-parents = <&clk IMX8MP_CLK_24M>; + #phy-cells = <0>; + status = "disabled"; + }; + + usb3_1: usb@32f10108 { + compatible = "fsl,imx8mp-dwc3"; + reg = <0x32f10108 0x8>; + clocks = <&clk IMX8MP_CLK_HSIO_ROOT>, + <&clk IMX8MP_CLK_USB_ROOT>; + clock-names = "hsio", "suspend"; + assigned-clocks = <&clk IMX8MP_CLK_HSIO_AXI_SRC>; + assigned-clock-parents = <&clk IMX8MP_SYS_PLL2_500M>; + assigned-clock-rates = <500000000>; + interrupts = ; + #address-cells = <1>; + #size-cells = <1>; + ranges; + status = "disabled"; + + usb_dwc3_1: dwc3@38200000 { + compatible = "snps,dwc3"; + reg = <0x38200000 0x10000>; + clocks = <&clk IMX8MP_CLK_HSIO_AXI>, + <&clk IMX8MP_CLK_USB_CORE_REF>, + <&clk IMX8MP_CLK_USB_ROOT>; + clock-names = "bus_early", "ref", "suspend"; + assigned-clocks = <&clk IMX8MP_CLK_HSIO_AXI>; + assigned-clock-parents = <&clk IMX8MP_SYS_PLL2_500M>; + assigned-clock-rates = <500000000>; + interrupts = ; + phys = <&usb3_phy1>, <&usb3_phy1>; + phy-names = "usb2-phy", "usb3-phy"; + snps,dis-u2-freeclk-exists-quirk; + xhci-64bit-support-disable; + status = "disabled"; + }; + }; }; }; From patchwork Tue Sep 22 10:46:52 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Li X-Patchwork-Id: 258459 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, MSGID_FROM_MTA_HEADER, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0A346C4727E for ; Tue, 22 Sep 2020 10:54:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A831A239E5 for ; Tue, 22 Sep 2020 10:54:47 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="GbWx4TUA" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726634AbgIVKyq (ORCPT ); Tue, 22 Sep 2020 06:54:46 -0400 Received: from mail-eopbgr60083.outbound.protection.outlook.com ([40.107.6.83]:13403 "EHLO EUR04-DB3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726503AbgIVKyq (ORCPT ); Tue, 22 Sep 2020 06:54:46 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gguIRyhRBOSdIJev04KoWLR0GZ3lh9b08HL7vK56gCTvFdYRCMk3fjxHkw8o8AG5A7LupXDNaj/6tYZ9juOhz2/1hkxN231H4vkrfBAUi1dB4MiHxce2igj7FSHyUc7MRls9442huS0Bghj0ImRNUBC1hvrO0e+Zk2e8szGDXPr/LywEWq6+9NVBNiTagpmXsFTaW+GMW5e5oD8gZ2fRJ+OzhDM3UAJ98o/WRQRYUq9fHFe1vcWfc7yqvR2KnU106OKj8HJrR0nEdwCjHKLWegrq9FGgIUmgjSVuFqZt6A8U/WIfEUKZXvWONwRX0hWNTTxk2xqeG7Ksp2kfKYWJ8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=QI4zXmZg7Uo6OKFNqSKKwim+JAGdaV75yasTPS+Lg1k=; b=Y8UfO+ubTv3auiYUh7PN0IWtC3nyBFWjIhQIaxGUOTShzyCx3ZnmYj/aFHYgk9JvnRNV/OoSttJ6WgDo5vhi3pYe001F8H6EJ093mHzZskM8DAXEwh8m1wCXqvvUSan0kQvdFiwbjgW4dnUfg5nxLc1KArW13DnhR86sy2qSsDABlMdEOR+C+orW0/BBY/AbXLvyB+40WvaMxyz0QEL+PdhWnr9Z/VHo+TyC5QT9y0nmffVdJYMtPplduORMPfeXSCQlKLsBQUejP9GyYiYt2cgkKlCnAw2xk7sP6HCZeosFkdlZF8cf6tsN57NMCRApqZlebUM3ngkw/DLvD/Datg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=QI4zXmZg7Uo6OKFNqSKKwim+JAGdaV75yasTPS+Lg1k=; b=GbWx4TUAxj1+GbhTNGoshjEk6N78WOboVIYbPSUpngcyigyAf6ykTKA6TY0PPvXwSRKkWhQG+UerMbo5DdM9lGyMbyvrj7f+LNA7USqaHn+F14+D8JTHxaW1tu+ilE6UMjZ3HF/dHiVjIMrII8oab05DusJL6n0SQMMRH+nKro8= Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none; kernel.org; dmarc=none action=none header.from=nxp.com; Received: from VE1PR04MB6528.eurprd04.prod.outlook.com (2603:10a6:803:127::18) by VI1PR04MB4255.eurprd04.prod.outlook.com (2603:10a6:803:3f::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3412.20; Tue, 22 Sep 2020 10:54:43 +0000 Received: from VE1PR04MB6528.eurprd04.prod.outlook.com ([fe80::acd3:d354:3f34:3af7]) by VE1PR04MB6528.eurprd04.prod.outlook.com ([fe80::acd3:d354:3f34:3af7%4]) with mapi id 15.20.3391.025; Tue, 22 Sep 2020 10:54:43 +0000 From: Li Jun To: robh+dt@kernel.org, shawnguo@kernel.org, balbi@kernel.org, mathias.nyman@intel.com Cc: gregkh@linuxfoundation.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, Anson.Huang@nxp.com, jun.li@nxp.com, aisheng.dong@nxp.com, peng.fan@nxp.com, fugang.duan@nxp.com, qiangqing.zhang@nxp.com, horia.geanta@nxp.com, linux-usb@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v3 6/6] arm64: dts: imx8mp-evk: enable usb1 as host mode Date: Tue, 22 Sep 2020 18:46:52 +0800 Message-Id: <1600771612-30727-7-git-send-email-jun.li@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1600771612-30727-1-git-send-email-jun.li@nxp.com> References: <1600771612-30727-1-git-send-email-jun.li@nxp.com> X-ClientProxiedBy: SG2PR0401CA0017.apcprd04.prod.outlook.com (2603:1096:3:1::27) To VE1PR04MB6528.eurprd04.prod.outlook.com (2603:10a6:803:127::18) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from 10.192.242.69 (119.31.174.66) by SG2PR0401CA0017.apcprd04.prod.outlook.com (2603:1096:3:1::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.20.3391.13 via Frontend Transport; Tue, 22 Sep 2020 10:54:37 +0000 X-Mailer: git-send-email 2.7.4 X-Originating-IP: [119.31.174.66] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 2aa671d3-b5eb-4675-850b-08d85ee5e91d X-MS-TrafficTypeDiagnostic: VI1PR04MB4255: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:200; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: uU2YNOUQPqiefbfO4xehExoMuZK63KDg4wA2yhy7YpTG1ibNtkbsvTk+1Tdi0ffC5cjvMtJdbIpcq6kNcJQUcol4OCV9ZSFPE84clLa+qokROm2fuB4nqb2kZc1HzsJFMpQ0ErlfC3vSVCbcol8wdt8r3+enRraoHmR00QSrW1Fq2RBi1YuRMEgEhmTzpDchnAvrMKKdifEKNTCjQRsQwvj6dyC9TQ/+GAq2o6TG3ODNa9yTIuMoreH+xjoouNdcAWy0R/BozfQ6GPVQxkFArcaT34wInaI3uIrEtMR7oDy1mmQoA+oqul3aaLWLqN1nBNc4bHIJOK79plSAi597WLxS6W+KH1uqo4P4a5TVfTtWDmJoqDJ+lHhaPpnGhUadODQOp9ZL7cnirjw5WjtjBCjCIeCENuzCbDW+yq/WR8x9ajs5jsu7tY6Kb0/vZK1/ X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VE1PR04MB6528.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(396003)(366004)(39860400002)(136003)(346002)(376002)(316002)(16526019)(86362001)(956004)(2616005)(478600001)(8936002)(26005)(52116002)(83380400001)(5660300002)(8676002)(6666004)(186003)(66476007)(66556008)(16576012)(4744005)(4326008)(66946007)(2906002)(6486002)(36756003)(7416002)(32563001)(414714003)(473944003); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: XmOID35glFMBc9mxecg7C5uma0tHRPyxSp32mhzW5gDWxkFOrM1sP4C9hZ1HQngMBMYYrtgktQjydXIz5qdliLocffSih9q+5Zpf/G6aLqlU6bO3DT+Bi+d56xK1MwApF+tCVM3S4ypNn96aMr+YytgH5LEjtsysgorsFJoqenS5ARaSDQeHm6B715fS+fUOltuG+vJC2j77cxknA+O/CqRHN1Cm9RVIK5sSsjAdbe/IppOPmVTsHthUAGxgTqC7UJcBIHDo+gUD0IT8NPIRhA+hDrkopHdrsq/x2yWqhoF5oGWi9S3/RSyRvlxNlYBEFDJUBbmSv1bNo6iTvzZAr3xPgy2co/WGqPk/lrEDgyC4HLeTIIXDKeXlPyrK+NSt/c6yArzF1MFsyCW+askdyGJh9PpiKKxv2+Y6K+gs45rqUvYaLifuMu+MCtzkHcQHnLXgIg4Vw8yKxtNnIzrRcCV1f89dJhqaaztLjYaQ0QnBIi8ZaQINrhK2v/Gl8ZWIJjyrtUi2RURlOpYmaMdzWbllDdgurbJHjDS3jumwUFPRT0Irfo7q0YY5z9GQBcbK7dQ3LTzEVa4smAvvKJauSpndUMRx9lXBM52HRBbQSraIk9gWkUsaAggmZ6RoIXJ+U9RwUghivEoLOvIlTtHfVw== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2aa671d3-b5eb-4675-850b-08d85ee5e91d X-MS-Exchange-CrossTenant-AuthSource: VE1PR04MB6528.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Sep 2020 10:54:42.8230 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: hrtQeoQZsuVe2a09rrhwEo0cEn+5HxtT7d2dj2N/Zwv9w7T8FO0KPpi5C2YDbvog X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB4255 Precedence: bulk List-ID: X-Mailing-List: linux-usb@vger.kernel.org Enable usb host port with type-A connector on imx8mp-evk board. Signed-off-by: Li Jun --- arch/arm64/boot/dts/freescale/imx8mp-evk.dts | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mp-evk.dts b/arch/arm64/boot/dts/freescale/imx8mp-evk.dts index 432c1a7..0cb3b16 100644 --- a/arch/arm64/boot/dts/freescale/imx8mp-evk.dts +++ b/arch/arm64/boot/dts/freescale/imx8mp-evk.dts @@ -176,6 +176,21 @@ }; }; +&usb3_phy1 { + status = "okay"; +}; + +&usb3_1 { + status = "okay"; +}; + +&usb_dwc3_1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_usb1_vbus>; + dr_mode = "host"; + status = "okay"; +}; + &usdhc2 { assigned-clocks = <&clk IMX8MP_CLK_USDHC2>; assigned-clock-rates = <400000000>; @@ -276,6 +291,12 @@ >; }; + pinctrl_usb1_vbus: usb1grp { + fsl,pins = < + MX8MP_IOMUXC_GPIO1_IO14__HSIOMIX_usb2_OTG_PWR 0x19 + >; + }; + pinctrl_usdhc2: usdhc2grp { fsl,pins = < MX8MP_IOMUXC_SD2_CLK__USDHC2_CLK 0x190