From patchwork Mon Jul 1 15:03:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13718283 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 A0369C2BD09 for ; Mon, 1 Jul 2024 15:05:40 +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=Nz65/kWKfniZRT3TSxQRZahPqTyB1pM++jiCI1ZdSGw=; b=p2hyQX4K1/MywPmxOq/Ez8Sn0d GdnsedEHAVh1uWskNe974PI7rGlwivl5++GJTfMYT2JNVhzJoePB1cN0+cNNBtlTAYRDC5nn0EbRo On3UGmxBjXoPfiH5cSiBgCcaBaJypnBmN8qUHZ5O0gYeJU3vLKJZAJVc7Go/VtcuehcKep1M926pE xoLMmT6eMpfMvc3J25LMTEcSDfbZ9TOo0TBsYlYolGOEvnRb2IPBQh7ZnKoAeJFXZb/FnRrtwPMXZ Ra0tDAVp2povtXfQoOO45e8uFa10xotQos3qy8BWxqC5g5Kbek8pM3L6UkxOEhUCI0o4fRhAWaO4d X17fNekw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOIas-00000003rKx-1AJQ; Mon, 01 Jul 2024 15:05:26 +0000 Received: from mail-db5eur02on20600.outbound.protection.outlook.com ([2a01:111:f403:2608::600] helo=EUR02-DB5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sOIZg-00000003qfS-3WCO for linux-arm-kernel@lists.infradead.org; Mon, 01 Jul 2024 15:04:14 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gul3/GRtlT/1uyzW65jYijTXBFUdhT74osyK5N1x4L5ctJp3C38U3N3peAWIt/nHtKrowasUDovj65BfQm8PjJYu/AAGu+wxFo73SbBFdqXqQuJOW7rBb9f2K/yvvUMHlGyR2C7U+5kPI/k1Pibn7qfdBUhgj32jkpiHU9vpLH8po7/qfI+PbrTBu/LDto4DfLp3/sEpHIHGaPjphf+oTrh39pTxDBjZmJ4KE0Gbo8h/bEKUpiOVytNJvE0Q5O5DKq5LHCWkog+N42ooH6sVqW3EB2imlLaH3I/W/5da2+m6hU05mWyJ8UTla6PLGCITjOh/InrGaHUXKNCSl+Ji+w== 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=Nz65/kWKfniZRT3TSxQRZahPqTyB1pM++jiCI1ZdSGw=; b=In8vCw2VGWZyZhd1ZK8iH5ATtGjZwj4Mz8vxvcqwEDoXmQSsE8JKK1rz6yiJ2iFit70FiOuYDIFLKzf0zLsDAEJZh4DBO16PvVWKAVhTKgB2IgM92aHbViXLZQ2HZ5QOXgBi6wSJjpJYZQqX9EUgor/vDIv+qh2LCRQ4q9z8ANhEKphm4uM59jSiACwPLHX1zO7hYp8J1AcWs3IYtNCeC/0wnMC0m3eIBo4FBe7peojx3Tj4WKiHtuk8gCAi2WLUZomreojJ3JAngVIbyqMaLioWSXtT+acGuTzLsbjNX7NekJIQBdOSgEuszpF+DYV2ddqe3f64tkOzMP05GBsdpw== 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=Nz65/kWKfniZRT3TSxQRZahPqTyB1pM++jiCI1ZdSGw=; b=a9P1K/VryRDJTfvzG9NsrZHSUTLbBTQjHSat/h2Dc+9X1o4umSZS3cJn0Tf48leEv1rgdP9n24QNZKmC0g/sfzX1zVEh9P1uT/EirLnNGBCF7dkEJAdZNL3I+QRx3e6SOea0KqdDVlq15ZAFcqKTsD5N2uXKXqETn5b7TZp931M= 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 DB9PR04MB8169.eurprd04.prod.outlook.com (2603:10a6:10:25d::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7719.32; Mon, 1 Jul 2024 15:04:09 +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.7719.022; Mon, 1 Jul 2024 15:04:08 +0000 From: Frank Li Date: Mon, 01 Jul 2024 11:03:32 -0400 Subject: [PATCH v4 6/8] arm64: dts: imx8qm-mek: add pwm and i2c in lvds subsystem Message-Id: <20240701-imx8qm-dts-usb-v4-6-03cdbc8c44b6@nxp.com> References: <20240701-imx8qm-dts-usb-v4-0-03cdbc8c44b6@nxp.com> In-Reply-To: <20240701-imx8qm-dts-usb-v4-0-03cdbc8c44b6@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=1719846224; l=2711; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=DTO+VNKGSI4jjJCZsoh9zrmVSksUarOdNbdWRuRBe/4=; b=lihQqOl1iQl2PMd9k0Z+D51Ced+Jft2879EttEcKRg/EnRaF+hIA1/O5N+OPvHaPEkBCdNJLy Rqmw66T/2z1B9jihGhJ71QpB302sg/mOup9Ui5+nMd+VyVejeRtJVOt X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: SJ0PR13CA0149.namprd13.prod.outlook.com (2603:10b6:a03:2c6::34) To PAXPR04MB9642.eurprd04.prod.outlook.com (2603:10a6:102:240::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: PAXPR04MB9642:EE_|DB9PR04MB8169:EE_ X-MS-Office365-Filtering-Correlation-Id: 496601c5-cb6a-464c-bd38-08dc99df0efd X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|1800799024|52116014|376014|7416014|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?5mhYCAyUAxzZreH0JLbmtLgBSaTddOr?= =?utf-8?q?LLD3zqUU4qcWg/AEf5uEOfo1x0q5tKOXAz2VqzblroSpd0uZZkod+e8bq9efZVwzz?= =?utf-8?q?uc9FnW4+uzlZgIEuFn8vJepkwcHWvT/rVUUYmWaAac2BT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p7dIiCV0fr?= =?utf-8?q?12rcVIW7VQb9+VJ9Epp89SLT5JMVPQV9ReG0qdhAI6AAOtr7yx/02pDjcNQnbYIlV?= =?utf-8?q?D55dgGtE6HIFspz4uKJ6OMrgzU1f2kH2SDVmfctMqE7p9F6vEISiYs6FDC49HmOpC?= =?utf-8?q?2OnMnU+m3pxl0TYOshR9e5PH6VwO/F6PvajivkmUwxQ1QUN5s5wopmSbDIIEmdKl/?= =?utf-8?q?R906pXxlimtmUb8svbuREKLeG3thFjbyrwY5E0UNlAiL3qJNJ3d0MGwHNQMDGlJGw?= =?utf-8?q?2LXzub59PyEqhvhkD34p0RlHyVVD29gJqQ1snbfkbQcBCWg8GwhQjR0GHcUCl0yLa?= =?utf-8?q?x9GIgLnJ4vKbAWJKJco7NZeg1vFODw4khA=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:(13230040)(366016)(1800799024)(52116014)(376014)(7416014)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?/QL8j45el7c5YPrKTeVOF8mqT3Tt?= =?utf-8?q?MtIHbd0NHwOL80m5XZH+Vk72Kim+TFfcL32u42Sf3BjiPpUOvCwRhN6ohEGHNPOzr?= =?utf-8?q?6cNtfyFgc1qTdJwWBFUBZsVUpwsvBX33YZj5DykrLqvG++ARCl36GXcVzH7tLhm2d?= =?utf-8?q?oy/jWwKqjweflz82l5YAz41fJjKiksRjsU40a3OsRTb7oO1ZVPgZFNrBEalGpUazw?= =?utf-8?q?oCXbyTZqlF5QD/AxTfOvy10XIkgCYS8o92MevWHFwb33cy6eof7tHniem+MN+Fc2F?= =?utf-8?q?+d4myru8lURO6w56FjU8dMww+FUQl7D8Q7tURJlqBMCBOwSX+upd2vEh8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Rtw1UF3UBVp?= =?utf-8?q?IxHIx9KjOzS5Qns6Em6J8+g+NdM13L3/kg52gD5euhLLK4LR0sCMnKEojxlq/AG7m?= =?utf-8?q?oNsoYp1oY3PCMYtyOiAcW4pd1nCz8z0bBsdaDpA6CDDtO9hbUDwp7qlmaRN/wX/7I?= =?utf-8?q?umD1R8P8DFE7/oNlphvIsmJctZBZEDVE01MJwB/phBjTROP4FiiMzWqb4qFl8jwYP?= =?utf-8?q?2tkQKHP346sqZfFHMQIpRiO8uRUB+Pb4LpwCT85LuIMlTE1IucezTcI4rOwIreJhC?= =?utf-8?q?dCsHOmEh/WWJGXssG0gjhCkN+6BuvD94Dlo4VcamGmKmePptGKjLm80sfWk8JjCAU?= =?utf-8?q?yiesvNbJAGxT?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 496601c5-cb6a-464c-bd38-08dc99df0efd X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Jul 2024 15:04:08.9176 (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: jVJ2wbDJhr6TKkcqDV5Xg2ospEkpmL2Va8WUw2SO3ogpWTMQA79QF1+eHwsMYJ7DgzDYdipmcQulcmiV3PLUgg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR04MB8169 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240701_080412_920883_5F986091 X-CRM114-Status: UNSURE ( 9.99 ) 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 fcd904383daff..fc79ac0d57a1f 100644 --- a/arch/arm64/boot/dts/freescale/imx8qm-mek.dts +++ b/arch/arm64/boot/dts/freescale/imx8qm-mek.dts @@ -93,6 +93,22 @@ vdevbuffer: memory@90400000 { }; }; + 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