From patchwork Sat Oct 19 08:47:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu X-Patchwork-Id: 13842627 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C7336D3C902 for ; Sat, 19 Oct 2024 08:52:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=su/gA2vZm43OZPNrjqU3H6dnR7lMMIQDMznyw802HoA=; b=aTRA0rDqc/Q+tALfZA2NO7v/xF QEb+lkyvy4XCsC/q8AQIjtyS/MVAeMJ61qej2RydFAsEzqM03G/kxs9cf8dTd6cz4yvZ1hXRmV+Jl SK4rqKfRdss5dTZfBOAsvpSSnCv1uCBuW+mVX5/luX95qzokPvYiUng6CXe6sioa+Tl8qHJh/cU7X 1L719n+2pzWgzG/e5h0OqtdHR9h3tOBSNJnkxVm3g3xIpHAfAN14+RmxwHrv3bo1jSZ903LAiin15 SpDKXKnuai2TPzF3HdDTUdbIHEilTT+7XV2FHV/s2NxPG9UeSIqHE3paYCawWddY3QY9x6ghXqbCR B58GsAIg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t25CW-00000002tba-0Z5k; Sat, 19 Oct 2024 08:52:44 +0000 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t257r-00000002s1o-2FMx for linux-arm-kernel@lists.infradead.org; Sat, 19 Oct 2024 08:47:56 +0000 Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-43162cf1eaaso16525925e9.0 for ; Sat, 19 Oct 2024 01:47:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1729327673; x=1729932473; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=su/gA2vZm43OZPNrjqU3H6dnR7lMMIQDMznyw802HoA=; b=K4S67YZMDwoyfp1SucYKrTA8+lcRZnPS9OO10QVm8zkWE1wZF73DpUjjYzuuI1D+b8 Dmk6uuraVw44hI4lgONXUHQrKpgeAElwCnIn/HI5CWOMrTba08uCrGs910YPJFoVOEnT p0IO9duout9fd6Rrb+aDtUXbATPf2tlz/SEeiNcMDlMBIWOL671uU6/7ZABzxNHa9BNJ WkyCes8IWF7flmyzKoBiKJsVnsbN/ApYF4ozvE+zPZBwG0lVg+tbiEZ1fFxEs7izGFpq 6BYKFshEItID8UWJZfBjw2Bk54rxu2V4a4gmWmnPYFHF9f9EBYguwnu3ZuL+lwK+Qtho yMfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729327673; x=1729932473; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=su/gA2vZm43OZPNrjqU3H6dnR7lMMIQDMznyw802HoA=; b=M4f80BKKyeQHIBThyY7ed+qp0eir+zfOMPKZonIHetlZkDBJ946Xyw1ccgjqa7OhsH kck0LTVksMbKZq21OcuOkvt+zqISx7K2qGjMYfWO7w6BV/73vGoACniavoq2JtWQfpcr d52VWV1A3oXNDK8KRx8QlryDkLF11AwqAwBPwNuAjYgNPF6lmUrsSa6jwKrMiYmlhIff xTxT+SDjKLCephR5wtP/cGKBTL2XVNuhxgIeYyHIEmpfcnkoq+HC4zpP0+KZjPxP4bUD gUedZKJT/jeyJpkXTdWDO+xBEWNtZoQ1qIR6owvfxt0fDuOwS9m11uzwTC5MtfULpXeU 3bzQ== X-Forwarded-Encrypted: i=1; AJvYcCV9LAIGG0+RfJY9+DNyqO4Ik3fPvHce8OwoP+neb1tNC4WNwoJ1WBvhC6T6L9BGdVIO2DRbDn4uuLPtbXA6Ovjv@lists.infradead.org X-Gm-Message-State: AOJu0YzXSAFYOwPwfCcAtEUogzSGSOor/0owD1jJdplHvAIx+49xIj3U HxObBuZtIAuyFrA6iRXpQCtC8/NB9ti06NJnwmiOzi5lURugmReNm0ptreSX4lI= X-Google-Smtp-Source: AGHT+IG77C1AJn6G4KHr/98gwp5TO2FyaZmbbg9kHUJJo7AxaVAri13cwdvUg7gZGWh/UvC983QSQg== X-Received: by 2002:a05:600c:12c9:b0:431:555d:e184 with SMTP id 5b1f17b1804b1-43161686b11mr51728705e9.25.1729327672912; Sat, 19 Oct 2024 01:47:52 -0700 (PDT) Received: from claudiu-X670E-Pro-RS.. ([82.78.167.23]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-37ecf0eccbasm3898731f8f.81.2024.10.19.01.47.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 19 Oct 2024 01:47:52 -0700 (PDT) From: Claudiu X-Google-Original-From: Claudiu To: geert+renesas@glider.be, mturquette@baylibre.com, sboyd@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, alexandre.belloni@bootlin.com, magnus.damm@gmail.com, p.zabel@pengutronix.de Cc: linux-renesas-soc@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rtc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, claudiu.beznea@tuxon.dev, Claudiu Beznea Subject: [PATCH v4 02/12] clk: renesas: r9a08g045: Add power domain for RTC Date: Sat, 19 Oct 2024 11:47:28 +0300 Message-Id: <20241019084738.3370489-3-claudiu.beznea.uj@bp.renesas.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20241019084738.3370489-1-claudiu.beznea.uj@bp.renesas.com> References: <20241019084738.3370489-1-claudiu.beznea.uj@bp.renesas.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241019_014755_604369_5502FCA4 X-CRM114-Status: GOOD ( 12.09 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Claudiu Beznea The RTC and VBATTB don't share the MSTOP control bit (but only the bus clock and the reset signal). As the MSTOP control is modeled though power domains add power domain support for the RTC device available on the Renesas RZ/G3S SoC. Signed-off-by: Claudiu Beznea Reviewed-by: Geert Uytterhoeven --- Changes in v4: - none; this patch is new drivers/clk/renesas/r9a08g045-cpg.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/clk/renesas/r9a08g045-cpg.c b/drivers/clk/renesas/r9a08g045-cpg.c index 213499fc8fb5..97ade53f79c3 100644 --- a/drivers/clk/renesas/r9a08g045-cpg.c +++ b/drivers/clk/renesas/r9a08g045-cpg.c @@ -304,6 +304,9 @@ static const struct rzg2l_cpg_pm_domain_init_data r9a08g045_pm_domains[] = { DEF_PD("vbat", R9A08G045_PD_VBAT, DEF_REG_CONF(CPG_BUS_MCPU3_MSTOP, BIT(8)), RZG2L_PD_F_ALWAYS_ON), + DEF_PD("rtc", R9A08G045_PD_RTC, + DEF_REG_CONF(CPG_BUS_MCPU3_MSTOP, BIT(7)), + RZG2L_PD_F_NONE), }; const struct rzg2l_cpg_info r9a08g045_cpg_info = {