From patchwork Fri Jun 14 15:06:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13698827 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 B020AC27C77 for ; Fri, 14 Jun 2024 15:07:36 +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=KELo4iICDdoq75xZlnxNbKYIHquYeUyms8sM9HSKKKs=; b=NbgUp7tFd1P6pAQDYEOPFyXBvL Aqih4jj7vLOkOx87sUC6IRUNWTgsY4dzW1EeSJwRlnLFjGKlzPu4hVf/6CtH+y3MSVfwCSB4H9556 oYGRco29inH4B8f+w7IouRpZXgu+JeR5rPVeyY76lNw+PUM9oG+WtH8LaKj1w2I1VjPRlra+Bieiw QyumGhP8Om57OeRacJHUYcIKDN+gkme3zE1NwptUpbbbZsQ6LAEnb8GvKEGVLzVKVRNdC3R7Y0zlf O+wNmkaFuAo3B8/0tN4O6uWOHKQfXPLqn8zOhTY326raNEOrq48geK2KXPeKadSW99Okzs/4oay4q L4Yl9RGw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sI8WP-00000003A6D-0Plh; Fri, 14 Jun 2024 15:07:21 +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 1sI8WE-000000039ui-10DG for linux-arm-kernel@lists.infradead.org; Fri, 14 Jun 2024 15:07:11 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=esQVn/X8nb4CP5P0JKIkk2iYK5YoonYSINiDaTfWWpxCBtR+Sc7Ok1cLySG7AuTxCefbqGiRYiCuT7tRALEriGRUmOeFjldxtbBARDN4sLJXjRgD84MhVWogQRgSeL6aRSO3EHmHauPBOgh0Na3xjrreFKVjzp7upKe828FPRVUbPGMxhJuHM0Aq5aR5hnryS+taAuWV4Hb5EQjIpdQInI1Nw9EImewNR1u5OXeeraGuLufdIbcFUSIHvUC8L1vDOzrU02bPAznMwJPxVFqHwrJO3JdBPUWfh+slstAspsYkHzYYg/YjPpBimkyQbXxQDzo4i8ssXFoUCYQYd4PwiA== 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=KELo4iICDdoq75xZlnxNbKYIHquYeUyms8sM9HSKKKs=; b=e3rpRWBM7t+ixJWrxNXOd+IQsQdTcN1zisVmWOWovzDbVgvcQ8yEjGszydJ/TWuicn0ihUOtv5zahhJoKw4pl3fU0XLrXhmAW39ugkhucDgOaHlNRVxGRiUlBaOicDZjpDgLNvqosR5U7fiJSNl6A9gJAx8wobGFpzok2HMa6j0B7rn/pzbodIY3X00n1el9ei68Io8KZxFd2TxwMrGk2T0uNmpkx1kZ7jAQG3PTfVMw5XyJbVUWMir/KSD+DEByl74eV+IwekSR+XgRas0tdvmt66dTUGxoXUPr+/I9HlHCqtWU6r6umMEETIoJJ80BocQHT9Xfm8No5vnZp83mwQ== 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=KELo4iICDdoq75xZlnxNbKYIHquYeUyms8sM9HSKKKs=; b=e3CN7JbMxJ8XYjvKVDlXXcgVccDV4RJidy2GSPgdj38vJpfQszZO/obNlFXlsSruzIpzKb+22hJHy0QJJlPkhuJPZsjT89l+bOb02bMvKENFc/POO4NFtUF+2pL6ZKjvpMWRX3VF/tq3zrUlQHQ581yb7talXrqQO3F6ga+hqCY= 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:08 +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:08 +0000 From: Frank Li Date: Fri, 14 Jun 2024 11:06:30 -0400 Subject: [PATCH v3 6/9] arm64: dts: imx8qm-mek: add pwm and i2c in lvds subsystem Message-Id: <20240614-imx8qm-dts-usb-v3-6-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 , Peng Fan X-Mailer: b4 0.13-dev-e586c X-Developer-Signature: v=1; a=ed25519-sha256; t=1718377604; l=2711; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=CtkKNHUAo2fAzwGqCbTf9SwseCYd1w8VFFilR35ifTc=; b=t0TM9Q6g+eCkyAUjYKJQ5VRZvdmtFGQ6nmSim2X6RsidCTsoMHqx71E1tS1Z8szKQYA8u0yAA OInzyND/ZRJCZpC2k2cB68WSIkI1vzgqsKH2DC7E/lIoKyKj9kgVwpd 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: 80053fbd-043a-44d2-3203-08dc8c83a936 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?SpAxnzqbyUAtIugjOKOFS7Rzpi4jnxX?= =?utf-8?q?YrYH0DV6QUFSn9tWyRbyxGFEzBoM0WZf+b/CNio9wDnoo38qXzRwolob68Oky1gsv?= =?utf-8?q?RogZakBGHTnUIHzosueCK0Mvl9svRYeuRROOOiRDKDw/uXay5GVErIqoMJj/CFsEl?= =?utf-8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z3UjCXbxflDEo5QHsNHd08Myy3W2VgK9Jkvw6soPCgBOgqY?= =?utf-8?q?jfNAZbICr7wAwUBV+l2Z+rR2bMlPkSPxOLcKnIb/49+IOa1RTPf2Dl383wkzm9LDr?= =?utf-8?q?zGytne1mq9REJfei9YHeYaM1ySSwXwJthQFfNA1ykYjyihYAUF4ka0TZarV3836ny?= =?utf-8?q?4HHZEtfVbmUNZC+S6g4M7eM0FhEUEgu0iDtZqfvSlwjdiLrJ7vennQufuHeA471tE?= =?utf-8?q?ex1EcPeTL05JrS376huvjS+N9rSQjl2MY4LTZO+8RKSz7QHqy0teX1HI=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?lsL3RZwaVfacbNEyjHCnOD+KP6Cv?= =?utf-8?q?t8uvuzEDocAEXvP3zssU/aWVNZQSHRTrlikKOe65wJ/w/T8sYiyPoDZGfrtQ8Se5U?= =?utf-8?q?fKgAftxqU9OT22BNp5H0+VdkvmcCyQY4K39HfEP3Ii+cD1Ip7jEJsLBIF0NAYDhyD?= =?utf-8?q?bpENN0zB6baw1gYhd0ztEsXo82dvTvj9a7VRib5/bZfye25bnNvXpGvYXgy8IQLQ1?= =?utf-8?q?zOjT1pQBz7mEzDV2fgYw88EMZPutZXE3fPVTjwTKscqjSw7ZViLRdkGbiQMxohl+f?= =?utf-8?q?3I/AmXw1QBLYQxnELdU5wKA5cfWR3iBu6K2wjUylw0kj60ewFL2rCrC9dzEwcMPNW?= =?utf-8?q?WcVWJOdy7ewGow1eagZ4OqnTY+wd/4HzlkgvTFpoKNypsEKie/SNe6VIYMysIAK+K?= =?utf-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exiFmFczurcgH+AXWvBZDF99qZlBnJ2GFeYSxDvbiJhN90aT3HrL+BrTytK8?= =?utf-8?q?TEmK9+HBw/kfNy9xehJNwd++pqeLC/F//fR038VNyEWdTEa0a8W0iU9k+JucTnSB+?= =?utf-8?q?LM0GMaAuLDfOpbqkWU/duzF8FhniYRkttUAk6iUmw/hT8phzGqbwMJb0PoXuM/kit?= =?utf-8?q?gONy/K/3lafqvGGstE4Xa5/dA5E0zG8CsuuB1lcUfC2UCMmNGStE9+SkIIfGTtGnq?= =?utf-8?q?OYkM3+LYFRPM?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 80053fbd-043a-44d2-3203-08dc8c83a936 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:08.8233 (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: Fa2u8PhI/35WxsptgTvxmTlNCWwHSn6QvkPe3d6hnrSPsu/kXpO+CEKm+A7rJvmixD3xSgG+SScunEggP7h8Rw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR04MB8215 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240614_080710_330059_D9EFA897 X-CRM114-Status: UNSURE ( 9.83 ) X-CRM114-Notice: Please train this message. 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 Add pwm[0,1] and i2c[0,1] in lvds subsystem. Reviewed-by: Peng Fan Signed-off-by: Frank Li --- arch/arm64/boot/dts/freescale/imx8qm-mek.dts | 68 ++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx8qm-mek.dts b/arch/arm64/boot/dts/freescale/imx8qm-mek.dts index dbd478af2e474..3cf39c868e752 100644 --- a/arch/arm64/boot/dts/freescale/imx8qm-mek.dts +++ b/arch/arm64/boot/dts/freescale/imx8qm-mek.dts @@ -93,6 +93,22 @@ rsc_table1: memory@901ff000 { }; }; + lvds_backlight0: backlight-lvds0 { + compatible = "pwm-backlight"; + pwms = <&qm_pwm_lvds0 0 100000 0>; + brightness-levels = <0 100>; + num-interpolated-steps = <100>; + default-brightness-level = <80>; + }; + + lvds_backlight1: backlight-lvds1 { + compatible = "pwm-backlight"; + pwms = <&pwm_lvds1 0 100000 0>; + brightness-levels = <0 100>; + num-interpolated-steps = <100>; + default-brightness-level = <80>; + }; + reg_usdhc2_vmmc: usdhc2-vmmc { compatible = "regulator-fixed"; regulator-name = "SD1_SPWR"; @@ -334,6 +350,20 @@ wm8960: audio-codec@1a { }; }; +&i2c1_lvds0 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_lvds0_lpi2c1>; + clock-frequency = <100000>; + status = "okay"; +}; + +&i2c1_lvds1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_lvds1_lpi2c1>; + clock-frequency = <100000>; + status = "okay"; +}; + &flexcan1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_flexcan1>; @@ -449,6 +479,18 @@ &fec2 { status = "okay"; }; +&qm_pwm_lvds0 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_pwm_lvds0>; + status = "okay"; +}; + +&pwm_lvds1 { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_pwm_lvds1>; + status = "okay"; +}; + &usdhc1 { pinctrl-names = "default"; pinctrl-0 = <&pinctrl_usdhc1>; @@ -675,6 +717,32 @@ IMX8QM_M41_GPIO0_01_DMA_UART3_TX 0x06000020 >; }; + pinctrl_lvds0_lpi2c1: lvds0lpi2c1grp { + fsl,pins = < + IMX8QM_LVDS0_I2C1_SCL_LVDS0_I2C1_SCL 0xc600004c + IMX8QM_LVDS0_I2C1_SDA_LVDS0_I2C1_SDA 0xc600004c + >; + }; + + pinctrl_lvds1_lpi2c1: lvds1lpi2c1grp { + fsl,pins = < + IMX8QM_LVDS1_I2C1_SCL_LVDS1_I2C1_SCL 0xc600004c + IMX8QM_LVDS1_I2C1_SDA_LVDS1_I2C1_SDA 0xc600004c + >; + }; + + pinctrl_pwm_lvds0: pwmlvds0grp { + fsl,pins = < + IMX8QM_LVDS0_GPIO00_LVDS0_PWM0_OUT 0x00000020 + >; + }; + + pinctrl_pwm_lvds1: pwmlvds1grp { + fsl,pins = < + IMX8QM_LVDS1_GPIO00_LVDS1_PWM0_OUT 0x00000020 + >; + }; + pinctrl_sai0: sai0grp { fsl,pins = < IMX8QM_SPI0_CS1_AUD_SAI0_TXC 0x0600004c