Received: by 10.223.185.116 with SMTP id b49csp7923263wrg; Thu, 1 Mar 2018 13:39:15 -0800 (PST) X-Google-Smtp-Source: AG47ELtpBhB73NJLeoFLAU9cSLo+k1ObG3fHyN8pQzxmPQRNJWIIqQEM/NbmGYAVxMmr+GyQZeBd X-Received: by 2002:a17:902:aa5:: with SMTP id 34-v6mr3176610plp.429.1519940355272; Thu, 01 Mar 2018 13:39:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519940355; cv=none; d=google.com; s=arc-20160816; b=qiHk2SYyzfllY5iIL5EyjDONtZ7tY1VKaleG57ndeNfDRSM6qJn7MTSFJ8hCIcutQ2 AcX1TpLAdPqSqTkDtoRJxR7jk133O2QY+RNt6YO5RwKwL3AoO+YykGW99Ag46y3ryfGT Rwa/F2FAmUN/vKUkA2coWKTU88GACjt6VfN8lvXw/2nI1OFVYKZKURbYYJ48bUr0iOBZ rRFTjubxKqvhXxCsxP7B7GnnMaeJK857AhWNB7FhOCVbDZhslLMVccwGvFxwvNjaK5sc fM/AsrUPIFcJhaFEaum1/cDwo8nvuD6zDUEMwHROhusslwGapMuxgc/RDCGaaZRRPWoO Wakg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=9eQdbeEYlEhoRU0Ue1wkAV9t7fz81OepFtyLa2ClSTA=; b=v+KB3Psn3BCVnPYEYh0cNZNBMnQXTEi5P+5FauD1Wd+m+IF1A5EyFOQXS9kmv0pCSW h6+Sd69JJZjvuC1iXvE9Lx7kT9Ot+eRO2SejBwuvKdg/zDA+8rgzCj2yoti6VeDKtFKY PxRSPi5+e+Sw+NhWaJqMKEkiyZby8efLhuCkbY+eCmFJYjuU3363j9AMYaZ23MrvpWpJ yt6IZ3op/+7nT86iyM4y61s2nY5/ylB1fIp3mstTPivJr0HLJh25Yr77pCFnhkN/ZWvV a7EqqF0xdDEfCTAYuFmHcc5br321Xb6e5ynUeUlYzCr6yRj2xNAx7nIB/sl3LE2/d7gF 9lGg== 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 f33-v6si2081374plf.650.2018.03.01.13.39.00; Thu, 01 Mar 2018 13:39:15 -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 S1162256AbeCAVgl (ORCPT + 99 others); Thu, 1 Mar 2018 16:36:41 -0500 Received: from mailoutvs4.siol.net ([213.250.19.137]:33437 "EHLO mail.siol.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1162167AbeCAVfb (ORCPT ); Thu, 1 Mar 2018 16:35:31 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.siol.net (Postfix) with ESMTP id D5F7D522F95; Thu, 1 Mar 2018 22:35:27 +0100 (CET) X-Virus-Scanned: amavisd-new at psrvmta11.zcs-production.pri Received: from mail.siol.net ([127.0.0.1]) by localhost (psrvmta11.zcs-production.pri [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 1-pgIs3hvaj9; Thu, 1 Mar 2018 22:35:27 +0100 (CET) Received: from mail.siol.net (localhost [127.0.0.1]) by mail.siol.net (Postfix) with ESMTPS id 3D7B9522F98; Thu, 1 Mar 2018 22:35:27 +0100 (CET) Received: from localhost.localdomain (cpe-86-58-68-135.ftth.triera.net [86.58.68.135]) (Authenticated sender: 031275009) by mail.siol.net (Postfix) with ESMTPSA id DB00B522F95; Thu, 1 Mar 2018 22:35:24 +0100 (CET) From: Jernej Skrabec To: maxime.ripard@free-electrons.com, wens@csie.org, airlied@linux.ie, robh+dt@kernel.org, mark.rutland@arm.com, mturquette@baylibre.com, sboyd@kernel.org Cc: jernej.skrabec@siol.net, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-sunxi@googlegroups.com Subject: [PATCH v3 14/16] ARM: dts: sunxi: h3/h5: Add HDMI pipeline Date: Thu, 1 Mar 2018 22:34:40 +0100 Message-Id: <20180301213442.16677-15-jernej.skrabec@siol.net> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180301213442.16677-1-jernej.skrabec@siol.net> References: <20180301213442.16677-1-jernej.skrabec@siol.net> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This commit adds all entries needed for HDMI to function properly. Signed-off-by: Jernej Skrabec --- arch/arm/boot/dts/sunxi-h3-h5.dtsi | 108 +++++++++++++++++++++++++++++++++++++ 1 file changed, 108 insertions(+) diff --git a/arch/arm/boot/dts/sunxi-h3-h5.dtsi b/arch/arm/boot/dts/sunxi-h3-h5.dtsi index 7741166d34d8..1be1a02d6df2 100644 --- a/arch/arm/boot/dts/sunxi-h3-h5.dtsi +++ b/arch/arm/boot/dts/sunxi-h3-h5.dtsi @@ -105,6 +105,12 @@ }; }; + de: display-engine { + compatible = "allwinner,sun8i-h3-display-engine"; + allwinner,pipelines = <&mixer0>; + status = "disabled"; + }; + soc { compatible = "simple-bus"; #address-cells = <1>; @@ -123,6 +129,29 @@ #reset-cells = <1>; }; + mixer0: mixer@1100000 { + compatible = "allwinner,sun8i-h3-de2-mixer-0"; + reg = <0x01100000 0x100000>; + clocks = <&display_clocks CLK_BUS_MIXER0>, + <&display_clocks CLK_MIXER0>; + clock-names = "bus", + "mod"; + resets = <&display_clocks RST_MIXER0>; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + mixer0_out: port@1 { + reg = <1>; + + mixer0_out_tcon0: endpoint { + remote-endpoint = <&tcon0_in_mixer0>; + }; + }; + }; + }; + syscon: syscon@1c00000 { compatible = "allwinner,sun8i-h3-system-controller", "syscon"; @@ -138,6 +167,41 @@ #dma-cells = <1>; }; + tcon0: lcd-controller@1c0c000 { + compatible = "allwinner,sun8i-h3-tcon-tv", + "allwinner,sun8i-a83t-tcon-tv"; + reg = <0x01c0c000 0x1000>; + interrupts = ; + clocks = <&ccu CLK_BUS_TCON0>, <&ccu CLK_TCON0>; + clock-names = "ahb", "tcon-ch1"; + resets = <&ccu RST_BUS_TCON0>; + reset-names = "lcd"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + tcon0_in: port@0 { + reg = <0>; + + tcon0_in_mixer0: endpoint { + remote-endpoint = <&mixer0_out_tcon0>; + }; + }; + + tcon0_out: port@1 { + #address-cells = <1>; + #size-cells = <0>; + reg = <1>; + + tcon0_out_hdmi: endpoint@1 { + reg = <1>; + remote-endpoint = <&hdmi_in_tcon0>; + }; + }; + }; + }; + mmc0: mmc@1c0f000 { /* compatible and clocks are in per SoC .dtsi file */ reg = <0x01c0f000 0x1000>; @@ -682,6 +746,50 @@ interrupts = ; }; + hdmi: hdmi@1ee0000 { + compatible = "allwinner,sun8i-h3-dw-hdmi", + "allwinner,sun8i-a83t-dw-hdmi"; + reg = <0x01ee0000 0x10000>; + reg-io-width = <1>; + interrupts = ; + clocks = <&ccu CLK_BUS_HDMI>, <&ccu CLK_HDMI_DDC>, + <&ccu CLK_HDMI>; + clock-names = "iahb", "isfr", "tmds"; + resets = <&ccu RST_BUS_HDMI1>; + reset-names = "ctrl"; + phys = <&hdmi_phy>; + phy-names = "hdmi-phy"; + status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + hdmi_in: port@0 { + reg = <0>; + + hdmi_in_tcon0: endpoint { + remote-endpoint = <&tcon0_out_hdmi>; + }; + }; + + hdmi_out: port@1 { + reg = <1>; + }; + }; + }; + + hdmi_phy: hdmi-phy@1ef0000 { + compatible = "allwinner,sun8i-h3-hdmi-phy"; + reg = <0x01ef0000 0x10000>; + clocks = <&ccu CLK_BUS_HDMI>, <&ccu CLK_HDMI_DDC>, + <&ccu 6>; + clock-names = "bus", "mod", "pll-0"; + resets = <&ccu RST_BUS_HDMI0>; + reset-names = "phy"; + #phy-cells = <0>; + }; + rtc: rtc@1f00000 { compatible = "allwinner,sun6i-a31-rtc"; reg = <0x01f00000 0x54>; -- 2.16.2