Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp1251081lqs; Sat, 15 Jun 2024 00:32:10 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXdpfkxzrn2xQhK21R2BXcQmxPaer4ob+jM9IR2ezIUb/sx2D4QWmwl99V399klpdjVIl2flG76s9xIa7hKhUlrNzOMAS3WqRwQmq1jNA== X-Google-Smtp-Source: AGHT+IGR1vL5nUh1enlfAGkttr8BhTpatJ7rEUASzmwbQTTZQ5iXfuG9ILVRvEwacxjz2xzAxv90 X-Received: by 2002:a05:6a20:6a28:b0:1b6:c824:ead3 with SMTP id adf61e73a8af0-1b8befd957emr12499286637.9.1718436730044; Sat, 15 Jun 2024 00:32:10 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718436730; cv=pass; d=google.com; s=arc-20160816; b=b2CpDAXeDpAuS405fq2EceyomIuPpwt+oRi1Lm86Umx8bj7nmHMXSVD40gNRNjlX4B K5+E4WXOOh2vmmwNqRsRqQepaOrLyjFRqeUdCcH/CWIxjtcTC05gECYQyncVNIIcdeFb Vf2M5gX0AQO3KDBhYh8LLJh6LvoTEdKgDfXfL0bkDCImYOBL3mWIT7JyZLyZHbTaeT41 uJPsn6fcbyBWeFyIdH4MzLGD6DexYCpylsmi9HS4yQSUFLlfViOhwMpDCl//OLfijWdN vxh3HRJgDUq58ezQAm8VzRssM0q0jnn6EP2fzY6S8y4W7l4V0txuxFFQOMLX0T58PpiB S0vA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=KasawgVYyRihhmap9sWeLzVl10rVjnzHePrPG2MZMwM=; fh=Dur5FJAGGDTLrArnzLYAKu1YQp7UZKFvQ+X3lIl4uzU=; b=AeWtYKeuIX1pTQS6z7yMeMaTMzhLha38nK8bTK3XOS2iDIzaxcYgrEybVLgjHjQKmm uAuq+wOIDZRk260eEGJ6eFrSQ5MyBxnwDzvx/nJYNeuIPyz7s/jCzQ41nOXwiSrAXl2s EU3Yokm5CV1sdXr2zcI8rBiBd0UsGEcZs6+19KgTbH9nQE3AiU9pBK/LO6+fhz3a0ONS oapaForTANK9s9/Avvo+dR+sNAnooXnpat9+2+v3wtADZKTAW7Egff80bfaliwjVDJCi yg+8pNxYoaKajINnYnN1BuQVL3+UJMl2gfthuB/Cfp91uILJviZ3Bf52MV+KFcHDCxM7 v57A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=nC8TDRst; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-214432-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214432-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6fee3108bc6si5092572a12.259.2024.06.15.00.32.09 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Jun 2024 00:32:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-214432-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=nC8TDRst; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-214432-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-214432-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 9A501B234D5 for ; Fri, 14 Jun 2024 07:20:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 746D1148FE0; Fri, 14 Jun 2024 07:19:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b="nC8TDRst" Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EEA7E148849 for ; Fri, 14 Jun 2024 07:19:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718349594; cv=none; b=psEzyCY09ufXrTFTOkAmZMv4kB+4B29g5+MYyYvbYJ3FsnFOYsDXV5HYySKrkIsfnwZkw6qAuj2oW88jvU3jqF4EqFZUxlZv0RzqEALWIt2JJsU47K5kQSg+rumr+tDMwak/4BwwrWAELg7kqvpdns65hJhqUWPH+j1vF+qx2t4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718349594; c=relaxed/simple; bh=Zhy743BbEYY+SI+Tb2YTPmBo2LZvD7uiPniA/XwmwtI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Gt1Jtvu/mHE2qb6liIVmvVk4rvbPtfUHf9CZWxSYd9Eb8qgC9ihc+7wc7MpeOMLNQ4ksEBfFBckI50ruBuPrDwshzJrjePJcqHsdUGsrW4EX1WzTJi/Vu6urHsPMmWhH0vtNm+4jvk0DhenOzr6LbIVL9GaVHHrkbpTIiyJDhKQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tuxon.dev; spf=pass smtp.mailfrom=tuxon.dev; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b=nC8TDRst; arc=none smtp.client-ip=209.85.128.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tuxon.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tuxon.dev Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-42172ed3597so11473815e9.0 for ; Fri, 14 Jun 2024 00:19:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1718349591; x=1718954391; darn=vger.kernel.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=KasawgVYyRihhmap9sWeLzVl10rVjnzHePrPG2MZMwM=; b=nC8TDRstr7n+ZhdNTyRdDgG3lWcL6+Nl/hAgF7OToplEdgMHJoAY83gAnsCBkyy8i2 OdF8dE4BP3YpRWOHexq7h9kS6CFd6/PijuryXwKYvRK6fTZ7s+tjkZt9NmD3IkF55W0k ktwv+9ZMiPsCYM8xH3i6NZmCY8yRK9BC23B+ORTl6SmfY5kNMg3hh81noO3Ro54QH5+a 4bwXjVcn+SFgKSy0tT0BLWQdYcj9/BAXyChpoCLJ9UU+Q1UGAhb0GP2Ge0cNy1wZ5nVe u3lUghWCK8rVS2WwpEWROFAgvGc/QUzOeGZPvRO77LI14TfVc/DKWDnLqV3w61KHAhe2 mFIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718349591; x=1718954391; 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=KasawgVYyRihhmap9sWeLzVl10rVjnzHePrPG2MZMwM=; b=eVw/0IZ4BhSjB43X3+7RrMP4R0WXHMfz7/Y2V6UrMgypdNmNoGpKwJqCNrDMkM5Nw1 ZhOgbUCmWg1OC/6wbAEozfb9idLHAXdQbviHzohWLpBaDY/UXnwSZq0IggRyHzEqMT0a PuKJHuPd/h6YsIDuCty1aluG7fSDklO3ZeIv9cFnq9khWxBd1eVAxa8ya23V+QnhxG8p WhHRvcWHIkqk06umImaklpvtrtLCf/ZtezsTOGhbz0n7PhoXef9N/oAgAuUZWMLPUf27 fWi63fcw5QtDF+TY11HreVz485PMcUx6GDhD3ILDuuFSGKjdrDWD4dv8OdW1i/2TD4sL 95Qw== X-Forwarded-Encrypted: i=1; AJvYcCWQT344Wdigu+A8LTYngZMjHSTnkV6Qo5AvjfWbqHxtWTzqZlpD/ybxDPbahbFFY0xgwo8smnZ/vHralkzqLfkBb/y5Mi6xY8AUKo5e X-Gm-Message-State: AOJu0Yzze6iI1N48kdTym9wCSYEii8ywKqzAzrlbxDfEmKsLzgu2Kmx7 c0kD6HS704nHUOtN/Cv4o8irpjrWVlT7TOl/iV6BEx7CAT4siVDW1UPI/t5yXUg= X-Received: by 2002:a05:600c:19cf:b0:421:7ab8:59c with SMTP id 5b1f17b1804b1-42304825ce7mr19505375e9.10.1718349591097; Fri, 14 Jun 2024 00:19:51 -0700 (PDT) Received: from claudiu-X670E-Pro-RS.. ([82.78.167.189]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42286eef9eesm87272555e9.9.2024.06.14.00.19.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 00:19:50 -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, lee@kernel.org, alexandre.belloni@bootlin.com, magnus.damm@gmail.com 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 01/12] clk: renesas: r9a08g045: Add clock, reset and power domain support for the VBATTB IP Date: Fri, 14 Jun 2024 10:19:21 +0300 Message-Id: <20240614071932.1014067-2-claudiu.beznea.uj@bp.renesas.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240614071932.1014067-1-claudiu.beznea.uj@bp.renesas.com> References: <20240614071932.1014067-1-claudiu.beznea.uj@bp.renesas.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Claudiu Beznea The Renesas RZ/G3S SoC has an IP named Battery Backup Function (VBATTB) that generates the RTC clock. Add clock, reset and power domain support for it. Signed-off-by: Claudiu Beznea --- drivers/clk/renesas/r9a08g045-cpg.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/clk/renesas/r9a08g045-cpg.c b/drivers/clk/renesas/r9a08g045-cpg.c index b068733b145f..2ae97c29c377 100644 --- a/drivers/clk/renesas/r9a08g045-cpg.c +++ b/drivers/clk/renesas/r9a08g045-cpg.c @@ -215,6 +215,7 @@ static const struct rzg2l_mod_clk r9a08g045_mod_clks[] = { DEF_MOD("eth1_refclk", R9A08G045_ETH1_REFCLK, R9A08G045_CLK_HP, 0x57c, 9), DEF_MOD("scif0_clk_pck", R9A08G045_SCIF0_CLK_PCK, R9A08G045_CLK_P0, 0x584, 0), DEF_MOD("gpio_hclk", R9A08G045_GPIO_HCLK, R9A08G045_OSCCLK, 0x598, 0), + DEF_MOD("vbat_bclk", R9A08G045_VBAT_BCLK, R9A08G045_OSCCLK, 0x614, 0), }; static const struct rzg2l_reset r9a08g045_resets[] = { @@ -231,6 +232,7 @@ static const struct rzg2l_reset r9a08g045_resets[] = { DEF_RST(R9A08G045_GPIO_RSTN, 0x898, 0), DEF_RST(R9A08G045_GPIO_PORT_RESETN, 0x898, 1), DEF_RST(R9A08G045_GPIO_SPARE_RESETN, 0x898, 2), + DEF_RST(R9A08G045_VBAT_BRESETN, 0x914, 0), }; static const unsigned int r9a08g045_crit_mod_clks[] __initconst = { @@ -238,6 +240,7 @@ static const unsigned int r9a08g045_crit_mod_clks[] __initconst = { MOD_CLK_BASE + R9A08G045_IA55_PCLK, MOD_CLK_BASE + R9A08G045_IA55_CLK, MOD_CLK_BASE + R9A08G045_DMAC_ACLK, + MOD_CLK_BASE + R9A08G045_VBAT_BCLK, }; static const struct rzg2l_cpg_pm_domain_init_data r9a08g045_pm_domains[] = { @@ -275,6 +278,9 @@ static const struct rzg2l_cpg_pm_domain_init_data r9a08g045_pm_domains[] = { DEF_PD("scif0", R9A08G045_PD_SCIF0, DEF_REG_CONF(CPG_BUS_MCPU2_MSTOP, BIT(1)), RZG2L_PD_F_NONE), + DEF_PD("vbat", R9A08G045_PD_VBAT, + DEF_REG_CONF(CPG_BUS_MCPU3_MSTOP, BIT(8)), + RZG2L_PD_F_ALWAYS_ON), }; const struct rzg2l_cpg_info r9a08g045_cpg_info = { -- 2.39.2