From patchwork Wed Feb 28 19:54:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13575879 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 918B4C47DD9 for ; Wed, 28 Feb 2024 19:56:01 +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:Cc:To:In-Reply-To: References:Message-Id:Subject:Date:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=vKWN/GVOWO3H1gbM51QBBlqzZvANDaYWIC9teJg/Ddo=; b=MQHywkdOkWf6nKmkOtKifNWm5r c6g3gO74lJT7Z7fEpFhcupB4+nFaMH/KMz7ZaW/u4KFcxQv4GvaxYd5vFt5HZiSe9HtB9SFGYaBPq 6dhTzR7oFc73hiZTM6kKbxNZ/tJMaeK/k7ArHgXjtIZOEUDvM4EXAgy6sPH1pn9c4KzuqAOaUtQMR n8Fg0FmywBBuH3vwmhvNo4JGtX2eRFMPCeD0THWj5txxiHtI+wLGxhA5e5cqaKpD7ku+JYC6G6zFB etj9Zn/6ABg5FMgU2byN2vvfpR3q1rUZ8WDC+fOMclg/gScEL3RHxcLxUgWJp8HbgwBgiJE0oDOgc CWYQ3L3g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rfQ1v-0000000Albw-1NiK; Wed, 28 Feb 2024 19:55:51 +0000 Received: from mail-he1eur01on0630.outbound.protection.outlook.com ([2a01:111:f400:fe1e::630] helo=EUR01-HE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rfQ1j-0000000AlU1-17uU for linux-arm-kernel@lists.infradead.org; Wed, 28 Feb 2024 19:55:40 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Q6eHS0LpTKPmdJ4YMZBcuDhK/PSdhfd2gvfjFiqQhUTd0xe4Ras6yWO/Z6U+H29dLpdAQoZ3HQ/RBf4M4GePTjDZozb6ocGOUBsPOe9Ob8FI5/iQ3UdGie2El/1KRwV7n699DXi5KvP2rdVvTrRcs/1yQEUiBQ+fWnLvCU4l2W2+7FC5s/+KSGMkBpwLhVMP8fsp41QB5ur7enIKdMXrV9rGWztxCunNSbZwqXBAnFfYDC5F4+xiNHJAHaAFnyDrw9GEn3I/Zj7zwKvCHvZedkobhNVBcwcJ7NOhFNXZKP3ziBtMXX8APnykjRKQ/aFxT7XeQ5d/ruFvDRqogFW/0g== 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=+P54aU/0muKUHc9q9/FQCUV/wGdagnXe8QxHDl5HbLY=; b=B+Civ/5H435r0XgwCt0MzD9wNs3mf4wn+9Cl76R/rxse9GYdKl5TxHXUEa255oqGiegHZN1Mjbu24zYmtyp4+To+SYNGpmk8t/GhmV0q40OG8eO4vHv60DrETqP0/aCRDmMXSTCwk+CdntuTR3vRm7XsjQ+AefnRliRwxMBFJged7Giy+TO0mrexTqfyEH62uZeOTvAKUtp5Yck772PbgMYyvoy+iDyLFo/DFWLJ/Dj8MsJTSSQTI2cXFFxwvr5PYmbd2W2wwsDEIYFpgKNh4xxFopP431VQyoCzWoSSDJQALcG6EMc5mrgB4ea6qTCciFhgfPYg0NTtTrBXBINUuw== 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=+P54aU/0muKUHc9q9/FQCUV/wGdagnXe8QxHDl5HbLY=; b=qmDuq2J4Iiasb+QObH4MrtUzb09nj8q1esRZeOLH/bwAMqJPvc0VhBfw8EtCBMVg2h4weZXj/uq7XtZsHa/XcuNXEfgx/oSq3Sv5KmYOW6FU15jkgPGMbA/frG8sVjfS6XVnL7A/+Z5Hpvh6bBm4k25PNpa9Q9RmEg2O/SPsaKE= 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 AM8PR04MB7732.eurprd04.prod.outlook.com (2603:10a6:20b:237::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.39; Wed, 28 Feb 2024 19:55:32 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9af4:87e:d74:94aa]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9af4:87e:d74:94aa%7]) with mapi id 15.20.7316.035; Wed, 28 Feb 2024 19:55:32 +0000 From: Frank Li Date: Wed, 28 Feb 2024 14:54:58 -0500 Subject: [PATCH 2/4] arm64: dts: imx8dxl: add lpuart device in cm40 subsystem Message-Id: <20240228-m4_lpuart-v1-2-9e6947be15e7@nxp.com> References: <20240228-m4_lpuart-v1-0-9e6947be15e7@nxp.com> In-Reply-To: <20240228-m4_lpuart-v1-0-9e6947be15e7@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 X-Mailer: b4 0.13-dev-c87ef X-Developer-Signature: v=1; a=ed25519-sha256; t=1709150122; l=1587; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=m3swBKuCuixHgTnVFUAdeAbkaNmwg034YZcZhbnpy4E=; b=aOA4yCixLXsMmT4zn7IyNIfKiVNgsQfavhBKZvEOP1rofO+lJ1L7/DaX9MTBnzFctcn2ui5hY LD5LeIu+ISADktXube5VsmO7Uamj4z/TsUqFYNmQUAUA5fsV1zhAUHz X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: SJ0PR03CA0234.namprd03.prod.outlook.com (2603:10b6:a03:39f::29) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|AM8PR04MB7732:EE_ X-MS-Office365-Filtering-Correlation-Id: 6f8d55f4-62e5-4144-429e-08dc389738fc X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Ii/0h80+WXJGWR8PyqY1bylDTowiwQkIcMv9L1YpdnioKBrnKCypMkzRcGGybiV8RgQxCa6YX/KTUNvCxqpssPiy7Dnh1Tv8U56441HoEypqA2PFs8+086P2uKPBlSW4Mg2KpnOZ/DVxx7Hlj8jVMyBF2IyF90fNOBPqKgI4y/6tmGgCXWJFKqW1Zx3WZSd+vQNVQHhSjfgahzyn6G3MT/DUADCoIlYk9rGg1yCnqREDYojBqQUItPgA1hNsKhOTK5q8z1i4gSxJnwF3+Yf6oNbl5AVzp7MaxZGZ9LrNJvz3NrVJ9cNB3NP74uFJY7oZE384hw7vjEPdHz0cTbOro5o7D4PjJ54oI+XLf7EghPChxkxnwFtzrsCQGwcVP7qgg4Rwa9XrqWoumeKWHbGDWLJqG9PKd7V3kBxNDfGDZSt0586ipI1jAJMTqQekPjhD4SiLW4Aq5Idk7Jy5p4Kmy4dKRGZbwrEL7pjPbw2gIKQE+I+/GpkScnRk2q9YRP597idI/6mlP/jZg8qYyn6NK6rmUPXekAi0bEtf5DqFPo9vjprXBVFGlpEVdq6lxpnj1jlKhZPBo552Qx5AONBxPuE1IVICR6PHCFqQ/jP2dvWjS7/KO7Dj/LNu2ja0lZxpzAAo4z28UqbuTErR6hHkd0TM7aCNyNfvMxHBFdof4REglSUDQxZOIoEmeEY21R7zm+gGh0YlQ/J4v8QklsZ7YVR4V/iBPmAY5HLHrQR84uQ= 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)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?TB72/+CSmukAhfK2poL+1uQViyZH?= =?utf-8?q?wVKh684zHtfhtG9SuWzPwagPFQMhvuAJRm/C8P1A340rGTQjT+etW+GH/CB6djCdm?= =?utf-8?q?dXdY10AuqnOLOAMGadldt31js19w9R+du1btEv2ZWRwxAkLREDiuwFcRZBle68klT?= =?utf-8?q?hQLrqDtQFwkiVsRTRJUKq5iZFdWHTiPwjv9SUnPxO1CWkTzqPCLiKB6JM1e+xZyiR?= =?utf-8?q?2zdWaj8nX5tqjGImPTA0zvxu5aW/y8RYhpIr9y7dMreRKXode1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utf-8?q?ywTr+9+PkhivZSqe++8lCVjrMDEo6CYOrt4R6blDp8pBRmcAL3+wQbC2cIoTjvCGy?= =?utf-8?q?QTHsKqG79nffylDl3vXU52Kd3KC8WPKVhblD+1v4FQFaNHcbCaKiHiF4vTSETdiaT?= =?utf-8?q?6lUKEXBI7Z4oYZcxzLNtO2O0Y/u27QeIAPab7MCHeybBNXDD6HfjZMNLqiEvsFQop?= =?utf-8?q?aqasW97QU9NZQ+lVhbkvJx/YoR4ruthX+ChDo33UcKXXSWFx+wVP79vcM1+37CjiQ?= =?utf-8?q?Lt4LGU3h0hy4BRMlnu55zY0xlVe2vlt/uKeCuaOZaTO6OdtA2p+IF+ArR2/fSbwAB?= =?utf-8?q?9EOt1Un5qFEwhNkfPBaHQ/Xiku65avbftcAXqyd5ud7KbP5X0Oqj9lTPq2Aj9bH3d?= =?utf-8?q?Aqtmdz/Up19J?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6f8d55f4-62e5-4144-429e-08dc389738fc X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Feb 2024 19:55:32.7805 (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: bTI2PiXD5BYsQMYEbZtpvP1UwZTQW9/ISrLrJtPLKUTZJRq6AzymCKJKB7CrohF31mEEQMffEKhgjTwyk1SZHw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR04MB7732 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240228_115539_356659_4E509D3D X-CRM114-Status: UNSURE ( 9.42 ) 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 From: Alice Guo Adding lpuart device in cm40 subsystem. Signed-off-by: Alice Guo Reviewed-by: Peng Fan Signed-off-by: Frank Li --- arch/arm64/boot/dts/freescale/imx8-ss-cm40.dtsi | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8-ss-cm40.dtsi b/arch/arm64/boot/dts/freescale/imx8-ss-cm40.dtsi index b1d626862ddf8..ecca5ada224b7 100644 --- a/arch/arm64/boot/dts/freescale/imx8-ss-cm40.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8-ss-cm40.dtsi @@ -64,4 +64,29 @@ cm40_intmux: intmux@37400000 { power-domains = <&pd IMX_SC_R_M4_0_INTMUX>; status = "disabled"; }; + + cm40_lpuart: serial@37220000 { + compatible = "fsl,imx8qxp-lpuart"; + reg = <0x37220000 0x1000>; + interrupts = <7 IRQ_TYPE_LEVEL_HIGH>; + interrupt-parent = <&cm40_intmux>; + 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_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>; + }; };