From patchwork Tue Mar 5 15:54:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13582563 Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on2044.outbound.protection.outlook.com [40.107.14.44]) (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 49E8A128369 for ; Tue, 5 Mar 2024 15:55:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.14.44 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709654116; cv=fail; b=UVjzR17zKBK1AunXxEYGSVTZZlgLaPdjsvsIzqsmJ5dVJz2Ylm1bYAUoJg75crP65jG2Luc1dViOSmjFT2cBUl8i4jwaXvVwEucH5pmvrqyOA4oNQhuU45rybv2+LBkTmmq2c8cujkMvZU0hhP9SEswMp1n13BZcoX41NoL9DEo= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709654116; c=relaxed/simple; bh=zMdWwOjkp1mDMi1zn7OQ+fMoAXnWokjAGqL64Huq6IU=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=mOXA129WpI4Z7URWZ1GnyTaVbbAPspjlqlXwIPhc+xlwN8/H3Uy93ObwyjYeSM1V9JMuN9cTaqALai6/wQuwSpFVdQuYD6q4yhjsEDF6hP6p03DFlOy4e4jOyqWsjTDSE6nc12/fDdnTegpN2TXLBWmifyLEEG/twajE7/gsSWQ= 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=M0/JQf6A; arc=fail smtp.client-ip=40.107.14.44 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="M0/JQf6A" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VGad49igulrafx1gBTE+tHj6ZC/gzJWGCXnvOWVskx7WAMsEzEvN8H3ARBeIG7zb2PwUtEcFOAUTvzAwMgUGyOVMOg/D68tICu5466eUsVESbwCAaULE87zNAppCT32PL4TdEue59Mo2TW3kNOtoSCe0I/s8uVGvo0GE5TJfH3+7cmaiZUVOL8L2kyA3q3QzOd9KAcFOG6VpoNc9klQvCZjGUVZfvL/3b01BQ5QRgmXz9tyAKQUX+9CkzSoMOrwnI6GivE6nIZ1gvIMMeruW+vWrBtVIUsPS5ouPgw8PAD7ekbPhSzgR0lzndSTC50gjorZlOk4obz9Sy9Xrom4FBg== 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=IaxA4pUeprCKWQVArhAn3BS4sfzcV6sLPhPKTU8KK0E=; b=dPYhIdbM1Ze0S0gVuvCF1xrk7DHMnhJ6dZ6FiHv9GJuLoCuv1i3i1W98dszwu/k+Wut97PTHqZSpq1tJ4ywtLnvXf56isJbley0HvCZS5l7nHWF9BqCt1Iw8K6PiHHbpFZfuUOkxLWHq0xXMZpdmNre6tFbhLWkNQBsFvTaCBpZqgXrSKikERk5p8v7TsZJebmb/iZHurL0Pku7mJk40cp57X2R22leqd5THigQpBROfiSMGx6eBeetO9BEw+/OHdSTZT8fz7U8lRGt1SXww6I3QcHOIc/UfGW9gxlaA581Mp5EOrV9N+FmdQkJRPqbYfGQ8gpfBPzp5Oxu9lDaiwg== 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=IaxA4pUeprCKWQVArhAn3BS4sfzcV6sLPhPKTU8KK0E=; b=M0/JQf6AFeDisrrkr4vmXhWkuplacAE19LK8XYTMPweTYE+ifGijZVrFOu+t+eYu+fL8BASGX9ddAYUQRcx+wiEczDOKjGB4xSFfqDEojayl0GAwMaiAwKT97iXZ5N5NpRYFeu3Pz4qIWzc/KCb9aulKhqU8STGC3HeZJ2V85z4= 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 AM8PR04MB7780.eurprd04.prod.outlook.com (2603:10a6:20b:24c::12) 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:11 +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:11 +0000 From: Frank Li Date: Tue, 05 Mar 2024 10:54:55 -0500 Subject: [PATCH v3 1/4] arm64: dts: imx8: add cm40 subsystem dtsi Message-Id: <20240305-m4_lpuart-v3-1-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 , Dong Aisheng , Alexander Stein X-Mailer: b4 0.13-dev-c87ef X-Developer-Signature: v=1; a=ed25519-sha256; t=1709654104; l=4008; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=BmPizfG81J0ME+YTWxEqbesgoz7kAmFt+mvSCIy01Xo=; b=6FhPkRr06k4FHeBACOshsz93gNW32ELjZMu6Zi+/AvDdGV43BK14SBosDzqxuAbQfWRsbaWdt 1AJQsyv+SM4DgRJqJhs7CdqlF1oChfVL6OKAD2KYmV/o/03RowvJj1s 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_|AM8PR04MB7780:EE_ X-MS-Office365-Filtering-Correlation-Id: 07bf7838-2841-4541-841b-08dc3d2ca38b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: zeLKdgC5k81xjtvCgMPgm4tJDs3i3mVguUs9elzTRIxp2VwpYqnLbm9U/xVzxh0KaIlhHvOzSfkdmKoFi9BLq4i4dQKWSLV8b90uTGWNju+N1raPMe//PQLzPngvESZsEMGjGZ+uSpixVggO9gXtkUON4YbmhztntgdBvYq27aCbaKSD/ePJHnOm9fUed2r0jLgQ39Rm9ltqKWz3y5Bw17DsD8+ylvRGx7tQ7jhGrGwnbJ+kHWqblXOp/zZhvaXJ1A1dlzqniN41XlkLWmYGnVPYEvRjEqIGOJ7ryxBFSzJ567rDoQc2AW6HV8/CiQFD7hh89NknWEorIEWsJdesd/jzSouPSVzyxxsvQ2XMSEsNNbRqQrH7eDPmhSc6BOsbkEzUOaezK1QK0iRp7ZeHW3TENy1b5+VvJOSHE4gt0DDZkuUAaPqwM9ZOxRnp8f1XrLfhkgO+l6Kjwf0Hl72B45E/6Orgxhfz9vSLcv6McBQRGV6m8sCxv9oM6RiSg6DGDT1trEkBwozyI3ztJwv+wfWJNuprStw34xGa7mhF6YxMkyx1uurCTiFgex1EQx2gYZE+GP4esd8KMhEnbnb3velZ06kxucUUFg87+Bo9tAIixr9fck/Q9yEyUQKwRJjo2EMqL/JHltEzth6O+5297S3pQVlxazV1J/gMDp6MEi1fsrcQEfS8WUyTcx17N2U8ERBpgCPO8L8+xMZ03F4TwQ== 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?i/28ZenCi4eDuekx6RJuRbSsrId7?= =?utf-8?q?Al6zLZdNb8jgeaRnY16x1zn+SklRr4ckRHtuj035mwUPSCR40tCzeQi17vT9msaKL?= =?utf-8?q?Bqz4O0bxvQ2/KzjWi70iOfaZVYiSzKk56BtVKovn7eMZ46ERDKgPqbE1YDd7np9I7?= =?utf-8?q?lT1t3hgav89hMl6mL197X5qckHAHjrzaMrxgU/lKgmMIySPZJa3aN0fFiwhC3EwcP?= =?utf-8?q?2qC5wFKED8Q5Aqn/JcqAexSQndFFDt7EcWyaELsN+HyUNcvTENPyVMAjsgLBS+J3I?= =?utf-8?q?fze/zm2gUpBK0/affOMIIsYu9IZQg2rYKNXOPC26V1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JJdfKF+8HYauzGL6B5V9dg+?= =?utf-8?q?AjBW9M1Qpq5NmISCvTkLZnsgv1rj/LPmlG3/Q0Ass53YdH3C82UhBrUye3ddgvv1w?= =?utf-8?q?PgCmYor4nlly6TemiSrzaBAUoQRTJ6ctD4+KFgyvAZGhqgsgar0155WEKPbRrt5jt?= =?utf-8?q?eVXVG3mpKBidIZ1M74H0xjmuGV5KmvnK3m1w/1oCbaHDI+BkzwAzzpeEmGLFHwMf7?= =?utf-8?q?7+zYoJRr19SNLlnDMY8OAsUSWvCeX8Euxc92lPR+ljispszpM2UT4CtIje3Kl7UZ8?= =?utf-8?q?5qDbPk6zyD8yJaWYcmmwdQsuTwT/PH0q/tQ8ffmOTxqig2/vlakQdu0i2VbNZm/6E?= =?utf-8?q?6wU3E4qWFRX2?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 07bf7838-2841-4541-841b-08dc3d2ca38b 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:11.2221 (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: 1J45bCHWWdo5Z+xyULOihR0kYQKXZQJIkGWoNn59dLHMv8anbhpQseBpTEDnti/9bV+aF8lOhqZJMMWEbrHcuw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR04MB7780 From: Dong Aisheng Add cm40 subsystem dtsi. Signed-off-by: Dong Aisheng Reviewed-by: Alexander Stein Signed-off-by: Frank Li --- 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..e918ebd76094d --- /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 0>, + <&cm40_i2c_lpcg 1>; + 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"