From patchwork Thu Jun 6 18:46: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: 13688896 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2044.outbound.protection.outlook.com [40.107.21.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 D856538DE4 for ; Thu, 6 Jun 2024 18:47:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.21.44 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717699644; cv=fail; b=YEBNarw/o6FcSw+xUGSvL1OGTd3JzC1IM7CJy7lSsZA9YROxyX4yAsfZhXI/tmM7NzCqNNH2SngGdkCoZt/Q0tS7s16BmB/qS+e9zPo3QpUvmnHTaHORt9721dafb0vIA5Zlc0cptniLmuI629Ur/YtPufwz1dXAEU8Hy5uQMG4= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717699644; c=relaxed/simple; bh=HxqilMpkOUYtT6M32FAj6QHaT7m1xfXbT1CeKuw1Cos=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=EBBiFqn3nngyfRGISq7qx3uh9cHPrZxBCUgpo4bjSIyOJZS8Cgvae2TxykEECf+B8K3XlW/ALLs+uOb3iFPcckTBm67QZPmhS8uScQPtr7ciwRL7nO3GwaGhIece5lIKjsP9i61w4il4QbR3Eo6LQFypyrLAujMl+ntnxfNPtHA= 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=heMxl5Rk; arc=fail smtp.client-ip=40.107.21.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="heMxl5Rk" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IuhWzSw59rYc9NMlyaMRBgG/MDmnMkfVE4A7lSOo0tpZAOi4l7FJGul1A8CgZPJTFjGa/V74VX4amwVWgN/fYvnAjN1Uc3OCF0t89jRxhpu038xkhUZ+WedzqMzmapbIQVPTmwt1+Mz3a+QbIhM2TZlsUh3zfZecdgQgEohhQl6/uYDUx4CbsFVLqgTAPWnmRNT8vzhNAboey7d+XZTB8xWTrNX9UGsV5Vd9XLW7jxFW2Z7zGDrnyHGeNZCRdjtquMS7Azno/ROGpzg+9hBGgv5FPUa2nN+EQvujNoVxTfLPtpC6jvyhGoamir86HVZrwPN2se3n9+7O2eQLRne8Cg== 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=eEr4H2t/FZhrOLiRv93baGt2D1M7/Y54CPZ/HyC2GX4=; b=fYxO5JUacFsl1ayXnTGxeskiotouZp7TRz1P29/Fyn1lw+lMxZbZWoFU8AomfVJJv+/XXill71HFKYu/UZpdtxHCfrwsugjmVWK7L7qXOs90HT7gTbg3RkMNuZQEyDAVCfb8ijCHqY3g+SIGCnkjTaiEYZYD8DycmvK4cwl516u68ak4VlySg6PJSjfU7Bh/SBU92MnMWkQHpXFdGtXK7QhwXnK6Gq28JRww1UEu7BsWgC0U45BBsNEGXB+TOZ24D17W1/gGMDQPcUella/WyZSF2vhxmWqIz4P00/yPMidDm/DxaZqykPeqOiGVWRlATvxqPVy4sR2dyK5kdmCCxA== 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=eEr4H2t/FZhrOLiRv93baGt2D1M7/Y54CPZ/HyC2GX4=; b=heMxl5Rk6W3Ek6t2n9nYt1kAuuHCFZF8hr7R1+khkIjAInptfRKBE1KXP1I1DY75t6EFCX8ecEfFuFrSotTbaz1PMHe1LpeG/XSxDRU8ioiLmJhEJMfPtjYfNdBEx8mmmdZnUPfZ8k9myx8qRGqYvHcZYqP+Qgj1nwjsfD9GkWg= 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 VI0PR04MB11069.eurprd04.prod.outlook.com (2603:10a6:800:266::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.27; Thu, 6 Jun 2024 18:47:18 +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.7633.021; Thu, 6 Jun 2024 18:47:18 +0000 From: Frank Li Date: Thu, 06 Jun 2024 14:46:55 -0400 Subject: [PATCH 1/7] arm64: dts: imx8qm: add lvds subsystem Message-Id: <20240606-imx8qm-dts-usb-v1-1-565721b64f25@nxp.com> References: <20240606-imx8qm-dts-usb-v1-0-565721b64f25@nxp.com> In-Reply-To: <20240606-imx8qm-dts-usb-v1-0-565721b64f25@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=1717699632; l=8595; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=HxqilMpkOUYtT6M32FAj6QHaT7m1xfXbT1CeKuw1Cos=; b=6IdTc3M+2FeZeytZ8ahGB/9FuxJ6JzV9l0OK/B9EwX/QyE8EKS48Spqg+WQ0v1NINjgFVsMYZ f4zvGOZ0eInBtZIfWMGWui3onfdgftNhfVjmIVystIaAdAVzazJpkVA X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: SJ0PR05CA0178.namprd05.prod.outlook.com (2603:10b6:a03:339::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_|VI0PR04MB11069:EE_ X-MS-Office365-Filtering-Correlation-Id: 4253d309-c05e-4b00-2a8d-08dc865917a3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|52116005|376005|1800799015|7416005|366007|38350700005; X-Microsoft-Antispam-Message-Info: =?utf-8?q?XW9ybog/4yTedBqbanw7Se2IZBamZjk?= =?utf-8?q?EHhkNYHErPuagwMUjV2/TPFZDX2dsfvNIBT3ACYDyQnIONdL8ME6WSmwYjSzbTdD8?= =?utf-8?q?xbfXjhYgt0rVEEZUbeFts8tQKTb5o8XzovT/DoS/ivibF7l5doDPoGLuh+qlQDUub?= =?utf-8?q?4KHEZLz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enLzI4OjseFIi3RrD0DmpvWlcgp5SctognXA1?= =?utf-8?q?20WdC4tqWbB7D4cSsuEgWRsRPfYjfe6vp8rtRU3fACveROQ2QdECi7rxxJJTiQjgA?= =?utf-8?q?MCwt0IvoCeiff2jfqyowu62B+urkcOFEuhWP303h5clRQ6y1KDalNEnKYv6VZX+Pb?= =?utf-8?q?bxwzTag89pLJb5OJ3/OxxrinD+IwlEtf/2eHI/Rz8qydAhrG5mFrzB/20AvYPVhZ9?= =?utf-8?q?s58abc5OIB4zCktnBcXzfTJZo01FfHvBg169ITn/aSzQQhJK1c9I5mps=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)(52116005)(376005)(1800799015)(7416005)(366007)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?zRFRw6YKLpFDBLV5NOn3PGkvML/w?= =?utf-8?q?t53F0f3aqEjtirYrUDk/bj39l9ZxtISlq2jZaHvTUpwfjW0PSkDOlJqbHcXr/69Or?= =?utf-8?q?bmIQ6a0O4IQ3rieVv1xO8ETzNBNX4HNQEXUARvCbJu208eQG7eWa5Q1kKkbogy5do?= =?utf-8?q?DceifW/U1sjUl8nbXTT6ArOzltms2kEyHyB6/megJnOigBAhqLtRc/IYLO9ki042a?= =?utf-8?q?0wZDMkQvJM2ZeKhQ6mBhE6RjsQ+RtGxGu6dzQ0P1aH3B6hruWH59BD1xRl8vcLtEl?= =?utf-8?q?0TCx0JFzzhctM4x7o/f7JhI8mjnCaya9xCLnb0eK/bcVYwJuJH5RORKQxVQPXNi2R?= =?utf-8?q?Hpw/XOfNjNLedp1tp2WhNZAW/O3bL4uhvtcNnebIxlQO7vlrzdz2wgfwZzStJSZkB?= =?utf-8?q?lI9ghyAc+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q?dILDwPxowOT+QfEoCxte7RFwmICa94zCPktRShqfGN5IfwzYPVCygMphErSJQ785D?= =?utf-8?q?urbbJIq7im/r4VARegvVvbCnnCHIofjm4q4a/BS0EzBNlsULRNURk4S0iSbOhe6jY?= =?utf-8?q?54+i4u4r5rppNWXTqdRwxTmeaqZYu5nX13WZGphLNmK49PX/D/gy24j20OWzyef7Z?= =?utf-8?q?atj7RHtE9UGgghVbnxn0sPXKphFq2kri/8sFIM3huFxusSuAx31dAfFDUE1ig0qb1?= =?utf-8?q?7GxqCIrdDCsC?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4253d309-c05e-4b00-2a8d-08dc865917a3 X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jun 2024 18:47:18.7279 (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: XqdTubS9kKiV62gSbm0e2Z3dHVBilvaffQ4uoPfEyYbfwLMWAQr+bOVWdOVsfS92vsNNpKbo9n8ww2XGBr0/8A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI0PR04MB11069 Add irqstear, pwm and i2c in lvds subsystem. Signed-off-by: Frank Li --- arch/arm64/boot/dts/freescale/imx8qm-ss-lvds.dtsi | 231 ++++++++++++++++++++++ arch/arm64/boot/dts/freescale/imx8qm.dtsi | 1 + 2 files changed, 232 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qm-ss-lvds.dtsi b/arch/arm64/boot/dts/freescale/imx8qm-ss-lvds.dtsi new file mode 100644 index 0000000000000..eb8208cddeaf9 --- /dev/null +++ b/arch/arm64/boot/dts/freescale/imx8qm-ss-lvds.dtsi @@ -0,0 +1,231 @@ +// SPDX-License-Identifier: GPL-2.0+ + +/* + * Copyright 2024 NXP + */ + +/{ + + lvds1_ipg_clk: lvds0_ipg_clk: clock-controller-lvds-ipg { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <24000000>; + clock-output-names = "lvds0_ipg_clk"; + }; + + lvds1_subsys: bus@56240000 { + compatible = "simple-bus"; + interrupt-parent = <&irqsteer_lvds0>; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x56240000 0x0 0x56240000 0x10000>; + + irqsteer_lvds0: interrupt-controller@56240000 { + compatible = "fsl,imx-irqsteer"; + reg = <0x56240000 0x1000>; + interrupts = ; + interrupt-controller; + interrupt-parent = <&gic>; + #interrupt-cells = <1>; + clocks = <&lvds0_lis_lpcg IMX_LPCG_CLK_4>; + clock-names = "ipg"; + power-domains = <&pd IMX_SC_R_LVDS_0>; + + fsl,channel = <0>; + fsl,num-irqs = <32>; + }; + + lvds0_lis_lpcg: clock-controller@56243000 { + compatible = "fsl,imx8qxp-lpcg"; + reg = <0x56243000 0x4>; + #clock-cells = <1>; + clocks = <&lvds0_ipg_clk>; + clock-indices = ; + clock-output-names = "lvds0_lis_lpcg_ipg_clk"; + power-domains = <&pd IMX_SC_R_LVDS_0>; + }; + + lvds0_pwm_lpcg: clock-controller@5624300c { + compatible = "fsl,imx8qxp-lpcg"; + reg = <0x5624300c 0x4>; + #clock-cells = <1>; + clocks = <&clk IMX_SC_R_LVDS_0_PWM_0 IMX_SC_PM_CLK_PER>, + <&lvds0_ipg_clk>; + clock-indices = , ; + clock-output-names = "lvds0_pwm_lpcg_clk", + "lvds0_pwm_lpcg_ipg_clk"; + power-domains = <&pd IMX_SC_R_LVDS_0_PWM_0>; + }; + + lvds0_i2c0_lpcg: clock-controller@56243010 { + compatible = "fsl,imx8qxp-lpcg"; + reg = <0x56243010 0x4>; + #clock-cells = <1>; + clocks = <&clk IMX_SC_R_LVDS_0_I2C_0 IMX_SC_PM_CLK_PER>, + <&lvds0_ipg_clk>; + clock-indices = , ; + clock-output-names = "lvds0_i2c0_lpcg_clk", + "lvds0_i2c0_lpcg_ipg_clk"; + power-domains = <&pd IMX_SC_R_LVDS_0_I2C_0>; + }; + + lvds0_i2c1_lpcg: clock-controller@56243014 { + compatible = "fsl,imx8qxp-lpcg"; + reg = <0x56243014 0x4>; + #clock-cells = <1>; + clocks = <&clk IMX_SC_R_LVDS_0_I2C_0 IMX_SC_PM_CLK_PER>, + <&lvds0_ipg_clk>; + clock-indices = , ; + clock-output-names = "lvds0_i2c1_lpcg_clk", + "lvds0_i2c1_lpcg_ipg_clk"; + power-domains = <&pd IMX_SC_R_LVDS_0_I2C_0>; + }; + + pwm_lvds0: pwm@56244000 { + compatible = "fsl,imx8qxp-pwm", "fsl,imx27-pwm"; + reg = <0x56244000 0x1000>; + clocks = <&lvds0_pwm_lpcg IMX_LPCG_CLK_4>, + <&lvds0_pwm_lpcg IMX_LPCG_CLK_0>; + clock-names = "ipg", "per"; + assigned-clocks = <&clk IMX_SC_R_LVDS_0_PWM_0 IMX_SC_PM_CLK_PER>; + assigned-clock-rates = <24000000>; + #pwm-cells = <3>; + power-domains = <&pd IMX_SC_R_LVDS_0_PWM_0>; + status = "disabled"; + }; + + i2c0_lvds0: i2c@56246000 { + compatible = "fsl,imx8qm-lpi2c", "fsl,imx7ulp-lpi2c"; + reg = <0x56246000 0x1000>; + interrupts = <8>; + clocks = <&lvds0_i2c0_lpcg IMX_LPCG_CLK_0>, + <&lvds0_i2c0_lpcg IMX_LPCG_CLK_4>; + clock-names = "per", "ipg"; + assigned-clocks = <&clk IMX_SC_R_LVDS_0_I2C_0 IMX_SC_PM_CLK_PER>; + assigned-clock-rates = <24000000>; + power-domains = <&pd IMX_SC_R_LVDS_0_I2C_0>; + status = "disabled"; + }; + + i2c1_lvds0: i2c@56247000 { + compatible = "fsl,imx8qm-lpi2c", "fsl,imx7ulp-lpi2c"; + reg = <0x56247000 0x1000>; + interrupts = <9>; + clocks = <&lvds0_i2c0_lpcg IMX_LPCG_CLK_0>, + <&lvds0_i2c0_lpcg IMX_LPCG_CLK_4>; + clock-names = "per", "ipg"; + assigned-clocks = <&clk IMX_SC_R_LVDS_0_I2C_0 IMX_SC_PM_CLK_PER>; + assigned-clock-rates = <24000000>; + power-domains = <&pd IMX_SC_R_LVDS_0_I2C_0>; + status = "disabled"; + }; + }; + + lvds2_subsys: bus@57240000 { + compatible = "simple-bus"; + interrupt-parent = <&irqsteer_lvds1>; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x57240000 0x0 0x57240000 0x10000>; + + irqsteer_lvds1: interrupt-controller@57240000 { + compatible = "fsl,imx-irqsteer"; + reg = <0x57240000 0x1000>; + interrupts = ; + interrupt-controller; + interrupt-parent = <&gic>; + #interrupt-cells = <1>; + clocks = <&lvds1_lis_lpcg IMX_LPCG_CLK_4>; + clock-names = "ipg"; + power-domains = <&pd IMX_SC_R_LVDS_1>; + + fsl,channel = <0>; + fsl,num-irqs = <32>; + }; + + lvds1_lis_lpcg: clock-controller@57243000 { + compatible = "fsl,imx8qxp-lpcg"; + reg = <0x57243000 0x4>; + #clock-cells = <1>; + clocks = <&lvds1_ipg_clk>; + clock-indices = ; + clock-output-names = "lvds1_lis_lpcg_ipg_clk"; + power-domains = <&pd IMX_SC_R_LVDS_1>; + }; + + lvds1_pwm_lpcg: clock-controller@5724300c { + compatible = "fsl,imx8qxp-lpcg"; + reg = <0x5724300c 0x4>; + #clock-cells = <1>; + clocks = <&clk IMX_SC_R_LVDS_1_PWM_0 IMX_SC_PM_CLK_PER>, + <&lvds1_ipg_clk>; + clock-indices = , ; + clock-output-names = "lvds1_pwm_lpcg_clk", + "lvds1_pwm_lpcg_ipg_clk"; + power-domains = <&pd IMX_SC_R_LVDS_1_PWM_0>; + }; + + lvds1_i2c0_lpcg: clock-controller@57243010 { + compatible = "fsl,imx8qxp-lpcg"; + reg = <0x57243010 0x4>; + #clock-cells = <1>; + clocks = <&clk IMX_SC_R_LVDS_1_I2C_0 IMX_SC_PM_CLK_PER>, + <&lvds1_ipg_clk>; + clock-indices = , ; + clock-output-names = "lvds1_i2c0_lpcg_clk", + "lvds1_i2c0_lpcg_ipg_clk"; + power-domains = <&pd IMX_SC_R_LVDS_1_I2C_0>; + }; + + lvds1_i2c1_lpcg: clock-controller@57243014 { + compatible = "fsl,imx8qxp-lpcg"; + reg = <0x57243014 0x4>; + #clock-cells = <1>; + clocks = <&clk IMX_SC_R_LVDS_1_I2C_0 IMX_SC_PM_CLK_PER>, + <&lvds1_ipg_clk>; + clock-indices = , ; + clock-output-names = "lvds1_i2c1_lpcg_clk", + "lvds1_i2c1_lpcg_ipg_clk"; + power-domains = <&pd IMX_SC_R_LVDS_1_I2C_0>; + }; + + pwm_lvds1: pwm@57244000 { + compatible = "fsl,imx8qxp-pwm", "fsl,imx27-pwm"; + reg = <0x57244000 0x1000>; + clocks = <&lvds1_pwm_lpcg IMX_LPCG_CLK_4>, + <&lvds1_pwm_lpcg IMX_LPCG_CLK_0>; + clock-names = "ipg", "per"; + assigned-clocks = <&clk IMX_SC_R_LVDS_1_PWM_0 IMX_SC_PM_CLK_PER>; + assigned-clock-rates = <24000000>; + #pwm-cells = <3>; + power-domains = <&pd IMX_SC_R_LVDS_1_PWM_0>; + status = "disabled"; + }; + + i2c0_lvds1: i2c@57246000 { + compatible = "fsl,imx8qm-lpi2c", "fsl,imx7ulp-lpi2c"; + reg = <0x57246000 0x1000>; + interrupts = <8>; + clocks = <&lvds1_i2c0_lpcg IMX_LPCG_CLK_0>, + <&lvds1_i2c0_lpcg IMX_LPCG_CLK_4>; + clock-names = "per", "ipg"; + assigned-clocks = <&clk IMX_SC_R_LVDS_1_I2C_0 IMX_SC_PM_CLK_PER>; + assigned-clock-rates = <24000000>; + power-domains = <&pd IMX_SC_R_LVDS_1_I2C_0>; + status = "disabled"; + }; + + i2c1_lvds1: i2c@57247000 { + compatible = "fsl,imx8qm-lpi2c", "fsl,imx7ulp-lpi2c"; + reg = <0x57247000 0x1000>; + interrupts = <9>; + clocks = <&lvds1_i2c0_lpcg IMX_LPCG_CLK_0>, + <&lvds1_i2c0_lpcg IMX_LPCG_CLK_4>; + clock-names = "per", "ipg"; + assigned-clocks = <&clk IMX_SC_R_LVDS_1_I2C_0 IMX_SC_PM_CLK_PER>; + assigned-clock-rates = <24000000>; + power-domains = <&pd IMX_SC_R_LVDS_1_I2C_0>; + status = "disabled"; + }; + }; +}; diff --git a/arch/arm64/boot/dts/freescale/imx8qm.dtsi b/arch/arm64/boot/dts/freescale/imx8qm.dtsi index 61986e0639e53..9f29fe4589668 100644 --- a/arch/arm64/boot/dts/freescale/imx8qm.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8qm.dtsi @@ -576,3 +576,4 @@ clk_spdif1_rx: clock-spdif1-rx { #include "imx8qm-ss-conn.dtsi" #include "imx8qm-ss-lsio.dtsi" #include "imx8qm-ss-audio.dtsi" +#include "imx8qm-ss-lvds.dtsi"