Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2561895imm; Sat, 15 Sep 2018 21:37:46 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaxDMlwIpY3XhA4XvdaaqqnjdPr/7b9/6JyiDaHKWp/24PUwQqJjRgMGsXnerDDwalsSIEs X-Received: by 2002:a17:902:708a:: with SMTP id z10-v6mr19328315plk.229.1537072666177; Sat, 15 Sep 2018 21:37:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537072666; cv=none; d=google.com; s=arc-20160816; b=CgiOPmXTip4rHqDPrb9WTm0sdblJ17HEg5sG21boMESmlVlpiCmrjs9ikDT7Y4U4nv +y1Z/MtArSUs5lFsnNiny+lODibLUQiZltfkXTdI4ZpzFtrK1YNo+aonXdMAARcN5SFO LjEXtF27vdz4g/noqA4joz7HdVHBVDOLFt7CdrLGTCEgW/UYBscXpnec+9vO9ePdJYeX E83Q7XCojAbuYIrviJz+5Qz1/dU8j59m56aDRMYkyk4h+oVgigtTDWTYP0sc58qYRlWM pU37Lz7LV2HFdBQu2AM8fSEESzKxbEddWKnjqpH0jqhABzLcTzpDueID7siTIJ24Ousl fQjA== 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; bh=qgaVQvCLkMEllsNFa/w5aLZzC9er3oAjfA2CrslEP0s=; b=JDx3K0NdZJyu6KZKbsLERndgRUPM1fZCFJtirUDR5Irt23Ca1y+ERngZf0qT0dO5lZ 0KaZaGkrV1Ly8687tybfRfi+9RVPeyMdNxwA0vvDiG9d3iG6TdSWG4rCO/z8h5cikFU8 QEZrX63xZaI/n+wxyeM1Zxwdd+jWUJWFe42uj2uvg56CkIntRaZHIoF0m32FB0KNwVnl MN5PCS8F0dLFc/whJOhgWxKugI9P2SCr+O5O+4VLbFIMgwsxQ1th32VQ5T0YbCIJ+hIW slCwoqurG6r6Vb3y7hq+x9W22RshiSIsp7W4/TEvx1VEdEpbvzGoDY8Ty8ayj7BeEBGk 9acQ== 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 n10-v6si13114590pfb.316.2018.09.15.21.37.30; Sat, 15 Sep 2018 21:37:46 -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 S1727858AbeIPJ5A (ORCPT + 99 others); Sun, 16 Sep 2018 05:57:00 -0400 Received: from hermes.aosc.io ([199.195.250.187]:56574 "EHLO hermes.aosc.io" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725739AbeIPJ5A (ORCPT ); Sun, 16 Sep 2018 05:57:00 -0400 Received: from localhost (localhost [127.0.0.1]) (Authenticated sender: icenowy@aosc.io) by hermes.aosc.io (Postfix) with ESMTPSA id DC10F663FF; Sun, 16 Sep 2018 04:35:22 +0000 (UTC) From: Icenowy Zheng To: Maxime Ripard , Chen-Yu Tsai , Rob Herring Cc: dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, Icenowy Zheng Subject: [PATCH v2 3/4] drm/sun4i: add support for R40 HDMI PHY Date: Sun, 16 Sep 2018 12:34:08 +0800 Message-Id: <20180916043409.62374-4-icenowy@aosc.io> In-Reply-To: <20180916043409.62374-1-icenowy@aosc.io> References: <20180916043409.62374-1-icenowy@aosc.io> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The R40 SoC has a HDMI PHY that is possible to mux two video PLLs. Add support for it. Signed-off-by: Icenowy Zheng --- Changes in v2: - none. 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 a564b5dfe082..471993097ced 100644 --- a/drivers/gpu/drm/sun4i/sun8i_hdmi_phy.c +++ b/drivers/gpu/drm/sun4i/sun8i_hdmi_phy.c @@ -416,6 +416,14 @@ static const struct sun8i_hdmi_phy_variant sun8i_h3_hdmi_phy = { .phy_config = &sun8i_hdmi_phy_config_h3, }; +static const struct sun8i_hdmi_phy_variant sun8i_r40_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 of_device_id sun8i_hdmi_phy_of_table[] = { { .compatible = "allwinner,sun50i-a64-hdmi-phy", @@ -429,6 +437,10 @@ static const struct of_device_id sun8i_hdmi_phy_of_table[] = { .compatible = "allwinner,sun8i-h3-hdmi-phy", .data = &sun8i_h3_hdmi_phy, }, + { + .compatible = "allwinner,sun8i-r40-hdmi-phy", + .data = &sun8i_r40_hdmi_phy, + }, { /* sentinel */ } }; -- 2.18.0