From patchwork Fri Apr 29 07:43:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Li X-Patchwork-Id: 12831577 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 A58D2C433F5 for ; Fri, 29 Apr 2022 08:11:17 +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=L41HnC1CK+4nShNV0wjquAkI/6zKiZEMrrPfQDruSrM=; b=rHbT7DvKleuu1f tfZmIqoN6hJoNBXsSWY0u5CL0MsyLJ2PEAi+wsAsWeurLRcP6FiZGsEBDqgBkill9cotznrCqCB45 4UqknjNqnRzkglNqXued1FjCvurfx+3STkSKYzVGVH+MdCy2anSFo1YbFFUwSS3DcLg8nFRUKk1qZ m6jGZiOjuACCUMASjxb0k0tkFn7OeznBrtu4cKziQD+AwzTGaIwvE1kxpRQ30scTNSeQ6rL4DSzbZ WvqXgn71Jv2H827NWuB3SSzpM/Xl3Lo3fEitP+T4UxMlx+FAwCQJVJuK8Fu/mBROntCUlC0jwJqqO 6oqWrTi69d3f7oF7Cb6w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nkLhU-00A5Pg-EL; Fri, 29 Apr 2022 08:10:04 +0000 Received: from mail-am6eur05on20604.outbound.protection.outlook.com ([2a01:111:f400:7e1b::604] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nkLhR-00A5Ny-Bd for linux-arm-kernel@lists.infradead.org; Fri, 29 Apr 2022 08:10:02 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=g/2MnxJHDzKgSzuJbjKRJ0HpXWRg8WmVS6hSwC4Buwe4BkUs/GE0CzUrDg0KlFAUzH7rmez9eBQpFHNcgnBmwns1YWIkb1v5W08txnRckZlhTJmKfm31ktytmFMjUC+QqRhjA9smBW60pqfCv7uux/2JX0tRPKVKO04XLzNdOLyn9lvL0FNDN4RCnHQbiKJ3sYW3qFhF9sbaKmh7RBocXiskQs3I5G8F9HUukp5DD/Q8/TcMjzFQAvJyGQQ+Wnf/qshU9Aj2PI0iQ2kincYwsOZxuGFVbRVXxcz2/Be98oQTG+p8uElpFlLVfdoPOI+6dPF2zlYHtCoq+EjJm1TFBg== 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=+5fVXPgqcNerYGSVWnh8neO11qq9CcNAXFfpnZwou3c=; b=Alq+lpVSPiZmHQMrgkmtBg9Vuw2zW6ZZTWx33hzPJRrkK9rCNQE0ivDQVez8q4ZzfVMAuRqhn1xN5osmKvNY6ceXeY4g35tpk+dipqb2Ag5At0XrY5jFBGccgLq85jma0gEcFx62h2gUvnrxZjH1j/myN6c1PT0ulhnVJhHM92sSMIYxCKjIdVHdhBCbe6mbFHSiJ7mV+EqubDMcNNTEJmGuRZf329TALawr5izy65EuTA8QcdEd67tIsDW2mHAsRWsNmYUkMeW34Mxeh09R6rAsCT+WJ+VDnB7e6CXDQJqu7iSX+w04i2uc8Qy3+yvYDPoznNjzOp7iII4pVXR9ng== 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=+5fVXPgqcNerYGSVWnh8neO11qq9CcNAXFfpnZwou3c=; b=WQMIHMz3Skg0r7aGWREENBO7iU47s+pNhNJj6ZNELTsnpDnXEz7IHqT/wdzvQsTWGPareK1uSjx6hpPpiIXOHrOod9GjS8Al1v9q7dZI5q17D3lAD+f2Px5dzHX0U8SUynNTmrOvS/bUPrcoBzNLr7LLlL/telxxvfWkcoegHZo= 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 AM6PR04MB5112.eurprd04.prod.outlook.com (2603:10a6:20b:10::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5186.21; Fri, 29 Apr 2022 07:55:12 +0000 Received: from PA4PR04MB9640.eurprd04.prod.outlook.com ([fe80::597b:6d36:1222:b37a]) by PA4PR04MB9640.eurprd04.prod.outlook.com ([fe80::597b:6d36:1222:b37a%7]) with mapi id 15.20.5186.021; Fri, 29 Apr 2022 07:55:12 +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, l.stach@pengutronix.de, aford173@gmail.com, tharvey@gateworks.com, frieder.schrempf@kontron.de, jun.li@nxp.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, ping.bai@nxp.com Subject: [PATCH] arm64: dts: imx8m: correct usb power domain Date: Fri, 29 Apr 2022 15:43:04 +0800 Message-Id: <1651218184-22066-1-git-send-email-jun.li@nxp.com> X-Mailer: git-send-email 2.7.4 X-ClientProxiedBy: SI2P153CA0029.APCP153.PROD.OUTLOOK.COM (2603:1096:4:190::16) To PA4PR04MB9640.eurprd04.prod.outlook.com (2603:10a6:102:261::21) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 8267dc7e-f993-4d41-da24-08da29b5969e X-MS-TrafficTypeDiagnostic: AM6PR04MB5112:EE_ X-LD-Processed: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635,ExtAddr X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Tf4GvFkjWdcfgAFnQJut0Fat7F+EOPZZ3il09rhGvY9tnAhS6Teu9XgP02yzGfCqqoCWkqyUR+NGvRb3oWPFFvosiJvebXcqstK2r9cgSCauK9kn8VzxNN/4vxORRBOc9XnIg6Ss8lG6RXfdJ8+OOLcRQBwWx+MBkP4YL+8GSNYhmLuG+726N4Tq0B5+m7+3/m/oNp+KHPh8xQH9/q6INi49N2JhayhUgZd+rU8F5UypZCy//grerH2hZMrM2hHsG+n6Uqz9fCh+LEynLvWeM8VQ+JDmzBE3o36pBRnAscaDkZONhNrzwDMBocurJ+cb4YlQMSygeLK1Sq+VtYYFmntaykiYaxTWHL4ETU3o+RyxoO6CQwN1XvxB1laQnnyAbeHuoJlFrq97TA7mKf3ui7eA+pxSMN+OHPGU8xf4eaNS6alogRMeDmZjr8RLMICRCnPQFT1puVIY8gYRHgonYvIv8+QQbkcflU2oWSrZemdVyza0j1IHZnQFFOqAL0SwANltC3Y7/UnJIcAO9i9FjDmClq34yaOQCx0tuEQ9uT/c/uw8HI8rnpjKJHxCo81tcE20mMb8f9Qj9+iFRJpNpr8lD/e8kk1GeZ7DXEFx59tm7joOiHHycmsGGO1+M4hO+kaPt2BRTJfOuF9GA/NSC0OG8GnVBIOAbuNexFcI11hEk+uTnUYOxaKw9iteEVh9EXRWEGNBG9MRUkH1kXAM13FhzQhkY2klPHOsCAmv0Qs= 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:(13230001)(4636009)(366004)(6666004)(83380400001)(6506007)(6512007)(26005)(86362001)(2616005)(186003)(7416002)(8936002)(66556008)(4326008)(66476007)(8676002)(5660300002)(38100700002)(38350700002)(52116002)(2906002)(66946007)(36756003)(6486002)(508600001)(6916009)(316002)(32563001); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 4zKO2/c6tyE2Zp853fUv3nucUqMhHCcvTRq5heHnnCwX8+flMXeTcL1invvzqzniN4qhfzF3iu1KpzqFhdhFlKfhiRCqpE4LMUitEB1mlvwP0+q8hn3XtsfBiZiLZcyKA/rOv5olfoWsl6LI+25WykEadFa5cJHdvDHZmW8KuLs56IBC6aEMPpyZx6Z+82HmDOBWEQsvPabzhslk953oP/PIFYRfwm98RGHNVRs4e5BRIKKORUhJEI4SOp3zvurwv0cW3rxeJusF3thZutJZVYuNOzRF8Lg8AKUIuz7K9C2v0ZDI7KHlc7saEBWmQyZpEHGvVir252B3kNYsqZt6VwQ/yToJG2onIyMIsIntt/mUCXZn9P7VsPyjpqsTebMfaYtv0jXhteBgXTOUn3xLvGiw9SfYfqoxqqQNg/whgObqz1G3QQR8Qli3JTn+Lxm3kIL/xM/lh8WMFoUNsVZAZapOMmjXGLklamvWrAgAHAnne7FmTAS7KwbNxfgJXcEjeK7DsxyWOufg4hSQTL07somUBDW9kQ30F/oDuY8wWpn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guO/eVFw8+zW+Xs/Cxa2NzXYMEBKPLacjT602+IoRj/U2btsLH1CYL4tcy0YS/iBekSuqBQTXb2lZLfvA+o5iNbDtIcZ5fKtt0aYbOw7rQ== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8267dc7e-f993-4d41-da24-08da29b5969e X-MS-Exchange-CrossTenant-AuthSource: PA4PR04MB9640.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Apr 2022 07:55:12.3391 (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: ojTsxzi6Difuva7HoKOZ+Angz2N+M2O9Gw1cwU0Z+oqWH2q4ebH4uWWy0Z2u3Dl7 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR04MB5112 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220429_011001_430042_4128ED65 X-CRM114-Status: GOOD ( 10.01 ) 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 for each usb phy and pgc_hsiomix is shared by 2 usb controllers, so assign those power domains to correct controller and phy node, decouple the pgc_otg1/2 from pgc_hsiomix since there is no hardware dependency. Suggested-by: Jacky Bai Signed-off-by: Li Jun --- arch/arm64/boot/dts/freescale/imx8mm.dtsi | 8 ++++---- arch/arm64/boot/dts/freescale/imx8mn.dtsi | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/imx8mm.dtsi b/arch/arm64/boot/dts/freescale/imx8mm.dtsi index 1ee05677c2dd..3ff71ca122e4 100644 --- a/arch/arm64/boot/dts/freescale/imx8mm.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mm.dtsi @@ -275,6 +275,7 @@ usbphynop1: usbphynop1 { clocks = <&clk IMX8MM_CLK_USB_PHY_REF>; assigned-clocks = <&clk IMX8MM_CLK_USB_PHY_REF>; assigned-clock-parents = <&clk IMX8MM_SYS_PLL1_100M>; + power-domains = <&pgc_otg1>; clock-names = "main_clk"; }; @@ -284,6 +285,7 @@ usbphynop2: usbphynop2 { clocks = <&clk IMX8MM_CLK_USB_PHY_REF>; assigned-clocks = <&clk IMX8MM_CLK_USB_PHY_REF>; assigned-clock-parents = <&clk IMX8MM_SYS_PLL1_100M>; + power-domains = <&pgc_otg2>; clock-names = "main_clk"; }; @@ -669,13 +671,11 @@ pgc_pcie: power-domain@1 { pgc_otg1: power-domain@2 { #power-domain-cells = <0>; reg = ; - power-domains = <&pgc_hsiomix>; }; pgc_otg2: power-domain@3 { #power-domain-cells = <0>; reg = ; - power-domains = <&pgc_hsiomix>; }; pgc_gpumix: power-domain@4 { @@ -1180,7 +1180,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"; }; @@ -1200,7 +1200,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"; }; diff --git a/arch/arm64/boot/dts/freescale/imx8mn.dtsi b/arch/arm64/boot/dts/freescale/imx8mn.dtsi index 8def5d679e7e..5482180236ae 100644 --- a/arch/arm64/boot/dts/freescale/imx8mn.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8mn.dtsi @@ -662,7 +662,6 @@ pgc_hsiomix: power-domain@0 { pgc_otg1: power-domain@1 { #power-domain-cells = <0>; reg = ; - power-domains = <&pgc_hsiomix>; }; pgc_gpumix: power-domain@2 { @@ -1076,7 +1075,7 @@ usbotg1: usb@32e40000 { assigned-clock-parents = <&clk IMX8MN_SYS_PLL2_500M>; phys = <&usbphynop1>; fsl,usbmisc = <&usbmisc1 0>; - power-domains = <&pgc_otg1>; + power-domains = <&pgc_hsiomix>; status = "disabled"; }; @@ -1174,6 +1173,7 @@ usbphynop1: usbphynop1 { clocks = <&clk IMX8MN_CLK_USB_PHY_REF>; assigned-clocks = <&clk IMX8MN_CLK_USB_PHY_REF>; assigned-clock-parents = <&clk IMX8MN_SYS_PLL1_100M>; + power-domains = <&pgc_otg1>; clock-names = "main_clk"; }; };