Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6960622rwb; Tue, 22 Nov 2022 23:25:25 -0800 (PST) X-Google-Smtp-Source: AA0mqf4lPWanDMW9YFIDD2kU6oWadNVgZWppbZsDMnvRKeIn7GTBtk0L19z8JnvjlNY8+vIO68LZ X-Received: by 2002:aa7:81d8:0:b0:561:c694:80b with SMTP id c24-20020aa781d8000000b00561c694080bmr8513518pfn.47.1669188325134; Tue, 22 Nov 2022 23:25:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669188325; cv=none; d=google.com; s=arc-20160816; b=O3cdUZUZnWDRxOrpnDV9PXlsNUmQHKfs28izhw/18/V8Pt/tXPSjG2PlR6KwfFgF2i lg1jh39bpzfAF8GaI1nPKvdvZX541nv/mwkRltiLs1Xgv0P6wg2R4VYX/yxbPMqIggND QJ50cKKmDX4nAjRzdkn8sIR++Cyaa6qg8A6ZxIUu3W3z7vuRdj/DlThncuosa8Keu4uE NqEWaIb0EnKWY/g9WM3CCaX50/Y921/yVFJiHO+4wSE8UexTUmuKOS3nbE3PM+aDC1iL ta5/GUFAjk+nvkHGtX58nDsj0VGtkuqH1CCiG/hyMMqTnKIsc7ZCEs/7wdn8DaGoH7gt 6tmQ== 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=zT/VZeKBxUwW5haeIJ4R9N1sbSXa8ClFG9rrxGMOnes=; b=fh6OCxfWOdpglDZb/rqNE89hcUb5Vqk4NSDpka5HKQjuv/5kqReYUt7UwSKcktLw1C 1ffWZo79IPfu70CEzgCyCcvz5HAy5bwOecFRrokWZ8CaW/GC/GuNj+taQGuvBo8wcC9o jfmSQy+N19/CpTFljhCghmnbtzB/kiZ7fmR9n92n5dvk+Z2LFApU62wY7W6hk8PU2jA5 UTHOZpl2M8gQIFaoVxvJIZuIQwh0yV88UIJ822FMX3FEbSdSTlQNeJ6fTuC0kVvQ0Pqr WI0eKbcf4C8Hkuy1o3wJs29U0TL8nnS2CfLZTdomqX0os0RoHdStq7DlVW2WA2bU69af em0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=FEX4oTGs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 16-20020a17090a0b9000b00218cf92fc62si932310pjr.89.2022.11.22.23.25.12; Tue, 22 Nov 2022 23:25:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=FEX4oTGs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236225AbiKWHAh (ORCPT + 90 others); Wed, 23 Nov 2022 02:00:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54320 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236189AbiKWHAa (ORCPT ); Wed, 23 Nov 2022 02:00:30 -0500 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C3C882BC0; Tue, 22 Nov 2022 23:00:29 -0800 (PST) Received: from desky.lan (91-154-32-225.elisa-laajakaista.fi [91.154.32.225]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 81584FEF; Wed, 23 Nov 2022 08:00:26 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1669186827; bh=hyKIAc12RaYs4yCe88LmLek9pzeApWhl2iL75JyuReY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=FEX4oTGsugTncQYkV4+IB/zkl1cR1LnWsPci48j8hcgl657PRQOTXfRhzGUrAE4iI +cQTShnNJQXh/Whb59yaFHmx6w7OZacNhyhTLSflNZ+zCqvKg/FF41Zzx74bNXmdUo e5+HSCW5DHC3MTf16C5s/Q6YHc/b/WMbF2ovaGRs= From: Tomi Valkeinen To: Laurent Pinchart , Kieran Bingham , Rob Herring , Krzysztof Kozlowski , Geert Uytterhoeven , Magnus Damm , dri-devel@lists.freedesktop.org, linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Andrzej Hajda , Neil Armstrong , Robert Foss , Jonas Karlman , Jernej Skrabec , Tomi Valkeinen Subject: [PATCH v2 3/7] clk: renesas: r8a779g0: Add display related clocks Date: Wed, 23 Nov 2022 08:59:42 +0200 Message-Id: <20221123065946.40415-4-tomi.valkeinen+renesas@ideasonboard.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221123065946.40415-1-tomi.valkeinen+renesas@ideasonboard.com> References: <20221123065946.40415-1-tomi.valkeinen+renesas@ideasonboard.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add clocks related to display which are needed to get the DSI output working. Extracted from Renesas BSP tree. Signed-off-by: Tomi Valkeinen Reviewed-by: Kieran Bingham Reviewed-by: Laurent Pinchart --- drivers/clk/renesas/r8a779g0-cpg-mssr.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/drivers/clk/renesas/r8a779g0-cpg-mssr.c b/drivers/clk/renesas/r8a779g0-cpg-mssr.c index c6337a408e5e..6937f1aee677 100644 --- a/drivers/clk/renesas/r8a779g0-cpg-mssr.c +++ b/drivers/clk/renesas/r8a779g0-cpg-mssr.c @@ -145,6 +145,8 @@ static const struct cpg_core_clk r8a779g0_core_clks[] __initconst = { DEF_FIXED("viobusd2", R8A779G0_CLK_VIOBUSD2, CLK_VIO, 2, 1), DEF_FIXED("vcbus", R8A779G0_CLK_VCBUS, CLK_VC, 1, 1), DEF_FIXED("vcbusd2", R8A779G0_CLK_VCBUSD2, CLK_VC, 2, 1), + DEF_FIXED("dsiref", R8A779G0_CLK_DSIREF, CLK_PLL5_DIV4, 48, 1), + DEF_DIV6P1("dsiext", R8A779G0_CLK_DSIEXT, CLK_PLL5_DIV4, 0x884), DEF_GEN4_SDH("sd0h", R8A779G0_CLK_SD0H, CLK_SDSRC, 0x870), DEF_GEN4_SD("sd0", R8A779G0_CLK_SD0, R8A779G0_CLK_SD0H, 0x870), @@ -161,6 +163,14 @@ static const struct mssr_mod_clk r8a779g0_mod_clks[] __initconst = { DEF_MOD("avb0", 211, R8A779G0_CLK_S0D4_HSC), DEF_MOD("avb1", 212, R8A779G0_CLK_S0D4_HSC), DEF_MOD("avb2", 213, R8A779G0_CLK_S0D4_HSC), + + DEF_MOD("dis0", 411, R8A779G0_CLK_S0D3), + DEF_MOD("dsitxlink0", 415, R8A779G0_CLK_DSIREF), + DEF_MOD("dsitxlink1", 416, R8A779G0_CLK_DSIREF), + + DEF_MOD("fcpvd0", 508, R8A779G0_CLK_S0D3), + DEF_MOD("fcpvd1", 509, R8A779G0_CLK_S0D3), + DEF_MOD("hscif0", 514, R8A779G0_CLK_SASYNCPERD1), DEF_MOD("hscif1", 515, R8A779G0_CLK_SASYNCPERD1), DEF_MOD("hscif2", 516, R8A779G0_CLK_SASYNCPERD1), @@ -193,6 +203,10 @@ static const struct mssr_mod_clk r8a779g0_mod_clks[] __initconst = { DEF_MOD("tmu3", 716, R8A779G0_CLK_SASYNCPERD2), DEF_MOD("tmu4", 717, R8A779G0_CLK_SASYNCPERD2), DEF_MOD("tpu0", 718, R8A779G0_CLK_SASYNCPERD4), + + DEF_MOD("vspd0", 830, R8A779G0_CLK_S0D1_VIO), + DEF_MOD("vspd1", 831, R8A779G0_CLK_S0D1_VIO), + DEF_MOD("wdt1:wdt0", 907, R8A779G0_CLK_R), DEF_MOD("cmt0", 910, R8A779G0_CLK_R), DEF_MOD("cmt1", 911, R8A779G0_CLK_R), -- 2.34.1