From patchwork Mon Aug 10 17:49:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Biju Das X-Patchwork-Id: 11707887 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 71C58722 for ; Mon, 10 Aug 2020 17:49:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5A26E206B5 for ; Mon, 10 Aug 2020 17:49:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727855AbgHJRtv (ORCPT ); Mon, 10 Aug 2020 13:49:51 -0400 Received: from relmlor1.renesas.com ([210.160.252.171]:27402 "EHLO relmlie5.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727003AbgHJRtv (ORCPT ); Mon, 10 Aug 2020 13:49:51 -0400 X-IronPort-AV: E=Sophos;i="5.75,458,1589209200"; d="scan'208";a="54308205" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie5.idc.renesas.com with ESMTP; 11 Aug 2020 02:49:49 +0900 Received: from localhost.localdomain (unknown [172.29.53.63]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id ED58A40B42F2; Tue, 11 Aug 2020 02:49:46 +0900 (JST) From: Biju Das To: Rob Herring , Laurent Pinchart Cc: Biju Das , Geert Uytterhoeven , Magnus Damm , linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, Chris Paterson , Fabrizio Castro , Biju Das , Prabhakar Mahadev Lad Subject: [PATCH v3] ARM: dts: iwg20d-q7-common: Fix touch controller probe failure Date: Mon, 10 Aug 2020 18:49:44 +0100 Message-Id: <20200810174944.2892-1-biju.das.jz@bp.renesas.com> X-Mailer: git-send-email 2.17.1 Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org As per the iWave RZ/G1M schematic, the signal LVDS_PPEN controls supply voltage for touch panel, LVDS receiver and RGB LCD panel. Add regulator for these device nodes and remove powerdown-gpios property from lvds-receiver node as it results in touch controller driver probe failure. Signed-off-by: Biju Das Reviewed-by: Laurent Pinchart --- This patch depend on below patches 1) https://patchwork.kernel.org/patch/11707595/ 2) https://patchwork.kernel.org/patch/11707593/ v2->v3 : Added the missing part from the patch. removal of powerdown-gpios property. v1->v2 : Add regulator in touch panel, LVDS receiver and RGB LCD panel device nodes (Ref: https://patchwork.kernel.org/patch/11707559/) v1 : https://patchwork.kernel.org/patch/11705819/ --- arch/arm/boot/dts/iwg20d-q7-common.dtsi | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/iwg20d-q7-common.dtsi b/arch/arm/boot/dts/iwg20d-q7-common.dtsi index ebbe1518ef8a..056f93119d8a 100644 --- a/arch/arm/boot/dts/iwg20d-q7-common.dtsi +++ b/arch/arm/boot/dts/iwg20d-q7-common.dtsi @@ -57,7 +57,7 @@ lvds-receiver { compatible = "ti,ds90cf384a", "lvds-decoder"; - powerdown-gpios = <&gpio7 25 GPIO_ACTIVE_LOW>; + vcc-supply = <&vcc_3v3_tft1>; ports { #address-cells = <1>; @@ -81,6 +81,7 @@ panel { compatible = "edt,etm0700g0dh6"; backlight = <&lcd_backlight>; + power-supply = <&vcc_3v3_tft1>; port { panel_in: endpoint { @@ -113,6 +114,17 @@ }; }; + vcc_3v3_tft1: regulator-panel { + compatible = "regulator-fixed"; + + regulator-name = "Panel Vcc"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + enable-active-high; + startup-delay-us = <70000>; + gpio = <&gpio7 25 GPIO_ACTIVE_HIGH>; + }; + vcc_sdhi1: regulator-vcc-sdhi1 { compatible = "regulator-fixed"; @@ -207,6 +219,7 @@ reg = <0x38>; interrupt-parent = <&gpio2>; interrupts = <12 IRQ_TYPE_EDGE_FALLING>; + vcc-supply = <&vcc_3v3_tft1>; }; };