From patchwork Fri Mar 29 16:37:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13610771 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 B822C4E1BE for ; Fri, 29 Mar 2024 16:37:33 +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=1711730255; cv=fail; b=MPQVxYhaoT+GjsP/o9MbjvJuS7IVcZa7IRmVQ2OPRk2R/ZNaQOVaxEOxzCRho3zjeAVS86zpYUcSnjHOW0rjwrKyppEhC3RgSjYH0xLwOYpIN8/pHhd3ifhaumHohtqlswYz1zeg5Je+4yKccSmmS0tJH5SiBbYEoG7S5QKpYQI= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711730255; c=relaxed/simple; bh=dOeZeAUvloPeeidWgnXfhXQtR05/IECSplwlhT+QJcU=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=uZhHS9+lgao942xDtFK4SUpCJ7k7yRnQtvGK5EmLfT56lilCE3gSBKx0jjhCKknQHMWTpAJeAwD5uB4zEPYQjaOPUxRNk0Jilc6rBXM+eL02+Fh0hTmfEtN8hhLfrxuCWMcoffzjStawyDi9Pr6uMK+5NfGDkJ4EymnA1kh7UcE= 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=hYVTtOZI; 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="hYVTtOZI" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YQC2RXJoIDAYtJ3au4GLWg2d66d4Os7cUEfrg8qgMzQ9X7uEecdmOZU+ibAi4xIFkwO5cyZyiiwN1HPSldIITDWjsIDpzBMq/kPdQWtIBlmR6FgZ7clsWtj9uiz//zxoHDoxY8wgXFzBCQj6LPA8M8fFVieEcoJCiYpdbblxPIlFaGFjmXr0k7AsEE3enZyRZcxjHWqOZ2mvDBw4pVx0WXfontohZO+XVVQwC7FdwsX+DSZaslOP1L/zO7rFh8PF726jxrqpHq3e0XK6eGLtKPlCKrfpReU1Q0iP4MAE0YWvxmM6RCvjk2aB9T/ICy50Ki2bP3SBhMJDAni1vbdv1A== 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=Y2rw1oqSTZdacWG/cwOrqdfQzrwf/6JpkaSUhLG70A8=; b=edtkUffnwWEzQacq3jochRAaxUTSC4IZ5c+lUUFI+wD648v5Wyn82sxAgKCy21KUuCJ7fIUWB+4rlbreoHSas1RNed7BzZStJoIi5p8ftmut3lskHMjXj87ZJgkMgXU15szfBYDYe974yEMnf/foW6RL30LTMOiUhIadz8o9yTnzRpcpPIlTSNrFDN5n/XPCADJkX3eP4nLrPCr2iRF7A1YXTBC+fik1kUfAFKy60HJO+GCXBezpe7m5ThxdTEAUUPsyUSIjDtHl3zu+kR4TigwGZbYHtAKp/vmXMhcpVY7JrUArRUnvAT9mwcLXQoIB0a8CudwY17X8Q9HYAEtixQ== 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=Y2rw1oqSTZdacWG/cwOrqdfQzrwf/6JpkaSUhLG70A8=; b=hYVTtOZI8oMoTptbqmH0G5fuwul8bt9z0oL4aFdJpW2voo6jJyNRYHMvHEk//xkEMCRRZ0pD3jfIQVCq2CHNCE6zvHcn/dvG0myQLu9CwgwG1smfJ5adQ1pCOfmazHb2O+bw/wI9Qz8QXB39TcxigG2+aExSeakvduan71GQLlQ= 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:31 +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:31 +0000 From: Frank Li Date: Fri, 29 Mar 2024 12:37:05 -0400 Subject: [PATCH v4 1/4] arm64: dts: imx8: add cm40 subsystem dtsi Message-Id: <20240329-m4_lpuart-v4-1-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 , Dong Aisheng , Alexander Stein X-Mailer: b4 0.13-dev-e586c X-Developer-Signature: v=1; a=ed25519-sha256; t=1711730244; l=4034; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=YYD53f5H6P5t8Y6j6ors7i/mUq8K5MjiTFgBNdhRNZ8=; b=Xxg/B0U5ysw80iR4Xb5PvNSG2Y4SWf++XPxIo8hZgIKblQ23YeOEE0/IXZnsva/qPE3vjFl5L +Gm00L1o1OGAOuhKbskJ1suWSsgb1VgT+iE/MU/8UFtnWGih3LEhGTA 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: YFDy5rDOBQsmHK0ZwpadlVc7NXto4BoVoV59Ij2RJZPmoa5no7ybJb/YeJ1F7JfZ5p7gQ5We23kIlVLMNTIFJNGBKggR4P8Zu2of3gndX6j4hZL4m8CL9z+R8fqt58B1ou7YF3otdOv/Xh97idDlUFT+MTYSfBhdvkBvKSc48n8NmSNzfmJoBwflqJMUaETev7VsAhKBAbrIudz72knDYiWtJspXkhkkU9lB/hbY3l5dW2j3REzULWwzIHNgNl2MO17k8mypl9Hn+U87yNQSn7O1sIEb/DwcmOMPRgyV/jeuXosTku/rJynKBHytvZQrG5bUNhtA9JHlr+0UEl/gMWvC8X7K3d5HDP/VChFtp8G0SjB3LiE2tP0xc/6dooK4q+xsmpH/h5yV7WFuTmgKWzIOqSXu++92rBvQ1X0XguEgw4kapvb39UgLgvenz4dcJEj6VOlDwthqcoB6wrBbrFgRyJrNQnj9YLifqZkRdPCes+5noyrG0bTipeXALgNL2/quPiypkY/u8BeB8tlt7K/dUDnV62qSJiOVhiV9XL2A6gT3CnjG7xcxjSMGABH1+4U05wUb08ekr1Se7F5Se7OkJwV496U3xQJIOMdLupaLuGjAHSO9tD3EW2U3raokDUdq06wphuIypWyJsRwkh7abUdjNpb+nADpndov/bkDNY+fgWxeitrhdQqMXy3PAb8YxpanhOvzlCmixQDXdRw== 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?zd3gcjU/JdBpYSUKVIkQ/ugoOCuA?= =?utf-8?q?i/uBKu/QCyxYzpA4vadksYCym7gSHxXwsPpLoW2d4WJ3EUvBT4HMFUUKR2aTEZZuC?= =?utf-8?q?bAvvZLBg6oGJ/WS0Ly2AVg/Gt8qwjLDeld+IKUaOipodsvtROf8yk2jaq7rBngfNk?= =?utf-8?q?7uQOnIIMuCFyeIYiXOJOsp/1x2XdpBl/me9Yg8xokEQ+sjt9VzlDX3gA0lDdDrwqV?= =?utf-8?q?4/vtC02yoeKkgr6UckZUUxIJRQP5k82JtmweJ43dQbFWvS54QmLI7T5mEE674JOzp?= =?utf-8?q?DPhuwgNRAWsV+3XfbJhvQbtkrMmmf3afVT7jBFQ5IbOs6xnXWIL+LlpFNc36dI2gj?= =?utf-8?q?kLbNJ9KRzHq6n9cgrsI2g5qUYJqsQ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HS/s9G0pGEzticvjwX?= =?utf-8?q?EL3N296l63y5a2wLF1QSgvDqafm3KX9YnN0C0nr9gfcZOhzoOHYwQPajpOcJwRC2d?= =?utf-8?q?TCOiF7PGT1UJ9xq9rFHTfjNVEy0zLFDwI9H9YdrGSlETaZQ/twFvQ0KCdhibhztEm?= =?utf-8?q?B3v2fi9WiSeOu7FxJk28SbApylWX87CXH++hz1zRJwchyscvAQbYJCcloIbiqBbWy?= =?utf-8?q?89xzyrVbeJ6KiByBhF74kUFn+sV5uinIc5rn29oo+XZ+wViMzV9xsHtRXgrl1eviW?= =?utf-8?q?rTZuDqlBpnJy?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0727362a-c8c0-4d15-b0d4-08dc500e876a 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:31.2087 (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: VNtflomEEvCkGSWzUIO+oYtl+3hZ9g2B6eoB8UySmhUCof+4tITOMbNzEONmdEY0Xo6QgUm/JvKEHrVDIskIMg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR04MB7577 From: Dong Aisheng Add cm40 subsystem dtsi. Signed-off-by: Dong Aisheng Reviewed-by: Alexander Stein Signed-off-by: Frank Li Reviewed-by: Peng Fan --- arch/arm64/boot/dts/freescale/imx8-ss-cm40.dtsi | 67 +++++++++++++++++++++++++ arch/arm64/boot/dts/freescale/imx8dxl.dtsi | 2 + arch/arm64/boot/dts/freescale/imx8qxp.dtsi | 1 + 3 files changed, 70 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8-ss-cm40.dtsi b/arch/arm64/boot/dts/freescale/imx8-ss-cm40.dtsi new file mode 100644 index 0000000000000..10a05db06ade9 --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx8-ss-cm40.dtsi @@ -0,0 +1,67 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright 2019 NXP + * Dong Aisheng + */ + +#include + +cm40_ipg_clk: clock-cm40-ipg { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <132000000>; + clock-output-names = "cm40_ipg_clk"; +}; + +cm40_subsys: bus@34000000 { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x34000000 0x0 0x34000000 0x4000000>; + interrupt-parent = <&cm40_intmux>; + + cm40_i2c: i2c@37230000 { + compatible = "fsl,imx8qxp-lpi2c", "fsl,imx7ulp-lpi2c"; + reg = <0x37230000 0x1000>; + interrupts = <9 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cm40_i2c_lpcg IMX_LPCG_CLK_0>, + <&cm40_i2c_lpcg IMX_LPCG_CLK_4>; + clock-names = "per", "ipg"; + assigned-clocks = <&clk IMX_SC_R_M4_0_I2C IMX_SC_PM_CLK_PER>; + assigned-clock-rates = <24000000>; + power-domains = <&pd IMX_SC_R_M4_0_I2C>; + status = "disabled"; + }; + + cm40_intmux: intmux@37400000 { + compatible = "fsl,imx-intmux"; + reg = <0x37400000 0x1000>; + interrupt-parent = <&gic>; + interrupts = , + , + , + , + , + , + , + ; + interrupt-controller; + #interrupt-cells = <2>; + clocks = <&cm40_ipg_clk>; + clock-names = "ipg"; + power-domains = <&pd IMX_SC_R_M4_0_INTMUX>; + status = "disabled"; + }; + + cm40_i2c_lpcg: clock-controller@37630000 { + compatible = "fsl,imx8qxp-lpcg"; + reg = <0x37630000 0x1000>; + #clock-cells = <1>; + clocks = <&clk IMX_SC_R_M4_0_I2C IMX_SC_PM_CLK_PER>, + <&cm40_ipg_clk>; + clock-indices = , ; + clock-output-names = "cm40_lpcg_i2c_clk", + "cm40_lpcg_i2c_ipg_clk"; + power-domains = <&pd IMX_SC_R_M4_0_I2C>; + }; +}; diff --git a/arch/arm64/boot/dts/freescale/imx8dxl.dtsi b/arch/arm64/boot/dts/freescale/imx8dxl.dtsi index a0674c5c55766..9d49c75a26222 100644 --- a/arch/arm64/boot/dts/freescale/imx8dxl.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8dxl.dtsi @@ -5,6 +5,7 @@ #include #include +#include #include #include #include @@ -231,6 +232,7 @@ xtal24m: clock-xtal24m { }; /* sorted in register address */ + #include "imx8-ss-cm40.dtsi" #include "imx8-ss-adma.dtsi" #include "imx8-ss-conn.dtsi" #include "imx8-ss-ddr.dtsi" diff --git a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi index 10e16d84c0c3b..0313f295de2e9 100644 --- a/arch/arm64/boot/dts/freescale/imx8qxp.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8qxp.dtsi @@ -317,6 +317,7 @@ map0 { /* sorted in register address */ #include "imx8-ss-img.dtsi" #include "imx8-ss-vpu.dtsi" + #include "imx8-ss-cm40.dtsi" #include "imx8-ss-gpu0.dtsi" #include "imx8-ss-adma.dtsi" #include "imx8-ss-conn.dtsi"