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: 10409371 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 57C6860230 for ; Fri, 18 May 2018 10:02:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 460B428901 for ; Fri, 18 May 2018 10:02:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3AB1D28908; Fri, 18 May 2018 10:02:45 +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 D459228901 for ; Fri, 18 May 2018 10:02:44 +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=kUMdChfHcvrtKPXAJs3BHTRn9fe4NHrsfZ4UTv+qvO0=; b=HLD8uumRR4MFv/Nor8T8N6lRiB 71ryTxQhyfdWWzgdzQ19wbH/0FD9tUWhKtZgvWZUmTLdlVNRZTQYsaA+47paFMWrSy6znxmu0W4LU 08yWc+lHFCKvAqsM1Lgnf6Fq7FVdYETGQoc0UnChfUPvP504VzS11emVqHGtKZhL9Ogg7uJJk3Wdc Y7C6H5ZG2mfJtdx2lcz1yR8sF1kqUYg1k2ZlDv61ywd9eOFGB5L3V+aU6xXnrfNnz+vUrjic4bdi4 E6JiHbilIVYvni/rZj6dYLeReUEOMm9NNrjWDzvFIKcQ5YIR0O4u3ixkRPBmmwKfawp+8YdvrQbj3 uBeSZ02Q==; 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 1fJcDX-0008Pu-W5; Fri, 18 May 2018 10:02:32 +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 1fJbz9-0008Bt-AQ for linux-arm-kernel@lists.infradead.org; Fri, 18 May 2018 09:49:30 +0000 Received: by mail-pg0-x241.google.com with SMTP id a13-v6so3100891pgu.4 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=Waf3yMjrgUaAoil+fvmuBssVmbMSrWFc616DO0CjXVpJrh7F+8eEQCRuO/alT30bm6 JLTXbivdoonquNSqEYEkF+D8gfCu8LHZFxRTfFba4bRKkz/Z+PIuYl7d8FoXugTC5fxD W9aqFHcf2aRjNW9765aQT67ft95+6dexZzon2YhjXsOdKQHuIEKVwxEoIu7ldbO73GG1 8KBIcs0VsZb5SuZ2xqu41OfT5b+Bjt41fp4gtoWbRtmqzHaVnwlpPgkr+TyQ8cyT0cwz Aq4OrbI5fVT8XVy7te7NdJMwlTJXjNVQatTL7xOS6fuqKZfJErVWEagNNei1C5rNHghq R//w== X-Gm-Message-State: ALKqPwf51VrDaDdorYKmxx24b3C21vQ7MZe11rECrXPxQIiVDinaI6sx 0jTGK2ZZM/HOtrnw2lUFTGTOig== 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180518_024739_414507_EECB586D X-CRM114-Status: GOOD ( 14.31 ) 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 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,