From patchwork Tue Apr 24 13:34:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10359953 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 0EA86601D3 for ; Tue, 24 Apr 2018 13:44:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F109728D57 for ; Tue, 24 Apr 2018 13:44:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E4C6A28DF3; Tue, 24 Apr 2018 13:44:42 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A453128D57 for ; Tue, 24 Apr 2018 13:44:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=8P7oZqAdNlWekGGlpbcHjX7+pIe02og8z+q6dTl9uR8=; b=RSiaY1jKm3A5t2lBYV5iKWfjU6 dZ6iZwe8z/RtwroosNjFO8oZeXla32rkyzgvaL93goW4JCJJdnR29VZ1HrgVhdCB9F7XSgPLr9IxC OiE+c0M3xolWUyEDeK1khi/dhpVK82wVjlP/9ygR9uoKPwTucolKyuWiQD2vHa/TH5AhXguj2CQI3 m187HKSeP1lOREGTgOpI23xHZ68nY0wataVA1Ff0E54KAsFgVAbFew136iHLCIiUcwMBRUAekSbBn eE3jJU2byxhoWLClibbscLnpEbn2d5uhMVm64H5Isa6b3s9/qgJggpkuGQsou4pQ+71lXotIdj/t5 nAnPe5pw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fAyFH-0003DC-6V; Tue, 24 Apr 2018 13:44:35 +0000 Received: from mail-pg0-x241.google.com ([2607:f8b0:400e:c05::241]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fAy6b-00064p-Qk for linux-arm-kernel@lists.infradead.org; Tue, 24 Apr 2018 13:35:53 +0000 Received: by mail-pg0-x241.google.com with SMTP id e12so10894669pgn.9 for ; Tue, 24 Apr 2018 06:35:27 -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=X1vFz7Ws0R4CXxrSPrl0oFyo0S+kIHFrmEo74ep3b1A=; b=eh2pE1RGKlSsC6lLKUcXmvHjO71W4dU7zEwAvJUTewibLf0WMQvI0gkTOWyj9LfCaY K1RLMWuuqdTCU+zox5wZWcU5PC5cXqmoWrAoNLCrqa85eMeqHENt6/nfJ9v2GCrhDBJu SAgNM62j43r2I6932fW/h9MpwDI+3Xgu4V+Ng= 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=X1vFz7Ws0R4CXxrSPrl0oFyo0S+kIHFrmEo74ep3b1A=; b=K/8SI5Fj5yMmKPCec7XUldDELV0jDCvDkfR/6qN6r4dpDjCAiX9uHxfnyfcI6JDJas 7P/EBHD7YVIzIHgd59fku/tlYO+xBcW/yp5GH4uu+JGibRYq9uXLM4gq56W28c+tvk4d VRyRj7bF6koMfoxjD4VBH7AydtmkSi99ulTMkX01k5fY7KcQ7fxLf4F2BiTXwBgxJDfj yL719Y8fYOCt9UTbrz1YvaXhgwwCGR9+yJHVam5dx2JOiTs6gUi4+VmbTBls0JaVi6+v ZQuVC8xCP2xHxlnq4/72bqP+a+dYiLa/xHvJA61ZHQmi6ObpHm3Hur6XnJZCaoja4joS 456w== X-Gm-Message-State: ALQs6tAKud0MjpxFob2E4Jeqp9vjnjW0NeM4MTtD4CGKisdXqERD6BLA fobOPBV6sWQGZIUG48Sso8IBcg== X-Google-Smtp-Source: AIpwx48rbWwmq6B5G4sD1ngFFydD1kywexpLkdiE+9v2sEBzbNSx267MsUXt6R7yJtzhmVIeb2dd1w== X-Received: by 10.98.15.23 with SMTP id x23mr22618084pfi.3.1524576926432; Tue, 24 Apr 2018 06:35:26 -0700 (PDT) Received: from localhost.localdomain ([183.82.229.182]) by smtp.gmail.com with ESMTPSA id b81sm4836029pfj.176.2018.04.24.06.35.21 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 24 Apr 2018 06:35:25 -0700 (PDT) From: Jagan Teki To: Maxime Ripard Subject: [RFC 09/13] arm64: dts: allwinner: a64: Add HDMI support Date: Tue, 24 Apr 2018 19:04:21 +0530 Message-Id: <20180424133425.24291-10-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180424133425.24291-1-jagan@amarulasolutions.com> References: <20180424133425.24291-1-jagan@amarulasolutions.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180424_063537_916842_AABA666A X-CRM114-Status: GOOD ( 13.16 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Mark Rutland , devicetree@vger.kernel.org, Jernej Skrabec , Catalin Marinas , linux-sunxi@googlegroups.com, Will Deacon , linux-kernel@vger.kernel.org, Chen-Yu Tsai , Rob Herring , Jagan Teki , Michael Trimarchi , linux-arm-kernel@lists.infradead.org, Icenowy Zheng MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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 b8734319dc77..aa73f1ce1ab2 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi @@ -705,6 +705,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_VIDEO0>; + 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..a054ff665d6e 100644 --- a/include/dt-bindings/clock/sun50i-a64-ccu.h +++ b/include/dt-bindings/clock/sun50i-a64-ccu.h @@ -43,6 +43,8 @@ #ifndef _DT_BINDINGS_CLK_SUN50I_A64_H_ #define _DT_BINDINGS_CLK_SUN50I_A64_H_ +#define CLK_PLL_VIDEO0 7 + #define CLK_PLL_PERIPH0 11 #define CLK_BUS_MIPI_DSI 28