Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp1401366rdb; Sat, 10 Feb 2024 00:00:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IF1hQKjHnUt5qnndy+Hb+MBGEyy0/Cl4cWnBsnnwRdn8XHUv+ZekVIuj2bA635CDxt89Pf8 X-Received: by 2002:a17:902:c1c5:b0:1d8:b778:e9b0 with SMTP id c5-20020a170902c1c500b001d8b778e9b0mr1677725plc.0.1707552010550; Sat, 10 Feb 2024 00:00:10 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707552010; cv=pass; d=google.com; s=arc-20160816; b=iZOHG2Ineb9+4Yo9/33uW+MR6NH5Yeqd43paZw9UprGeIWOuuQoO4bxcPsZ5Lq/yA0 NddePcn53oEj/sMU8qv74K3SMh87d4TCoO4fh4IbukWnYxjDK0K+5WqxtpuvCN1UjImn W2YpviPh1Q2/zzPZpoGqVNArcdS4o5M6ZXVd7h09bcOwkvzcz5kuH5fIu7wYE+wIlR5B omZ/nBC5T3p+D99F3rP+QoQk44x/3haL8UqHOhBDt5eSljngqa+WcJfqmyiwsP1TD8OH R3mAhT6wiQgSmDcqTTAgOxmJr/tjz7DdzL09tjoEmd0sXlf9qwiPXIrHkVyQrjhmzf4t 4OBA== 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=2/fS58cDsjp4+Cv3AgrdQ3YkvHwwocpDQxFptGQEYTs=; b=Zpk5wdxn2EbvIJunGFqHBII9PbtpZ/fvh8DaKZ3oChGmvjfXOLE8PcpCHLYOFSY5Cn oXxnSh6t6dVdg/BsiP0xeu+SL96xtfaYO/NPArLoKiKAx06eTQHEZUoHSh/uqTC0jy3S oF92ziN8Mr6fo7CFLXaam/92tqclRoFVVTUpIr5IYcDSbeFNJFF+GM5UfVf8uflW8Bfx 0PkPj7GwmS8BckMtShdMu+Bc6aWA5XvID5IRytnUemcBTGFUPtVMB/5B99C6TtVuy0Hb pbzEpWSyafpLBMPRmTWIDAseRF+HQgEjyLF0cNGHOundIHVmxJmGfmJfX2DQfdqv63vu PpZw==; 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-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58080-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCX+G3zt6V0VskvzwbhRVh0uOpMdYI7bwY709oIXAMFW0JZ9Rlxq80eRcoSaoTbQ7bqcYCXNmmiHYuPN/F4T0tQozlyRmbamqpBKLSAbKA== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id g7-20020a1709029f8700b001d95cfcac8csi3056601plq.193.2024.02.10.00.00.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Feb 2024 00:00:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-58080-linux.lists.archive=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-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58080-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 8170EB2742A for ; Thu, 8 Feb 2024 12:46:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 742B67A714; Thu, 8 Feb 2024 12:44:05 +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 ; 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 ; 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 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 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: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Claudiu Beznea Instantiate always-on power domain for R9A07G043 SoC. At the moment, all the IPs are part of this domain. Signed-off-by: Claudiu Beznea --- drivers/clk/renesas/r9a07g043-cpg.c | 9 +++++++++ 1 file changed, 9 insertions(+) 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, }; -- 2.39.2