Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp880808rdb; Fri, 9 Feb 2024 04:16:14 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVdAIlP9Kd9EcUmAxQp+5g4W7cUSjSGWLdy8cBwZHy2e/6wF9FzWd+6sh+7gImDKs4dBx1nLM8v2AXwj3Py6tsMasXKlyf/khbFXM6nGQ== X-Google-Smtp-Source: AGHT+IET/TpAb5N9Lcq6+GVmU8lJc47bwFX8W0T3yOv2n6vXQtyFiAso5QJBMTJL17tpim7mNFH9 X-Received: by 2002:a17:906:f6da:b0:a38:3693:aea1 with SMTP id jo26-20020a170906f6da00b00a383693aea1mr928366ejb.52.1707480974561; Fri, 09 Feb 2024 04:16:14 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707480974; cv=pass; d=google.com; s=arc-20160816; b=IKuBFwBsbc1mFFST1gNBnn8jY15iXESOigIINp8RQNtlwcDqi8kQf09+eAG1d0UOcE g2Mjg1xu8ZgERssMPkkbX5NxRgogZQVz75q5Toq8H7eiYyEaf218NabEhqeibGyOtN+N 21uNszhy5dIec2yzJJIcnOFzC4TfUEiUdJh7sutNEML4w2zf+Eqh8kzSmhX0VucjXsWL rzk1snKeR1YtBkZslpOCNJqMN2nHmDU+djhUxjWmHgzfWU7eih+WZhhnLx9zmPcojAbL UjKdzeUXhzOtzRtF351hP1oPrvn35QajBC58cj/5nvg+AwLGGta+EWxiuYmfTPBKaAEJ KjGw== 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=a83loCovVDkq1Y2vrTmNybwo7D9wwp07rULNGZ/8fmg=; b=pQt9alrdn0nFWIavKZfrgYO2kX4fhg14UPJMGyZQjMGaDEKjk4JY7j1/IasTlngftv G370jixCL1+dJXSu1L+vrJiQ2R+VbE+6mUDJVp7usAkoYLK5kR1Tee+A/CiUY0XNsfL6 SZ+ELVuXTMaLPNpQsWDSyjemWUWI8+pCkZhZY5ZJZntIzVAay9mG1/w700J0QiPetgkl t6v0Ny9L/Eq9EyUIW5TLvjuTX/eIp92jfPZX6nsDyd1PHcl7X+bvMjklAsgrEi57yS3I L+DQJdlcSiYeb0AcRyjIdNBwtrtrCwyISZH5ZK5Jld0YhV47dTLz34FdpTAb+NTSARrj zDjw==; 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-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58083-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCWn6zb0cxn8W9+sZu/gLd+y3Q+vE4S2ppC0S4IPNfRmE2sqA/bPFH4OY/Wa3SBFy4rW038iLviS1B92LP3vvbH6VlbrjKEefhTEDNEj5g== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a22-20020a1709065f9600b00a38536ded36si803784eju.122.2024.02.09.04.16.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 04:16:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-58083-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; 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-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58083-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 am.mirrors.kernel.org (Postfix) with ESMTPS id A735D1F2859E for ; Thu, 8 Feb 2024 12:47:04 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 37D317D3E0; Thu, 8 Feb 2024 12:44:13 +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 ; 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 ; 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 X-Google-Original-From: Claudiu 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 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: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Claudiu Beznea Instantiate always-on power domain for R9A09G011 SoC. At the moment, all the IPs are part of this domain. Signed-off-by: Claudiu Beznea --- drivers/clk/renesas/r9a09g011-cpg.c | 9 +++++++++ 1 file changed, 9 insertions(+) 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, }; -- 2.39.2