Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp4594940ybf; Wed, 4 Mar 2020 07:01:40 -0800 (PST) X-Google-Smtp-Source: ADFU+vuVkRG34b76C4W+rbgO3H0H5yNh9/qiy2aiYGoRQ12TPjcZbVhX7GSS/7nCSDGAQygK9Oqw X-Received: by 2002:aca:75d7:: with SMTP id q206mr2059121oic.27.1583334100800; Wed, 04 Mar 2020 07:01:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1583334100; cv=none; d=google.com; s=arc-20160816; b=MJ7hyYeHRqNKffx/PbQ+eZJrjHUmWvx7Rejj92LZP4rQ46IT401cyAjQxWtYsvmOp1 HTml5BjiM8UQJvg0lN4w3K2zMnvvExOcq9oeZ9w3WeNZXdI7nWFiZzVOLqeb38NhlmdJ GP9J/mxUeaOpjouOkzkuyKuss2ICAf8yUbK8eFyjjJixiCtGYlO+NP+xwFQDfTqUuO/g ieHtvva4G5MB9yfwL4c1kATeTfBW0RR3XXWsvEFaI6Jm8PbILXUQjv5/fLxo72DAxzLN QjNDIvvHMWknX4+cxhRmaW7fHvbncydWQrxDU4vTF8RTICWOxQVG2bU4fTMn8Kx5It2J MKNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=5kzs+suiXGOLM6214SN1xySZQC2yuoHuAv+kXNmxnJI=; b=DNMGh4UFIwl815znIaT+SNVEYSn3RfEJGUWKHFHTEE7oA7M3m0cYUAk5UxVYmXI6lU j1sq/Txw+1L6isq40mdOVpmKhY/65LdIPPrCSa0FOW3vdyXMhrKO2dCuuJZ0j7yg7iEc lFxlTus6oY8rI6ZGzKL7SHg1an3AYhSTdc8kxBMpAsPKikaLETz6GXHCX4hBemDjvxtA fl5zNCV/nWoDS2y7mA7YNfNoS9GbrP8Tecx5PJDF+ysGBgALhrGos60kjFyn4GXa2aYm q+YB2HUlFbyxgEKMljiDUVnalu3N4FdeJJMZh8+blfyJqFA/X0lbFtHOiD91SO+IDPf+ M4Ew== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s15si1362217otr.16.2020.03.04.07.01.27; Wed, 04 Mar 2020 07:01:40 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727656AbgCDPAB (ORCPT + 99 others); Wed, 4 Mar 2020 10:00:01 -0500 Received: from mail-oi1-f194.google.com ([209.85.167.194]:43275 "EHLO mail-oi1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726694AbgCDPAB (ORCPT ); Wed, 4 Mar 2020 10:00:01 -0500 Received: by mail-oi1-f194.google.com with SMTP id p125so2335677oif.10; Wed, 04 Mar 2020 07:00:00 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=5kzs+suiXGOLM6214SN1xySZQC2yuoHuAv+kXNmxnJI=; b=lcRtyXlcvbKwgeaV9KVnIuJXQjvC/Jf5lmd69MWPJEk5efZonlrtTATuknOsOFZKbp fSESkjBWIKORTGhEyq93mJt02ujRmICM2NwL8BbsBoMugDv7kqqHItpecZxQyW0UVo0t 9jXCZulEF4Fx5KjbpX/j0WtBXYTXQj+77Q3RHZoMltx41B/kv1RpMwRLGXTGQpPQUYzA kCFS9GFYbNeX9qXR9dNEscSAtnZLfOjm6WL2uHp66CgATHyrvauCkUnRo7poE4/sH/sQ lG1Bl/xttv6whB6Eqb2yRydxJvZHEdBpoVXPGKdmJTRkv7T1P0WIb5NbONvkTsKOZiLY Sl2g== X-Gm-Message-State: ANhLgQ2WZhcmYr6mDtJQlE5tnQ08EkzoXTF097kTE69GX4q8DvggxZxc YOH7mDIlUm4ojluZBzgYig== X-Received: by 2002:aca:5194:: with SMTP id f142mr2089262oib.100.1583333999966; Wed, 04 Mar 2020 06:59:59 -0800 (PST) Received: from rob-hp-laptop (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id b15sm6358282oic.52.2020.03.04.06.59.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Mar 2020 06:59:59 -0800 (PST) Received: (nullmailer pid 20406 invoked by uid 1000); Wed, 04 Mar 2020 14:59:58 -0000 Date: Wed, 4 Mar 2020 08:59:58 -0600 From: Rob Herring To: Jitao Shi Cc: Mark Rutland , Matthias Brugger , Daniel Vetter , David Airlie , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, srv_heupstream@mediatek.com, yingjoe.chen@mediatek.com, eddie.huang@mediatek.com, cawa.cheng@mediatek.com, bibby.hsieh@mediatek.com, ck.hu@mediatek.com, stonea168@163.com, huijuan.xie@mediatek.com Subject: Re: [PATCH v12 2/6] dt-bindings: display: mediatek: control dpi pins mode to avoid leakage Message-ID: <20200304145958.GA17716@bogus> References: <20200303052722.94795-1-jitao.shi@mediatek.com> <20200303052722.94795-3-jitao.shi@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200303052722.94795-3-jitao.shi@mediatek.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 03, 2020 at 01:27:18PM +0800, Jitao Shi wrote: > Add property "pinctrl-names" to swap pin mode between gpio and dpi mode. Set > the dpi pins to gpio mode and output-low to avoid leakage current when dpi > disabled. > > Signed-off-by: Jitao Shi > --- > .../devicetree/bindings/display/mediatek/mediatek,dpi.txt | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.txt b/Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.txt > index 58914cf681b8..77ca32a32399 100644 > --- a/Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.txt > +++ b/Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.txt > @@ -17,6 +17,10 @@ Required properties: > Documentation/devicetree/bindings/graph.txt. This port should be connected > to the input port of an attached HDMI or LVDS encoder chip. > > +Optional properties: > +- pinctrl-names: Contain "gpiomode" and "dpimode". Doesn't match the example. > + pinctrl-names see Documentation/devicetree/bindings/pinctrlpinctrl-bindings.txt > + > Example: > > dpi0: dpi@1401d000 { > @@ -27,6 +31,9 @@ dpi0: dpi@1401d000 { > <&mmsys CLK_MM_DPI_ENGINE>, > <&apmixedsys CLK_APMIXED_TVDPLL>; > clock-names = "pixel", "engine", "pll"; > + pinctrl-names = "active", "idle"; > + pinctrl-0 = <&dpi_pin_func>; > + pinctrl-1 = <&dpi_pin_idle>; > > port { > dpi0_out: endpoint { > -- > 2.21.0