From patchwork Fri Oct 28 01:58:38 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Li X-Patchwork-Id: 13022978 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C22E5ECAAA1 for ; Fri, 28 Oct 2022 02:20:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=gHu3MDZJT+7JGDAXRPsizfvUPlBFpfBs1nzPIrWLq/c=; b=2Gln7b8ZrCg9Rz SU1GeADsjVTH7xUAWY5ESafRQ3YISB8raZNyjl5p8W+Xw83qcmYl1O+INYjSr9PjUJlX1kQXf8yNK 4ZCMQUL07y1075jAj9zD3aRQlZ9Vx2FqGVHMF2LBKCFwWwJDALZ3ROLf6BK7JTvZwanjNYnnYNr7J RypFcnlvTuJGOoOGq3etoE2y8hfxJF3P0/T79YFnxPWnpXS8zYxIKj1OvlTT0KfNqUasL6seMuT4I N2ieFnp/DBsAyAewZmqhAltxdKX96B4Vsm/6EcPzyZr70zL6Mk5NBLcJIqTHcVF+FKHhq/P8hHuan pb/24KEn9A0vgW8Bbdng==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ooEy3-00FW6q-6E; Fri, 28 Oct 2022 02:19:33 +0000 Received: from mail-am6eur05on2078.outbound.protection.outlook.com ([40.107.22.78] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ooExx-00FW4H-Mr for linux-arm-kernel@lists.infradead.org; Fri, 28 Oct 2022 02:19:27 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hkOSbEb0fWwCafyMGUs9p9kjsTm75Pd7Y2m4swSWGGqPrciTQGindRtvOvoFOH8dkVUx8K5sOx50K1LzQXze4vqbMQgRAs/oY3eYXQYDDrakYKNzxEFak7NgeO4f09naYaLq3GPVPYHLVUa58XNZj6IqGQLBB5JmR/sLv3jAq/qoiUkhWTAWjAfOqSvLG9dpRD/Lr1v/27ZiG7dXK4O3P0OHUGwNrrbZNtrDTZzcDvFAJxhDAw1lmTTwHn0h8hR9pOxzdkoHRqhtcf+qJMiZZuAP0xo92BmC+CufNQ3XhTyjov9PNQCbAn1dhTmepyi+wtnLmaCTZoU46V83bSyvow== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=0VwkdM2p7G7EFNs5ilBDOyann3YF7cb2p7VS0jR/uEQ=; b=HxS4Cpr0JYRj4FYPe0+C/IpUdPzLsSKCH00Hw+0p2jtO8UwS/x+k3KJDc239k8sPCxQaIAcpJqTm11BNtO8DX68FG3isNIhP6LShGN5nsEE5fnsYNEvhHvtpfKvjt2yi+1I6B24bUaLR63om4laF9oEIC2sXwA8YAE4VA73NKYLiO4PoQ53QF9R85K3dT1GWEyQH6bJ/ydc+Dm8C61tLSWsnxYy9mVWiYMC5RXndIB9DHlXMYlY8eZ371xmPu75TidYdoFRGYsDOFGS1ulQMqlO/gZhc84OW9mXT3rByqQFxFgsZmMEVsEbGUinMJ+UFY03qxLRefE0n55k0vrPCrg== 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=0VwkdM2p7G7EFNs5ilBDOyann3YF7cb2p7VS0jR/uEQ=; b=kd4pIoYCH4aeIPeiaJbS/dZWK+USkZNi5sL7AxpX/qoa7FoZBWKHR5ag/b9bYg3bS9iDuYamXpmnk/1A2u+6aSTfELGtScAYUsWf46rC4OA4PZi5p/05qXUo8SHcIoq/CwHkPj5swzkQ8ylnGevvARY8B1UW7XyZShSVVcD1U6U= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PA4PR04MB9640.eurprd04.prod.outlook.com (2603:10a6:102:261::21) by AS8PR04MB8804.eurprd04.prod.outlook.com (2603:10a6:20b:42f::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5746.21; Fri, 28 Oct 2022 02:19:20 +0000 Received: from PA4PR04MB9640.eurprd04.prod.outlook.com ([fe80::cc4:c5c2:db97:1313]) by PA4PR04MB9640.eurprd04.prod.outlook.com ([fe80::cc4:c5c2:db97:1313%7]) with mapi id 15.20.5746.026; Fri, 28 Oct 2022 02:19:20 +0000 From: Li Jun To: shawnguo@kernel.org Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, jun.li@nxp.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, xu.yang_2@nxp.com Subject: [PATCH] arm64: dts: imx8mm/n-evk: enable wakeup-source for usb phy Date: Fri, 28 Oct 2022 09:58:38 +0800 Message-Id: <1666922318-7062-1-git-send-email-jun.li@nxp.com> X-Mailer: git-send-email 2.7.4 X-ClientProxiedBy: SI2PR01CA0032.apcprd01.prod.exchangelabs.com (2603:1096:4:192::18) To PA4PR04MB9640.eurprd04.prod.outlook.com (2603:10a6:102:261::21) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PA4PR04MB9640:EE_|AS8PR04MB8804:EE_ X-MS-Office365-Filtering-Correlation-Id: 11ef2560-246d-46b1-b44b-08dab88ad239 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: j5BgApNPMDHIPU/3c/efsiBJHaB5eaEKOa7ny7lO6aYNSPZAM9cYw4uuOwmwvHhuCMy3Efjb+qe1DnumIest43fK8feF3cqD/TnfNX6b6OoAS/FpsOCs+Bd5Yz1KZjaUe+hy9TZA1l1n/7PpQIQLG9EsWR7WTKZlzTN4kmfESxIJc5dazjtck1OgeRMsfBW7LyIZPvP+M/gUJubs1JrryoEUSZCPrZ/iz+8rQ1a4YXidDCKsGBw7ih/TvxUE0BG+Q4j8KTOu8+ILSVb95e/XuhY5D+EnP2VIkVyCPYg7k6tiPVXpAMsAGv8PFvOtsW2JOOhMm6Ue0Swl7vol84TJT6Qc8DfJPnXgcQ5jmRVurwdQAvRlFA7HY99LFgQGb6y1332zcSJie1UZH/v3C6NjRmtY/zlSCQSvn9fAwGz97+lOFqM7UfKGwVUh46+vy8MlCEKETZGAbqdPmpA5WfPzcRUU4TjpNq8iOhN36W6/IqAcZsEgIVHSzLLRBI37utPhGiHDEdLmQq8UKRsxQgqAJeGPz1psyhIH7NjeVtIqCeSEmX+3H1ldbri0mkjRSwhcbZUYGbj15r5HxACeyu6XDSyXisQJCHwJhxcbadtbuHbebgQ6gO6Lyv7zUcrbfPe/4N3Z9pldZ+NZ+1CMoKx5y7xcsj47tB+0bSjqYqwcJT5HnNeJCloAgQVjQq18D8gTYgd4R7VLYn5wG48hMaY+VtMTaEUH9V7Pi1MYrqoa7UqwrW41vG3IVg3Wvs1YOiNkAMr/8UhwV+cIXMOn+g/8B5J1KuPwYz7uRcbCH5RqnvI= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PA4PR04MB9640.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(366004)(39860400002)(376002)(346002)(136003)(396003)(451199015)(26005)(478600001)(52116002)(6666004)(2616005)(186003)(2906002)(6512007)(6506007)(316002)(66556008)(66946007)(5660300002)(8676002)(6486002)(66476007)(8936002)(4326008)(41300700001)(86362001)(6916009)(36756003)(38350700002)(38100700002)(32563001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: gvMyrWGjaCK7iDQCT+K2/PoySAXU2RwR0If3gZJXU61HwlDsfXPQyKeLqWxs7qVPfCKrMTiFOKP6rsRpj9UBvel73TV5kcCxqHjThhpo5tfKPOE8A2F3N4NJDlOdZ+FCBL+JCps1xtugET02jI0raobJ4zbd4HVDuQUYEBmykqKLxyMO/82dXYC6v1QymqXSQl2Pg5hKIBe+fDBbM4pzioos+49RaC5I2xONFJesECHATdgERcn4HaTsTW4RiXXC7yaZHTn+AANFzlNDlEemtO2kcvzdtigEi17HU8jlrFCd3I8m1K3u/khlRWQqCsEvmVjITvGqIkZdJR5kTwJnTIdP7u4MzarNFRRbaQXeUwB45xBkAjTX2wlSX1Yah3rhi/KPkLrBROcgQNG0uwqCJ1phzoH3neR3JcWvzhPvpea+ZJpIHVc0RaP55RT629mSjpbOQ3l51ARJkyz6P/TwidHNTxdRf+sYwbVrTbl4/HCRpGVCY0J/ZtOxEnBpTRY1bqqFzV2OzqFNUXB5DmvxXK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Tenant-Network-Message-Id: 11ef2560-246d-46b1-b44b-08dab88ad239 X-MS-Exchange-CrossTenant-AuthSource: PA4PR04MB9640.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Oct 2022 02:19:20.1478 (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: FMZrWuVXTLjbOqCn+u50OGvVM3X7ozcDVFEHqBzM0rOnjYZiEMjGKBeZkVn9XL1R X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8804 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221027_191926_035749_0DF0CBD0 X-CRM114-Status: UNSURE ( 8.79 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Enable usb phy to be wakeup source to support system wakeup from usb. Signed-off-by: Li Jun --- arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi | 4 ++++ arch/arm64/boot/dts/freescale/imx8mn-evk.dtsi | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi b/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi index 7d6317d95b13..6800d923aa7e 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mm-evk.dtsi @@ -399,6 +399,10 @@ &uart2 { /* console */ status = "okay"; }; +&usbphynop1 { + wakeup-source; +}; + &usbotg1 { dr_mode = "otg"; hnp-disable; diff --git a/arch/arm64/boot/dts/freescale/imx8mn-evk.dtsi b/arch/arm64/boot/dts/freescale/imx8mn-evk.dtsi index 261c36540079..8cb87c7a0f03 100644 --- a/arch/arm64/boot/dts/freescale/imx8mn-evk.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mn-evk.dtsi @@ -255,6 +255,10 @@ &uart3 { status = "okay"; }; +&usbphynop1 { + wakeup-source; +}; + &usbotg1 { dr_mode = "otg"; hnp-disable;