]> git.ipfire.org Git - people/arne_f/kernel.git/commitdiff
dt-bindings: display: mediatek: control dpi pins mode to avoid leakage
authorJitao Shi <jitao.shi@mediatek.com>
Wed, 15 Apr 2020 01:13:17 +0000 (09:13 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Jun 2020 08:25:09 +0000 (10:25 +0200)
[ 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 <robh@kernel.org>
Signed-off-by: Jitao Shi <jitao.shi@mediatek.com>
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Documentation/devicetree/bindings/display/mediatek/mediatek,dpi.txt

index b6a7e7397b8b47ef4d250fd6f8dba971ee23dc00..b944fe06718852cb11dadff33b3e789f47d6fa87 100644 (file)
@@ -16,6 +16,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 {
@@ -26,6 +29,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 {