Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp729226ybi; Fri, 14 Jun 2019 02:20:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqzmfaRTtksEIJMtZnx1BtUY+nJsSYVVkYMAgPbNOPKX8Q2ZZUVbkB8dXJ+mkGEddPIWFlcG X-Received: by 2002:a63:fb17:: with SMTP id o23mr5787138pgh.362.1560504007661; Fri, 14 Jun 2019 02:20:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560504007; cv=none; d=google.com; s=arc-20160816; b=qYRY/UP8Opr+AhLhSOmfv1JdSh4ziVwpWwFYTthmE8hziNt+AQiYMnxvmdqHOmjGLV VwqobDP9BvaRzv+ekTWZdLks1TxkrJskhru1PZG29ZYbhTh13wI9v+TfoSXOuEsSt6QL diCrXw1snyGEfLhBoDSa2P1jjk68Gv/0ZeyLSn8sJ0tg06xZSgcnjMcQjI/0fh2vDCln 6S/T/j8D1uMCco+gXaRz01SW+X+p5mQQlwDA1yL68j3Fmfry58WbIWuft0cz0JATRpr5 dgga2jZHjhGx7vvlT1C1NOZuYobYwOL36MI0th6RuLOm1GAelBVGeaZJNk1CRIYT/tLL LjVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=J8nwGm6ircwkJoqtzP8hlaYUXiKcpn5a89zn9vzCLw4=; b=p2b9fD17zL0H9l8GVgq2+GCOFgYi+OrLu9mHiXBaBZbWeIcwzIpvlAOKCKE1vbJTkG o/+7UPRWJSxzCtH5qyCUqZaSK6yMTJzsZ1rnLmzCgLcbeWOkbGFjzsZpbH5p0D6xmjs7 7TrLc4GBRa0brbgO2bWxLIOJJvacagKP2dPBPw641eh44H6ud3ZCKzwlyGHrJBujMuQk 74Qxvp1X39DCKyP/TQ2Hfv2jFRtu24VppGcBeRyliZbJz4GV54euhmonikZ7ZoHnJPBu 4zMJl15tMhbqmLwExmx6CFAwYQ77QokikwbY1HDxRfv8SN9xPrnT+RSnzHrNOkWIqc0j xZ/A== 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 206si2131182pga.414.2019.06.14.02.19.50; Fri, 14 Jun 2019 02:20:07 -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 S1726992AbfFNJSQ (ORCPT + 99 others); Fri, 14 Jun 2019 05:18:16 -0400 Received: from gloria.sntech.de ([185.11.138.130]:37706 "EHLO gloria.sntech.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726545AbfFNJSP (ORCPT ); Fri, 14 Jun 2019 05:18:15 -0400 Received: from we0305.dip.tu-dresden.de ([141.76.177.49] helo=phil.localnet) by gloria.sntech.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hbiLY-00041V-D9; Fri, 14 Jun 2019 11:18:08 +0200 From: Heiko Stuebner To: Justin Swartz Cc: Michael Turquette , Stephen Boyd , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] clk: rockchip: select hdmiphy clock source for rk3228 Date: Fri, 14 Jun 2019 11:18:07 +0200 Message-ID: <4689860.tqrvb1PrOO@phil> In-Reply-To: <20190612133343.28309-1-justin.swartz@risingedge.co.za> References: <20190612133343.28309-1-justin.swartz@risingedge.co.za> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Am Mittwoch, 12. Juni 2019, 15:33:43 CEST schrieb Justin Swartz: > Unless explictly configured by a bootloader, the hdmiphy clock parent > defaults to the xin24m clock source. This configuration does not yield > any HDMI video output, so let hdmiphy_phy (the HDMI PHY output clock) > be the parent instead. > > Signed-off-by: Justin Swartz Mainly for having breadcrumbs for people skimming the lists, I've adapted this to use assigned-clocks instead of hardcoding. See the dts-thread for further infos: https://lore.kernel.org/linux-arm-kernel/1854794.0zkvb3x0FP@phil/T/#mf86ab45e07442ab2b25c67f423ebc4130259f6b0 Heiko > --- > drivers/clk/rockchip/clk-rk3228.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/clk/rockchip/clk-rk3228.c b/drivers/clk/rockchip/clk-rk3228.c > index 1c5267d134ee..00a195e6c014 100644 > --- a/drivers/clk/rockchip/clk-rk3228.c > +++ b/drivers/clk/rockchip/clk-rk3228.c > @@ -699,6 +699,9 @@ static void __init rk3228_clk_init(struct device_node *np) > return; > } > > + /* Let hdmiphy_phy be the parent of the hdmiphy clock. */ > + writel_relaxed(HIWORD_UPDATE(0, 1, 13), reg_base + RK2928_MISC_CON); > + > ctx = rockchip_clk_init(np, reg_base, CLK_NR_CLKS); > if (IS_ERR(ctx)) { > pr_err("%s: rockchip clk init failed\n", __func__); >