Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp5878415imm; Sat, 19 May 2018 11:33:56 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrIobGJyA3MoYMrtmfB3QnEfYTBKlC9eBYDLX0PP5JAjTgBXg0RkVtUxXN23kgu49wm/LD9 X-Received: by 2002:a62:581:: with SMTP id 123-v6mr14217638pff.38.1526754835946; Sat, 19 May 2018 11:33:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526754835; cv=none; d=google.com; s=arc-20160816; b=nIYu5iH+rxwQQ4lOTiXsARiCxf6R2Q2N5BEyQvQY4nZqLaiyRrGX1oJ6uJ7ublYJGi chruULV9MOXAOFL4zJBy/AMUdCy6pVCBRUyBnve6XTM7KBqllRBsn9nUpI+I1FMN0xq8 VUHYbB9UEcJUnL9A3ZbI8iAEVSqEY9VE3q1AkKF9fNJU0LQlvNPKEueT6/Y52xQTZ8D/ 4o0VSBtPtnD5KiCOMFPhxCgCY8MNzn4VHOPnxOazD+JOA90jrWFiMv4LsLsWyrAArigB IVLSGE2IE0oXxhxCwKo3h6qqmfFJi6Us2rAiKb6oXhTFPj2NqvFh8JIFZCrwjjF0KjwN oN1Q== 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:arc-authentication-results; bh=RZnjY1gxgNs4bi66gFO7a6jvuLG3SV4/2jHCbQ6cGvs=; b=0UE1G7hBdN/MmqtBrD07PaCsOnCpFLK5UPl2eqO1Ef3HyBS4oTbDYW6w9RgtsayW7p kn22Qq4jZ9HKBH0uaFSnedngEU5vJ0H9Pcwns2iEcpaKjWIc+pNQBJ7ZUGppFgRzyJn1 1cXUhDQwvXrnRLF5c9/s+7VdHorKCf8TbvZLmF2JLvpbF/BULxu4uuh4nIu58sjkkyy4 REpgPdXHo+2VTJO+zGe6/WS8ggC0018/R1Qd0wTupOc6AVGZDy/4sTiFChbLoFKXC33t OD07aUgixvJ3ZxBOhzRWHHKuRUtSZjjgCKAB74RR2pjVrlJ/lhT18EBBldaOyLu/dExG jUoQ== ARC-Authentication-Results: i=1; mx.google.com; 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 x33-v6si9983059plb.512.2018.05.19.11.33.41; Sat, 19 May 2018 11:33:55 -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; 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 S1752744AbeESSdH (ORCPT + 99 others); Sat, 19 May 2018 14:33:07 -0400 Received: from mailout11.siol.net ([213.250.19.138]:34844 "EHLO mail.siol.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752709AbeESSdA (ORCPT ); Sat, 19 May 2018 14:33:00 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.siol.net (Postfix) with ESMTP id B0485520806; Sat, 19 May 2018 20:32:58 +0200 (CEST) X-Virus-Scanned: amavisd-new at psrvmta10.zcs-production.pri Received: from mail.siol.net ([127.0.0.1]) by localhost (psrvmta10.zcs-production.pri [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id VDSn508rdSzj; Sat, 19 May 2018 20:32:58 +0200 (CEST) Received: from mail.siol.net (localhost [127.0.0.1]) by mail.siol.net (Postfix) with ESMTPS id 4B2BD52047D; Sat, 19 May 2018 20:32:58 +0200 (CEST) Received: from localhost.localdomain (unknown [194.152.15.144]) (Authenticated sender: 031275009) by mail.siol.net (Postfix) with ESMTPSA id D7F2B520806; Sat, 19 May 2018 20:32:55 +0200 (CEST) From: Jernej Skrabec To: maxime.ripard@bootlin.com, wens@csie.org, robh+dt@kernel.org Cc: mark.rutland@arm.com, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, linux-sunxi@googlegroups.com Subject: [PATCH 13/15] drm/sun4i: Add support for A64 HDMI PHY Date: Sat, 19 May 2018 20:31:25 +0200 Message-Id: <20180519183127.2718-14-jernej.skrabec@siol.net> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180519183127.2718-1-jernej.skrabec@siol.net> References: <20180519183127.2718-1-jernej.skrabec@siol.net> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org PHY is the same as in H3, except it can switch between two clock parents. Signed-off-by: Jernej Skrabec --- drivers/gpu/drm/sun4i/sun8i_hdmi_phy.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/gpu/drm/sun4i/sun8i_hdmi_phy.c b/drivers/gpu/drm/sun4i/sun8i_hdmi_phy.c index 7a911f0a3ae3..0c9d67bb1007 100644 --- a/drivers/gpu/drm/sun4i/sun8i_hdmi_phy.c +++ b/drivers/gpu/drm/sun4i/sun8i_hdmi_phy.c @@ -396,6 +396,14 @@ static struct regmap_config sun8i_hdmi_phy_regmap_config = { .name = "phy" }; +static const struct sun8i_hdmi_phy_variant sun50i_a64_hdmi_phy = { + .has_phy_clk = true, + .has_second_pll = true, + .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, @@ -410,6 +418,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.17.0