From patchwork Tue Aug 27 06:47:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Liu Ying X-Patchwork-Id: 13778983 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 260B7C52D6F for ; Tue, 27 Aug 2024 06:49:34 +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:Content-Type: Content-Transfer-Encoding:References:In-Reply-To:Message-Id:Date:Subject:Cc: To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=ZghnHVVIcM07nYfbg6XQ4rWSVA4Dihrv/ejgOqUWm3M=; b=X1UKsj2hw3gnDxlDylGrX3ye2n rneBJ0YYUQktPYf8sVJI6oh7KJTAsLKeHhl3fmU6x1b8zYn/M3glleBlXWEFIBuD67qfy8pg5IBAa 95SL3r9lpj8J5ZOA4jh9yevJTjcDmJiHuWPgS82DSLpehS+jUaIkpm+RI8bYW5BNo77FVcbF/f+0K QSNmvvjZVKv8Uu7ppcYt3M9wgPa0+Z8fsPlSJ2ZQMBxnPRXvTzCWIEN6pYcst1fKPCX9+IyDAtHUc ShKN+vbJa72F8gFUCf7uwFgqp7l0u+NiajKAO4jOoz/g5muTBGoZKso670Dl1AkZFe4jEfEFF6fsk j9xPehvg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1siq13-0000000A5L7-3Xxo; Tue, 27 Aug 2024 06:49:21 +0000 Received: from mail-westeuropeazlp170100000.outbound.protection.outlook.com ([2a01:111:f403:c201::] helo=AM0PR83CU005.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sipzW-0000000A4zH-17k0 for linux-arm-kernel@lists.infradead.org; Tue, 27 Aug 2024 06:47:47 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=bQLz+OobW31U2XkXBTqqGaj0WRasKfSbmY1qZFOk4iO2n6sIDAEgx3n4yqLrG1h+LE8dHYxfWVbJyjwyEf/UCi1bwGK23HO9/4Ri6PMiyFxK8Whf8D+7DmQbvPWY7Rbug6QVZ7to8bWRsnWELGWBgVIvag8megH9+vylWrmFbKfQ4pNO8qURQP3Fhl5ST3pBUlhhtL0wp3sm7ckt6tbMvV4P16RoE5aC5anzu9MHuwWjdTgHekk7KL66UvWqdO9rVKU1p2ArjFMAP8wKGNdhwrsRE4Qz1tIkEc6yHphNhhYWbk5DDlFNCmcZwn8UWXiO9dWQnQXlnzsvLwuZLtqewA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=ZghnHVVIcM07nYfbg6XQ4rWSVA4Dihrv/ejgOqUWm3M=; b=EfLz4cwb273v+hAfhTLnhYnvJmq+n6b6SWAmZ7cp20TI/+RWG4n5kW9KN0Kv+/2nik+qS3TuGMZwp6kAJRkWchWJDBlqPyZ/ez5BB7AQR2a7WnY3FebfeYy7qOOo8mbnjOK/iX8xmKjHM9FVpy9J2ePFVu6yyql5Yo/HPmJNvt4rYO1mTH99N8u8GkRD3XoyLFThrKLoY2Bu7OsQ9xO7EA/TB4zKcwubtc8jYY+fnej/RHLDEGFSHzADGv/6hcUAL9AcTS2nUEAo8cGjEIy6MWK64A65I/q0DOO0vwhi7T2YjzuYPciGnFBqzNjmbk/TOkyQEjjLJiuElGV/wtmTDQ== 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=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ZghnHVVIcM07nYfbg6XQ4rWSVA4Dihrv/ejgOqUWm3M=; b=bHosxXqCGMEX3meue50N2pr83DNiViK16yrA2ruu0uAU6J+E5PMiyeCcuUvwQ+W93bcE1a7fpV25pLP/Ey6S1orvrRF5CxTMaU8wKrmMVj22P+aIHsA1F3ht4yCEAQbnY1EVpCsv4PR8gqxbAgOhecAKymhyYDdvzwcSP2yfjWzDbsiCpb8rWTEbgMRccUFOP1tzIpsK2Xqq4bxeTb6SYxivzV20OPUl/PtwgAaU4M7m6cPnVKpSkZJB2B4JUSEa/6g8ixk/htRQmWEFX2tTYcHtEcmdI7YJH0KqhKjlvQINkFN8Yfk0w2lrLxcrPbQbnKgIaJQRM9WJyqtCGw4bwA== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM7PR04MB7046.eurprd04.prod.outlook.com (2603:10a6:20b:113::22) by PAXPR04MB8559.eurprd04.prod.outlook.com (2603:10a6:102:216::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7897.25; Tue, 27 Aug 2024 06:47:43 +0000 Received: from AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::d1ce:ea15:6648:6f90]) by AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::d1ce:ea15:6648:6f90%5]) with mapi id 15.20.7897.021; Tue, 27 Aug 2024 06:47:43 +0000 From: Liu Ying To: devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, catalin.marinas@arm.com, will@kernel.org, quic_bjorande@quicinc.com, geert+renesas@glider.be, dmitry.baryshkov@linaro.org, neil.armstrong@linaro.org, arnd@arndb.de, nfraprado@collabora.com Subject: [PATCH 1/2] arm64: dts: imx93-11x11-evk: Add PWM backlight for "LVDS" connector Date: Tue, 27 Aug 2024 14:47:16 +0800 Message-Id: <20240827064717.2383292-2-victor.liu@nxp.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240827064717.2383292-1-victor.liu@nxp.com> References: <20240827064717.2383292-1-victor.liu@nxp.com> X-ClientProxiedBy: SG2PR06CA0200.apcprd06.prod.outlook.com (2603:1096:4:1::32) To AM7PR04MB7046.eurprd04.prod.outlook.com (2603:10a6:20b:113::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM7PR04MB7046:EE_|PAXPR04MB8559:EE_ X-MS-Office365-Filtering-Correlation-Id: 0f42ad95-cd31-4def-5a59-08dcc66426d8 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|376014|7416014|52116014|1800799024|38350700014; X-Microsoft-Antispam-Message-Info: WBnCnKwFBrsXnG0ssYDvuRy7dilRkXjBGf0yqwIsjEjwPVVNO40zcneGApNv1KXf3pTaK+zzm3e2VmnXd0ddJuM/We09JDLpeGO/xrGirsJx+adqARsPLSMHUkisK56CdJPbfK62R8FXWO3HTRvXUdO5RbUYS/7HurEFgE8Ywd3gGsBSWij6CxjZveC5vN6ZpcpH1O5gzN1UNQqUULXAFfIgVm7V5X3hX1Dvss6x/DjVJ3LDA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E7kaCmXMdtfl+B5RB/Lsfq1hU0yg17PANLDIjHSU83rWfV5nNo3IMbXKRYX6NMe9SAY2pvgXLTcwYZcwyTQkwhVZqRpWv0pHLnCVQtPe8yA== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM7PR04MB7046.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(366016)(376014)(7416014)(52116014)(1800799024)(38350700014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ICZkl2LwZayCz+LTevcTXTh5p/iK7zw1RU5uY7KNXjC9lIYF4Bh/qUUH8JrAJHH2X2I6Ob049L+GwBVhdj0vsv7FSrwxOtmxJEsJUNzug4owuL5GU51QIOhr0izyLflyHQRT6UufcYLGacV3p1H/sOr+Y8e6IH706XmfOeE7qN84rQL8ZH3Pwz+yghwXDLjRjxpmoJ+OnBLCFbvRGS9e55XdnfFR2pqG9O3LYcD05Y3jnEZijsM2O0WL2NjJ+T5Tk95tv+IfH+lD9uM3a1JrUI/pECHAX5Rc4fu6IDxQJXACQVTgv1/6OmTmbLXO+Uy3st+f4zVpgKQeQNHMiEjunfCzfTGg/NhnpzjAbTdk7yqtr+dOwrNJonmnAXjjF6rw97MV9RQTwMPXW28ZZBBruFjq5crqM3P5Ekf5jsXGc1oHc7GlpYh7V1OvGrj6myaSl8CvaHmzVnufkxhgd6IHgRQg7pGSDZTFzamWnF9TwzEtE5j91RQD+FdNQmkIPCtfpu0gwVYPhPiDqJoqm5Pj10orVAO1BkVMMLN7AwhuSJUTAULzLqi2HUE/LlrbfGzRl2IS2sdJBVRG8NhAaI2/B84ETpJsXmCaL7pyi9jDNzep1BJzo/YOhmEvYfFZggksGIspL74+g/gJJ/gLRpNnjmLgrIeq6yhTgXs25atUyphieTkDQfryP0VRHfTEeXqBe5UrBYO4glKxaGeLnVhmNLHV4KaOHmHdskbpwX3xFgZ7f2axu37JaTQs8X/FQoStExLdkuv3d2RqEIBHg79W/LEU/lkLHwdhzsdT4ZFZaz+arObA0rzth/GVuVKjSzpFPG8eWrOx16Fp2fH5xfU6QtWKsamJAtECjHHNm3kpChdYbK2ImRK1RIg5kC+27Mqzhcv3L0GIbYjspMiW/JgktnnIwWNOcxWbX7LKbixY92XeCQ8WdgOO1QgRLBsgVWWcbxJNKYWdjKQZWcbGc1aLx1fEC5rwC33USwH8jJAMtUtD3LfvPFYnVjpVndm7WN7mffSXDrpCGZzX5xmOrfoUmPWL0uqFhzghARfkR5jeWlbuJx8h+S5dqHk+jCaVvYtTCIJ9Nt/Qzbe9p5id5teXmYHav7BqFm2kkxOXj1pnzpdG8T7B3WyNZO1dezUUll8f2i8a68scIP2qyfAdkkF4EuzJ7r8/1ebAhMqj3KrrAiuysM6Wu8S31RtuS+NKQ7wT5IZJTW7soUm6InTa5pLUjDd+dKeGesAbO99nE7b+izFDLJB7LD2rb9PgAZ9XJ5PzYpGIRI54mQdP08qNo6mq88EGTPwRr3/CFPJL7iyqtiPB3YZP+CIanTVKSJUM6fVQC7U0ck9xO7E42Fl1+JQuaDvsjxe5KyUJUV8+iVdOoW/ZcxpmNHPvHgyguk3jihrt7FPz/KxrAJiiDM/BdJUpO0u05Sb3JVOXxHfZy6MBAs0vpENuERPM2dNDgGS3D0Lbivx/fK3oJPBx4e4BF1WQFfRdlYA2JpeMt55lUiHJcwVIxEAMrJiN4RbVp0DKiwPHKkJ+7RaqbvDIKOaf9nuh+JXI/lwj5DJRLXYHXMvNeBri0DIuTVj19yDStOoQu4NL X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0f42ad95-cd31-4def-5a59-08dcc66426d8 X-MS-Exchange-CrossTenant-AuthSource: AM7PR04MB7046.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Aug 2024 06:47:43.2752 (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: ZuPEeIuHvvCaS0J8OyfavAp1ifGNqo4uG0z0fdj6elq48wtizBYyi+CmOdyb840owT1zCj9eyY0Jan+DjWO2Hg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR04MB8559 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240826_234746_332599_FDA0A7B4 X-CRM114-Status: GOOD ( 10.69 ) 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 J702 on i.MX93 11x11 EVK base board is a 40-pin connector labelled "LVDS". This connector supports PWM backlight with default 12V power supply and ADP5585 PWM controller. Add support for the backlight. Signed-off-by: Liu Ying --- This patch is based on next-20240826. .../boot/dts/freescale/imx93-11x11-evk.dts | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts b/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts index 60eb64761392..8d036b3962e9 100644 --- a/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts +++ b/arch/arm64/boot/dts/freescale/imx93-11x11-evk.dts @@ -62,6 +62,15 @@ vdevbuffer: vdevbuffer@a4020000 { }; + reg_vdd_12v: regulator-vdd-12v { + compatible = "regulator-fixed"; + regulator-name = "VDD_12V"; + regulator-min-microvolt = <12000000>; + regulator-max-microvolt = <12000000>; + gpio = <&pcal6524 14 GPIO_ACTIVE_HIGH>; + enable-active-high; + }; + reg_vref_1v8: regulator-adc-vref { compatible = "regulator-fixed"; regulator-name = "vref_1v8"; @@ -81,6 +90,17 @@ reg_usdhc2_vmmc: regulator-usdhc2 { enable-active-high; }; + backlight_lvds: backlight-lvds { + compatible = "pwm-backlight"; + pwms = <&adp5585 0 100000 0>; + brightness-levels = <0 100>; + num-interpolated-steps = <100>; + default-brightness-level = <100>; + power-supply = <®_vdd_12v>; + enable-gpios = <&adp5585 9 GPIO_ACTIVE_HIGH>; + status = "disabled"; + }; + bt_sco_codec: bt-sco-codec { compatible = "linux,bt-sco"; #sound-dai-cells = <1>; @@ -302,6 +322,16 @@ ldo5: LDO5 { }; }; }; + + adp5585: io-expander@34 { + compatible = "adi,adp5585-00", "adi,adp5585"; + reg = <0x34>; + vdd-supply = <&buck4>; + gpio-controller; + #gpio-cells = <2>; + gpio-reserved-ranges = <5 1>; + #pwm-cells = <3>; + }; }; &lpi2c3 {