From patchwork Fri May 18 09:45:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10414111 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 5DAC06032B for ; Mon, 21 May 2018 08:20:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 51272287A7 for ; Mon, 21 May 2018 08:20:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 45EE0287BA; Mon, 21 May 2018 08:20:30 +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 1C8E6287A7 for ; Mon, 21 May 2018 08:20:24 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 92B7D6E336; Mon, 21 May 2018 08:18:21 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pg0-x243.google.com (mail-pg0-x243.google.com [IPv6:2607:f8b0:400e:c05::243]) by gabe.freedesktop.org (Postfix) with ESMTPS id 78DA86ECD0 for ; Fri, 18 May 2018 09:47:28 +0000 (UTC) Received: by mail-pg0-x243.google.com with SMTP id l2-v6so3097963pgc.7 for ; Fri, 18 May 2018 02:47:28 -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=CktMMmsByGpUsBijx+wG4OodPe1BUI4MsLrmEnlkpwQ=; b=LKaWevAiHtsSIxoL7VJrEar1EYDVlALcs7kUJml4rGdXBspQfDOfmtddDw09YLMlwS i7WKQctwzCNYijwkeae4QaBwJ8MPGKDkhxhOa3CNX3oFUxg4zE4pRZN5HpAxBtrxPls8 i40pg70XJYKeJsb6MVe8sw+1OwvuH4Pg+Gxik= 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=CktMMmsByGpUsBijx+wG4OodPe1BUI4MsLrmEnlkpwQ=; b=b/dORvBYydmvpanVK++3xT3VbDOocoNcvWi29eW2yOquM3k4+Lga7usBjvgsQDpYIi t4c1/yTebcKN/YPNefZtBAREYBJix4eMLxiCzdzIu/Hu9S+K5Haa32ZMyp94yarss0Tx uwdaOnNXNZ47Y6M/InePLlUDAtqE2I3yUZCLDXYWPYVB/+9bp0awRFVIbVRW0RLlDRtz wH99ussXjbVbMPn8yc8uVBayNag5vAiMotLIYyalw+d6FszlPNeJfYZ8/cw0XMnqVQ0D vlJrj8VcoevVtNOQQA0oM2cS+lXcfYv75erSov2CJj3EYI8qmoP+KVZU53zh5j6Ix8Tz riTA== X-Gm-Message-State: ALKqPwfqXwf4lfUoL4c3TfWRuj38QM3Y5Zp8grv0jvcgtI7Fh5hdMzLW snuM8gyE4XICX+DMecoUBpTFbQ== X-Google-Smtp-Source: AB8JxZqk2ASrrzyFmkNPP1C6EW0CpCtjqs/fGP2zTLhHbMc7462bIAVjAHZdLRAGmkF18ew4GEgs0Q== X-Received: by 2002:a62:d605:: with SMTP id r5-v6mr8800145pfg.8.1526636847979; Fri, 18 May 2018 02:47:27 -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.21 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 18 May 2018 02:47:27 -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 13/26] drm/sun4i: Add support for A64 HDMI PHY Date: Fri, 18 May 2018 15:15:23 +0530 Message-Id: <20180518094536.17201-14-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-Mailman-Approved-At: Mon, 21 May 2018 08:18:09 +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: Jagan Teki MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Jernej Skrabec PHY is the same as in H3, except it can select between two clock parent. Signed-off-by: Jernej Skrabec Signed-off-by: Jagan Teki --- Changes for v2: - new patch drivers/gpu/drm/sun4i/sun8i_hdmi_phy.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/gpu/drm/sun4i/sun8i_hdmi_phy.c b/drivers/gpu/drm/sun4i/sun8i_hdmi_phy.c index 0eadf087fc46..39fbf7257fce 100644 --- a/drivers/gpu/drm/sun4i/sun8i_hdmi_phy.c +++ b/drivers/gpu/drm/sun4i/sun8i_hdmi_phy.c @@ -392,6 +392,13 @@ static struct regmap_config sun8i_hdmi_phy_regmap_config = { .name = "phy" }; +static const struct sun8i_hdmi_phy_variant sun50i_a64_hdmi_phy = { + .phy_clk_num = 2, + .phy_init = &sun8i_hdmi_phy_init_h3, + .phy_disable = &sun8i_hdmi_phy_disable_h3, + .phy_config = &sun8i_hdmi_phy_config_h3, +}; + static const struct sun8i_hdmi_phy_variant sun8i_a83t_hdmi_phy = { .phy_init = &sun8i_hdmi_phy_init_a83t, .phy_disable = &sun8i_hdmi_phy_disable_a83t, @@ -406,6 +413,10 @@ static const struct sun8i_hdmi_phy_variant sun8i_h3_hdmi_phy = { }; static const struct of_device_id sun8i_hdmi_phy_of_table[] = { + { + .compatible = "allwinner,sun50i-a64-hdmi-phy", + .data = &sun50i_a64_hdmi_phy, + }, { .compatible = "allwinner,sun8i-a83t-hdmi-phy", .data = &sun8i_a83t_hdmi_phy,