From patchwork Fri May 18 09:45:27 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10409411 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 34A43602CB for ; Fri, 18 May 2018 10:19:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 21BD4285E1 for ; Fri, 18 May 2018 10:19:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 155E528901; Fri, 18 May 2018 10:19:44 +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 7A0DA285E1 for ; Fri, 18 May 2018 10:19:43 +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=iiformmxExmg2bAGDeTeF/7/3o3te/Ie3nAXsBXWVDI=; b=H6MtW9uTzQiSwQd0fZkCEDSuJC xMI4T+bk5jupzDAMAhfac5ZVl6a0bsJ4HlLqExph8tA4uLir2iC8bKOWkD3Tizjn8EjSFe51DLFKC pYNZGBqtVVp2PhZu45SvcPxKEDf8qIiUIF6J1e+xfycNjwgIPFxtVDtqrh4Y/z+2g+5TTTMnwxSNW GvdSyxM/xVgoYvaySYoda7zTlvZ73q1wj+oqcFb9UdM8YdO1c3tFdPf3fnCGdFpLMsIXgErRqwChC go2gmYgtqwXqlna5Gs6IN721UvLF7Xzn/UnRuxqN1Uc6GORLBgTdCKiY7jEYVdMNbXruc3sFrfjgy swUu6d/A==; 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 1fJcU0-0002OR-PB; Fri, 18 May 2018 10:19:32 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fJcGk-0002S2-DV for linux-arm-kernel@bombadil.infradead.org; Fri, 18 May 2018 10:05:50 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=RiKMzBsP1EqQM9mjNDeFqsPVDhhO7VAzxss9jeuQwdc=; b=ezPGqw024wZ0BViT4f5D8HJv1 e5uDUoKWfJPokp1xCjWhhJEBdlmXzwIP0Oq95PtlhL+9n4jfnpH0g/OfeLs/+wAtaA4OmblXwAUi0 Xe5spQDQ2I9kstxrQ/caPEKBMgqVlK2C+nnvJ5eFy6iAAZphukwMC1FrErLQD+S+sNg84rjesmeeg YYohSZro2pzkuQXy9UkZbaevldVYVguO7uQFx//vXFozanNSUK7Xv99lAmjDkq0LPozaUq3Y5RYIr Xa5i64symlwkKMQqtj+fxBA+Il/nRxu0k8hmdNj0Ag2LikB3egSQLqTV0J5lEQjt6wcrOIQPjZbWO M2WIfMKDQ==; Received: from mail-pf0-x244.google.com ([2607:f8b0:400e:c00::244]) by merlin.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fJbzW-0002Mm-FI for linux-arm-kernel@lists.infradead.org; Fri, 18 May 2018 09:48:03 +0000 Received: by mail-pf0-x244.google.com with SMTP id v63-v6so3504534pfk.8 for ; Fri, 18 May 2018 02:47:57 -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=RiKMzBsP1EqQM9mjNDeFqsPVDhhO7VAzxss9jeuQwdc=; b=f3jjxlTlZSRK9n2ryuxCKqosodmQke4lB+KwZ/VDb2w/37UbuI76eKc185bO5n6Y56 Z0rz02+SHL5JPA77pHgeR/C724dskBeZ7uNyqy7ihWCj3AL7hOHDWAK8H/s3jPiUVS8M WcK3LO3cXBJBPlIVa7p1VgbRrp+0K+R40kzaw= 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=RiKMzBsP1EqQM9mjNDeFqsPVDhhO7VAzxss9jeuQwdc=; b=rlHnESkY2AMSeg+foWcGRiJ5vI/npRfpibbsEHlt9O8LRGhTsO6QYh8J5D5l0rnPMr dpcJQjknDFKoTj+4vI/QmejSAM0gr7Vup7cqM4xKtl2NMVwoW6BhbAP2IEJM0GnvUH+u B3QIYdgwWNnkQhQ0i6dMRGmUMt/Ff9/RjmJ9wmPsv5MT62f02+LPFnH1IBH65rAEE/JF ScniweUDLR3yDFns+b34K17qfHwkjCEoNXn7PAhXcVHfnHdcTXEHrx8MMM3mGm1wrD4b Z7aqYKGyhMDiXU0alpr6aqRG3N7H4a3ZHf70wzjF6yPao/xzFrb5NsOuJttGwPkvPWtQ 12vg== X-Gm-Message-State: ALKqPweddV8ZIn4NfsD2l+D9rA3GTsWJ/bW9PwO2JwFCfnh3zznXhlIm dYcngjI6MoTH+CvbuPekz+LDZA== X-Google-Smtp-Source: AB8JxZp2pIvzH5C6WdFK23eOxmzPJGWaUAWlmOJkuEsKWCd60aU9a92aDHJ7KPs6K41wsn5aW+ZKXw== X-Received: by 2002:a62:1e02:: with SMTP id e2-v6mr8770374pfe.212.1526636875574; Fri, 18 May 2018 02:47:55 -0700 (PDT) Received: from localhost.localdomain ([183.82.227.74]) by smtp.gmail.com with ESMTPSA id j11-v6sm12694097pff.64.2018.05.18.02.47.49 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 18 May 2018 02:47:55 -0700 (PDT) From: Jagan Teki To: Maxime Ripard , Chen-Yu Tsai , Icenowy Zheng , Jernej Skrabec , Rob Herring , Mark Rutland , Catalin Marinas , Will Deacon , David Airlie , dri-devel@lists.freedesktop.org, Michael Turquette , Stephen Boyd , linux-clk@vger.kernel.org, Michael Trimarchi , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com Subject: [PATCH v2 17/26] arm64: dts: allwinner: a64: Add HDMI support Date: Fri, 18 May 2018 15:15:27 +0530 Message-Id: <20180518094536.17201-18-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180518094536.17201-1-jagan@amarulasolutions.com> References: <20180518094536.17201-1-jagan@amarulasolutions.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180518_054802_591187_ECDF4C01 X-CRM114-Status: GOOD ( 13.66 ) 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: Jagan Teki 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 behaviour like H3/H5/A83T, so reuse the same dts node details for A64 with A83T compatible as fallback. HDMI PHY on Allwinner A64 has two clock parents so add them as pll-0 and pll-1 in CCU clock phadles. Signed-off-by: Jagan Teki --- Changes for v2: - Change compatibles and other based on previous patch changes arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi index 9c1452ee8027..4ffd4787acd2 100644 --- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi @@ -705,6 +705,33 @@ #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"; + reg = <0x01ef0000 0x10000>; + clocks = <&ccu CLK_BUS_HDMI>, <&ccu CLK_HDMI_DDC>, + <&ccu CLK_PLL_VIDEO0>, <&ccu CLK_PLL_VIDEO1>; + clock-names = "bus", "mod", "pll-0", "pll-1"; + resets = <&ccu RST_BUS_HDMI0>; + reset-names = "phy"; + #phy-cells = <0>; + }; + rtc: rtc@1f00000 { compatible = "allwinner,sun6i-a31-rtc"; reg = <0x01f00000 0x54>;