From patchwork Fri Jun 14 15:06:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13698824 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 BA8A5C27C6E for ; Fri, 14 Jun 2024 15:07:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Cc:To: In-Reply-To:References:Message-Id:Content-Transfer-Encoding:Content-Type: 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=e8QyXFldvojdWrKZneAZxjwtFdGbAS4u4yutJCttA14=; b=29cV4ndjetQt0tDcLQbNUbc7Dx Tjg7NesOOSDBtzxzEHB24moRjgYK+RGNc+LuNmkxYXc4Z/ihf8rT1zM5zjKMO3IaahtjPhuulVr1F 8d55/btAcTaY4zoqxq+aFbWSTSE/uXVnq03YTX8JsFSeJJgWrz7b3KpqaWo3QEZMtVaIeLz9endSb 0N8TmfEkveEHdIbT3RqRrwaqu0Lt09Z4OgSbzwPs5xhFj0p535sC1HnV3BgApC0y43so6hmTux2d4 yvlDpD+qt68F592+t0/Q8hCTLLHPXllRBGd/6IBq15j6LMKp47C1LjHapfPEBgCBY6N7rl03nXi63 rSGbrSAw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sI8WL-00000003A3S-2vRA; Fri, 14 Jun 2024 15:07:17 +0000 Received: from mail-db5eur01on20601.outbound.protection.outlook.com ([2a01:111:f403:2600::601] helo=EUR01-DB5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sI8WA-000000039ui-1bJ3 for linux-arm-kernel@lists.infradead.org; Fri, 14 Jun 2024 15:07:07 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DbwfFLUpjLMtXgBDaPbql/2tXnIAuwHLdcLel/cXcMPieiAU8HtJ2ZSRwYs+cz3DLQjV+GtxqSGB4CXTLVhCWUGGMTzqfEhm4LFLhYKm5Fd/YlXDyE1ammI01rtizvyAXFM1WFyNFQ8xxhfNojl+vpOCT0q3PxsRunHlCC1LJbCRoMfGU5rRLcQp6SBzt5viaUwn32Oz23moiT1n72uL/rRV5qGXYBKQbOKxCIP6LkyzkaLX8WaikL073jU8bN8JrJ2H/TkOGOcnVzc0OQC0K3YCrkWHQ+U2Q0xW4nnOSU5JGIvJdYfwL4nWwGCaOmZwG02Lg/xG7urKPi50g9mpiw== 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=e8QyXFldvojdWrKZneAZxjwtFdGbAS4u4yutJCttA14=; b=Jl4/DKf8FX1mBYrqU/a5SHwRA0wz+jbehdbuz0ADupaicKCpRlydfSJHtWcPIQpOyIefYfn6p5KeuIhlKmq615eVoGdK12DGPEII3TYEWhQ140Ai1CLq1lVsLTz3YH1745puwiZKT3Ev+ueY5/xnYMmc/scSpQC4vYL3OeBIjbhvZOy4zzCfWiGdOk2zwBl/gcVsbawQL7afWGn/4f8IdfRAvs8qYzV09BlFge6peF702qQkc8CzbahKIUR5C9me6tLZocJZXvpZQORdtU3EL0e1nGG3Eduu+cCHYU5FxXXzAEm3H5UbN0bKjgqSScQ/HoHVW6LaQeMbCITa9TJvuA== 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=e8QyXFldvojdWrKZneAZxjwtFdGbAS4u4yutJCttA14=; b=AOywZidHvJkZ7fOg833CSP4bzcJUWrBIRrGMG7uSXe15Y0FzsFE+HWAuNfqShyBmbgj7LTL5mCh7EisrJpJ/7+0j3AakYdK6A5lT7PD5fh0tufZhQK1mSdVIUDwqULhSxE5yUMKO2XzdolpHF3EZ7msAdHzFg1cAesCLZHOHnwU= 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 AS8PR04MB8215.eurprd04.prod.outlook.com (2603:10a6:20b:3b3::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7677.25; Fri, 14 Jun 2024 15:07:01 +0000 Received: from PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06]) by PAXPR04MB9642.eurprd04.prod.outlook.com ([fe80::9126:a61e:341d:4b06%2]) with mapi id 15.20.7677.024; Fri, 14 Jun 2024 15:07:01 +0000 From: Frank Li Date: Fri, 14 Jun 2024 11:06:28 -0400 Subject: [PATCH v3 4/9] arm64: dts: imx8qm: add mipi subsystem Message-Id: <20240614-imx8qm-dts-usb-v3-4-8ecc30678e1c@nxp.com> References: <20240614-imx8qm-dts-usb-v3-0-8ecc30678e1c@nxp.com> In-Reply-To: <20240614-imx8qm-dts-usb-v3-0-8ecc30678e1c@nxp.com> To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Dong Aisheng 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=1718377604; l=2369; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=GyyQFBwQxEU9iU2kiD5JCDDv7dPwtt10eTEDTb0pmFw=; b=DtvR8GUHILjCrK3sMvfs+102qf0ASw2z0IYnvIme4i/9VdlzrdhOb/DhXTo/36aABFXzKB0Uh ow+LwLtcBZiAhpcDYlOfh4HHt7thDPqINYUdWiSgicblFD91L08604R X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: SJ0PR03CA0032.namprd03.prod.outlook.com (2603:10b6:a03:33e::7) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|AS8PR04MB8215:EE_ X-MS-Office365-Filtering-Correlation-Id: 22ac3b22-acba-41e0-8be0-08dc8c83a4cd X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230037|366013|376011|7416011|52116011|1800799021|38350700011; X-Microsoft-Antispam-Message-Info: =?utf-8?q?HdWV2Ty6Qj8OyBXXAPVMNUjrmvzJpma?= =?utf-8?q?sEHcvP7mHr/HfjqZYXqUFFT5Wuk14Pai/LhcDL3HWlwWiZd8IEU3SWMFV8kxoo2+Z?= =?utf-8?q?q/gB5OYcNrrRI862op6kvJQmSZ4UeuFwnn3fpi0tR6rxQ2jPvU432H6wfgLlWyemm?= =?ut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kGACmkqhnicuqEqJoTQjTkcDWMlh0gZwyLHig7fZbo+HPz8nxpFrkaO?= =?utf-8?q?rGsNPfJqdIoGcmevpv7dKOX2tKl76SV3zyempcL7FDQwOlmP4CfZzqUQmZ+r+cHCV?= =?utf-8?q?0UKQ/tTB488khfBYczE67QFItoLuRsvuRoZI6iWrvyauOQ7gsyBXhqFegMMwgEC8z?= =?utf-8?q?HCb4/6/0n7to9GiBtC/EVexX/X4nVFWQGNmHfaCpWRuK0KegESSW9BrbtTo4UL+j8?= =?utf-8?q?Le5pHeU9VTaabbyXqKjZvy7BAzhvmU/JYvcAFAC6/80Vaq8AxYhKntLU=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:(13230037)(366013)(376011)(7416011)(52116011)(1800799021)(38350700011);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?Eewgootzq+WmhbdpHl6509Ignuc0?= =?utf-8?q?WyFI/NLQSKj+aS3XJF/BXtrva7+ye2hb6WvM9IVP+SWtunPmi3cktKr2Hbe8pGv1h?= =?utf-8?q?zwDXpYJpNBFtFRQdww1s+Yj9zBFCXSEl1S0OUJyKBGZz/jzrXRRgipt4P2RF0D+rS?= =?utf-8?q?BUlzv+tii3oLpwbNpbTKn9E0myyDKjGZRcG33Uo0WkzaEU6sQlRDnkPi9mnvPGTxt?= =?utf-8?q?0qpPMSlYsp3NeYzwnZCUQqX/Bh80ty6pJf+MuQY/jQkZUKZytOgcNt49IqH19JcFw?= =?utf-8?q?dt2sMruXBti7NgBydbbwAWSVWjxrd7GbaRyPSfTlwrNh8kf7rOLdcq6sfbe7UimUl?= =?utf-8?q?IFtaBqEK4vRxUhegf6RNohfBZ9jPI69mqDiuZQ1rIMl3vMNhfuY9DHfMwj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Q8aKy1HX8gfHYl?= =?utf-8?q?mMMvc0LlHAjyKiFdMy/bh9JGAX1VAUX6vopgHc1vnco/40JdrsXcsKjefrxa/b7k1?= =?utf-8?q?KNK3JSmlY6UyR5mLOODUIfVu/MafswmhajpABnqIEn2pO6q+eR8firgkvhsNG2/zW?= =?utf-8?q?npuKimR4Acr9/hkYV/DCRfbpw2o9vDnUrv8HbQZ2LWQDlO0bf0h6gu8pmAT2oZpFi?= =?utf-8?q?zLA+rGXsvuAF8i2Hs0yF8QEXvC7AzdTIRaKTABq2Ah4N9ojJxmiwEhjwzJJ5YC+Ep?= =?utf-8?q?DyPfLi8WqYw1?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 22ac3b22-acba-41e0-8be0-08dc8c83a4cd X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jun 2024 15:07:01.4617 (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: /6J/dtfb/HM2ZRbgrV0Dr79TPyXe9wX0U6iZ3fShzyj3Afzo98JElykh/WDTAp4VqUw40f8Hus3HlBmazxOWAA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8215 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240614_080706_500287_EE3BA437 X-CRM114-Status: GOOD ( 12.65 ) 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 Include common imx8-ss-mipi0.dtsi and imx8-ss-mipi1.dtsi. Signed-off-by: Frank Li --- arch/arm64/boot/dts/freescale/imx8qm-ss-mipi.dtsi | 19 +++++++++++++++++++ arch/arm64/boot/dts/freescale/imx8qm.dtsi | 17 +++++++++++++++++ 2 files changed, 36 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qm-ss-mipi.dtsi b/arch/arm64/boot/dts/freescale/imx8qm-ss-mipi.dtsi new file mode 100644 index 0000000000000..f4c393fe72044 --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx8qm-ss-mipi.dtsi @@ -0,0 +1,19 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/* + * Copyright 2024 NXP + */ + +&mipi0_lis_lpcg { + clocks = <&dsi_ipg_clk>; + clock-indices = ; + clock-output-names = "mipi0_lis_lpcg_ipg_clk"; +}; + +&mipi0_pwm_lpcg { + clocks = <&clk IMX_SC_R_MIPI_0_PWM_0 IMX_SC_PM_CLK_PER>, + <&dsi_ipg_clk>; + clock-indices = , ; + clock-output-names = "mipi0_pwm_lpcg_clk", + "mipi0_pwm_lpcg_ipg_clk"; +}; \ No newline at end of file diff --git a/arch/arm64/boot/dts/freescale/imx8qm.dtsi b/arch/arm64/boot/dts/freescale/imx8qm.dtsi index 1e8511e8d8577..3ee6e2869e3cf 100644 --- a/arch/arm64/boot/dts/freescale/imx8qm.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8qm.dtsi @@ -567,12 +567,28 @@ lvds_ipg_clk: clock-controller-lvds-ipg { clock-output-names = "lvds0_ipg_clk"; }; + dsi_ipg_clk: clock-controller-dsi-ipg { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <120000000>; + clock-output-names = "dsi_ipg_clk"; + }; + + mipi_pll_div2_clk: clock-controller-mipi-div2-pll { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <432000000>; + clock-output-names = "mipi_pll_div2_clk"; + }; + /* sorted in register address */ #include "imx8-ss-cm41.dtsi" #include "imx8-ss-audio.dtsi" #include "imx8-ss-vpu.dtsi" #include "imx8-ss-gpu0.dtsi" + #include "imx8-ss-mipi0.dtsi" #include "imx8-ss-lvds0.dtsi" + #include "imx8-ss-mipi1.dtsi" #include "imx8-ss-lvds1.dtsi" #include "imx8-ss-img.dtsi" #include "imx8-ss-dma.dtsi" @@ -586,3 +602,4 @@ lvds_ipg_clk: clock-controller-lvds-ipg { #include "imx8qm-ss-lsio.dtsi" #include "imx8qm-ss-audio.dtsi" #include "imx8qm-ss-lvds.dtsi" +#include "imx8qm-ss-mipi.dtsi"