From patchwork Mon Jun 10 20:46:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 13692410 Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2054.outbound.protection.outlook.com [40.107.22.54]) (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 0226855897 for ; Mon, 10 Jun 2024 20:46:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.22.54 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718052420; cv=fail; b=Wz3NxdiL8Du8AXG7XpnaTodiS+ebEAN4sKYrcr+UTAfRvSgnI5G3525SfJ3a/WNSnrdTh79axU/vhB3s8jPvuGpxgheoZEacN1HecRl3oWku7EyURU1mZ8XVhPLbZL+d4i1RyfsTPEibw3TMPftOevo9MLZquxOJ+C0iVZIZkOU= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718052420; c=relaxed/simple; bh=CtkKNHUAo2fAzwGqCbTf9SwseCYd1w8VFFilR35ifTc=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=LpknU9yIjI3WTU6zAGi25iTxeN80kiw7US/Gvcbt64FGCaBFdPALVb5LHKmXpR+nQldHEJeiCQ+05qYDYzX7oWWCUfWqftXZT8TWyQLImoBertZgE+tMQdaKz+i4U1WEgwbvGLeglcY5VauTGLqXukju8k41jdXrl0UcS/74Ciw= 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=PPrOvMkW; arc=fail smtp.client-ip=40.107.22.54 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="PPrOvMkW" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=EFKKSSCttb0FK9Ek53mHsqsaQ4zoJdLu/sy7qsfuUDVwIUSej+woyCVfb1eXSIbfEhwVkS98BPCH5sJ95KCz4MYSdwGsluVugaJuKO97ZbMED2PgZBh7UmednTF4K7fcGzOgPa2AH4H0WmKc2IxNV5aq8N00i5RISzLt4Ap8TSmcDJskwsj1zmIKlr/GX+4vGAZ1sIE4gJ3NnJBPfmxfnPFqOZ52sLzTJDcyg4hycxoMCFtLpvcdujH/VDNiRmKzrbGssKpayiP2lNa2YcYsiRVJIXtfSGrf2cVI4lXqggLuGoyU47i3dwmZR1H7My1Zi5c25vEFeVfIfZ/mpbTVpg== 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=WbNXYOmM7fmpU6IcmuaQ8LES1RtyThc57lOnzveE9xfrIW/eu1acz1nHNerz3w3FKgtMWEFaesNMauutBHRlWgQFHnOG4Y2P5wri1bqqQre93KEeYCTX9jnV3fqqeOIqmKE7cl2MOdZK3tZb/jasQfUa3WOpVRFMUCN93l6gUh+/f+3Iq83dT/JdMU88OmoSdCvlH6vn9GHaUUM8QcddvUVZVkdPsrAk7lXJoVtmDzHpGu0wzjIqSTB3uBAL3+1R/CwOy0upTWY0v+hEmm1PUafKDL3VR8ac3C6OSzaslU6/DQVGVkzdOVfLjfOjxrSBauEnOCITIP0TxdKMddaTfg== 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=PPrOvMkW2+HtGR9kCvKDh74R2pbY8/CFsecd+PpG/jgObN/tZYHYSpOCOLzb8b8mtFsFELETxtUAOn3I75pRCbDqmalfZofwPcqI7oHgLNkVg9utdPHaTUUef8VDkpzK/6P1T68cxLL6Lw/EZlAgOj4/JFxw236+HhgtXvyNKmM= 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 PAXPR04MB9376.eurprd04.prod.outlook.com (2603:10a6:102:2b2::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.36; Mon, 10 Jun 2024 20:46:55 +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.036; Mon, 10 Jun 2024 20:46:55 +0000 From: Frank Li Date: Mon, 10 Jun 2024 16:46:23 -0400 Subject: [PATCH v2 6/9] arm64: dts: imx8qm-mek: add pwm and i2c in lvds subsystem Message-Id: <20240610-imx8qm-dts-usb-v2-6-788417116fb1@nxp.com> References: <20240610-imx8qm-dts-usb-v2-0-788417116fb1@nxp.com> In-Reply-To: <20240610-imx8qm-dts-usb-v2-0-788417116fb1@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=1718052391; l=2711; i=Frank.Li@nxp.com; s=20240130; h=from:subject:message-id; bh=CtkKNHUAo2fAzwGqCbTf9SwseCYd1w8VFFilR35ifTc=; b=YqPFi70GU+jIChl7P1uqQM0qNddAZs8wDg3lVTUdW6wNASEhiuQASp9rtmLF7hCZs+VxkZxqb sDlFolW/1F3ACtmGOvxIrB26e5WrplHwqFjdr35OErmLYXJLzAJ+uRZ X-Developer-Key: i=Frank.Li@nxp.com; a=ed25519; pk=I0L1sDUfPxpAkRvPKy7MdauTuSENRq+DnA+G4qcS94Q= X-ClientProxiedBy: BYAPR06CA0059.namprd06.prod.outlook.com (2603:10b6:a03:14b::36) 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_|PAXPR04MB9376:EE_ X-MS-Office365-Filtering-Correlation-Id: 30e1a6b0-821f-4732-d6d9-08dc898e76ef X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|376005|366007|1800799015|52116005|7416005|38350700005; X-Microsoft-Antispam-Message-Info: =?utf-8?q?qTagLdIZX2q6bpWU8Riz3yNaN3YMQ5t?= =?utf-8?q?dRyzh1Wpl+UxS5AZGlHmzZRCaCG+tnecWrDTEc/favCLv/4r/7NpYgXonRjcUWU+O?= =?utf-8?q?YGRh+dXofJvIxaBm7ErBJWz+u2hjVoV4K5kiePXeh42XkPAkyfnzH3MvxvN4MfNWW?= =?utf-8?q?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ms0QUkCCtpR+NRYpTRScv17m4hr8vspajpo1yi4of8nWXVNnQic5s3e0+c?= =?utf-8?q?OUH8jlLSFHw2YakfK6CrZCVbbwUQoyKlNgKrnEZAzSIjfEPzkULU4ICkEAIh6l43T?= =?utf-8?q?5mLcpMQvvNEBvoMnrTh6Ony79NCEKh1GXmdT5K5v2+fWu6argS5OOaP/fteLYYiR8?= =?utf-8?q?pywapKSpRU2s6MPGdsFnpZtFg+FMpdeH1VrbVv/g15zEucCoZxVerFFu+G7x+fTXA?= =?utf-8?q?SWrYqCHB7Ya4VCEXfDH9rQ029OHkBCU09erEOOz4UB/iwGUc0b/jzuk8=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)(366007)(1800799015)(52116005)(7416005)(38350700005);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?VTA56gIjfYKcq8G3zFFLLMp2u/dC?= =?utf-8?q?X1Oz3dWQ3kIauRDUHIuPMaHzh9m11F9XQXXoD9ilT8T4/sSzGbel34vgxgiD5WeIw?= =?utf-8?q?ywmbu8rVfJRDkwyroTH2Y2tt0MlY7Z6DSs/adSwWKTikm5vy1RkyeK71gs/w64X+D?= =?utf-8?q?iwxox++qCapgPpNiJgTWWq9C/vKJaSNdA2GTCFoCTOcZgS4V9N/GN5sy/62Q5ql66?= =?utf-8?q?+futHZrGrEiTw6lKgA9CMjljXEmR+qgV6PmWeJUA/0o9tjPpT0PeQ7x47e//gNok1?= =?utf-8?q?q59Dlor6ZdMRDTdI0sp37C3p11yT//hQFRmF2YpGyX/14eKfpLPYGo9LNQw8wxSuI?= =?utf-8?q?A7zzpSfYV2weXNKT9UxzC61NDtXOb8/753VhgNtRfxcStZXl7GwlwX1E0XTHSAb1J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?= =?utf-8?q?2XWw/N4yCnVNCRuqOrFkqMSA1dYyouMxzDWx/wNgFWJZO0q2FMJGKp1K0HNQxJimQ?= =?utf-8?q?KRkcctW5MRFNWztrbWr/nfQ+PKTobLHmG3vAi/ZNuYru6y3p31dvwScCYm8+G3kzY?= =?utf-8?q?blBV4nAlZt66dy9e+exENltS4PM3weKi6eOW5f51HZt/gqJOhxp14n4hvH4W4URlJ?= =?utf-8?q?hW6Lp8nZAUgS2q/x3FV6eBofzErBdGUujsV9HbJ3hprYNGzjgDxWON1o=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 30e1a6b0-821f-4732-d6d9-08dc898e76ef X-MS-Exchange-CrossTenant-AuthSource: PAXPR04MB9642.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Jun 2024 20:46:55.4267 (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: 5hETZfgLrMnyo/4FDrl2FNZiwKBmRdMaJW/L0Vf2xEP0IOggWk1ZDjQqE8wRsxVU3Lborg/+4cbxQuqMIGdZbQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB9376 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