Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp5146282pxj; Tue, 22 Jun 2021 16:29:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx+ioKBk44lrBXf1QkFBsLhhhVfx78cte6m8cCSTeWUcOuZjQf5ckc8fWttP0q0ABbmmAgp X-Received: by 2002:a05:6638:3594:: with SMTP id v20mr3467962jal.25.1624404540820; Tue, 22 Jun 2021 16:29:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624404540; cv=none; d=google.com; s=arc-20160816; b=WD1pga9lRWVfFJDvG5e7x4zcZ/IDaKTtuTVaz70JsjHcSa4vKB/iayhNXb40sYd79s mFEdgSXLfGQ1z4WB51WZ/ZPPV3CEVHInhOy7p7hlRzZclCxaqrV5bJlWA58HGTMZwZ9P A6j5PU8+mGEO5oC/hMy92orDFlRwo2ixFVfPDBbO7sdDuwFZ+yQbZ1Guwnwl+9dXfTH+ xZme7fxXLttNsEx4JgwaJCtdo87vSOfzrBAhUUkpc9/gAJC0uE4qm8jnwd+Is3wlMd3A +/SHVSh9PWvEAyZm0Tz+dcDhWK0NYy4Zv1HkqM0RRfu5h7Gtwwj0qSZRDz1Zp5vv8FCx OVKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Cn5eBP2drx0hT+s05tzGaIJilKrWNBlyVB5bfz7ZOWc=; b=zu9vgNYopSgr25NJ6eKOt/YnoZ9ynSqiwPqWz6ym4yc2aAIgEyyKdhHK/VxoGBjMhM rxrXlH/tX53vZgSwM8eoQX3ZahkUb40X5JJ1oX1SEt5U05Vfomz5TP1r7XfOaqhPptVK s9N2UFOHrBiRdfeevcX6xKMJfosC/ZtUH2uei25D9+mPMIeBcepFvAbG6/Q727LV1Tb5 72QpiJgzhPyFr24VVMq4t0zJH95lf5NjtJ+JQyQ7R36ud+REDN9n0xvXKsm7kQe5Zjgx IrVwE9cCSLJ2ZveFDkNXh7lXZ2RBI7iWmljqxQJM97AD0Bn9EMFCTg0fUzj/4L8BPFvx ngXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=N49aWNSA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i12si772493jal.25.2021.06.22.16.28.48; Tue, 22 Jun 2021 16:29:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=N49aWNSA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229945AbhFVX3g (ORCPT + 99 others); Tue, 22 Jun 2021 19:29:36 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:55230 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229501AbhFVX3e (ORCPT ); Tue, 22 Jun 2021 19:29:34 -0400 Received: from Monstersaurus.local (cpc89244-aztw30-2-0-cust3082.18-1.cable.virginm.net [86.31.172.11]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 95FBFBB0; Wed, 23 Jun 2021 01:27:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1624404436; bh=F96kJcXg5MDZNRxtRyxTyBx7NhtVXXdOczgtpqetwGg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=N49aWNSAjVYB1qsftkUQCZDTgY+jhmYBXNti9aKhSmVkPA6kZZex5rClvomGnJPTB npylel3EzopVQszQn++aqc/AJDkkqDX31S6/FJYP61zO85fzqAQKwSbFC0mtJ5d6Wu V/bqceEy52c/QqWjH4MhhRSUGnNfZ18N8ERUJcok= From: Kieran Bingham To: Geert Uytterhoeven , Kieran Bingham , linux-renesas-soc@vger.kernel.org Cc: Geert Uytterhoeven , Michael Turquette , Stephen Boyd , linux-clk@vger.kernel.org (open list:COMMON CLK FRAMEWORK), linux-kernel@vger.kernel.org (open list) Subject: [PATCH 2/2] clk: renesas: r8a779a0: Add the DSI clocks Date: Wed, 23 Jun 2021 00:27:11 +0100 Message-Id: <20210622232711.3219697-3-kieran.bingham@ideasonboard.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210622232711.3219697-1-kieran.bingham@ideasonboard.com> References: <20210622232711.3219697-1-kieran.bingham@ideasonboard.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The DSI clock is incorrectly defined as a fixed clock. This demonstrates itself as the dsi-encoders failing to correctly enable and start their PPI and HS clocks internally, and causes failures. Move the DSI parent clock to match the updates in the BSP, which resolves the initialisation procedures. Signed-off-by: Kieran Bingham --- drivers/clk/renesas/r8a779a0-cpg-mssr.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/clk/renesas/r8a779a0-cpg-mssr.c b/drivers/clk/renesas/r8a779a0-cpg-mssr.c index a1bd158defb5..f16d125ca009 100644 --- a/drivers/clk/renesas/r8a779a0-cpg-mssr.c +++ b/drivers/clk/renesas/r8a779a0-cpg-mssr.c @@ -135,7 +135,6 @@ static const struct cpg_core_clk r8a779a0_core_clks[] __initconst = { DEF_FIXED("zt", R8A779A0_CLK_ZT, CLK_PLL1_DIV2, 2, 1), DEF_FIXED("ztr", R8A779A0_CLK_ZTR, CLK_PLL1_DIV2, 2, 1), DEF_FIXED("zr", R8A779A0_CLK_ZR, CLK_PLL1_DIV2, 1, 1), - DEF_FIXED("dsi", R8A779A0_CLK_DSI, CLK_PLL5_DIV4, 1, 1), DEF_FIXED("cnndsp", R8A779A0_CLK_CNNDSP, CLK_PLL5_DIV4, 1, 1), DEF_FIXED("vip", R8A779A0_CLK_VIP, CLK_PLL5, 5, 1), DEF_FIXED("adgh", R8A779A0_CLK_ADGH, CLK_PLL5_DIV4, 1, 1), @@ -151,6 +150,7 @@ static const struct cpg_core_clk r8a779a0_core_clks[] __initconst = { DEF_DIV6P1("mso", R8A779A0_CLK_MSO, CLK_PLL5_DIV4, 0x87c), DEF_DIV6P1("canfd", R8A779A0_CLK_CANFD, CLK_PLL5_DIV4, 0x878), DEF_DIV6P1("csi0", R8A779A0_CLK_CSI0, CLK_PLL5_DIV4, 0x880), + DEF_DIV6P1("dsi", R8A779A0_CLK_DSI, CLK_PLL5_DIV4, 0x884), DEF_OSC("osc", R8A779A0_CLK_OSC, CLK_EXTAL, 8), DEF_MDSEL("r", R8A779A0_CLK_R, 29, CLK_EXTALR, 1, CLK_OCO, 1), @@ -168,6 +168,8 @@ static const struct mssr_mod_clk r8a779a0_mod_clks[] __initconst = { DEF_MOD("csi42", 401, R8A779A0_CLK_CSI0), DEF_MOD("csi43", 402, R8A779A0_CLK_CSI0), DEF_MOD("du", 411, R8A779A0_CLK_S3D1), + DEF_MOD("dsi0", 415, R8A779A0_CLK_DSI), + DEF_MOD("dsi1", 416, R8A779A0_CLK_DSI), DEF_MOD("fcpvd0", 508, R8A779A0_CLK_S3D1), DEF_MOD("fcpvd1", 509, R8A779A0_CLK_S3D1), DEF_MOD("hscif0", 514, R8A779A0_CLK_S1D2), -- 2.30.2