From patchwork Mon Sep 26 11:45:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Li X-Patchwork-Id: 12988651 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 B01F8C32771 for ; Mon, 26 Sep 2022 12:07:14 +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:References:In-Reply-To: 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: List-Owner; bh=uPX7yW8VLh668QTQN/a5BQ115rLBhrynSaPqqEsTDH8=; b=aXM1+q6u0o9b7Q F/cjkZBlo7WTmKuGo0D+JKztSDbRjSwqge17LJJXH/nXgVUWp+XNQCjafax40kN17z78tPzBUf57W OcUNvxseICpEg+cAFwLLkA13f6QK/mDJS0UyXD7EhLal6iM1ajFBcwFvltBIp5rzvRK+UdlYxezQM LKBUChYb3SW2RccQEUE2gjZm7mNurqHHhWBdtVrsXqaYiK+VOGo3AIp8ZWo31cHdWGFi71MxFayXG +lUAert1e6Pv2Jp06UAhn6QGNtQYwooNFL16zPM3DLYaQBlGrp29CqZaDKKDtnOklnLmL+UUAm+MS +dFjP71kV21uHUf7I1Dg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ocms7-004iri-Mj; Mon, 26 Sep 2022 12:06:04 +0000 Received: from mail-am6eur05on2046.outbound.protection.outlook.com ([40.107.22.46] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ocmro-004ih1-Fg for linux-arm-kernel@lists.infradead.org; Mon, 26 Sep 2022 12:05:48 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=P1F+y36rSInt8k0QdPy8kvi8Y1iVemiZKULvNjtekcdgy744MRF55Yfye02qD+wt4VcpMJ474Qu13yvaowrUjCuXKg5F4fZxOxyH59BtrlmuRQluQ1/XSlwbR1q+zxdPA6StepWPyZfXxh+VakgpXAICu06fUVDUdKHQUPiaoJL9IaUjVQSKlzlIKDX5MiWu45KlfMtDX3t74ipkNInOF//YrRgCa1KYoFctUGw0sm1zONWGD4X2WN8xPS7M42KEEEyav2SldrmXTcK3ZwopuzNCnOBDhuyLPR84sLZ+dVWR9O+xfDqOR802XQQ9DgF8ow+5LCOoXVCs1UsntlpXLg== 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=HviPUjPALip38KKW1Fci6sIFPhGWPHQj6QVEMYV87X0=; b=dmq8kVKSMgPrMXRzjFgS4XtrZmfFPXW9u0HTxuYDZegaK76qqYmUSjMDwTtxlENXMDHCGYA5B8JXflEIBCRVXweNPSQ+bid6fQyE+MhXWpQhI85qJEPzFj90DJQsEeP2O2MRwfvErslzYFFTVZZncS+xJJ5MaLJ6q5irutcb/pf0P7n6LUVZrT5WY0JBPZWglYvMhovmroPTOTL7Wi5rYNIKt0l3jh46bdXpyFC1ENTGa5QlW92OjgMEfG4S2SeWNQSpErd3ejzMgLte26oHGG/5iimEkz10QJ8uoWPEJG/8OUF9F7gGON1aAn8OZVFIQn4DsazmUT5Tskwf0zm7dQ== 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=HviPUjPALip38KKW1Fci6sIFPhGWPHQj6QVEMYV87X0=; b=hFgROA5ZSDu4UKDBR6Zm9B0PJh87S4LrMSHTxA+GlfFmy5P1BsX2fpU570ReC4ZFnqNuL1AobrhEFDdHOeFcmVe0fNs8NWgWjilEmy8SOiD2qaNQldvCdVzRaQ8W737dIQvijTA1zccKHOFlahNYWCv790vVQJihot8SrnBi+SI= 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 AM9PR04MB8842.eurprd04.prod.outlook.com (2603:10a6:20b:409::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5654.25; Mon, 26 Sep 2022 12:05:41 +0000 Received: from PA4PR04MB9640.eurprd04.prod.outlook.com ([fe80::4ceb:3c8:9764:6dea]) by PA4PR04MB9640.eurprd04.prod.outlook.com ([fe80::4ceb:3c8:9764:6dea%7]) with mapi id 15.20.5654.025; Mon, 26 Sep 2022 12:05:41 +0000 From: Li Jun To: shawnguo@kernel.org Cc: l.stach@pengutronix.de, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, aford173@gmail.com, tharvey@gateworks.com, frieder.schrempf@kontron.de, marex@denx.de, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, xu.yang_2@nxp.com, jun.li@nxp.com Subject: [PATCH 2/4] arm64: dts: imx8mm: correct usb power domains Date: Mon, 26 Sep 2022 19:45:33 +0800 Message-Id: <1664192735-14313-3-git-send-email-jun.li@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1664192735-14313-1-git-send-email-jun.li@nxp.com> References: <1664192735-14313-1-git-send-email-jun.li@nxp.com> X-ClientProxiedBy: SI2PR02CA0031.apcprd02.prod.outlook.com (2603:1096:4:195::16) To PA4PR04MB9640.eurprd04.prod.outlook.com (2603:10a6:102:261::21) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PA4PR04MB9640:EE_|AM9PR04MB8842:EE_ X-MS-Office365-Filtering-Correlation-Id: 6f4ed972-864d-4a09-6b9e-08da9fb76e87 X-LD-Processed: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: iyYHN2NS5NqhtqnPxogp05znIXktPoxODx9S6Vsvgd+OixzrUJ9/3Ygg/ZiRV1ojEGpvUvvRWg2/u1D7DAjrXTi6Uudmuhub4Hvm74/A8x8fEa8o0mTG6MjDwnIvID7mZQ681Jq3jaLY2bpvXwFoJqcGsl8stBcA6KsQvyPRT/9VH2LJCr9jE2kpEeim2XUsnhjopL3rSDpZ6Y28DlNvX57KWAZ1EGQWPw2Ll7B1WNJeZsy9pFQ3/aAq7vQlV8HuWYOkpR5ytrhW1ZVxzvNScodf776Kh18fCOJP2iNTYc3HcRKxUY0F0bRFdG/Ke7+/qPoDP+J2CUpsAMGI/WbtNJRBnCE8kT+61+mH70ol5c2nN7j4ywY1pB44Rs7LHk5sG7boovm8RRXDK0KYK1A6piJWTdAU2CnZODCdoFccWCXEsnoNcuEuoOhgBWrLk+coTQryMlAzKWYhOaPyda660gJl64TrkGOL1e7AML9PUzaVHx4xRZpA8qRXY9cOmUEaG85ss9OZAamVM8jf+v8y78WbwomTCnr2chGa7ltpUtOr3YNXPOnfx/4Jk/XLSEMul4dVw+BoYSjCmsoVALxJk/x+w9YHWJKtQcD+8FklBQtrjZszuheKeBGa5Q+m/kzkKE3VjTEWGdF/QBXbkAJsDLH+nNz7mH8b9aFsYlCdUZW188FtZ0F+bjvcKPwj3RhQHAMotGpMm+EPpirGZvUcX8Oszj/SxQ9atxbqtoOKx5DajZqfd0ovb2c9DtLZVq+IyqVN+JFHDsmX67yl85S/1KrXmHoSaJWMT+mUDNW0b9g= 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)(39860400002)(396003)(366004)(376002)(136003)(346002)(451199015)(2616005)(186003)(86362001)(38350700002)(38100700002)(8936002)(83380400001)(66946007)(66556008)(4326008)(8676002)(66476007)(41300700001)(2906002)(26005)(6506007)(6512007)(7416002)(6666004)(52116002)(316002)(6916009)(478600001)(6486002)(36756003)(5660300002)(32563001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: W1PIssY6HGmOttczQipMFwscaoCIZfmKjAvx6Z1R0+nPAsMT5/+W6yzZUy+DnODS0mjX78RSrIrDwr6yA8EylBQQh2cZJu6N4EkhnJ8eW5T13cM9aTd7zmcbkalvFXpcLhe4AReXFphT9zCxdOrt/yxMQUEMyPSdcTSH+qDIjIohEmHRuun+mKyTM1ed8Mjodc7yRr0kr1ylI09CKFeqk1MTrn0Zez6pveNNN+PkCiyoxm+O42owH1CoaEe07UV8etGOeFZGuRy0Ev7vZKN8+gd4gpR/QlrEIBn6FC0zSFxsyJpwhY3DKeW5Sj3v9zmDIV5CAmd3MZ0q0r5H0VEk808p0O3q6HeDXLe/xsP4CxeENqrtJm6ZZBkAloo+19lnrOS9254UFb86eJ9Uq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KdW/nCTs2IKJGHpMX2rg4kWYg1+a1ByrasVWBxeZsJNF7xPnX+tnj3RthmF0CLuzmgK3I0XnJwLa8QfpOW/Vel47CtSW9fpx0iY= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6f4ed972-864d-4a09-6b9e-08da9fb76e87 X-MS-Exchange-CrossTenant-AuthSource: PA4PR04MB9640.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Sep 2022 12:05:41.4339 (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: AcaekENgxnNXKWT9X15ZekczW4j+nS2myc7pO1Usa41CChzG3N5VZKWi3IOLwc45 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR04MB8842 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220926_050544_561452_F0D5DDF5 X-CRM114-Status: UNSURE ( 9.93 ) 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 pgc_otg1/2 is actual the power domain of usb PHY, usb controller is in hsio power domain, and pgc_otg1/2 is required to be powered up to detect usb remote wakeup, so move the pgc_otg1/2 power domain to the usb phy node. Fixes: 01df28d80859 ("arm64: dts: imx8mm: put USB controllers into power-domains") Signed-off-by: Li Jun --- arch/arm64/boot/dts/freescale/imx8mm.dtsi | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mm.dtsi b/arch/arm64/boot/dts/freescale/imx8mm.dtsi index 41204b871f4f..dabd94dc30c4 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mm.dtsi @@ -276,6 +276,7 @@ usbphynop1: usbphynop1 { assigned-clocks = <&clk IMX8MM_CLK_USB_PHY_REF>; assigned-clock-parents = <&clk IMX8MM_SYS_PLL1_100M>; clock-names = "main_clk"; + power-domains = <&pgc_otg1>; }; usbphynop2: usbphynop2 { @@ -285,6 +286,7 @@ usbphynop2: usbphynop2 { assigned-clocks = <&clk IMX8MM_CLK_USB_PHY_REF>; assigned-clock-parents = <&clk IMX8MM_SYS_PLL1_100M>; clock-names = "main_clk"; + power-domains = <&pgc_otg2>; }; soc: soc@0 { @@ -1184,7 +1186,7 @@ usbotg1: usb@32e40000 { assigned-clock-parents = <&clk IMX8MM_SYS_PLL2_500M>; phys = <&usbphynop1>; fsl,usbmisc = <&usbmisc1 0>; - power-domains = <&pgc_otg1>; + power-domains = <&pgc_hsiomix>; status = "disabled"; }; @@ -1204,7 +1206,7 @@ usbotg2: usb@32e50000 { assigned-clock-parents = <&clk IMX8MM_SYS_PLL2_500M>; phys = <&usbphynop2>; fsl,usbmisc = <&usbmisc2 0>; - power-domains = <&pgc_otg2>; + power-domains = <&pgc_hsiomix>; status = "disabled"; };