Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1438429iog; Tue, 14 Jun 2022 06:09:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzHM3iMJ7yMTvjaVs/+0dBrvBF/50SYEQo+BAfcsH4J8kr22hdcdt2P139cD8OimLqOkpnI X-Received: by 2002:a05:6402:322a:b0:42e:1778:1f1f with SMTP id g42-20020a056402322a00b0042e17781f1fmr6086359eda.115.1655212186972; Tue, 14 Jun 2022 06:09:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655212186; cv=none; d=google.com; s=arc-20160816; b=z0yzPpNOjpiun4eovNyZeWwvsjdwzL8o56BfVVAk3AeVFmAsYYFKfT6k45v2Xh6der iJgNn3BdhSvMIOTIiRt3QnpoU7F2A/TX25lEHAYyqe/8MBYm321f6RNNCjYxfUXeKFWT oCsvlGYIF7KsgwOv84r9fmxv+KCd5SNPdrFYYBpPyrEwtGAHn/6foKdYzkyaPnOlRv8j bDU07Wj/6cTQQl6mnJX0JStGQSwrGJrscJ/ZDNbJ/zBhIGo4nca60EGxEvw5HSpFmBz+ Vy89HLDWxYf7GKoNzRJTU6vboFz1RY+/q98Ktkafklb9amyaLucczQm3gT+h/20yoqe0 rJFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:in-reply-to:date:subject:cc:to:from:user-agent :references; bh=4OiMSjVrCjCTIL+8CPPL4XpJaxMYm16UWHSb6WkgBtY=; b=Dpa1RLkSccK0sF3N7QG0jZVvRXCH9zePOYGIGwzlI/fbDaNDC3yJTd+f2jzTANKPGN NW8iD8OuB6BYrwGClS5e/2d1dI5xxawTxqXolm2mcHWkU1UrMjXJa9jjoGtAnngilBm3 Pz3E/uHDnChOet3UxWXCrpOC5gRYkcRbApPOTNACpNPqYoU+Vf4zc07AJdZU+JomzPfJ VvrR80gnglFVLGxPVHzUcD0i2AWS3O4XqP96RNt0UFV8tCQWWSr5iolXwW1yiqA1H4ou SbC0MAeVTAEY+7C3qOm0RMFbbFzH2H7Sj4vMpG/z9PuDfwbviYbWG3kqatCXRxBjrPK/ 94/Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s20-20020a170906779400b006fe992204c6si10597898ejm.684.2022.06.14.06.09.18; Tue, 14 Jun 2022 06:09:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232585AbiFNMz7 convert rfc822-to-8bit (ORCPT + 99 others); Tue, 14 Jun 2022 08:55:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37302 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241187AbiFNMz6 (ORCPT ); Tue, 14 Jun 2022 08:55:58 -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 ED71D3E0F2 for ; Tue, 14 Jun 2022 05:55:57 -0700 (PDT) Received: from dude.hi.pengutronix.de ([2001:67c:670:100:1d::7]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o165K-0003Ne-Mz; Tue, 14 Jun 2022 14:55:54 +0200 Received: from uol by dude.hi.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1o165J-009mTq-3B; Tue, 14 Jun 2022 14:55:53 +0200 References: <20220517071814.3626702-1-u.oelmann@pengutronix.de> <20220611093103.GI254723@dragon> User-agent: mu4e 1.6.9; emacs 29.0.50 From: Ulrich =?utf-8?Q?=C3=96lmann?= To: Shawn Guo Cc: devicetree@vger.kernel.org, Michael Grzeschik , Krzysztof Kozlowski , Sam Ravnborg , Sascha Hauer , Juergen Borleis , linux-kernel@vger.kernel.org, Marco Felsch , Oleksij Rempel , Rob Herring , NXP Linux Team , =?utf-8?Q?S=C3=B8ren?= Andersen , Fabio Estevam , Lucas Stach , kernel@pengutronix.de Subject: Re: [PATCH] ARM: dts: imx6: skov: add pwm-regulator to control the panel's VCOM Date: Tue, 14 Jun 2022 14:53:58 +0200 In-reply-to: <20220611093103.GI254723@dragon> Message-ID: <6r8rpzwgiu.fsf@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::7 X-SA-Exim-Mail-From: u.oelmann@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 X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jun 11 2022 at 17:31 +0800, Shawn Guo wrote: > On Tue, May 17, 2022 at 09:18:14AM +0200, Ulrich Ölmann wrote: >> Skov's i.MX6 based boards come in different flavors which have different panels >> attached. For optimal contrast experience each panel type needs an individual >> common voltage (VCOM) to drive its TFT backplane. The latter is generated by an >> LCD bias supply IC controlled by a pwm as input signal. Introduce a pwm- >> regulator to describe this hardware property and parameterize it appropriately >> for the different boards. >> >> Signed-off-by: Ulrich Ölmann >> --- >> 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/arm/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 = <3160000>; >> + regulator-max-microvolt = <3160000>; >> + voltage-table = <3160000 73>; >> +}; >> diff --git a/arch/arm/boot/dts/imx6qdl-skov-cpu.dtsi b/arch/arm/boot/dts/imx6qdl-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 = <&gpio4 11 GPIO_ACTIVE_LOW>; >> }; >> >> + reg_tft_vcom: regulator-tft-vcom { >> + compatible = "pwm-regulator"; >> + pwms = <&pwm3 0 20000 0>; >> + regulator-name = "tft_vcom"; >> + regulator-min-microvolt = <3600000>; >> + regulator-max-microvolt = <3600000>; >> + regulator-always-on; > > You want it to be unmanaged and always-on? Correct, it shall be set up by the kernel statically and is never going to be changed while the system is up and running. Best regards Ulrich > Shawn > >> + voltage-table = <3600000 26>; >> + }; >> + >> reg_vcc_mmc: regulator-vcc-mmc { >> compatible = "regulator-fixed"; >> pinctrl-names = "default"; >> -- >> 2.30.2 >> -- Pengutronix e.K. | Ulrich Ölmann | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |