Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1472335imm; Fri, 7 Sep 2018 00:25:08 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbopAzrrOZXYWkSpMv2J7M+e8ZRUdVVLsarzsmAFpN1CPkneq8CkC1jlebDhOL0h0Fgc9oK X-Received: by 2002:a17:902:1a9:: with SMTP id b38-v6mr6575021plb.89.1536305108505; Fri, 07 Sep 2018 00:25:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536305108; cv=none; d=google.com; s=arc-20160816; b=Nccc7UPUkpdAJ+FuEoUYewrLUpBbBuGVNQQCVvOf8ajakL3HxvPv9JFp3ZVmC4b7/m pblOLucKXtw2XMUqKn7J73ah3WggA6YrpdOMIGliDKdtgHJ6uzwYOAcvQlhuoKT5Z0tb UpWqoCRYTiz7WYAsntK/7a0Vw6b90LLBZHUfDqvza7CiAApB8lDZaFh3k7DKxJzsCf2D 7PiZYcTYquGA/IzzyWagj2AsuqqCHGKUcR5tzOJL2xGQLfMKurqZbEq88W2fQyHNyU8o r2sTg6r/z0dpZbagve0AaUtbnWcOGTTv9KNeSmD8dXbEgXfb10PcEeSi7Nacs6ws9w/P c6Aw== 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=tTl8PS5zGAuZ7lcjM7cgdiCTpQERFJXCYYkcaHMfv38=; b=Y9U0As8Lt642LtWG3m9Ta1njr/pLmcXqJFD2zz2Jvf/9pL+jYuSvmNBQ3CI8jZ3g0z deexHgL1a8KuoMax9PoHHwA0rUBH+JX7YtNamamfvOTfNgYsPUC0yEUNFN+J3GRDymdT TmXESpsVt54QCGEQXrOs5M8k2ofh1TsT2muZKH/B4HbVzmeNRDFdLvkvjfL3uxu4d95f aZ7a+k08HMKl3O+N+Vb2bM1G93U4qNosudX1LxfwetK1m9yOFNZNGq/UQz2LYmwe2T4q /Fi6yEnPf93gNMJZxh3ktXP4dzpC1X+6C77QAfI2SVLLksWTDGPi3WHITggqJWVFYj2t VT/w== 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 h2-v6si7718539pgk.330.2018.09.07.00.24.53; Fri, 07 Sep 2018 00:25:08 -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 S1727762AbeIGMDF (ORCPT + 99 others); Fri, 7 Sep 2018 08:03:05 -0400 Received: from hermes.aosc.io ([199.195.250.187]:44315 "EHLO hermes.aosc.io" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726114AbeIGMDE (ORCPT ); Fri, 7 Sep 2018 08:03:04 -0400 Received: from localhost (localhost [127.0.0.1]) (Authenticated sender: icenowy@aosc.io) by hermes.aosc.io (Postfix) with ESMTPSA id 3D6A111C370; Fri, 7 Sep 2018 07:23:25 +0000 (UTC) From: Icenowy Zheng To: Maxime Ripard , Chen-Yu Tsai , Rob Herring , Jernej Skrabec 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 4/5] drm/sun4i: add support for R40 HDMI PHY Date: Fri, 7 Sep 2018 15:22:33 +0800 Message-Id: <20180907072234.48282-5-icenowy@aosc.io> In-Reply-To: <20180907072234.48282-1-icenowy@aosc.io> References: <20180907072234.48282-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 --- 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