Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp114887ybg; Mon, 8 Jun 2020 18:01:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxOASsFkz+neoNxp0kozAnAsAe3IzvjVcaJidfykbMr2AVqD7nbZHIo1O95lpbJGVJwqgQw X-Received: by 2002:a50:aacc:: with SMTP id r12mr24309750edc.219.1591664511127; Mon, 08 Jun 2020 18:01:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591664511; cv=none; d=google.com; s=arc-20160816; b=hD7mvZw90pyWo6qFjS8SXPJG5J/ywe0+oN7AzCJXGw78iWc3ZKMF1Xmtpm9kao9qdj CG30qWvFK8PdJYBX6wG1JeQLNR8NeG/qW3CLzsVyaYx2z2dC9kdNqrRNQ1gVsG8pc2Ou YwRJmj8MTtKWSt0X2mInSsU9ktajGq4umGoaZiVfh1TeVSeauR59xhqqqNTQI6N/NaFd cQoTfudHelx9OVpu4qxS1CpfnASex6j+AzjgzVPFO3pOp5VpUnfslENYxjwOXZ2RKI3x hBQctFzgJqPt6fNEbZ+cmiVy83L5wdEjZbRxTO/7ly+o9Cg7xC3pFzBv0IlmA+p3tm4x DvoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=vTMr5k6Q+1Ba0dfHrt/hYW7NgJZU6gCCqQc0wUp6tiQ=; b=t2gPY7MP0l/Ih5p5TE822OGKe0KoAM8PS5dSYwNBlggZk/rYF+NIuJLzxB86cXYlQE WlFYnwaiwuNCWwJi4WB6cSBSfAgPQPrfeym8E0nvWR8h22b6vVWVUXp5L3VodghwfgBi jG/odmdAPv4xMkbOD1IcyRA5pSleDdZaWFeLngJbnQJAeWjO5yzH/uN5yS/LMCBsr3Jq MG7tlZ/Mr/WHQgLV8vLr/PgufszklOCZUZeukEFua9yq01LvfH3kDwFJ7fn50OQSsZcH aF1ZR7EGoFmaEtJtfz4DDMnlMl4k6l/uyn6Uv9H7xowexS7/zPPdMln3duaV5FMZ3XBB wLLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=XATXZLj1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m14si10844129eja.139.2020.06.08.18.01.28; Mon, 08 Jun 2020 18:01:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=XATXZLj1; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1732620AbgFIA7s (ORCPT + 99 others); Mon, 8 Jun 2020 20:59:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:53794 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726924AbgFHXI3 (ORCPT ); Mon, 8 Jun 2020 19:08:29 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 060F5208A9; Mon, 8 Jun 2020 23:08:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1591657709; bh=9bnpDbtIjXuK5hf81+Zi0XxGmFb2an6nsBRCwIBobCo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=XATXZLj1LjgZbm7pOW+9TTb198t7ZwvcBkubbigsJ/qMyKnmfBMoi8E3p19y2ZQ+e jP2fRcnqVPgGavZvXesT917K1BrRvz8B940Gf7PqQ+mN0lnTwdxuzj8MzSHdswYCoa /C//Dp+OpdIJ2HeKFKpeM79F7CT3Ua077+nJFApo= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Jitao Shi , Rob Herring , Chun-Kuang Hu , Sasha Levin , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH AUTOSEL 5.7 105/274] dt-bindings: display: mediatek: control dpi pins mode to avoid leakage Date: Mon, 8 Jun 2020 19:03:18 -0400 Message-Id: <20200608230607.3361041-105-sashal@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200608230607.3361041-1-sashal@kernel.org> References: <20200608230607.3361041-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jitao Shi [ Upstream commit b0ff9b590733079f7f9453e5976a9dd2630949e3 ] 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. Acked-by: Rob Herring Signed-off-by: Jitao Shi Signed-off-by: Chun-Kuang Hu Signed-off-by: Sasha Levin --- .../devicetree/bindings/display/mediatek/mediatek,dpi.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.txt b/Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.txt index 58914cf681b8..77def4456706 100644 --- a/Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.txt +++ b/Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.txt @@ -17,6 +17,9 @@ 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 "default" and "sleep". + Example: dpi0: dpi@1401d000 { @@ -27,6 +30,9 @@ dpi0: dpi@1401d000 { <&mmsys CLK_MM_DPI_ENGINE>, <&apmixedsys CLK_APMIXED_TVDPLL>; clock-names = "pixel", "engine", "pll"; + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&dpi_pin_func>; + pinctrl-1 = <&dpi_pin_idle>; port { dpi0_out: endpoint { -- 2.25.1