Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4299470imm; Fri, 18 May 2018 02:48:31 -0700 (PDT) X-Google-Smtp-Source: AB8JxZq8TBsfiglX9wX7VUpPpgvl/3itYRdtWeS9lGSh9xPMRvJiZqFVl19Bor8tSju+F0+nUMEE X-Received: by 2002:a63:b907:: with SMTP id z7-v6mr7021588pge.9.1526636911032; Fri, 18 May 2018 02:48:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526636910; cv=none; d=google.com; s=arc-20160816; b=VaJIUAzQpi3ALGn4S0kW8N0Cy5vvW2R4+wX2WpYPnsyHsFezYOGGa43YoIIrdbTcBt 5CWIIw0qLwvQ8gUq5koU9E9GhCsQvSGzR41u7PwY54p3LGqVcG6snlA6i3/xj3z5SgIa kPh2fqjmpnAXMJYocfaG5HQC6f7qnNX5T+e8GnnaSnham12p0dR1UJgKkI2v7TwUGPmK kJxFfxppNzbVKh4MEOI+SU+1nOxhkpu3VjmmnbmKdTVkSbd88qK8VbN7LiGVzSuVCc/k MhngzYe+CFS2/xsrgmu8vqWnp4WU3d9T1rkVvTe44RupVmJWTnlIu+PSC6m2GmZ5cgcc SKeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=CktMMmsByGpUsBijx+wG4OodPe1BUI4MsLrmEnlkpwQ=; b=EQOI9a0gKFMgcD4gvzagMi8wPjR0GLCQSNk3KFShhYVMctQ4+uTCrnivWl+flwQerE hqkA6qzAmkHtJpFPeH+aLY5fTKlHvAhYn7snk3M/OZPBDdAPj9pL/TcEqjzQR11JrgD9 U7LyhVL8S38FsPg8Q/1xcTUrnEeUXsM8mhYPGGnb4TNH+ca5pzqFQiiX4o5JlHrMecQO bPUBeQC5gv8RZMtW9n1BEnsdGAf4DIzk7ezeNs6wWAJioTNOWp5fmTDQaMGnTHGHkFjE 1Jx05kKtHeqPMGXyMg4rxJwcEA2687Tws0qZMmRAKlRctpMLk5UF+mqKFn3ZSXjNpi6Q kFjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=LKaWevAi; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f16-v6si7275919pfe.291.2018.05.18.02.48.17; Fri, 18 May 2018 02:48:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=LKaWevAi; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752764AbeERJrc (ORCPT + 99 others); Fri, 18 May 2018 05:47:32 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:42425 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752326AbeERJr2 (ORCPT ); Fri, 18 May 2018 05:47:28 -0400 Received: by mail-pg0-f68.google.com with SMTP id p9-v6so3094519pgc.9 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=YY7s88WUlQaMm74sJnsy6RPt3EiYW03n7fag7ay7jwuGIOQeFx+pWD/vOQsblQIAKD PI7AMYWW88o9agcmp6z7Jmk33LF+X5mM4jhfdt5MJMlPLApUJIUsmUm3CwfvdjPx4qn0 vOPBXMGqxCk4Qd7gCLSnd0kL3onCGbYumKJiCar10YVFwvB5s0MtU7IgJwzTGVckb3OL t21PPy/9J2lviYiCtiI/urIFbLTufVdnJYnnJL9/gfAg/pprxRRSYN+lsPpl3EQ1wwHx g9rU889R74IC40Xzuf8CPxQggTucboOkNPk8VpOqtlNtbKqe7Q3kSiVI0pq7dYf41dJJ HNNQ== X-Gm-Message-State: ALKqPwfTGaNxCjJ435JbT0UNRgAdropH2NNV82y39IZenzGnX3N+5mJt 06qewrmsfKuevIP2xKl95MxZhA== 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 Cc: Jagan Teki 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> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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, -- 2.14.3