Message ID | 20240208124300.2740313-12-claudiu.beznea.uj@bp.renesas.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-58083-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp1437338dyd; Sat, 10 Feb 2024 04:24:29 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWIQnMah39mQB/LtSTblDx/wP4x1sqLpin7rK0sLJ7goEc4DFyt0YOY5X14Gowtq7p1OlJFS+I6TPHjRaT9LB8nXhYMsg== X-Google-Smtp-Source: AGHT+IGjTExBv7wiOOydOafggb/eQu/b0h7EyvyBaz8nFS6WJEoY+CShj/23qNIEFCLW4RtuMW0X X-Received: by 2002:a05:6a21:3418:b0:19e:488f:692d with SMTP id yn24-20020a056a21341800b0019e488f692dmr1580218pzb.7.1707567869618; Sat, 10 Feb 2024 04:24:29 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707567869; cv=pass; d=google.com; s=arc-20160816; b=zLhVgCij8yjMB8YhsR33H8N+fW5BEO2VWIpPcfXcn5RLr5D8hYNU5R6MEiUnUQfmYV rT5qjv1uUfZswohUUYRPT0VI69qSFY9oycB0ItblZecx4HV8bb4HmgYyRtIWK0p/uOgn lr0/+GqIyae2EBYyupUqwR3KFNGZw7gCTLT/cNFkjywVRB080xPneBO3y1jnMuajj0TG re3qBa6Mh3zhmZyK2RMacTLxJz3Hb9mdubteFyrLPY9umCW/iY3EuGqI7pzd2kEDhXsz Bd+huiTIDyN0GgRnpxaswOFjVE+sDJl1WXYDRLp4zx1ttWJFl8/2zhJIBEKa1YLkJ7iH mSAQ== 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=J9rrULVdpnnvZm24Vgw0eJNuzWphx5IveQzgYYWNlYM=; fh=0a9mp7xdQHrpfQmyKzo+ufIM/1x2GiF3Ez9KisCeo/I=; b=NXpOekJmUYf22nc5QrhZJs9SQ/xzBaDcO///RLqQ7aDvha8dwtNNk9kzZ4+a2a2Rks jyxla3dhVYrHRLY1aBPf0cYYBk1cukWfuTcYEUdA7WZ1tBXHZ5x6MKrKElpbZTbMa2GD hmW3vndNR2HnMy7q96NVcBme4QY4oewxrGn8vsuPUacF9xDs0kNvWDv/Pgds54dZUgEv KVvMC02HNUzlEs0Pa80fBCArlGUE+YHYMupuLEUwYlFG2Gcf2GXoPG6GmwfCZzFmVvnP hIIFAQx1N1JuDlw25oQh74OgNGl+g+VK7dWCJ8AhOtleqvARiwwsT/p/folbcSo3tX+0 nQVg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=jAY6oI03; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-58083-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58083-ouuuleilei=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCW7C+zWtzd9mZoL9s/v1MCfn2wC070aIwAcfhthjM46hAaNUIsc8x4Ma7dM67b4rMOANMYVYIEq/pL++iUDw4TGK8dolw== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id j63-20020a638042000000b005dc4fda246esi3285396pgd.615.2024.02.10.04.24.29 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Feb 2024 04:24:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-58083-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=jAY6oI03; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-58083-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58083-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 2937528C87B for <ouuuleilei@gmail.com>; Thu, 8 Feb 2024 12:47:22 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5A2D67D41A; Thu, 8 Feb 2024 12:44:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b="jAY6oI03" Received: from mail-lf1-f43.google.com (mail-lf1-f43.google.com [209.85.167.43]) (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 8EF667CF01 for <linux-kernel@vger.kernel.org>; Thu, 8 Feb 2024 12:44:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707396252; cv=none; b=L0sCdrukQsDbB7REyqi/2hH99MvpbPq+ZolH7n16d3fkGOTtPHwNyyvFzl1oAEJP4VaKR2t4c0xf7Ebb4ggIopwEhkSLujXmwN5wnWStKy/2L5XzZAl3cyBtA1wDgJAAtu/fqrGVFm4HdY0TrPBaZOS82g1Mfr8N6Mj9+bUowIk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707396252; c=relaxed/simple; bh=jsEAwZpGbEtnH+dB5wfZ/jH8rZrebmqfyuwUssFknsI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=pTeIq9CR9xQpK9U/6fqWZjrBbr+B2X1S9IUXd9RXgfleNBZlabp5VDZQvOtxk/N5o8fa5FOSwTEKCEqOmHgPKvBqkYFlublQu6EjkPJHYKNK5nZRj0tfgrRMeBZdY6EEKh4ohGa/ea++rRUjXBXMCHUIaDfajGAJ7kXynxubZIg= 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=jAY6oI03; arc=none smtp.client-ip=209.85.167.43 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-lf1-f43.google.com with SMTP id 2adb3069b0e04-5116bf4dcf4so1120683e87.0 for <linux-kernel@vger.kernel.org>; Thu, 08 Feb 2024 04:44:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1707396247; x=1708001047; 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=J9rrULVdpnnvZm24Vgw0eJNuzWphx5IveQzgYYWNlYM=; b=jAY6oI03GtZ3pUrujs7mt/ntJLkv8olUWPMMgDrO99Of7Hjidv5hprH0DMmo4A9jek CxsXa4j6qSUHRQYvYAgV8I2FOx1Ai3KTi4xs609JX+UMbBzdfypm0WfHD7zghXmps+Ju a1W6w81ExBUKrsFZjkDVE2puhTeBwq9f9pSQfMhDVWZEG1ykxVk5ZSuuoq4TXHc21HFf nDVe1k/nvsJyR+IFwA9iNAL5Er922BZsAcrx5dSwHxBcfctfIlq49EfJ4kqyip9hflnQ pAL6JY1bTWhrmaXN1DpITId7Ria9L9sY9O9N70tl6NZ3uvRrgZbcmTy7CQflfhZj4CQP HFig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707396247; x=1708001047; 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=J9rrULVdpnnvZm24Vgw0eJNuzWphx5IveQzgYYWNlYM=; b=pPevq5k3D2w0nSJJ+EhJ+3dfMmLw0LDYYvvWlxgoME7JzxA/zHMxZLW8uWYIjsNsiP yHOZRtZOIlYhuLXNCkmqsnvNRKHkl1m+xnsH6qi4SY5oN8BNh+gO8sjQyLBrKubDfVV+ 5+8NKqvvMuyS8iwzLw+VT5BNZuDG9XkQZn2yqeXDrcIH24+G15illCoMZdrXlPS8QZG0 npzqYuby30hIybsxaiuVYdu+EA/Mh9is4cf3CIDitpuQ/dh2W5aHs8QFmermrXMQSto4 l3HuIZBW7/6hjGkJIT9JzeJou66mgA9di2oKnskmDbV9A+Z/VAH/b5fpYQceHI0Uae3J ArGQ== X-Forwarded-Encrypted: i=1; AJvYcCX8WVbieNOCWFJb9ALDrZnrTBRN+bEDdxwYsr8QWxyXvUO7/WJhGTjWfDrFb1HjdCkcDMcija4qa12ukpnUlLrBzQRfZSqwlBoAQpHk X-Gm-Message-State: AOJu0Yyvl5wka9lofwxegbpjifCkwnGXo5Q/vp258tb0/iNrMX/P0MFi sTr3F68qaJMmjGRhQKWFq/+MufJFNmJEic6mZsgZ/JEQvvXRaS4pmqvITQ3cflg= X-Received: by 2002:a05:6512:49d:b0:511:5411:1144 with SMTP id v29-20020a056512049d00b0051154111144mr5793843lfq.14.1707396247452; Thu, 08 Feb 2024 04:44:07 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCVfsZjnA6YcSltAzZd86m1FK2DKEZr1LDoGM47sY1eiF9wuubUKEdk+1eFzNL/2HHTcTe3JXKdmAHK/3JE34NuRVc6KCS5H/vcbodd6GhVQh1YPONvox85rjqMr4XlpfK7AT9Wfhvid+wdklFjPxlAR2wimD1qM5SBQClv2HFFb/oCwLKxYWivsgfwZ1ixTnw/VaXgiEStvHIW6TqvMoRV3HA1VrcOazXzb/E8sStsDeTP8fSwGCjNK27E4pFqO22mYiQhXb7jt6AsvT727A+t5eXNdSIyH8E2zSjNBWxCpXcM/KZDWqS4rLVirqNO9e1LuwUDqexmbthq6PsRaR8MhZVCYTQS9BPSs3Am7uO/jNL3Ke9U4OlterQU33aW8HWqdKbB9NU+kPjY4khDSJ0hS3noE44+jnza98r+N/WKyQgvSTlZ+zuIjvhujxOspKCzrrYbAhCGO3JlhSESVtN9e+SvzJJ0JTJsMe6r2m8O4LeAo3AoLOAGeh9F9JVnEX69p1NZtB6bbL7qjgAZviOkTvKTVHQL4tac5CuAqyeB83pkxnlS8unT6T48Nf/O05Ec= 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.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 04:44:06 -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 11/17] clk: renesas: r9a09g011: Add initial support for power domains Date: Thu, 8 Feb 2024 14:42:54 +0200 Message-Id: <20240208124300.2740313-12-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: 1790514686291883620 X-GMAIL-MSGID: 1790514686291883620 |
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 R9A09G011 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/r9a09g011-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 R9A09G011 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. Note that RZ/V2M does not have CPG_BUS_*_MSTOP registers, but uses the Internal Power Domain Controller (PMC). 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/r9a09g011-cpg.c b/drivers/clk/renesas/r9a09g011-cpg.c index dda9f29dff33..9d090075f3be 100644 --- a/drivers/clk/renesas/r9a09g011-cpg.c +++ b/drivers/clk/renesas/r9a09g011-cpg.c @@ -245,6 +245,11 @@ static const unsigned int r9a09g011_crit_mod_clks[] __initconst = { MOD_CLK_BASE + R9A09G011_URT_PCLK, }; +static const struct rzg2l_cpg_pm_domain_init_data r9a09g011_pm_domains[] = { + DEF_PD("always-on", R9A09G011_PD_ALWAYS_ON, 0, 0, + RZG2L_PD_F_PARENT | RZG2L_PD_F_ALWAYS_ON), +}; + const struct rzg2l_cpg_info r9a09g011_cpg_info = { /* Core Clocks */ .core_clks = r9a09g011_core_clks, @@ -265,5 +270,9 @@ const struct rzg2l_cpg_info r9a09g011_cpg_info = { .resets = r9a09g011_resets, .num_resets = ARRAY_SIZE(r9a09g011_resets), + /* PM domains */ + .pm_domains = r9a09g011_pm_domains, + .num_pm_domains = ARRAY_SIZE(r9a09g011_pm_domains), + .has_clk_mon_regs = false, };