Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3575415iob; Tue, 17 May 2022 03:04:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyTFF2mSmgz3nwwTGCpDIJCUl+82hMU1EEn8Wg6cussCQ5yiMMlWO+if5fysLpAy08Es23A X-Received: by 2002:a63:202:0:b0:3f2:75a7:cd28 with SMTP id 2-20020a630202000000b003f275a7cd28mr6774282pgc.537.1652781858210; Tue, 17 May 2022 03:04:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652781858; cv=none; d=google.com; s=arc-20160816; b=DQ3GACg/4ad032MRQeoNwceVsx9s1EtsyQstUo1qbATPOicIwNEEo0mkf3f4aF8eYa boQYlqJvos70yUqyzyLSUvdw3ycnLBdLSh01lJcev+EvFqutN6QYTvOO86IwJUT/M1Gx crXIGwc35ZXxvoGA5zI/6BfPlzQxsjtz++Yttpu7YlaqdX8yCt52SPQDHYYMQEYgYWy1 paqS8HcHC10Jm3W8QgjCdgelHLrAk1jwxAn5szPkoLD1RNZk+9xwNE+gGzgWl8LwpAsH MbqtvJS3K5XaCQ+K2UZGw/kTIDgfU8UBXI9ng3aix5tqKZMH07gtPw2PxG+774CMJAIp jNlg== 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:date:subject:cc:to:from; bh=q7B6wCoVvcW4uGFlCM+n3L+rPAAzN7DsNrlqMM5gHjQ=; b=KIdOxKqmV3nZEW95qt0wFNudz/73Lb6oVetyHFYrxNcYkRya4ca4EDOJvnUiwLagrE C0xUUN3bBXwS3L9woFaDD+ESphnZBUk/NaG20tgRuyJuyRp5GH8DnSehf4xqF7LXeNtn hFJQLjivbQDGBfswD0NfKp0SoFIMXLt64wKBNxsRnPCXNBHoeRQFfKkf8rF+aEdpAOu5 CMcordJ5aRYluAXJOqPBKdRfIMZwIIzMu9Ei2i6nnk1QQWswy8c8uUvANfZ18ljqs4PD NulDPY40NJGEKIgjupBMs3//We1pWQzRcC0pnYiXrFQ8JiOxU5god0j8PdCHah6nxj3w UVQQ== 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 z3-20020a63e543000000b003db070d6484si15300392pgj.121.2022.05.17.03.04.05; Tue, 17 May 2022 03:04:18 -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 S239434AbiEQHSh (ORCPT + 99 others); Tue, 17 May 2022 03:18:37 -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: 8bit 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 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=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 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; + voltage-table = <3600000 26>; + }; + reg_vcc_mmc: regulator-vcc-mmc { compatible = "regulator-fixed"; pinctrl-names = "default"; -- 2.30.2