Message ID | 20240208124300.2740313-9-claudiu.beznea.uj@bp.renesas.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-58080-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp1431373dyd; Sat, 10 Feb 2024 04:09:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IHXL8CRHhpHzlvjVQh2NM+g06lnR21ggFPpMttjWlXV9KJuZacR9qY9TtBSWW0RIKpOLpwo X-Received: by 2002:a05:6a00:80d2:b0:6e0:9457:2924 with SMTP id ei18-20020a056a0080d200b006e094572924mr1724371pfb.9.1707566973546; Sat, 10 Feb 2024 04:09:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707566973; cv=pass; d=google.com; s=arc-20160816; b=Ds+3IkyroPVXErAH0PEQz2sw0W89Cw7uDvulF8xTkr3FuB74apE05N6t7MdeR8qGyF smNE4a95Gen0g2zDUayDkIBReAo+kPhXRk3wjYZ8s5EPqp1plf5Ibs7kcT7BJWJLTLw+ 0NoBMsDPTw+1eV4yCESewdMbaYSyel96Qok+VwlwAMK7KgUZy2ex4KG4/b6bh3feJVZ+ ounK9ad/dDD+1EHiWim2UEzEJ4wFzFuh3KLgOweZynyLu5NEBKnsXjNwAc8veBw4eOGx MXVdKH8WrTa9gHYoTkP9yO9Rvr3wog60rdievcW46iJba8I550UxMGV7ldYHCJKRK2c3 xr4A== 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=Nv9Z6nQcLOaMLoKcRVuDq7kdqWUsIytFPDBtdXgyc1s=; fh=DS2TMwleUdib4o9zrBezZdzWH9oExB+V1NQcZnCFk/Q=; b=dKTduAMSrvyHmN2RBdZqiEuCBTkxQsDBQfgc1UEUt4KHCCjORewz6wgAlxM+KLFJFL OSD7HzjICPM4EUh/FxMBR1F7IWt4vbotIRIes1f0A1aKkj3XTCLgseM4IDMIH3N844fd CVsg19iDrkRaCosJVMU2wr/YNumGbjn3vwSenjYWKtCvMW5c6Ca5OWNLT3ubiXX4LjMu cOl6T8tSFcztAwais/hjjTjUWLtIPq/ea56w8pjzT6QsLDIq/EwgwFXty1g53irb/LJG aVJfqsurlfINPrlnAbsD9VqFqWXP16QtAmJV/QmbcS/y0TBXLOkgaLSarE7I075UUh3z V36g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=FP9DzUmq; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-58080-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58080-ouuuleilei=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCXD51EU5trIqTl+R0y02QS8SKRNwbyRq/QGcyiunh0CkBYlR+R/sWQcrdcOuofkuRpoezAFqlCQ20SugDze8FPQDbPkXQ== Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id p14-20020a056a000b4e00b006e0533e7d64si2018965pfo.199.2024.02.10.04.09.33 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Feb 2024 04:09:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-58080-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=FP9DzUmq; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-58080-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58080-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 sy.mirrors.kernel.org (Postfix) with ESMTPS id CEA5FB24930 for <ouuuleilei@gmail.com>; Thu, 8 Feb 2024 12:46:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D22AD7B3ED; Thu, 8 Feb 2024 12:44:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b="FP9DzUmq" Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) (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 CC38079DBD for <linux-kernel@vger.kernel.org>; Thu, 8 Feb 2024 12:44:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707396244; cv=none; b=ZHdhnYHiZ6bdAXRAQm4fWPhVOcipHs1OMXPgngS7KNftfyW6eYTCYYv29w6/KQjV5z1jAVgcsaMxBy+j8cfSgR8uNDi/Pf1x2h8UVdqT/xNfX3//CHpZCfdd1tYlc8+KZhQn2ciQb1iT3yXMXCtGK6fgQcHyGRUTq2m6DiTOc9M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707396244; c=relaxed/simple; bh=+gSZowtOafOkFEg/8GzUB59ugQv6XER3KjvpNas12QQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=FcEk5CviQhYeVvII/O7YcEboKqUDQIXiuojZ0TiFZ7sp1m33fzHuK2vsb1MQxpP86k8oe0awWsb+6g8zOd8FWAOPb5QGdhjK7jXQN8mw6CkP+wTwBKlZ9Gi51SOK8pM0GtNk/ELw7Ne1HfFfxdHb3tVC3SUU726nZC3qGSI7BVU= 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=FP9DzUmq; arc=none smtp.client-ip=209.85.128.41 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-f41.google.com with SMTP id 5b1f17b1804b1-4101d4c5772so5148395e9.0 for <linux-kernel@vger.kernel.org>; Thu, 08 Feb 2024 04:44:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1707396241; x=1708001041; 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=Nv9Z6nQcLOaMLoKcRVuDq7kdqWUsIytFPDBtdXgyc1s=; b=FP9DzUmqXfFDC/9mImdmE/T1f02N2v/+m62ALpAo8VX/UTp8wPJWwH0ftFBUAq84pN eurLeXYnH1Sikq+JBKGnmnwMqSrKhTX2lB6PB6A68mnsIcMG1uS7YbAYmMX22uRUpb+Z WgnBVEFtZ8GJceeLfs2TH3GkkK/WVosbleFjOHdEdbHZVvM07wtQ0h4VobsIJdttYLau XFf17/0xB92XabnZ3qHidPgGTWjL5NHlrnr1psWhZBwUCXjWZeSnUrMt0LnkHT3XAbfk CmtDu/a8bffuZmaXr2T2N6do1bpIFW589cAd3yY8YJhKtO/Tsf/Je8P2kSYS3J3u22GG mH+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707396241; x=1708001041; 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=Nv9Z6nQcLOaMLoKcRVuDq7kdqWUsIytFPDBtdXgyc1s=; b=jemIJ6haRAqdObZZB1HeoM0g26wBUxcqc6GtDB/duzrNFcFZfGPpYctEnE5ocj4Zzd I32KJn3gK8t5TdQBHFMK0ZsvY9XqWNbQpEeh0Gcx4K10lVBEEIyTHNScVObW1V88rzzM /vKGW7Lh1hS1rcVFHRzCvd35Z4PZETue4jFcpDop05Z8GLYq7LFTw9cHyqen0mh2nuKz hQL7UP5BUmDFS5wZcbiZ5D4tprCQUgcCKC9NDFGHyEmITU8F7KPenPE2of7YkDA/XMko YKyciCH+NWT9urK+dt0Afgv+vy4ZS9Zfb9FevRM0WERkkC/IEevgzYFDiLNOZoETKbPZ TD5A== X-Gm-Message-State: AOJu0YzaYwWfaYMOMkYQ52HIg60+DTUoMY0BH+9p8QuhOhaIZJqjWh1k 0n7WJztosuK36PGpAhw5DJ0Wlsc5vAcfpnwl8p207OHHOLT3BIM1SRbsyiYJp0w= X-Received: by 2002:a05:600c:310f:b0:410:250b:23e9 with SMTP id g15-20020a05600c310f00b00410250b23e9mr2015911wmo.10.1707396241228; Thu, 08 Feb 2024 04:44:01 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCW2QgNkbPk5Pfnbvt3t9K4nhWX52PbIVQJ7YusgWGo/a3ebnA0tziphGQNx9jHLoW6hMMVCUT1/QEdegQQvR4Q7z1ZaVBDXEkm1Uk5zOoKaGbMlIHEyxA2ZCxPHtc98YFTSCUCo3WjYn41bDdzxnW72rZvkI5odMdlQdi+TwnGF8q7UZv1A3BucB2TiBsVYNHmDtbSe41Brz5dY66mFfGd1/AVCCtDBZAnrC+4XVMeDol6twNJ/AoIgx6OLJfw49yX82n5UbYorlkml0XJ9S+UadQXdILF83WibuRK2Krx3C8rJFXW+XBgpvf421nMy9LJTo7sUnX8/jnfLtkqgJzdnQ04bwvsBa4o38SgC9n2qZXrN1ZcYixYj7DekGjPuJ+5HZ7DnucGay0G2KjZs/GpojdJfT6gJhk7tlasGy6tnZ5kW7sxGsjwLfajgeHvqrX3XcVeMbnsWgzogBSjl4Pl/+ffp+H6HbmoVBVGsEJlemE0W0XJdEYj84DYlo82ErVnmgzQU5gbGiSzbXRcfMxc4fo9bulECVaiKwJZeSO+cQKEo0NR/vMUwcFq76KiTtpo= Received: from claudiu-X670E-Pro-RS.. ([82.78.167.45]) by smtp.gmail.com with ESMTPSA id o13-20020a05600c4fcd00b0041047382b76sm790244wmq.37.2024.02.08.04.43.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 04:44:00 -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 08/17] clk: renesas: r9a07g043: Add initial support for power domains Date: Thu, 8 Feb 2024 14:42:51 +0200 Message-Id: <20240208124300.2740313-9-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: 1790513746875977818 X-GMAIL-MSGID: 1790513746875977818 |
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 R9A07G043 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/r9a07g043-cpg.c | 9 +++++++++ 1 file changed, 9 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 R9A07G043 SoC. At the moment, all > the IPs are part of this domain. > > Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> Thanks for your patch! 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
On 16.02.2024 16:09, Geert Uytterhoeven wrote: > 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 R9A07G043 SoC. At the moment, all >> the IPs are part of this domain. >> >> Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> > > Thanks for your patch! > > As not all IPs are part of the always-on domain, I'd rather defer this > until all domains are handled in the driver. ok > > Gr{oetje,eeting}s, > > Geert > > > -- > Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org > > 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/r9a07g043-cpg.c b/drivers/clk/renesas/r9a07g043-cpg.c index acfb06cad441..3a7fddd1fa61 100644 --- a/drivers/clk/renesas/r9a07g043-cpg.c +++ b/drivers/clk/renesas/r9a07g043-cpg.c @@ -358,6 +358,11 @@ static const unsigned int r9a07g043_no_pm_mod_clks[] = { }; #endif +static const struct rzg2l_cpg_pm_domain_init_data r9a07g043_pm_domains[] = { + DEF_PD("always-on", R9A07G043_PD_ALWAYS_ON, 0, 0, + RZG2L_PD_F_PARENT | RZG2L_PD_F_ALWAYS_ON), +}; + const struct rzg2l_cpg_info r9a07g043_cpg_info = { /* Core Clocks */ .core_clks = r9a07g043_core_clks, @@ -392,5 +397,9 @@ const struct rzg2l_cpg_info r9a07g043_cpg_info = { .num_resets = R9A07G043_IAX45_RESETN + 1, /* Last reset ID + 1 */ #endif + /* Power domains. */ + .pm_domains = r9a07g043_pm_domains, + .num_pm_domains = ARRAY_SIZE(r9a07g043_pm_domains), + .has_clk_mon_regs = true, };