Received: by 2002:a25:c205:0:0:0:0:0 with SMTP id s5csp311257ybf; Thu, 27 Feb 2020 21:52:49 -0800 (PST) X-Google-Smtp-Source: APXvYqxXU3zjaa6OtBLfB7E0c9cCm/JFmBjdCCHO0oPPxt0/Lj+Eelst4s/fGXnkmMKqvAHkMhl9 X-Received: by 2002:a9d:a16:: with SMTP id 22mr932155otg.31.1582869169300; Thu, 27 Feb 2020 21:52:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582869169; cv=none; d=google.com; s=arc-20160816; b=MJ2w/O2XskghALLlmQAiwpmATAayvDzS5eNgNx4aRFmKOQ1l3ki/W15f4AnfcgsyCy Y8NtfYjFsSdwq5km9/RbfUJmtwOqtEpyGYVUOIJ8xiZUwSy15oN0hg6LpwIxelUVLxLL v1WWJE/Ft1Ro2+Jwl/GhsKwyyZXsSQWYxAg3TH3wQIF9E1m6m9CXrxHmhtPM8gQH/2kP IluJ9cAO0PIQP8Y6/faqGqVOcnRvHr8bOtNfjD+du3x2Io9+gQmDbpX0fOB7HmuP7lvd XzRbwMUCk1zeWtoA+408Laa2aC+s0TBgke98rQJoxUaKTtAJghh841A8lKzsDwjhtfxS cODg== 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=0CIP+PikE8XqdGCKMvJsfZwHX2O6pWH5BSwtkvSpQ2I=; b=a4/ZJEG7eKv9SdRztv+WD7QKv99JtViyRHRgIAZOC0YWq6lx1UZOgV1Zlnv3RwRgYb nwCXrOdeB4df6KJ5MILoI/QShA8qlBzWcru2QZTbyOvgVBaIE1DG3he2RsvNwntQpsG/ cFBV2w8vezqkcmqnRhvRksO0Tbk+qdacfcTH8t1UXR4dmoadHw53RfizcL9flbWY5vaU A0A7LqOnFeE8lKvvivvu/ToeOn3/Xow8bK/KIhUVa7eA9bY0akSZ35NLeBW0gjgduEup kEsfdh1c3IgIdtMBjDwPPkJyTXDm4AWgwJH9C/3wqNhDg965nNHzZezEJToDS5JF4BWX WBwg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i8si1241930oih.206.2020.02.27.21.52.36; Thu, 27 Feb 2020 21:52:49 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725911AbgB1FwS (ORCPT + 99 others); Fri, 28 Feb 2020 00:52:18 -0500 Received: from asavdk3.altibox.net ([109.247.116.14]:39870 "EHLO asavdk3.altibox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725805AbgB1FwR (ORCPT ); Fri, 28 Feb 2020 00:52:17 -0500 Received: from ravnborg.org (unknown [158.248.194.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by asavdk3.altibox.net (Postfix) with ESMTPS id 250B120208; Fri, 28 Feb 2020 06:52:08 +0100 (CET) Date: Fri, 28 Feb 2020 06:52:07 +0100 From: Sam Ravnborg To: Jitao Shi Cc: Rob Herring , Mark Rutland , Matthias Brugger , Daniel Vetter , David Airlie , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, srv_heupstream@mediatek.com, huijuan.xie@mediatek.com, stonea168@163.com, cawa.cheng@mediatek.com, linux-mediatek@lists.infradead.org, yingjoe.chen@mediatek.com, eddie.huang@mediatek.com, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v10 2/5] dt-bindings: display: mediatek: control dpi pins mode to avoid leakage Message-ID: <20200228055207.GA6324@ravnborg.org> References: <20200228052128.82136-1-jitao.shi@mediatek.com> <20200228052128.82136-3-jitao.shi@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200228052128.82136-3-jitao.shi@mediatek.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.3 cv=eMA9ckh1 c=1 sm=1 tr=0 a=UWs3HLbX/2nnQ3s7vZ42gw==:117 a=UWs3HLbX/2nnQ3s7vZ42gw==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=kj9zAlcOel0A:10 a=mpaa-ttXAAAA:8 a=e5mUnYsNAAAA:8 a=HWwQx7EG-uLDjA1hwS8A:9 a=CjuIK1q_8ugA:10 a=6heAxKwa5pAsJatQ0mat:22 a=Vxmtnl_E_bksehYqCbjh:22 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jitao. On Fri, Feb 28, 2020 at 01:21:25PM +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 +++++++ When this has landed it would be great if you could follow-up with a conversion to DT Schema of this file (.yaml). Sam > 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". > + 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 > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel