Message ID | 20240208124300.2740313-10-claudiu.beznea.uj@bp.renesas.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-58081-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp1454773dyd; Sat, 10 Feb 2024 05:05:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IG1Yma49WmN7T9+8x8B1pMr/+1eHzyzqwQwI3UXAO02jwLaaZvPhMnWNYpOCqaS9iEh92sL X-Received: by 2002:a05:6808:2002:b0:3be:d941:621b with SMTP id q2-20020a056808200200b003bed941621bmr2409653oiw.26.1707570336290; Sat, 10 Feb 2024 05:05:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707570336; cv=pass; d=google.com; s=arc-20160816; b=YQlVzqBOQ9g+s462vu/fq2ZfhEs4jEqekeY5/8BUNBvPbxgIOgcedt9vEPXzn7yDaU dIg+Y2C9CHeB0dAudjxv9LG/8nUCEg0kOgZEJ9IUaE/79fx8S2apZ3F/xNcAy8B0LlmH SLehIq5QfO73NJiuvXKnhD0UfABqYtmzgVDfkgoYF5wd3LLclUPR4jHYQDkCICcA+Mtg dh8nNR3k1vnUpNu9HBXJOLf+MRBPovvdhBiYDjvdgiFYZhw4q6PHOF7owFWQDRI8DvoC XTATPNu1NaU2E8l8RQt2CDwgX9Q0XhtHcFRLBkR1XUEKrZnMr2jTSZWQRFg2+Ow4PgG/ VbYA== 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=oM9XPRWyZyQTpDxwqoOKeZPHvqIal+M05hNhd5ZULcI=; fh=o15yuXCR7wyDVXxB9qC5/P3AqXBp36Y9keYoh+vOa0k=; b=X20ioraD/nP3rf1TinIb5O4rPl0BS+j3/vMAJHgtjuOL6DvGrBVfnsgWtk0o8jCHf5 ZUOEMSH8fWFgDgxhtyCl1/yILjz+RckABZQ2RWhaVFDw3aLP0Z8EDx1B1Tet1j9zlA1c Bf3NOVI+Wv9qcrOSecJnTk/XFPxjvHvQhk7evRVEX5jOJyrkJz9k9XxintddmTajJLDn 5mLm/rNgOA1gf+osVJXg20ClH3CkWx9QQOHNY4pSjrmksugAOraGs2pWrpkKhe1IGi2d g8Ix95SqNkeOjuEJMuJ3JiranXKG39mMavOtmIZj8tbLT8ryCqE8JEaDP2ccu+6sjim6 ZxfA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=AmjGwtxG; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-58081-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58081-ouuuleilei=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCV1Vptk8d+dV0Rm/31B7Cv7dihvXooDmhKtwiPCOxB9SEUObcjZob/S/wBeDtnByalbtYpPOAnHf2oEmmmOT8pdvJ9LjQ== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id fs12-20020a056130198c00b007d6b4578b03si584767uab.149.2024.02.10.05.05.36 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Feb 2024 05:05:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-58081-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=AmjGwtxG; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-58081-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58081-ouuuleilei=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 7680A1C27D4A for <ouuuleilei@gmail.com>; Thu, 8 Feb 2024 12:46:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1EBD47B3EB; Thu, 8 Feb 2024 12:44:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b="AmjGwtxG" Received: from mail-wm1-f54.google.com (mail-wm1-f54.google.com [209.85.128.54]) (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 133FC7AE52 for <linux-kernel@vger.kernel.org>; Thu, 8 Feb 2024 12:44:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.54 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707396246; cv=none; b=LHjSCLR9u3X//7gTc3+Qma7cdBpUzAV2s0GNHlxgUutKeZdATKXSgguDooxj4FDJKntDcUw9Bp+dRcEGU9crHy7mMC261p2Bhu59DxKiWwnPv7lnCeQV9SM+r1Vug2Z7hZA59wk0LEywusRHr7Je1aF1Nwv982FqJL0i5VdJgo4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707396246; c=relaxed/simple; bh=lPCpnHc2/bWjDH5RrgLUkYeG9HrcppQamRfQRheI0hU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=H9k3IKi16wm9QkfCiZi1g8EyNqZL9VqwEUogEabi0gvikCGT6+T3z9kyXdONto5MM9YUeh36oCzWY/54JLpOQbKxn6ngoHUgF0ijm9n2SQrhnoWNCHgg3nCSLa2LiqJWDXbHDeWrrtPeqOThzgDjCc/DmF3eEa6eV7B+eLVVw4Y= 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=AmjGwtxG; arc=none smtp.client-ip=209.85.128.54 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-f54.google.com with SMTP id 5b1f17b1804b1-410219f18f9so10050075e9.1 for <linux-kernel@vger.kernel.org>; Thu, 08 Feb 2024 04:44:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1707396243; x=1708001043; 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=oM9XPRWyZyQTpDxwqoOKeZPHvqIal+M05hNhd5ZULcI=; b=AmjGwtxGaliA9qM0cg1k7pRfWThYX/+jHPAj4BKwvcMQhW56a1zVHH82nUVy2B7Pu9 eRiXDTSAGE8mfz2t7taJmPoPtBD/luumoN8FOYnO8NZXNnFqP94AUFxbWBoH9i/ExJ0e oenvvS2XN65pbxv2ENtgSDhqt9wQ55VrbR7VY0LdLa3V7/7VFrwjM7TWamH8oNk7mWuk vqsEctmxZjoKrovZO/9/kMrz5j/lAGa24ZBSIAhORN41azzDdF4KZZnaHT8Dw4dUGbAb bD5cwtChhkHmLSQDqiJgHZFBybQOQifnIFhYctMeLqCCgOE1j+pjqGFRehJY5TT1vKZ0 OBuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707396243; x=1708001043; 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=oM9XPRWyZyQTpDxwqoOKeZPHvqIal+M05hNhd5ZULcI=; b=Q9TO8NHXn1GBJ8qqiSNkRnJWTBToOZ74P0FcydZajIrR1izUguFUWwL+m036ALpuXj ENO7CULe/TNhJeOVnwPHiKWMnBhKp1k2t+9ZvoNWKcMD7LT5DdUDkl1gss8WtLi0yMWp kEh6DVZ7NwrtAGXTxbEij9ncCpLXfxjb7OnSY4YiIEwIjJpXvRLasijrTZ0dQIEKeMn3 +M7UyH2RQD0WrjWr0r4GGbgAuU+yMJo9gJAddJj5r8C7zdlxurC4pP+XFcamrt9wvlwQ ZsBuOHkm3D97IMGAj7G8Hdmd8zaJ4DUWUlhY0llsIYmYnyZN9Bt1Wiwm0vplefLlzksf EQbg== X-Gm-Message-State: AOJu0YwT45JYH6RrlWFZ/iP9jSnmBgYxTSivpTuK1WO+RK+ZpXzTETbu oAyvGDfzN1XgGcr8ReF3LlLXR0jBQVinkYEgF8dvVmS7eL5dHZEonECAg2Ucd0Y= X-Received: by 2002:a05:600c:4c9a:b0:40f:de44:5164 with SMTP id g26-20020a05600c4c9a00b0040fde445164mr6664373wmp.17.1707396243513; Thu, 08 Feb 2024 04:44:03 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCVEJWtOiAz9ykuqFwwxiz+go8BAqNKUg3++9Klovreyfajle+cQd76Qys5aUi/DKiFBZSpGFpdBkG3GqXpx5pYDW6ArnMr6o7FnO3bC/qwBd3T9rbxFnEDB5d4C9gGQ7Tp2heQXgostbRuWS3xWyiJSF2EYSizkPqp353/6ADLThdX60eRDJ3WS0l4tXyHPeciCGVNwwP847FqjLQDCeh0zQIb1c70ahRqDuV1LLaB7eFHNhqrwNMtuVhCIq4Mz3IKK8LRlZw7E5IMnHupvf1TYKTqPNNtPVzrZCqVKXzuBn9cImYNOqG56lszGRRMWBt4hupTIsxPlux2GEec8DpeFgDhG63Bk3vZ9bOG7S1xux2tfJihirISSOG5E81MisjvcTZ3N88wDm0ktNvHN1fDMwRdd0qR4G+zbC6oEtXLRUAcI8PVEjHXuqQpgyMqMYxp6zZ0vpJPP78mjdJqPVhCwOStAIqpqkrlrKFXtPWlRKt7NliSml0BH1sI+7nv1l0hSGDqHwKfz2kReEJFWQv59eKSaSY96K0AszHpLsihOa7csjlsfQTIi5m7KdLZTVV8= Received: from claudiu-X670E-Pro-RS.. ([82.78.167.45]) by smtp.gmail.com with ESMTPSA id o13-20020a05600c4fcd00b0041047382b76sm790244wmq.37.2024.02.08.04.44.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 04:44:03 -0800 (PST) From: Claudiu <claudiu.beznea@tuxon.dev> X-Google-Original-From: Claudiu <claudiu.beznea.uj@bp.renesas.com> To: geert+renesas@glider.be, mturquette@baylibre.com, sboyd@kernel.org, robh@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, magnus.damm@gmail.com, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu Cc: linux-renesas-soc@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, claudiu.beznea@tuxon.dev, Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> Subject: [PATCH 09/17] clk: renesas: r9a07g044: Add initial support for power domains Date: Thu, 8 Feb 2024 14:42:52 +0200 Message-Id: <20240208124300.2740313-10-claudiu.beznea.uj@bp.renesas.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240208124300.2740313-1-claudiu.beznea.uj@bp.renesas.com> References: <20240208124300.2740313-1-claudiu.beznea.uj@bp.renesas.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790517273430573821 X-GMAIL-MSGID: 1790517273430573821 |
Series |
clk: renesas: rzg2l: Add support for power domains
|
|
Commit Message
claudiu beznea
Feb. 8, 2024, 12:42 p.m. UTC
From: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> Instantiate always-on power domain for R9A07G044 SoC. At the moment, all the IPs are part of this domain. Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> --- drivers/clk/renesas/r9a07g044-cpg.c | 13 +++++++++++++ 1 file changed, 13 insertions(+)
Comments
Hi Claudiu, On Thu, Feb 8, 2024 at 1:44 PM Claudiu <claudiu.beznea@tuxon.dev> wrote: > From: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> > > Instantiate always-on power domain for R9A07G044 SoC. At the moment, all > the IPs are part of this domain. > > Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> As not all IPs are part of the always-on domain, I'd rather defer this until all domains are handled in the driver. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68korg In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
diff --git a/drivers/clk/renesas/r9a07g044-cpg.c b/drivers/clk/renesas/r9a07g044-cpg.c index 1047278c9079..3755e506fc65 100644 --- a/drivers/clk/renesas/r9a07g044-cpg.c +++ b/drivers/clk/renesas/r9a07g044-cpg.c @@ -443,6 +443,11 @@ static const unsigned int r9a07g044_no_pm_mod_clks[] = { MOD_CLK_BASE + R9A07G044_CRU_VCLK, }; +static const struct rzg2l_cpg_pm_domain_init_data r9a07g044_pm_domains[] = { + DEF_PD("always-on", R9A07G044_PD_ALWAYS_ON, 0, 0, + RZG2L_PD_F_PARENT | RZG2L_PD_F_ALWAYS_ON), +}; + #ifdef CONFIG_CLK_R9A07G044 const struct rzg2l_cpg_info r9a07g044_cpg_info = { /* Core Clocks */ @@ -468,6 +473,10 @@ const struct rzg2l_cpg_info r9a07g044_cpg_info = { .resets = r9a07g044_resets, .num_resets = R9A07G044_TSU_PRESETN + 1, /* Last reset ID + 1 */ + /* PM domains */ + .pm_domains = r9a07g044_pm_domains, + .num_pm_domains = ARRAY_SIZE(r9a07g044_pm_domains), + .has_clk_mon_regs = true, }; #endif @@ -497,6 +506,10 @@ const struct rzg2l_cpg_info r9a07g054_cpg_info = { .resets = r9a07g044_resets, .num_resets = R9A07G054_STPAI_ARESETN + 1, /* Last reset ID + 1 */ + /* PM domains */ + .pm_domains = r9a07g044_pm_domains, + .num_pm_domains = ARRAY_SIZE(r9a07g044_pm_domains), + .has_clk_mon_regs = true, }; #endif