From patchwork Mon Apr 15 19:46:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13630673 Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2052.outbound.protection.outlook.com [40.107.105.52]) (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 4943215E7F7 for ; Mon, 15 Apr 2024 19:47:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.105.52 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713210440; cv=fail; b=oHL52EmuPIy/2HGtsPdQ/gGGxyuzu61p+mjn3B6M+GCrDasG5lXRaWCkTV5rlgiRzTN/ku/VBBKsZ2N0HhEkpsXLAuehHN61iHIhafaIFKVfrUVfrRjOOMWCRXqV0+S+IOyqat4qIKBHE8FSRAoG7y+Wvl4tRNWHijyd/CSA8sY= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713210440; c=relaxed/simple; bh=tBWF0Asy9OzGdJVvC/vxC7/ms1YGwCbPE2oc8x07IEI=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=CtPjmwVKqeaLYRxIzG+iv4i4GLvVr096DrO5/bljgPfLy8K37BSSimjKlBJ1IJxnQ9Vh1+BUX8w//SGsMxmiC8EqHgikwmfck/mes6e+uyyK5O9XCynHPJKz0it0oUq/ic89vJJsFKAqBcIdD04DOYQVIHD+WW2x0zkIyPbI1To= 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=VbiK2lC0; arc=fail smtp.client-ip=40.107.105.52 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="VbiK2lC0" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BrSqlT/iRDuqHTYWFGXAp3fIffi1G4M4JjZIeSAtJNDdynpxOJaQ9t5D+qOJeGZVStATe3cTL2v//i8myBAnGMStjHxNWiu0hvS0vRRNN331mK5feyvvhMxVIiQIHxjctUjOR77p85WUPSLrEHDRUdc3DYr0gwmrVHhEx3yXPfDQH3kL+97GTrsk3zaP0Um9aueNAjr19SCQgDgTKRhtZhpW0Y3WpxaesieuGXFj32ljkPK6j7TpWdZQ8lESr9T33bUabQ3MocdM+FpiT0vBXY/y2TCy29ED+gBI4wdIWjq/rYsSvUCUuh/uVGmccefcYNaawiHXXNV4FLvIszzO+Q== 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=1pfVE0FL5EjoFxtfQHO9cTRC/GSrOq8OvMAS142KhT8=; b=AK8VNaoiHNDDmmtahFfg2UGjl6ShOU3S8dHWdUYvG0t1JsA1GV8xkJZXkoDqrj+H8M+dW+7pAz5Okqv1U5F5TKIY7ZFEM+i5SlLBR7bQdwbfDsuaNi4+rkZE57aAR5/BuetpksTrN2aEaWhm3NtzZorIfMCPG9ZqINf4SqZHuiiOTrAvCMuCfteEeUjoumx/qOkC5EiAK0KEwa0TLwJL1VUoSR6Ile3MTaK4c2jsvxG+bvDBwKEhtAjrS1QLFdI9zhNhfE2Bhn/RKqcyP8uoPVyu2vV43x0ZC4/ek4LyjTOpQh5dElbRP9Iqrq38qwoLCqnYTsbQB0pLIuKU4usthQ== 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=1pfVE0FL5EjoFxtfQHO9cTRC/GSrOq8OvMAS142KhT8=; b=VbiK2lC08GgX0sJgZ9XkGm9EH1NuAZbt+2ym0XQvMPXgIq3UeRi+HH+5++7KnqYPHhER3lda68smrczCfr0VQER8eE9zWUdE2jZzOWsseY9Xqc+Hx5UeTDKtSB52prxkoSjb91xOnxtSJYyLyKDhxoqvBTgqbFMB1BmM33mD7yQ= 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 PR3PR04MB7290.eurprd04.prod.outlook.com (2603:10a6:102:82::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7452.50; Mon, 15 Apr 2024 19:47:15 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::1e67:dfc9:d0c1:fe58]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::1e67:dfc9:d0c1:fe58%7]) with mapi id 15.20.7452.049; Mon, 15 Apr 2024 19:47:15 +0000 From: Frank Li Date: Mon, 15 Apr 2024 15:46:40 -0400 Subject: [PATCH 04/10] arm64: dts: imx8x: add cm41 subsystem dtsi Message-Id: <20240415-dts_8qm_audio-v1-4-2976c35a0c52@nxp.com> References: <20240415-dts_8qm_audio-v1-0-2976c35a0c52@nxp.com> In-Reply-To: <20240415-dts_8qm_audio-v1-0-2976c35a0c52@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 X-Mailer: b4 0.13-dev-e586c X-Developer-Signature: v=1; a=ed25519-sha256; t=1713210421; l=3146; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=tBWF0Asy9OzGdJVvC/vxC7/ms1YGwCbPE2oc8x07IEI=; b=+IIuld9v7c1Bm1gy55LV3P/ivwJmp0yQffUSH4wtn/v+nXyeL7eX8UKnq8mdxjxoK0J3md2cF PTdgbLlIwQrAtclKUzPWH2Gjb3yQyNMrmsL+mfx+2RK35O8wCinMRF/ X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: BYAPR05CA0061.namprd05.prod.outlook.com (2603:10b6:a03:74::38) 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_|PR3PR04MB7290:EE_ X-MS-Office365-Filtering-Correlation-Id: 1b1d36d5-eac6-4290-8bae-08dc5d84da0e X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: bNkElvTnA+Gkgv1g1XgboBCP0e+pZejH+N0uVGgxAun8foC5VjEPraoVccHD0e+NMxLYdrNd85rVOoaN5ObsHYiDhkzgi5Lvs80HMNVme9h6nBg+Ecuydh9xk5yC9Yah2jzYt4cNY26lfY9p9A/VqAVpZZpiZ+EJsE7W5lo6LUDVs2OKIayJq0bBclvGXq99J2xXVYSF8Ovgt71mX9VwKWKb0qo1Z/a5sxNWLt+0BTdj5dEUuUb+EUl7fT0NPDu9Jx1u5A0NhyUwQwbsk63PIW6TKihafzoUiYMwllrwEQvkPZGFt0S1hR9ApHKjTauLn/u1UG5sxYq0MZx8w4iQ5Dq8s4WbuMTg2l9paP81At+/VrNqEXIjMsYzhqSMv6GLNtMU07VsG3tPn1Uyp3iBdXknVThaAkTRjfuDDuGASBfdgqmNHfQlbL8bDHEDGvgM6Fmu4PqsOu0Cd/Y8xpHZZmPLx2TOsnN7xLl9W60upYUezConIR6apTGYo56A68XFBQ8QK6VzA+49H9h8dGWQMYRtn5U4CTnT8p46vqB6UXj8xtcVuFSIiL5cfA6Z80lB+gwmfegdKc7iYq2JjAAGfz94DQQivDTZ38BKoTPvpoP7p6HoZ/+P8pv4v3QZ5YixeqpsbjT27CcKRXGPgVXqQZ2BqmtwM4RAlywPFvHi7I57+ZDjh/Vp4yHvGm+pUTUA2nFpcAA6L4wWV0Tsch05uw== 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)(7416005)(376005)(52116005)(1800799015)(366007)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?rQhERNxn58bo6cgeB6omj9OMCpjC?= =?utf-8?q?TG+fFo8UO+ruIL0Nrq48uDo4TluFiEOIvD4fi1YvRzs8SV75eQne5YdSVsBDnnA2A?= =?utf-8?q?CG9WyPyRJlWXshczN06bwBfhpfCnStodD9JJg6iPirDRJIZejV6vrkZy65lIwb8wu?= =?utf-8?q?741t5Tk0aP1ALwmHxlA6LDFseu4bCqovHoQgxY4O93XHaHC0x0uRlwUY8XY6TT5kL?= =?utf-8?q?ByXtplmBaInguodYdG1vgIz4w5Lau4kwAJnXcXJVhUNhOm2U9jV8ZJgSc32KlZLSs?=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RB8hR?= =?utf-8?q?uBbVY/qtkqWKhTxkCt/UcpIR5MK1QHFz/evy2k+p8VKahXDtHsnn4JGm9zGbDy4zy?= =?utf-8?q?C5HGlsUnm9kmFynDXzUPeCUflP4YQ92qXLXQZNGLLx5Be9oRoIHIFDVlCZT4RJV6t?= =?utf-8?q?HtzIvFbs4Kxw5WSqg/tnrK9Eb3MQ7HTv7WK6aH9vl58/5GTeyFHiOEbS8JLkhUGW4?= =?utf-8?q?Jx0pfmxFDzt0exsUmoiekDd2Vta6145lQkyCwpnLEi83r6ebXiPzRqzoKpOAC52Qx?= =?utf-8?q?EuRxca6aXvZvfeMY2iBHzty9tkxj03MSumG2NJ3iMk24ov9MluG87kGwCINsKPCUC?= =?utf-8?q?dyH1e3EjWtNIyhkapAXWGfz7wX1vpLwTDnHGqdtxRmLUhff6L6E2Ur1YPZZhFbSRM?= =?utf-8?q?sayGbkoDM37Y?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1b1d36d5-eac6-4290-8bae-08dc5d84da0e X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Apr 2024 19:47:15.6241 (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: kr/gFYhPrLX7/sd8mQ76rcTQ+5bEb1yG+yWOE5+3mK4s5Y1Bd1xXhaO2FrU9Hp67tWtushqAtZkpNqgCVcmVcg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3PR04MB7290 Add cm41 subsystem dtsi for iMX8X chips. Signed-off-by: Frank Li --- arch/arm64/boot/dts/freescale/imx8-ss-cm41.dtsi | 68 +++++++++++++++++++++++++ arch/arm64/boot/dts/freescale/imx8qm.dtsi | 1 + 2 files changed, 69 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8-ss-cm41.dtsi b/arch/arm64/boot/dts/freescale/imx8-ss-cm41.dtsi new file mode 100644 index 0000000000000..d715f2a6b0378 --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx8-ss-cm41.dtsi @@ -0,0 +1,68 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright 2024 NXP + * Dong Aisheng + */ + +#include +#include + +cm41_ipg_clk: clock-cm41-ipg { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <132000000>; + clock-output-names = "cm41_ipg_clk"; +}; + +cm41_subsys: bus@38000000 { + compatible = "simple-bus"; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x38000000 0x0 0x38000000 0x4000000>; + interrupt-parent = <&cm41_intmux>; + + cm41_i2c: i2c@3b230000 { + compatible = "fsl,imx8qxp-lpi2c", "fsl,imx7ulp-lpi2c"; + reg = <0x3b230000 0x1000>; + interrupts = <9 IRQ_TYPE_LEVEL_HIGH>; + clocks = <&cm41_i2c_lpcg IMX_LPCG_CLK_0>, + <&cm41_i2c_lpcg IMX_LPCG_CLK_4>; + clock-names = "per", "ipg"; + assigned-clocks = <&clk IMX_SC_R_M4_1_I2C IMX_SC_PM_CLK_PER>; + assigned-clock-rates = <24000000>; + power-domains = <&pd IMX_SC_R_M4_1_I2C>; + status = "disabled"; + }; + + cm41_intmux: intmux@3b400000 { + compatible = "fsl,imx-intmux"; + reg = <0x3b400000 0x1000>; + interrupt-parent = <&gic>; + interrupts = , + , + , + , + , + , + , + ; + interrupt-controller; + #interrupt-cells = <2>; + clocks = <&cm41_ipg_clk>; + clock-names = "ipg"; + power-domains = <&pd IMX_SC_R_M4_1_INTMUX>; + status = "disabled"; + }; + + cm41_i2c_lpcg: clock-controller@3b630000 { + compatible = "fsl,imx8qxp-lpcg"; + reg = <0x3b630000 0x1000>; + #clock-cells = <1>; + clocks = <&clk IMX_SC_R_M4_1_I2C IMX_SC_PM_CLK_PER>, + <&cm41_ipg_clk>; + clock-indices = , ; + clock-output-names = "cm41_lpcg_i2c_clk", + "cm41_lpcg_i2c_ipg_clk"; + power-domains = <&pd IMX_SC_R_M4_1_I2C>; + }; +}; diff --git a/arch/arm64/boot/dts/freescale/imx8qm.dtsi b/arch/arm64/boot/dts/freescale/imx8qm.dtsi index da49d4bad32ee..96a940c6046d8 100644 --- a/arch/arm64/boot/dts/freescale/imx8qm.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8qm.dtsi @@ -546,6 +546,7 @@ clk_hdmi_rx_mclk: clock-hdmi-rx-mclk { }; /* sorted in register address */ + #include "imx8-ss-cm41.dtsi" #include "imx8-ss-audio.dtsi" #include "imx8-ss-vpu.dtsi" #include "imx8-ss-img.dtsi"