From patchwork Fri Mar 29 16:37:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13610772 Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2100.outbound.protection.outlook.com [40.107.20.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 260524E1BE for ; Fri, 29 Mar 2024 16:37:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.20.100 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711730258; cv=fail; b=Ks7/Gi+UVcwPERvyhc7uRTbTxb726nbvkOpQW/+WIdReX7Um7GqNYVAtZtoYm2hv6ONgY9LmwoPWLm2luU3vvb+quu5AmnD+jk7dGrFv72wqaVmWDtkJmRpFB67OdA3FqZr+qI4vc5G9goe+A/gVHjHOuCMUvsPZsmdKcQLJlQ8= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711730258; c=relaxed/simple; bh=gagRF9fYZkE2upHp/O+2fkaPU3gayQR32W21kqsrxRg=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=uIsHRDGvKXohmtxMX06RY5peXomOp1/1+XrB6yhAkdICJ9N69nDlPq9CuzPE6gr+fW/oAVAyHXlYzswDyOGWG3Nbvgfj27UEA0mlXfrdFfr9OiohVrBUj+fg94tnaU6Y2IahvrRRKllNqcfMwNw1aOVKUOJWtEpUoozPvnagi6c= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com; spf=pass smtp.mailfrom=nxp.com; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b=cSu/FLGt; arc=fail smtp.client-ip=40.107.20.100 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=nxp.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=nxp.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=nxp.com header.i=@nxp.com header.b="cSu/FLGt" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FZe30gO51+6OIUQAo3aGoDgzBjcL8Ia6ob+FIS6+3evmVSBQs+UnLq1J0cZ87r8bDK0fqa7m68uCroJRmb52aISbsJLqTrYzUuPW0/1BP+dtxvFg46lWnC9/svSeXb7U1fL7x28/9sKXpiR5GjnGG+sgkrDwQWW+aRYkf2RJDIjrblSeR6wFc3B19T9rY2Sc/stz32t71JBKQQFW5ieVYp9AT4KKN2L+ybdkYy3XFjnFIjf9qzfaBSZYVnteboTbxvDgpssO7OS7FwZv38fghf//QD6F61v+bUzZ69KsA6sspLWog6hT/W4Bg2a9PjXgb8jyw2hGNrR0jSEnuwX1uw== 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=LkrxEcKwbjSy97qtP/Vp7yecwYocTcv8DpJ4g2/PjxI=; b=U6/BzVnwjf0sBJ1PxSLZFGUASLjceER4lLZ5sMENwh3BAfhPgpvW6yUC4J8x8MqTER6JHKhF/cHKJIuBp33Lsd5DurT/Ndo4s8R8zakLHI9wQb8HJDwpq4e0WwutG8KRI8DY5KGKRvD72M/gWpqw2gpa621INUluTlfMquPgt2IdhgDNw+DKuTxHjKixAkfJkOPOYqRBclgx+IOGA134jP8rkGUkNazBRS+8JylTpFVYCMAehhhLG19QzQttkqR+wd5httuTE3ITFcKMYJvoSRdTm/I2vjJWPgnFChSflHuNCfxpit+/uG4Zayj613J7RZSitv1UwvpuGluAYEPlIQ== 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=LkrxEcKwbjSy97qtP/Vp7yecwYocTcv8DpJ4g2/PjxI=; b=cSu/FLGt0Zpaxm0E9rfJUQ8yHAIUAh51O5EG3meovUf+wJTyHFGRyIC8MIlkfSypcc+moSVa8HCaRfxZS/7IsfSeSP62eKzkWzTi7Gfgkf134Z1jts8TYQRTMcdMxkLWxtJcGXxf3d99QBY2XCsOlh5nRyycvhohDu/ZuVY2k4s= Received: from PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) by DBBPR04MB7577.eurprd04.prod.outlook.com (2603:10a6:10:206::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7409.26; Fri, 29 Mar 2024 16:37:34 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::3168:91:27c6:edf6]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::3168:91:27c6:edf6%3]) with mapi id 15.20.7409.039; Fri, 29 Mar 2024 16:37:34 +0000 From: Frank Li Date: Fri, 29 Mar 2024 12:37:06 -0400 Subject: [PATCH v4 2/4] arm64: dts: imx8dxl: add lpuart device in cm40 subsystem Message-Id: <20240329-m4_lpuart-v4-2-c11d9ca2a317@nxp.com> References: <20240329-m4_lpuart-v4-0-c11d9ca2a317@nxp.com> In-Reply-To: <20240329-m4_lpuart-v4-0-c11d9ca2a317@nxp.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Frank Li , Alice Guo , Peng Fan , Alexander Stein X-Mailer: b4 0.13-dev-e586c X-Developer-Signature: v=1; a=ed25519-sha256; t=1711730244; l=1956; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=P2q2uJGnx61JQDTdrXYuXgRztlk7dx955FyY/5tzPog=; b=Bta97xWN2ISR8kvcG1vVf7cV90XBThg++qeuPVnfaonrSQ0JfaWDn/o4EYHBI6vwGrKhkJiF5 eE3nFoexMu7CaR9Dujs68OjUFn35Op8OVtbPriKqmKAKMTxpNqil1cS X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: BYAPR11CA0056.namprd11.prod.outlook.com (2603:10b6:a03:80::33) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) Precedence: bulk X-Mailing-List: imx@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|DBBPR04MB7577:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Bf+ay1b44NpsDY+bxIJwUp9/J6o6lFwmRkfcwM52DZzDZI+kxmGGHDnKBLfrlnOG5oDZCop++f6fWyGQax6bTvLdPW6314FZNJeThSAg5rToND4zp8iMJIalnAzUOXSt1HWl+JCkBQ5rhy7wmgwHVhMoE3RJ2RvBPrACvourYbqg5EXP3C/prp9tp2aYg71oFXQpIthE8wZMvkLaqxXf+1gGdH0RxsVfQ/o9U53/XgnORoCZ/ohMB91YzeZhJcc/kxezJ+Pl10iO/y83yNJBtrV1usY6nWtuVhAK8DNdQgvdsLMA49cEbgX5y6WOhbNoLH3g1dgpCSAxgHAolfju7u4YTJ7ZD+cq9fCWmIhZksdN7EQcXf9R8ILKe3M9KdUS73+iySArTi29a3OuvT4NItoxYcShHN6GK+JTI+W3eZJizGXS+ck08beGXpMbae+0fVi8mwXSskplD48sgCvSu2CRBatyJ+czpyPa+A4gG9tRfWqjX6UQKvjJkNJt3bAdzJWvsNJv1HV6Q3mgmf0v3DkFR3TPgWgOkpe5cgi3wHqHoiDjRqJvB2XkJcTam9oAJubhosrQR6tZctFeOAeaCvmgOQ6soqHEbP1meccEpW5I9/XCQCnUQy8jUzpf56xqWoZ4tN465ZNPSJBvhZun++W3Etaup6o3IrY2BcDye7/j3UicgQ5l1iS9jHZvKSGYFwmh4McKxrebpa5n11XP/qOUtL+ipgb3rJcDPrL/ZLE= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PAXPR04MB9642.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366007)(52116005)(1800799015)(376005)(7416005)(38350700005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?LllhMPDj1vw2GAUhLCzBBOdkpKAF?= =?utf-8?q?DSzbx0BYVZ/gJnf7Px5KajXexu9qfaZ/50UW1OoqwWJ5mQ5aorgBKdEHSsOQfQUdo?= =?utf-8?q?0mR1/2pp5RLctIYDGwqo9B5f8qi4vPU6APOQRnsXZnxW2fFPGN+zT5lxZJaRDnEGH?= =?utf-8?q?IobMZGUdYbmvVRktOLpKA+q5SgLjwlAoN/j2EOKDaeUc8XCJbEmTNYJyIJWJXqOEF?= =?utf-8?q?RSoCVSlBGAB8zxB0ykJegf13X2OPCwiwGAQvDQSmSIMub9Aj5DnZd+hUK8vTW+HmZ?= =?utf-8?q?mDjzRRMeG7V0dQISwif+Lv5FqYCSFigp2nlGDaspZav5h7KbgtleY+VjRTeyd5DMw?= =?utf-8?q?aTb1v5Ls0L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8?q?gp3bK5vOVRJ7VupA0V9rylx7hPnqRyUECthQrQ+yetYZ45a6kPP2bEOtV0OQzkTZD?= =?utf-8?q?qR8voZ4eX2GmHkz7wfgT/EzIVJaQ0sOJKT7JoW1A8G8ixHXK5NKYiQZFtZdwroTXK?= =?utf-8?q?Kr6rTC56qqGwF844nd4WGHeTX/lPmoh65jNjJaVPQL6LjpQlZVaT13yH5v6RRxauQ?= =?utf-8?q?ek3xhPrxkEEPcdYzrTMQNBU81uUaRwFGUHvFsTNxRFOQU2f2c7D2ZxfGZQUUH3Ook?= =?utf-8?q?zaU50Pkd59R5V0kPHESeCm9n1tMWtU2rx5vjPzCl7I+H1rMdS4c2UBSvkPkipRx0I?= =?utf-8?q?DLLXqU6AV/hn?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: d0cb5d66-6bff-4411-9474-08dc500e8987 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Mar 2024 16:37:34.7500 (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: QpZc+U52IxEYFRqQF0sreSQxa+c23Nng/0h849P/qGQqbuyB3CsmB9jLTMFTyB0o4ZOt5nM2/3qZtqr+Dp6g5Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB7577 From: Alice Guo Add lpuart device in cm40 subsystem. Signed-off-by: Alice Guo Reviewed-by: Peng Fan Reviewed-by: Alexander Stein Signed-off-by: Frank Li --- arch/arm64/boot/dts/freescale/imx8-ss-cm40.dtsi | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8-ss-cm40.dtsi b/arch/arm64/boot/dts/freescale/imx8-ss-cm40.dtsi index 10a05db06ade9..5cff052b95d18 100644 --- a/arch/arm64/boot/dts/freescale/imx8-ss-cm40.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8-ss-cm40.dtsi @@ -20,6 +20,18 @@ cm40_subsys: bus@34000000 { ranges = <0x34000000 0x0 0x34000000 0x4000000>; interrupt-parent = <&cm40_intmux>; + cm40_lpuart: serial@37220000 { + compatible = "fsl,imx8qxp-lpuart"; + reg = <0x37220000 0x1000>; + interrupts = <7 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cm40_uart_lpcg IMX_LPCG_CLK_1>, <&cm40_uart_lpcg IMX_LPCG_CLK_0>; + clock-names = "ipg", "baud"; + assigned-clocks = <&clk IMX_SC_R_M4_0_UART IMX_SC_PM_CLK_PER>; + assigned-clock-rates = <24000000>; + power-domains = <&pd IMX_SC_R_M4_0_UART>; + status = "disabled"; + }; + cm40_i2c: i2c@37230000 { compatible = "fsl,imx8qxp-lpi2c", "fsl,imx7ulp-lpi2c"; reg = <0x37230000 0x1000>; @@ -53,6 +65,18 @@ cm40_intmux: intmux@37400000 { status = "disabled"; }; + cm40_uart_lpcg: clock-controller@37620000 { + compatible = "fsl,imx8qxp-lpcg"; + reg = <0x37620000 0x1000>; + #clock-cells = <1>; + clocks = <&clk IMX_SC_R_M4_0_UART IMX_SC_PM_CLK_PER>, + <&cm40_ipg_clk>; + clock-indices = , ; + clock-output-names = "cm40_lpcg_uart_clk", + "cm40_lpcg_uart_ipg_clk"; + power-domains = <&pd IMX_SC_R_M4_0_UART>; + }; + cm40_i2c_lpcg: clock-controller@37630000 { compatible = "fsl,imx8qxp-lpcg"; reg = <0x37630000 0x1000>;