Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp225050iol; Sat, 11 Jun 2022 02:45:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz31beahhPVQPdWV9y1MJkj9TJlk8FV4aXZo+d9dlI3D6DP/kN6anU1DYaB63nbg75P+jan X-Received: by 2002:a17:903:246:b0:153:857c:a1f6 with SMTP id j6-20020a170903024600b00153857ca1f6mr48696707plh.153.1654940733541; Sat, 11 Jun 2022 02:45:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654940733; cv=none; d=google.com; s=arc-20160816; b=02OWNROnTiqqhqR3VYMTzh8n110p/5Dzb0IT19S+K6hkCcGfkKli2cAhEKnGR23Vr/ /jpZH70qlQiG4lzO/32hr5668Xtwi0gMan/xTICAHgIcud1NCHV49aupkLKzfzup+pRB flTBltNq7P4bsQV9rCdt/2JreOQgMPW5sTNjSTcfJ54DVSmnci/4bJ+nHDZ2jv7D/rDr Fr0gAyzvLsYKrm/9TYkYR4gY6qtZ1CGottET92Vp6R/EukUAAJXEsXP2vLleiCrHcJTW tR2zrdHgJ745nzRKAq3VCityjwr6ejj7rX78+jRtsrFgBh8gN8FQVa+UUs5iV5IrI7Jl 8YGg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=NDHXKq3GgF51G7SUwNUAliWas5X/IlW+PHYgNui86dA=; b=OOjOi74FBGbnEDRjLooGyqURYOJ9zaupZAexSrqKLQELiW0CXP5UKade+Vy6f9DHi0 8f4ZmkhQFSa+1CYhETp2Ore9zdJ5aCksSBRKeLLzguWmwOZRb/lRth1jc83jtB35gQ2z BIHzjIMsQtnJH3spDwiBSSxZUu7og0TGo1LAyjC+J8A4A3/9fXjiqpjv0CGYHAbxeRZu wdR0MdKbD3c/fZ8VWgDdzVZB5Ajxe7zgjwjUXY821+FaUEy72EAAf//ROBWwYC0MH1K4 pnj7MQC2f66IPFg4iE96nt32fKm4xWCZXAfWAmKMyEBwFH9aZFEEhwKTZ72+b0exwHxG lGlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="W2/NspDp"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s1-20020a637701000000b003fca2707583si1886741pgc.224.2022.06.11.02.45.21; Sat, 11 Jun 2022 02:45:33 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="W2/NspDp"; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232428AbiFKJbO (ORCPT + 99 others); Sat, 11 Jun 2022 05:31:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229745AbiFKJbM (ORCPT ); Sat, 11 Jun 2022 05:31:12 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2596326D0; Sat, 11 Jun 2022 02:31:11 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 38F8B60B15; Sat, 11 Jun 2022 09:31:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D251BC34116; Sat, 11 Jun 2022 09:31:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1654939870; bh=JEHB2+yb07hk08YAU9SCnhBZyTJpoJajIXfHmENt1Z0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=W2/NspDpexJKGkKbkeNkX+chUN9NG/XpSSb54CsMxzviqb+n4LdMJi0V3YoW/8cbE OZdUPecVv2z2pqAhccX5dBjSqwHE3++fUnbxNzA4F6//JvZ5qwiVYmV2UGt/k0KMpx REKJeRtRRIeH+CKClrIq0AuFF06/IG4XXyw8RNPS5FKnSfGowBKTT7kKWtci+zNqcd GNNvYpEuKKmH5MsCwbLFJ5ohPKW2YBLMSWO94m4pUpRUAzXtfghP2JMGh9WlPAt3C3 0oA7GSO7sC7eEW+xhRJ/SliclBQrETHBWQNcvncHhs8xbU66VpgJ8STk3QIDt/X0xa Kdl6ovF7BhPiw== Date: Sat, 11 Jun 2022 17:31:03 +0800 From: Shawn Guo To: Ulrich =?iso-8859-1?Q?=D6lmann?= Cc: Rob Herring , Krzysztof Kozlowski , Sascha Hauer , 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 , =?iso-8859-1?Q?S=F8ren?= Andersen , Sam Ravnborg Subject: Re: [PATCH] ARM: dts: imx6: skov: add pwm-regulator to control the panel's VCOM Message-ID: <20220611093103.GI254723@dragon> References: <20220517071814.3626702-1-u.oelmann@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220517071814.3626702-1-u.oelmann@pengutronix.de> X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 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? Shawn > + voltage-table = <3600000 26>; > + }; > + > reg_vcc_mmc: regulator-vcc-mmc { > compatible = "regulator-fixed"; > pinctrl-names = "default"; > -- > 2.30.2 >