From patchwork Mon Apr 30 11:40:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10373215 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 02FD16032A for ; Tue, 1 May 2018 06:53:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E4DEF28BE9 for ; Tue, 1 May 2018 06:53:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D53D928BFB; Tue, 1 May 2018 06:53:47 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 5DEBF28BE9 for ; Tue, 1 May 2018 06:53:47 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5CA946E3C1; Tue, 1 May 2018 06:52:53 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pf0-x241.google.com (mail-pf0-x241.google.com [IPv6:2607:f8b0:400e:c00::241]) by gabe.freedesktop.org (Postfix) with ESMTPS id 10CCC6E23B for ; Mon, 30 Apr 2018 11:42:13 +0000 (UTC) Received: by mail-pf0-x241.google.com with SMTP id q22so6539753pff.11 for ; Mon, 30 Apr 2018 04:42:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=VrVnPOHHGKPnodsm0rg4EjyyFl9ZWyISJUZqBFJd6lQ=; b=P+tVCB/5niwo+XAO6HSDEwqsxiWan2utrwOtO+mLucOnMnq2YDM0WGGZlyeIOTOYEi 4JyboAG/ruDx+yX6OKT9boqdCbzTaI90mW/eUj+dkJ5eXQvuJjDM3qXJgnYlDgLHUkjU Uo25DlFufIN7oQjzviyFbOEdCnbWMCsCW0DxA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=VrVnPOHHGKPnodsm0rg4EjyyFl9ZWyISJUZqBFJd6lQ=; b=ozjZctuRZ4dNbU8Yh0D0+jyicXo/i9P0ccJGkVINfrA3i8TNtljzHFeaSwJbzuReOK 2yeEPIHrkq0rN3J9Xfj68gRchibEhB0zHIRelBjs7LHHGDnJ4h0eS/p1+S34xYyql1ET 4w7SxltYy7AUXvl0ZZihXTcQY8ULwR7+UGvi3Q+SQZIEQS5sC5YrOl5Iy/neaBw1vMEj tWR1LRMUjkYmEdUD0PI4B9pmEt29j+ytadabBGu8bmnvazriJQfFbe7bQ76TK2LCpc3U sG2Y71sYUx+oHdLoCn9Z8IP8zf8pJB4kb93DU1TrjtR9kEykNEC9XCKbsNV4+YaEmM1R lv/Q== X-Gm-Message-State: ALQs6tA9rMiIFdBf8tC5dk4QEkJaihKlhSEAO4vuYZaezw9nNq1pMCqs AN9rOk0STwwrCbzPDw8R6oIMTw== X-Google-Smtp-Source: AB8JxZqFyrexq3VOFtxu6jn7GTZON4Z9WLnISHBtRI7LU82+bSs4v+1ygqIRepGE4vcLDTNn9creFA== X-Received: by 2002:a65:64cb:: with SMTP id t11-v6mr9969158pgv.417.1525088532529; Mon, 30 Apr 2018 04:42:12 -0700 (PDT) Received: from localhost.localdomain ([183.82.224.14]) by smtp.gmail.com with ESMTPSA id s17sm16762357pfi.165.2018.04.30.04.42.06 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 30 Apr 2018 04:42:12 -0700 (PDT) From: Jagan Teki To: Maxime Ripard Subject: [PATCH 09/21] arm64: dts: allwinner: a64: Add HDMI support Date: Mon, 30 Apr 2018 17:10:46 +0530 Message-Id: <20180430114058.5061-10-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180430114058.5061-1-jagan@amarulasolutions.com> References: <20180430114058.5061-1-jagan@amarulasolutions.com> X-Mailman-Approved-At: Tue, 01 May 2018 06:51:33 +0000 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Jernej Skrabec , David Airlie , Catalin Marinas , Michael Turquette , linux-sunxi@googlegroups.com, Will Deacon , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Stephen Boyd , Chen-Yu Tsai , Rob Herring , Jagan Teki , Michael Trimarchi , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Icenowy Zheng MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP HDMI on Allwinner A64 has similar behavior like H3/H5, so reuse the same dts node details for A64. Signed-off-by: Jagan Teki --- arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 28 +++++++++++++++++++++++++++ include/dt-bindings/clock/sun50i-a64-ccu.h | 2 ++ 2 files changed, 30 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi index 67b80bbe5bf5..da9128ae836d 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi @@ -644,6 +644,34 @@ #interrupt-cells = <3>; }; + hdmi: hdmi@1ee0000 { + compatible = "allwinner,sun50i-a64-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"; + }; + + hdmi_phy: hdmi-phy@1ef0000 { + compatible = "allwinner,sun50i-a64-hdmi-phy", + "allwinner,sun8i-h3-hdmi-phy"; + reg = <0x01ef0000 0x10000>; + clocks = <&ccu CLK_BUS_HDMI>, <&ccu CLK_HDMI_DDC>, + <&ccu CLK_PLL_VIDEO1>; + 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>; diff --git a/include/dt-bindings/clock/sun50i-a64-ccu.h b/include/dt-bindings/clock/sun50i-a64-ccu.h index d66432c6e675..41c09df797ef 100644 --- a/include/dt-bindings/clock/sun50i-a64-ccu.h +++ b/include/dt-bindings/clock/sun50i-a64-ccu.h @@ -45,6 +45,8 @@ #define CLK_PLL_PERIPH0 11 +#define CLK_PLL_VIDEO1 15 + #define CLK_BUS_MIPI_DSI 28 #define CLK_BUS_CE 29 #define CLK_BUS_DMA 30