From patchwork Tue Mar 5 15:54:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13582564 Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-he1eur04on2081.outbound.protection.outlook.com [40.107.7.81]) (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 0A1FE1292C8 for ; Tue, 5 Mar 2024 15:55:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.7.81 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709654121; cv=fail; b=CXgh0FFMq+ON4aP0wM2caSD+AcK5XC/ZcsgjmD+6YOrAClB/fHUe1PP1E+IHuYMEbCmUaTFA42I5IyThEb7mln5q2IQeu4jdUMP2QPV5HP6yl9ZiWowfGZv+WPlNwNKGWNhkj3R1NpirDbAYd13G8zbFBLkZP9INwpoMhCNHqHA= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709654121; c=relaxed/simple; bh=ItdZ/VzRlX7BqO2EcdGrqRZGY6aRhLvbyf3GUaMZvJg=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=ZBQxZotJG1ugGQYpJ10BS+ePJX/MVup14m3WRNeQ427OUobn724N6SyNfq/fQppWSo2I4fyCAoMpVltn8YB6cRcknet2ID4CtD73NAY010+2qChP/1WCmtfVzloJBrmLl0zum/7wa9ARgNP+5QgA1c2pIh2a0sluwYpDtiU8z6U= 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=OHmo4toD; arc=fail smtp.client-ip=40.107.7.81 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="OHmo4toD" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lSOoQSm3kJ1o6ExIur7mWUAPnxD3yn5ks1T2lu/dMOxyBl3WowK1RcTv9jKwGA2VkU0OkyStAOeYxG35Xi/sPgg7fWHnyeT+p7xpq7vsbp/Ipc7CF/eAqWjHGdT1KFqx6TbQVrKpT83GbMSY6nEHhNjQuGmAtip/LbtKmmE2/eMt6YYHJzAoEAJZ4Znvtzq9kd4AH3f8kVc2feZc15cZoSmcFkRzQi19LXrg94vXBIrjDQg8Mdpzd/U7gprKMuKK3lyVQ6PltHwr5TgbDypkogUbVP22GE/QbML42EgUr4106aTOJ7atdT0eQeHr8ggHsZsSVBAG3UQAZWFGXCavXA== 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=a3XWc4Tsihcke0wavhB/zF3Kq1IdK7NDa+k0N//ypEo=; b=ErfBhW64jQSd5rxUgf42xcBmEbPCMSenQ8F1Q7Xm6talmHuwxu4FwDojmH/qXIn2XST0k2NhVyfsSVnVvuwyM3MPVJcyyiM5ddNNR7h9A8xixUFX4EA6dnce/JtwHdKHMhHsW+Gwgi+gPEPerEftnQVSIq01guOLi6ZItmJGN9s+caBLIfZ7lgUW7so3idauHFuC/yGNcqX0eXPdu/9udi85BUhPDaEGdvrc7Kg9w7cEA04bvEvijJJxLt3HtWBWwQVPQH7fG6RBPL+kNOzYUbBrZTYPdm3PhdkJq0uZFIwUibAi7jk38GtwQII6hzF0mj0NUbYRtu+Su8rrkmG82w== 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=a3XWc4Tsihcke0wavhB/zF3Kq1IdK7NDa+k0N//ypEo=; b=OHmo4toD5WWvCNIKsaREsHccq0rBJDFk0kH3gGS6TLypQ3LfFJFr89TmyE0rcb0qOKEzjCp+U8NnMs0/m5S+l9AmZOTeN73FKpShOjxpkLFq8FjVomrtiuXEefdBzJUQUHUSBIvRK52lmHoEEJPFlpE2ifzLxUEtBjIZesRA6I8= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) by AS8PR04MB8277.eurprd04.prod.outlook.com (2603:10a6:20b:3fc::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7339.39; Tue, 5 Mar 2024 15:55:16 +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.7339.035; Tue, 5 Mar 2024 15:55:14 +0000 From: Frank Li Date: Tue, 05 Mar 2024 10:54:56 -0500 Subject: [PATCH v3 2/4] arm64: dts: imx8dxl: add lpuart device in cm40 subsystem Message-Id: <20240305-m4_lpuart-v3-2-592463ef1d22@nxp.com> References: <20240305-m4_lpuart-v3-0-592463ef1d22@nxp.com> In-Reply-To: <20240305-m4_lpuart-v3-0-592463ef1d22@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-c87ef X-Developer-Signature: v=1; a=ed25519-sha256; t=1709654104; l=1930; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=WdFo7Hx8KYQl6mGiFS4ptyxH5Ku3MPG1inOiZuswong=; b=K/pOIAnN22yQ/5o1JspK/S6S+8zRkGg2dIjbLqwGJv1R3YBFjjhCF/50ZaBYWdKN6ONMBT/sd aPTxBBczW43Cv8A9br4Ah8pQ44chqUKbVk8XJCvuEeuSxu20qV4FuaE X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: BYAPR08CA0020.namprd08.prod.outlook.com (2603:10b6:a03:100::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_|AS8PR04MB8277:EE_ X-MS-Office365-Filtering-Correlation-Id: 2003103d-2832-41da-7411-08dc3d2ca5a8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: U5lFO++Qm4c+RmQq5+ce/TGf38N6eS5b+nzCjhqJEraHxK0aZfw0kTbue6zLdkr1y2o1aukSzuVS3ZJ8aWNJhYASHfIhKZTkc01nuYmd4r4ckyhyCkCP0yCcTJ/r24aY7qBoqRVjykgx7aoWcfb6dWDU4YntG3MLFqk5BfA3c+G7OIpMbPv/VDVb/lgzsQcT5qqlO9lDkCnNSUHJhEuDJOehwvYvO6oUuA4iyb8z/GjBMSfBFJr5rIUmq+IoP7CL26OzYut34OyJJ0NsbDL57/dz2ONHL5fejIUuN7EDdfDL4GW1fLGGcJq8ruVFnv/eATBwTAdVVbZvJkG2g3uMr/4CswsRiRXjsz5aykuFK3idC4M6klAcO99d4lKvbNpHCevj3uWQmLWxtVrfu9C+eahRqQZlP10q+r+8Vm9JxmfZFSi9UGbzSa1ESv5RjL5qckcqxnv4qn0kv9oEBIq81ucClkW6Rr4NfXbLsa5Ix28RfL4YAY0GXEJpLIBBHlOb5fTOUKIefTYlD0gOlqf79uuoxh1jtfKd4Hid1NnCKySMsDyQ/t6SbFEVkPvTN1MB+gcnl7tIjzql/K4FM2lfgi86Gpc679VAoqvbXXowow1qdqaCxul/3g0F6CSUtAtjnHQDm1mNasAHLHn8d4byB800oS9uts+DVhLiqHKyWFJWm/fIsesQLFgKBlniLfa05B7aAzpeToFB+4S1aqYQbyFBwkFbkqaOeJKmTwKGngI= 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)(376005)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?Y3uIR7ULr6nfyp5CfNV9grXFuG0O?= =?utf-8?q?l1MVtcrv62FcoW60KckJjmBg77+WG3BGp5arF2Sz620+zpy9lU+9L4n8b6HM3zM/R?= =?utf-8?q?Z97nEGarXeBBqLaMcT2YztOpsqr5qJNGL9J6VO4nYAkzcllN5E4ANu7dbAahpV91i?= =?utf-8?q?D7DizGFNCeF3ztWtB1jzwmLPaV6i6laz8H+3h8HQA775s272+05i3Mipn8LBxkxDx?= =?utf-8?q?nfQRnKe3VKF9UBXZ6Y29jvO27D5H1fcfasRckgNyyh6ReC8FANYvEVA/iUBXxvTYe?= =?utf-8?q?B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PCr3cW6fob6x2bvQ+AzMU3Wfaiv6hAYwFCECUk11DLVp3Hznsd?= =?utf-8?q?lkTTswaJ3/AWukgSkHT3oSswHhB9J4vSDSCEsEl7c8nGV0/Dfa75pbGQzoBQ7AAKC?= =?utf-8?q?yNwQQXHkrjH33anx704yudavarSWoyUbr9FSlIVVbJyfcqR5PRkVN4uWviKnqsbPS?= =?utf-8?q?rPcpSMD4YNsWDKDYQQmsxVuQKronBAgdf+YE573rs4EXXafge55J7x9fqGhiUhpjk?= =?utf-8?q?WstDh7muzJHTFWCUhbLfrYlox8H3ZCuCfvP/fAIB1H0eoyG3v/xu1SW7gOJU+DHrt?= =?utf-8?q?k/vgmgK3oLjimsws0TDvhalwyxXfVnBBC3pIdMcd3M4FYh3CxJUC8X859puEo+jdF?= =?utf-8?q?qOf7KV5vubJo?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2003103d-2832-41da-7411-08dc3d2ca5a8 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Mar 2024 15:55:14.7733 (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: 237MAh5cyAbm4Ti5IAZ9L/VuYmUsdd3OHxklgjzbCnya+rF2DptX545/yoCHX2Y6CO4n34JeQ0rqaqbtQ5FlEg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8277 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 e918ebd76094d..453e4ea6d2c86 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 1>, <&cm40_uart_lpcg 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>;