From nobody Thu May 7 23:11:41 2026 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0C9C9C433EF for ; Tue, 17 May 2022 07:18:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239551AbiEQHSi (ORCPT ); Tue, 17 May 2022 03:18:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58106 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236427AbiEQHSa (ORCPT ); Tue, 17 May 2022 03:18:30 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A6AD473A9 for ; Tue, 17 May 2022 00:18:28 -0700 (PDT) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nqrTJ-0008Rr-6Q; Tue, 17 May 2022 09:18:21 +0200 Received: from [2a0a:edc0:0:1101:1d::39] (helo=dude03.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1nqrTJ-002p58-2w; Tue, 17 May 2022 09:18:19 +0200 Received: from uol by dude03.red.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1nqrTG-00FDTz-Rt; Tue, 17 May 2022 09:18:18 +0200 From: =?UTF-8?q?Ulrich=20=C3=96lmann?= To: Rob Herring , Krzysztof Kozlowski , Shawn Guo , Sascha Hauer Cc: NXP Linux Team , Fabio Estevam , Pengutronix Kernel Team , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Oleksij Rempel , Juergen Borleis , Michael Grzeschik , Marco Felsch , Lucas Stach , =?UTF-8?q?S=C3=B8ren=20Andersen?= , Sam Ravnborg , =?UTF-8?q?Ulrich=20=C3=96lmann?= Subject: [PATCH] ARM: dts: imx6: skov: add pwm-regulator to control the panel's VCOM Date: Tue, 17 May 2022 09:18:14 +0200 Message-Id: <20220517071814.3626702-1-u.oelmann@pengutronix.de> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: uol@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Skov's i.MX6 based boards come in different flavors which have different pa= nels attached. For optimal contrast experience each panel type needs an individu= al common voltage (VCOM) to drive its TFT backplane. The latter is generated b= y an LCD bias supply IC controlled by a pwm as input signal. Introduce a pwm- regulator to describe this hardware property and parameterize it appropriat= ely for the different boards. Signed-off-by: Ulrich =C3=96lmann --- arch/arm/boot/dts/imx6q-skov-reve-mi1010ait-1cp1.dts | 6 ++++++ arch/arm/boot/dts/imx6qdl-skov-cpu.dtsi | 10 ++++++++++ 2 files changed, 16 insertions(+) diff --git a/arch/arm/boot/dts/imx6q-skov-reve-mi1010ait-1cp1.dts b/arch/ar= m/boot/dts/imx6q-skov-reve-mi1010ait-1cp1.dts index 7f1f19b74bfa..a3f247c722b4 100644 --- a/arch/arm/boot/dts/imx6q-skov-reve-mi1010ait-1cp1.dts +++ b/arch/arm/boot/dts/imx6q-skov-reve-mi1010ait-1cp1.dts @@ -125,3 +125,9 @@ MX6QDL_PAD_EIM_D23__GPIO3_IO23 0x1b0b0 >; }; }; + +®_tft_vcom { + regulator-min-microvolt =3D <3160000>; + regulator-max-microvolt =3D <3160000>; + voltage-table =3D <3160000 73>; +}; diff --git a/arch/arm/boot/dts/imx6qdl-skov-cpu.dtsi b/arch/arm/boot/dts/im= x6qdl-skov-cpu.dtsi index 77a91a97e6cf..3def1b621c8e 100644 --- a/arch/arm/boot/dts/imx6qdl-skov-cpu.dtsi +++ b/arch/arm/boot/dts/imx6qdl-skov-cpu.dtsi @@ -149,6 +149,16 @@ reg_can2_stby: regulator-can2-stby { gpio =3D <&gpio4 11 GPIO_ACTIVE_LOW>; }; =20 + reg_tft_vcom: regulator-tft-vcom { + compatible =3D "pwm-regulator"; + pwms =3D <&pwm3 0 20000 0>; + regulator-name =3D "tft_vcom"; + regulator-min-microvolt =3D <3600000>; + regulator-max-microvolt =3D <3600000>; + regulator-always-on; + voltage-table =3D <3600000 26>; + }; + reg_vcc_mmc: regulator-vcc-mmc { compatible =3D "regulator-fixed"; pinctrl-names =3D "default"; --=20 2.30.2