From patchwork Mon Apr 22 19:50:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13638890 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2048.outbound.protection.outlook.com [40.107.21.48]) (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 85B6915538F for ; Mon, 22 Apr 2024 19:50:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.21.48 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713815432; cv=fail; b=AJedKn2U86FgkTPKfAVDFKH+wwVEXuJI/CpEj7PCRUtqLn5IB6YIn4AoywSA6VS1CqNiRU4zDj3r0Yro2gz9ZhIG1OZq60W4ceCzQdZyxZ4694dJd95j+RtKLNFe15F62zklaSZhxGioWai4uMJb/i+2nTb21uEL/bfWXCGfW24= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713815432; c=relaxed/simple; bh=tBWF0Asy9OzGdJVvC/vxC7/ms1YGwCbPE2oc8x07IEI=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=egBwCY9QlRWpvhvyyIJ11oZufLXSODfruBsT8ancTQJY858/x6VfCDbEo6BESHqMw/shYMYzgl+C+6pSWUOWa2ZXZgqDF3TjWmD8Tbbvh31nIGtnxDMk5l0ZsDx5y3ku7Gsm94lZ1MmfyJaHqhIiyh0uAafzmJ5qXr2S+G7HS/Y= 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=SqN/tcGA; arc=fail smtp.client-ip=40.107.21.48 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="SqN/tcGA" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YLehb3kgxWr7ZUXBUkOIm46yoBON6TiDEulOEwjF0T2PLaUfLtqOdw8JXqKrOYdRYljkw8LHA0dpSiAjco6vPRSDTqoAmUiitbg+5LhxNmTirI6X2f42mHFkGA70GcA9GaN2dMgoBgkeV9QOOfXBeqi2i2j6Gvs/ZBpRWLi/umB4JJZI5zFXBtNKwc0kK5Eb07a77nDITpXE1wOgc3hbOLrjTiIyw6AGd7sPhCtNwHT5qnHZ51c8tX2ULaXqZlKXQ8SKcSLHlLEbrR7QBypdLJywNrSUS36D/L0QO78kSoVbcqOHNy0hZF6laPMoTiiJbvmMu5DEM9L4yqLOfJfdog== 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=J63LxxgEwyR5hRKOtO+gWpl0isPWlf7VNdgfhtflo4zYVol0l90LQlCOsU8m7A7v+w0aYwEvWtputffFu1dYScWjyoL474BbJ43lvgBrzji4kU4rin/xrwPNCvh97TxM1txc3jf6po5AxeBtmmaEsEkjcXN/gWf60dZn7hTiyuQuNbw2T0KiGo08xDq/pbI3taXyaKT6giqIG09avC7vUbLOzK9Jf/FR1iTuCOzpXVNbytK5YSddz8BjeF7czSEZu94Y/SB83omyC7OkKMr/Sw3qbAbYwhSDBndnJdeUF2yGHdHL5FvFaJSKY8J4Ia3pdO3hs+UBAz7Llx0PHzTNhQ== 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=SqN/tcGAiyCU/Cay5UQ/vd6gDK0QvnGk872E2Irgg81OVjvBZJ7In9KtwvpQ/dQIy76lNkD+4Y5HchbmU2H7k2oWcgOx9EVUhNPKEfw1WCfxV74vK/skYOlZiVMtYn98YFJlMQwj/N2NcwCByXmh97WzeZTu/hj5IKJuRa0gJ3U= 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 GVXPR04MB9734.eurprd04.prod.outlook.com (2603:10a6:150:112::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.44; Mon, 22 Apr 2024 19:50:23 +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.7472.044; Mon, 22 Apr 2024 19:50:23 +0000 From: Frank Li Date: Mon, 22 Apr 2024 15:50:06 -0400 Subject: [PATCH v3 04/10] arm64: dts: imx8x: add cm41 subsystem dtsi Message-Id: <20240422-dts_8qm_audio-v3-4-680cee731ced@nxp.com> References: <20240422-dts_8qm_audio-v3-0-680cee731ced@nxp.com> In-Reply-To: <20240422-dts_8qm_audio-v3-0-680cee731ced@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=1713815413; l=3146; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=tBWF0Asy9OzGdJVvC/vxC7/ms1YGwCbPE2oc8x07IEI=; b=8mLi9A6VJaaa5NJleH2IR6zhzqt8+LX2oA0pK4VrViPMyIhHVHSNssYkxHXU1FqcM4ceMkf0x x9fs6YgNSKYDIUpuqyw79t1e2wsvSJ/dTY9srXS36eGiawb8TdYBPi3 X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: SA1P222CA0189.NAMP222.PROD.OUTLOOK.COM (2603:10b6:806:3c4::15) 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_|GVXPR04MB9734:EE_ X-MS-Office365-Filtering-Correlation-Id: 32937879-f8d7-4b28-fa8c-08dc63057307 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: =?utf-8?q?NJZpNuQfU9QvGdPMUhnBvQamZ2wLrft?= =?utf-8?q?Y5fr1ecKUbdOI832k6li9K8XWDnjcTVvA4SlbMNrJT41RO56oyqOeAuX2lCWCCIFv?= =?utf-8?q?gI3yz6pc5Az69hadfhu+rdauDDcY9zv0OCSySyXX0tOLgbj+qqe742Ht8SfF5W2Pq?= =?utf-8?q?x2CviRddcLC1hohQBPnu4CJrghoeuPlfC5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yYb14ELQ7/4BorUtCKOTThaHjUzmNWt0YhHzNZ?= =?utf-8?q?Nk9g3UNqXrdd91LqRllNw9qEt27jlQCqT8Op/vzERqdVYn1iRQzr4tjIYOb1+TkpR?= =?utf-8?q?m8PAw6rCYOsjaPyf05sC39xoRZXCmbJU+9Hc/VilehK0wNHU65nkTYOeU+3/dKX4E?= =?utf-8?q?LD2mB4spB45H4ZmSdhW++403Y8DZc1A8jwPU/BC2tHFYGVUZvATL8DTuzTOeupsib?= =?utf-8?q?JOTZ/+R2X0FxI5k0M17X/kvA9p2vg0+Ma+g=3D=3D?= 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)(52116005)(1800799015)(7416005)(366007)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?roTAVA5scrViW5YvwqwHaFjsuBg8?= =?utf-8?q?smACx2kRHRnKlYK1lg960SJ+ssPGbHrmvjsY6mSoej5zXC9vJgFcT8ZWtTkqbX7YG?= =?utf-8?q?HNh7EoruKBPfeijnJjMJSG1PZ3qaIMokZ26ruKZH/SCJ/AzDZkmP+MB2AFecjDWDg?= =?utf-8?q?gVU2nLj9Kccvf8AHql/55pj0I3BtKXmswzKi9PyDnrC2HuGaK5nZ0z888W5P7yC40?= =?utf-8?q?WAADmMQlOnIlXMmg5EAnZ+w75oaaN/8ct3c03lvlHbDVKUxu+hDA2yvY/qj4aDo8v?= =?utf-8?q?t65SIRwh41Dc2rKjHGuqNpV1G9vll/JHIeh55sKsmpByxRZ6FnWVfzo6x7U7Yvx+j?= =?utf-8?q?572kHuAwBFBbA7JeRTyGBlB9XR/hFGUVN09a8St0yNQJVwW4yTxNDJ2VyQ6I5VKNC?= =?utf-8?q?42P3rz2LHzgpR5m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ExJOADXxhD81sAKB5TeWppHMEJhoJHhcTDqS5waBIlGH4fINzOrkQW3EHfBbjDKzl?= =?utf-8?q?TsIp/8Kj1fk+7/YUO2htGPQMdOxsoAoWufYEcm6yZlHLYSl5suHAA/wQ4e8Zh5x+B?= =?utf-8?q?tVtGcZI1PXUuIz9TarZl8er5t3as41iea1or8KE75X/ifYowGPJGqi3cXrEmKtlVW?= =?utf-8?q?t3WLszvXcVwcdTIDRngGHIUpXjSMkHLbcyH6/TV+PR9Jym3un2LHmelf5Tc+kkArs?= =?utf-8?q?GDkE0mqG/d1W?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 32937879-f8d7-4b28-fa8c-08dc63057307 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Apr 2024 19:50:23.6317 (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: /+C1eF6bY+k8MqJza22wDe6DDIxs1+g/DTloSIUht4TWTeaLUy0PY+iuYvV3fMpp0HEZfnQSjB3F3QnU8QAOWw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: GVXPR04MB9734 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"