From patchwork Thu Feb 8 12:42:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: claudiu beznea X-Patchwork-Id: 198844 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp814639dyd; Fri, 9 Feb 2024 04:29:55 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXNoshWgyPZMmdd13276TIZ8dyshjoIzuHdCSvwmzIcYbLSzNakkAyAMvjDgsAHEG30nNIMDNU0NtZ0KiYaTF2tGDcCqg== X-Google-Smtp-Source: AGHT+IEPXTCS71vyMYVyKSYhh5KH9rNDsQMPfeWFhlRpeHXVj0p1eO2B6tRjUZfJjK/zd1f2nJEq X-Received: by 2002:a05:6a00:271b:b0:6dd:d1fa:ff17 with SMTP id x27-20020a056a00271b00b006ddd1faff17mr1403114pfv.32.1707481795519; Fri, 09 Feb 2024 04:29:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707481795; cv=pass; d=google.com; s=arc-20160816; b=bNLq2zXQn9Nm/bCRrzcq8lJebAAQr9qwMTS6Yn4sITHKB99y7RjVTtci7rUD1ItWGt Twkh2GJ+ig3ynpFGtEFOoTlaG0TQu6x5JZtOvD1hzkPTbJCeeiMTDaGirgx3+lgj4EuQ wcr24eT/rW88epolRW+EW/qgQCjtVCkoyH/wqcyBygauvSeXmypzRlHPMmSaNAsmbtgO u+m2irm3tXwNBNNtGxk6o7aJtNsjfNG24bBBm3NgDib+zUQ9MERHQatKiz9RAErObnq4 lUlCGWgDlwZGR3LXuL18ETrufcFe62SLfKxbq/h6PPk344mCqeNDeMUAz7srPh+zuy0h iBnw== 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=4Ow+faT4hgMer8zeJzCqLwdgg/8xRAzkk8KZPmhSWKQ=; fh=oCqu67E3i7BhbXejVXc9CO9qWm/cqdoHE6dxStoiwws=; b=j3+y7TP1sDspmk3Edj7KGyGCCxYHIc/FmFUBg/VEH0mww8cSVDWDBJ/RX0Ak40jneb +C5f3VjpEg4vptRr1TVoY8zMilpRj1yA6X5x/hcNQvRe5srpBtFqrvMgEHZkjsv4rLH+ VUYQaSAN9KXsyEh3ik8XxomkSMHJ5lHvmYhW4qRSJUvhF+NydrZY7FIKaJQb2v2pn8v+ 1bQUuHIACdFOFVuleYsHLghgETZx9YVddrBV7Nn0zFXSyyEFWyMbnxqL7uGDo9PRSGrx aTdvRajOdrVF/1eEjnABd1lQ2K1PxhHp/1X/MnyOy8YfFplaZvi2oy9248/HYG0uNo0s Afjw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=BeT9h9ir; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-58073-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58073-ouuuleilei=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCVMqVXGCd7rX4/CraGPS5BY9mh4hE8KetJlvotuMTmqJnLl+T/QdT9d5pFl2wcKLxRxzFZpKcBhM9EWhJuk6GGRHSfcTQ== Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id fa3-20020a056a002d0300b006e04a93e530si232279pfb.293.2024.02.09.04.29.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 04:29:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-58073-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=BeT9h9ir; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-58073-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58073-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 6067AB27091 for ; Thu, 8 Feb 2024 12:44:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8BF9C7641F; Thu, 8 Feb 2024 12:43:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b="BeT9h9ir" Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) (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 CBEA8762E2 for ; Thu, 8 Feb 2024 12:43:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707396228; cv=none; b=Y6mixrapZNvKYc3cpbmSAcdLaNZ6h1BvmUYUcMLepBWYbvPNnWFQmdnH0l+wNOIFuGdduxTvEK2Z9kX2q5O62K5JZz4jnmc35AiCZW+9mHz8lzVYmHJudrVA3TlWOlKzaZmC+ziOt0xmRrzq8aVrYDEBuf6uhl5ccHxfn2JBrVY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707396228; c=relaxed/simple; bh=wvZFF9XWrHCOHyRwAnHXOQxcuR1G15MeLFc6eRUwqK4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=i91l5NU82IhCjHk/SxYBAPHiPyc7zH2AlViCrFvzuY+Ipd92nN8xUKYumFpdUjrXRheLwtegQe6NSCQg9cOQ44A1PmvgBppFiXwhosrEV0Z0cHqz1UaUjg3bE64TxZcyO7jL3XypXH2f7QF5NRoGJXHH1kVnB0Qrx8ms2nB2bOU= 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=BeT9h9ir; arc=none smtp.client-ip=209.85.128.44 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-f44.google.com with SMTP id 5b1f17b1804b1-4104dee26bfso899605e9.3 for ; Thu, 08 Feb 2024 04:43:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1707396225; x=1708001025; 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=4Ow+faT4hgMer8zeJzCqLwdgg/8xRAzkk8KZPmhSWKQ=; b=BeT9h9irDH3+Qy0KwqKBiaetJDQzSoMKzSP6U7exsIZziEn1TCGvg7CNslcezaHCUx WVPgqAyJMrFFWBHDjo7ejeWcGrNQtqUcGyEd4wxQg8rhEd/21RzDqxtWU78WK0ThpNVy eKrYQ5tVaXvNzsAdgvWW5AKQU8K1Tl8MVoyRTyRLNmSMbiT5WHp770rq7bIwNlmCyJnm eS2LeoH+6i2rGDRi9hpCIx201/HJ+9kx2RLOodwjykO1h8inXpOUWycL6Rsy9fmGFjVS TMccah0ys5GQfShbChK3LJ5MeN92R08QPkGd8G09rGtAZ7YTdaZJFgnjQ5+/EosgrogQ dOww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707396225; x=1708001025; 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=4Ow+faT4hgMer8zeJzCqLwdgg/8xRAzkk8KZPmhSWKQ=; b=SxnyoX596QBULtQ8M4fYeQinL2wPkZu5irXoTrqHFUG6Z5stjny9SmjW20368QzvPc SE/VbsnWfv8xwz6V6sdPKsWi/Ff/BcWcf8fj5XcKQAq0Pjq2HiX5KlRHlMAgMTIBTIEX pB1KixNtHEmAhtTG6B7yEUiKQHqcONjtRY9WHxnplmadrNFTL/0BzA0B/avb6qNP4IBX DCUZUzIl5WfKtJqSMRBhYNooHTgBe+JR27ftP7yuBeZG5tE+sSe/sdzptpzuyyyKtp9J DWGrersZpEp/ob9oT8tziRabOETeQvJ5V6AOexmgFIO2mnXeKrCtV33ei9NwKE9yaT/W oKYQ== X-Forwarded-Encrypted: i=1; AJvYcCW1st/DBuGwa1uCQPUN04NJH/neUl+Kiub/SiXNDXZGkW0wOAHmJK6AZim/iUOwxgTUbvL22EJrXHhTDhVZ7gBYv+4GXTeif5e2+A+r X-Gm-Message-State: AOJu0YzH1Oq+/83gFzNDkCwopM+TKy0mqYj0JZbkngHZtJmxH9zNa3yz ky3d30AZNNAGqzr/AFzDZ5BzsuovoTHqqh89OoWgCEswMcKwoToIRuNBHrWA6QY= X-Received: by 2002:a05:600c:3541:b0:40f:e284:d785 with SMTP id i1-20020a05600c354100b0040fe284d785mr6290809wmq.23.1707396224891; Thu, 08 Feb 2024 04:43:44 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCUVVGi/xnS3MAkwMqoIWQk8nAnvu+37WZW5Rvi60gWHp7p7RVZzIJ4HNQRvIwcBvCRJkmrEZ1VUPOz/UMIEx4HzJ5O5RxsaZ2di9pMwILrqqGRU5rnfoXselU+h6zphoB1TEdFCRxx4uxKhEjeqoAi07NcnfH8Y2/IYIdFkmHsWeWIU6GjenGanoI0bnGwkIaNy51dpyf4UKnvQy8NRE2PWPmlhcCXQc7DpC56DCwBPpZVxLjXkJu0AoPWVkAIlGSsbCpS93Wkm3/6y9foLKe8ki7pxY820sJ7vtLaDyfhTKR7DQT7nCxPiAFVqgcmjE79ik68P5VkYX3LTdDw1GyDLnFdaSYbyCESSJta48Hvzl5A17nvO5/BChMTMM/u4tOBb3kTFl4MjniicR0/Dzi0nR7mJ+wu5t21NkE5q3A2ZDuvcRZE8BdqkAbsGiSn79Mhckj17wVFiXE8NGD+U/3jivnI5ksRuQynVniZjj1AhJyC+Kq/fBhaJNgot19KuomeJa3oLIeg47tVxo64+3bbIH005or6j9Cv27ZyFGwqQiiuCvmL9tyYNPPwhTPEHp64= 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.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 04:43:44 -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 01/17] dt-bindings: clock: r9a07g043-cpg: Add power domain IDs Date: Thu, 8 Feb 2024 14:42:44 +0200 Message-Id: <20240208124300.2740313-2-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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790341464576923643 X-GMAIL-MSGID: 1790424431045555751 From: Claudiu Beznea Add power domain IDs for RZ/G2UL (R9A07G043) SoC. Signed-off-by: Claudiu Beznea --- include/dt-bindings/clock/r9a07g043-cpg.h | 48 +++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/include/dt-bindings/clock/r9a07g043-cpg.h b/include/dt-bindings/clock/r9a07g043-cpg.h index 77cde8effdc7..eabfeec7ac37 100644 --- a/include/dt-bindings/clock/r9a07g043-cpg.h +++ b/include/dt-bindings/clock/r9a07g043-cpg.h @@ -200,5 +200,53 @@ #define R9A07G043_AX45MP_CORE0_RESETN 78 /* RZ/Five Only */ #define R9A07G043_IAX45_RESETN 79 /* RZ/Five Only */ +/* Power domain IDs. */ +#define R9A07G043_PD_ALWAYS_ON 0 +#define R9A07G043_PD_GIC 1 +#define R9A07G043_PD_IA55 2 +#define R9A07G043_PD_MHU 3 +#define R9A07G043_PD_CORESIGHT 4 +#define R9A07G043_PD_SYC 5 +#define R9A07G043_PD_DMAC 6 +#define R9A07G043_PD_GTM0 7 +#define R9A07G043_PD_GTM1 8 +#define R9A07G043_PD_GTM2 9 +#define R9A07G043_PD_MTU 10 +#define R9A07G043_PD_POE3 11 +#define R9A07G043_PD_WDT0 12 +#define R9A07G043_PD_SPI 13 +#define R9A07G043_PD_SDHI0 14 +#define R9A07G043_PD_SDHI1 15 +#define R9A07G043_PD_ISU 16 +#define R9A07G043_PD_CRU 17 +#define R9A07G043_PD_LCDC 18 +#define R9A07G043_PD_SSI0 19 +#define R9A07G043_PD_SSI1 20 +#define R9A07G043_PD_SSI2 21 +#define R9A07G043_PD_SSI3 22 +#define R9A07G043_PD_SRC 23 +#define R9A07G043_PD_USB0 24 +#define R9A07G043_PD_USB1 25 +#define R9A07G043_PD_USB_PHY 26 +#define R9A07G043_PD_ETHER0 27 +#define R9A07G043_PD_ETHER1 28 +#define R9A07G043_PD_I2C0 29 +#define R9A07G043_PD_I2C1 30 +#define R9A07G043_PD_I2C2 31 +#define R9A07G043_PD_I2C3 32 +#define R9A07G043_PD_SCIF0 33 +#define R9A07G043_PD_SCIF1 34 +#define R9A07G043_PD_SCIF2 35 +#define R9A07G043_PD_SCIF3 36 +#define R9A07G043_PD_SCIF4 37 +#define R9A07G043_PD_SCI0 38 +#define R9A07G043_PD_SCI1 39 +#define R9A07G043_PD_IRDA 40 +#define R9A07G043_PD_RSPI0 41 +#define R9A07G043_PD_RSPI1 42 +#define R9A07G043_PD_RSPI2 43 +#define R9A07G043_PD_CANFD 44 +#define R9A07G043_PD_ADC 45 +#define R9A07G043_PD_TSU 46 #endif /* __DT_BINDINGS_CLOCK_R9A07G043_CPG_H__ */ From patchwork Thu Feb 8 12:42:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: claudiu beznea X-Patchwork-Id: 198380 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp136799dyd; Thu, 8 Feb 2024 04:44:46 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVlo6HQW4Rg3dvKUjc+DtdFb03gsviCbLtY1brBlXIm4fz9ubxtJEdvpZWylpe3xigxF6hTmGLmQNK0X/5N5ZxjuhwOTw== X-Google-Smtp-Source: AGHT+IGBkb34L5efin9XLrsnm9eyA8fJ9JXAyJZluUEcm9v25vwIMxlDbLo5CpEg0jt/9eFsNBs2 X-Received: by 2002:a05:6214:2582:b0:681:77d9:c405 with SMTP id fq2-20020a056214258200b0068177d9c405mr12348902qvb.33.1707396286073; Thu, 08 Feb 2024 04:44:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707396286; cv=pass; d=google.com; s=arc-20160816; b=f/+xccThR8CFcF1ECoJD5bvL2TeQ38QEred3aBPOBjbxnVHspJUVioT9XqUPWPsag1 Op1NXnwexd3/j18Ld9bBw5lzF0YzxKWD2tNG4kcah8kk6nMylch1dAxCFrQwOm6qmjRY kSWyL7XTNvJehXz9bEZWsqqg46559Q/4Hicy7ovTvdjMrmWdgEJBgmNAuxLKfZRElFA+ ZD7gcF0quu2Vv/uon24q/AARalroGhNU1C7judKKK59+IWqmPOiXH75tRs2YrzGSPtOK a1DAx0Ger2BIZDy54vMgQNligtzHkelgzuIXdl0Ps0nH7PtwQgE+xy8etGLDv00UkZKJ xqIA== 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=gdJLmKQ65BMtsSQC9cqhbiLHAUPTKIBgtUh7WrB9pSE=; fh=/c9kJShZ8JyJ+/v1cmhyOxncGxlxyEX08G5qehx5PDQ=; b=UI8Csq8FrqCyaVpbiDYkaxF3QcBTjDK39+1TK8CfWAL1JIbf1815jlZb/X+3jkFB6H keRk/McvMca3BWt6uWUmK8dfgcJWxlL9CFB/mkz3ieaQ2RpHiUNuWCme1QnZxjATMUeK +fBAAHPoSTpKh3dPfFkGwKthNihY0bZDcWcJL9vrGPfGGetRB24o75b+SlTWpJ3N1CtC hRH6vO4yi1hc3gxoP98iv1TvpBn+f2sG/i03A+uQvs0c0Z4bFZ4eagcbnndJ0feuJeaB s8dwCXPA4hnrc9KF15uMnKBDQcmb/RSsEl5HNmk5EXjGBuGmzrMF/+iclvtocuvj2NR3 xS1Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=IZzsvGBR; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-58074-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58074-ouuuleilei=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCUucoVQOgLfA/xWviJC7aUituyqfw734oFjaUt/EKuc4iSK82AsA9DmiU+apb1BIEu8EfdSUZG0FGDW9CVp8RYCZpH3Ow== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id y3-20020a0ceac3000000b00681991637e6si3086060qvp.484.2024.02.08.04.44.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 04:44:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-58074-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=IZzsvGBR; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-58074-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58074-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 C67E61C23916 for ; Thu, 8 Feb 2024 12:44:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9253276C64; Thu, 8 Feb 2024 12:43:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b="IZzsvGBR" Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (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 260AC762F6 for ; Thu, 8 Feb 2024 12:43:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707396231; cv=none; b=cZ2uSDTKoI26x9txVtQ8qeyfpNgspFHRuPb23d2bp8X6rn4ng5tvK/5BOUjVSCcnzQGVhhGh6c06z5SL9itW7/k2rAUi1iHx1zKLrMyXSVbcIqCWsE5KuUaFHLSQsI1JernmcKw+C3TDQeHPbpifBf5v93ryBNazxk/VMjCXEWk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707396231; c=relaxed/simple; bh=ebSKImTpj6nC/M3T1nDE3L8Vn9ABqzsptRiZJ56M2ho=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=IT4I2jJrucRYkrNVFRK4NMg4BkjHl+Lknj6kcNjfEJOxZ9kOqxeqauIg5Gzb1NKYuEDDvZZ3RelyWUye5chFLXQ7Iu5sbwo2P2kIL5LhGnzO32rnPGdp2maUBJ2Q/sIaMXGFc4Wq6mLtUAkof4Azqwe7MNPh4gHwuHBylN8j8sw= 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=IZzsvGBR; arc=none smtp.client-ip=209.85.128.47 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-f47.google.com with SMTP id 5b1f17b1804b1-40f02b8d176so14875935e9.1 for ; Thu, 08 Feb 2024 04:43:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1707396227; x=1708001027; 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=gdJLmKQ65BMtsSQC9cqhbiLHAUPTKIBgtUh7WrB9pSE=; b=IZzsvGBRxvb5YInLajrQPrI7u7LV2O3FUJtNS5nVRKWbW1FwEjvV9q9neycCcfN6Sm 4p82lwxi8z30YI3/vqeoi70a3tyOgMhTVAg8/huq5GbHTOUw9/CqZFPWbUdeVIe7nmGs XVc/skPxI5IenzJAPo5uRFVutLq3qeYbDsj/6ApL49oRuAbL5LagKTFf7vdFS/9Bphps lzieqclrMgRtkWjN4xhsGKjoXSY0lsWu0QhLVsp69CD+dG8hHwGtgaOzwjrT5U/E4aCk PI2/4o6bIp/WgKnv1TlJItqqRAO0Io85NjqdXoKQqd+GmKwAj7Ga/0Cj5mMLFSd8fTZT YjRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707396227; x=1708001027; 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=gdJLmKQ65BMtsSQC9cqhbiLHAUPTKIBgtUh7WrB9pSE=; b=meCQxWNvu6gu7Oyq3KASxLBgT+ZhD6/+u8j3Y2u2zHcqyIKpfVUMGSd1t5qT/baGVA tMrEiV9FdZZ7cojj8HS6DOyF8X+7wuMs3Klyk+vlU8vjHYZgXLPqRQNXNMh5SKCy+wn8 GLw6EpNTM4U8B8UjJHl7aiylxIsZRhasHG4myfYE4r+0ERY2Vqj9T/ZndbDxj8xIdjsu 1TJkURzOmAtFPV7RQb0S+EOCvXDhzS4vyASssQBBgyjeKgkIaJ9sitT2cNkmnQ1WYm+M ASUFlN1iMFSIiD1vMQ4sliwHwfwCnKPl3FijKY+ayGN+LuY/hIEUSF4G9Rl+KI8hKVoV 6gsQ== X-Forwarded-Encrypted: i=1; AJvYcCWYzGRhJZu8KrsG7mb6rSQ+grOWlOthjIVdlgbBKYojIH3b/fZqaAwh6vX2snVn47kfRfhFBJ70zVwQq6vWDUR7u+Yu5BCmnFmgj3b1 X-Gm-Message-State: AOJu0YwQk/eoW7T3tkiydtpEP7pReo9cmukVDt0X0oW+8ygkRXrg8Awi fBbhProOtpeP6An3InEM8Hl/2NFbrlVmN9g7ieasXX4dM/a00eV3i0OCIr9MY5I= X-Received: by 2002:a05:600c:3146:b0:40d:484e:935 with SMTP id h6-20020a05600c314600b0040d484e0935mr6819781wmo.12.1707396227293; Thu, 08 Feb 2024 04:43:47 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCVv8f4Ko9nDmMnhQcD+XqT4xiktMTJPAPIzXZALmF0IeJIKbHi21a9P1UYargWoyYD35zeuFwvcORn0X1aUKUSIvHJs9z6sKCp87goXE1fkaNg3tNdgRbZfUe/9mTr1qjKLKiTaGY6vvQDcopC4+Gn3xmWyOi1Eey2+ccLr2dT9TWvpj6gWW4Z4ThI0xeiOHHpYVLTObPcJz/S7YTYodC1alWrFJUgmQcvm8sB0x9KWrKaYuK9yJQWrKivcMp70tZWkBOuA9A7/baO/+IwAVRx3/El5I+NK4ksm8C/I7pZ8JNtHKXAC4yPHIWP3rLpAtVAfah3zuVqTfl956yTEvz/dnfESGOYSt61b2WaqlJ5oDL3JjJgq7To/aB2Z/ft/Km4tgbLJHzlKm8wPfgDE0Ic9uAIjoH9BVGMgUX8T6EP+LCWuV+pAa67itNIFupr4vbRM7kkC1v8cpdPu8S+FDH2TM5zGFmpDVftKzjPXu2ssz4WJs7EG0JTeUfmHHsgy8mKGOiJ5TJegROJop0lEU1CmR+RfetLNIES+eNYpKaeqRwaLV5bbykE4PLIyHv7Jkfk= 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.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 04:43:46 -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 02/17] dt-bindings: clock: r9a07g044-cpg: Add power domain IDs Date: Thu, 8 Feb 2024 14:42:45 +0200 Message-Id: <20240208124300.2740313-3-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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790334768413250992 X-GMAIL-MSGID: 1790334768413250992 From: Claudiu Beznea Add power domain IDs for RZ/G2L (R9A07G044) SoC. Signed-off-by: Claudiu Beznea Reviewed-by: Geert Uytterhoeven --- include/dt-bindings/clock/r9a07g044-cpg.h | 58 +++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/include/dt-bindings/clock/r9a07g044-cpg.h b/include/dt-bindings/clock/r9a07g044-cpg.h index 0bb17ff1a01a..e209f96f92b7 100644 --- a/include/dt-bindings/clock/r9a07g044-cpg.h +++ b/include/dt-bindings/clock/r9a07g044-cpg.h @@ -217,4 +217,62 @@ #define R9A07G044_ADC_ADRST_N 82 #define R9A07G044_TSU_PRESETN 83 +/* Power domain IDs. */ +#define R9A07G044_PD_ALWAYS_ON 0 +#define R9A07G044_PD_GIC 1 +#define R9A07G044_PD_IA55 2 +#define R9A07G044_PD_MHU 3 +#define R9A07G044_PD_CORESIGHT 4 +#define R9A07G044_PD_SYC 5 +#define R9A07G044_PD_DMAC 6 +#define R9A07G044_PD_GTM0 7 +#define R9A07G044_PD_GTM1 8 +#define R9A07G044_PD_GTM2 9 +#define R9A07G044_PD_MTU 10 +#define R9A07G044_PD_POE3 11 +#define R9A07G044_PD_GPT 12 +#define R9A07G044_PD_POEGA 13 +#define R9A07G044_PD_POEGB 14 +#define R9A07G044_PD_POEGC 15 +#define R9A07G044_PD_POEGD 16 +#define R9A07G044_PD_WDT0 17 +#define R9A07G044_PD_WDT1 18 +#define R9A07G044_PD_SPI 19 +#define R9A07G044_PD_SDHI0 20 +#define R9A07G044_PD_SDHI1 21 +#define R9A07G044_PD_3DGE 22 +#define R9A07G044_PD_ISU 23 +#define R9A07G044_PD_VCPL4 24 +#define R9A07G044_PD_CRU 25 +#define R9A07G044_PD_MIPI_DSI 26 +#define R9A07G044_PD_LCDC 27 +#define R9A07G044_PD_SSI0 28 +#define R9A07G044_PD_SSI1 29 +#define R9A07G044_PD_SSI2 30 +#define R9A07G044_PD_SSI3 31 +#define R9A07G044_PD_SRC 32 +#define R9A07G044_PD_USB0 33 +#define R9A07G044_PD_USB1 34 +#define R9A07G044_PD_USB_PHY 35 +#define R9A07G044_PD_ETHER0 36 +#define R9A07G044_PD_ETHER1 37 +#define R9A07G044_PD_I2C0 38 +#define R9A07G044_PD_I2C1 39 +#define R9A07G044_PD_I2C2 40 +#define R9A07G044_PD_I2C3 41 +#define R9A07G044_PD_SCIF0 42 +#define R9A07G044_PD_SCIF1 43 +#define R9A07G044_PD_SCIF2 44 +#define R9A07G044_PD_SCIF3 45 +#define R9A07G044_PD_SCIF4 46 +#define R9A07G044_PD_SCI0 47 +#define R9A07G044_PD_SCI1 48 +#define R9A07G044_PD_IRDA 49 +#define R9A07G044_PD_RSPI0 50 +#define R9A07G044_PD_RSPI1 51 +#define R9A07G044_PD_RSPI2 52 +#define R9A07G044_PD_CANFD 53 +#define R9A07G044_PD_ADC 54 +#define R9A07G044_PD_TSU 55 + #endif /* __DT_BINDINGS_CLOCK_R9A07G044_CPG_H__ */ From patchwork Thu Feb 8 12:42:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: claudiu beznea X-Patchwork-Id: 198834 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp804752dyd; Fri, 9 Feb 2024 04:11:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IHEZdgphbXMxb18CxGXvbi1pdhKsNNE6I7piQpazkkY+ewjc/V59ME2idrmFKUAOlP+2jeo X-Received: by 2002:aa7:d796:0:b0:560:4e6:c442 with SMTP id s22-20020aa7d796000000b0056004e6c442mr1249913edq.1.1707480714228; Fri, 09 Feb 2024 04:11:54 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707480714; cv=pass; d=google.com; s=arc-20160816; b=pLGE9qrtY0e0OwIZHI2MtEAm0EDRK1lKv48YgTMlK4zgbqf2oK1Mt84FZjVEhhWx8R 7YC9kjyXrDa24OExbKvuW6w3ofaW1yhYoAUGNHYe1ObY/hGRsAehAvF/oXZayOnBz7ID Rap2e+Uwbyv0fae3N++LIndxfVw+/4qiWx60yxkpTYUODZGXBrCdQ/rEWdccXkeTIL42 XA7pPn8DMLOJKE8rSz9/3/kcg/AH59yFm1+35VTUg1AfGY9paEBbP4AJWHIZwQEWMygZ STyHqu+FJmNFqTBqywRSQ4CRkIwMzQb0fspOwhtoRRmJUHrLVCt2kE7Zp0zgdprpgUIL 7xmw== 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=+fOhTxwLR2CTPTSVgD2JffQTM0OmlAEFcQjojvDRSHE=; fh=HGHY5aMC2URwq4WetXK5HiS/1TYIdhFVlag2okoRTms=; b=fc73gJqMem96mfuzcgRft6rDzRmZQIgqtsyesX98ij8logKcAiT0fWYDUIBoCFhsza 9+xx6Z3wxdQMCoPmQeMD9SZOV5iZqpJ5N1PpdAIQZwFRe+YWyqJR3kpGEkZgVGbBWhVN hXhl3vbIYfBCpfyJwZHimKkyFuYqsxmCpNLJllEbrYDf/gVbEWtkFsjFbPflTAPh50/W 3lOdYL+t+Di1hsH64OEg0dsPbooUjYvq7XcB2JN+V1L2zn66p6i1YCfNSjlExz/k7vO1 9diFMhL5/fRuEco8KwVnkSGme3KnOC10dJwa7H0OrRdkYzghtHVA3+U3i8p/P+Jhm4Vj dxPA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=L4298ZVn; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-58075-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58075-ouuuleilei=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCUphSVjptaJolHpn+9xwioUnMPvBFKIoiLNNV3LK52K6nOFzqQMm/mFkuG88VLmXVFKjg306ycyL1cKzPWaoKuQFAugvQ== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id e20-20020a50a694000000b005601ab7b947si826764edc.111.2024.02.09.04.11.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 04:11:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-58075-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=L4298ZVn; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-58075-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58075-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 2B5481F2489D for ; Thu, 8 Feb 2024 12:45:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4EBE778B52; Thu, 8 Feb 2024 12:43:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b="L4298ZVn" Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.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 2F02276404 for ; Thu, 8 Feb 2024 12:43:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707396234; cv=none; b=Rg2Df67cVf5jNRM4av5/hBc8nEMakW/3venOfcMrIeQqfZ3nu9UWIO7ZpovGZ9ftC1sHbyry9Z6j+rYEjREJ/yaCSRTheH1l0ByIinMeCg5We79Ff2POYat4HCMb3rYeoWt2f1agTv708Nj7uqTF0Q492tg2ZXYUcHQZPtUU0Mo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707396234; c=relaxed/simple; bh=AyaaNH9yUH5TOfV/Vf9mtFGfTApVsa4nreCNtA8vcKI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=r/VYtVHeozg7s8y7XHLSzi6HGrBmkKrPCnZeM8dpNmCgpifmdk/TyCHOUktAMY/u/rOOTXRQTBEpihQhXMFadpIyX1x6cwYd54ZkfueJftj7D3R0+2Bb0h7bIn+Z3P08Gvr0LgbUW0FZgZovQulqMEVYKLDGyRd6dWo+WrpIzDw= 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=L4298ZVn; arc=none smtp.client-ip=209.85.128.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-wm1-f43.google.com with SMTP id 5b1f17b1804b1-40fe03cd1caso16702005e9.0 for ; Thu, 08 Feb 2024 04:43:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1707396229; x=1708001029; 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=+fOhTxwLR2CTPTSVgD2JffQTM0OmlAEFcQjojvDRSHE=; b=L4298ZVn4rNJPetgx86TJYdMUXeOsiDuLAb3OaqGeswyIm8ZXesrHmNNfLNvbbIrCm D1HUK82E2UzFjtMEPIjNo3pn5RcmMj57Z34MkLJXndwnn6g2f0olxnC6tW3PTijN2dzO +cB620MUXMRdKzZ2YzDHoozYPqABI35VaTWUAA7rXzeawCe9eeKsw+G347F6n0nD7/iO pA50z/bw6P68O10n7PCrBiyZ+PokCbFGZnrPFnhtMcodAnTrPk8JdUu46ohRgoGVD6XN eT1h5vDGxKKo7xgsgcSzJqgw5XIjbfYdSzZpd6Gl6INgwqR4exCP8yUFrDiPDYapxk60 fZtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707396229; x=1708001029; 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=+fOhTxwLR2CTPTSVgD2JffQTM0OmlAEFcQjojvDRSHE=; b=qGzA7JR9tIXZhloix2OuEYK7LqVFAZY4Ip1SckHu1hIQxmV3xr9upjlp+CCNge/EL9 BKZjofTN6PwBrB8YvvJs5yokj2stsGI42GU/HovEcM0QyRZftFtyjfgU16lq4IiXtNBj 47W86p+apq1m2Bi2ukf4B97wThZ8XSto8xBeCoUeqb4mHRyf8Q40wsDbZU8ltGboS965 a4P5T1Eb/5vXDl6eCg3HzYSlpari6TgG9wb8CCurrWqxpSvg1879lkDOXDv6LNmiCGWx WiYrwaoLReUdMRqwqRpzJwGuitEQTqVphwqV8JPeLx+0+7PLkV7b1ZFYl4a1bCfca95R syqQ== X-Gm-Message-State: AOJu0YwoG+/3DWb2/NxQSafpt3zcakLQLGSy5WFy2qBImR2MfILtfZdd +WSeJQMw8TqxPUSRYjZbSRFDLQEUJS04v/TPTU6Z/gripMzGTpIoqwabUt+ZULY= X-Received: by 2002:a05:600c:548f:b0:40f:dcfa:49eb with SMTP id iv15-20020a05600c548f00b0040fdcfa49ebmr7243377wmb.38.1707396229587; Thu, 08 Feb 2024 04:43:49 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCUBGegHiGd58BcX1RZ1tU2XrzC4XJ2uIY56GpOH5CUKNnLUQ32L1rzWwPkYY1gRkvK9QOZlvuLRzSwUwfoOtxf3Yn/CGM5hrvd+/mlPXAWQB+uYAjQJf7GdRedlZS51D8gwnJmiPMyRAvORjBw6l0GaTn2Acb+jKzY9hK9ytAm37t3EkZZJ7huTI+mFTZv8dgfclwL3dnOEfVydrTyDo4ogdUWpaxKujw18RtsDAH7vyReJbGYbGgds+w/e3EZoLFYGD9voFY1qdM3V7736ARiEtIKRWUwBqUvjD8bjXLIOjtBlfPOwVoNXvgszzeIYSfVQnHdDQ8CI48DICoefkYbeJUES2qdexQqIG6+YpeBB2bEIqkU/j2Jb9BErQyE5oxRbXEYa2yjYbJLgtm70UJ3FXn76E64liZPIV0HEs+/W61fZRiCuLS5fvxuEno6bjXAOD+dIyy7wPvcuV53AlXBLAGfAwCFbibz0cHn7o/XRnoJBO+EXNTZmAPNLguOFRmZ+X54ZI4/Svre1rJWyymuxZseki5Z3e7P1w2pOVC6jqRuYyJggIMlUZHmYfO793sc= 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.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 04:43:49 -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 03/17] dt-bindings: clock: r9a07g054-cpg: Add power domain IDs Date: Thu, 8 Feb 2024 14:42:46 +0200 Message-Id: <20240208124300.2740313-4-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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790423297050656725 X-GMAIL-MSGID: 1790423297050656725 From: Claudiu Beznea Add power domain IDs for RZ/V2L (R9A07G054) SoC. Signed-off-by: Claudiu Beznea Reviewed-by: Geert Uytterhoeven --- include/dt-bindings/clock/r9a07g054-cpg.h | 58 +++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/include/dt-bindings/clock/r9a07g054-cpg.h b/include/dt-bindings/clock/r9a07g054-cpg.h index 43f4dbda872c..2c99f89397c4 100644 --- a/include/dt-bindings/clock/r9a07g054-cpg.h +++ b/include/dt-bindings/clock/r9a07g054-cpg.h @@ -226,4 +226,62 @@ #define R9A07G054_TSU_PRESETN 83 #define R9A07G054_STPAI_ARESETN 84 +/* Power domain IDs. */ +#define R9A07G054_PD_ALWAYS_ON 0 +#define R9A07G054_PD_GIC 1 +#define R9A07G054_PD_IA55 2 +#define R9A07G054_PD_MHU 3 +#define R9A07G054_PD_CORESIGHT 4 +#define R9A07G054_PD_SYC 5 +#define R9A07G054_PD_DMAC 6 +#define R9A07G054_PD_GTM0 7 +#define R9A07G054_PD_GTM1 8 +#define R9A07G054_PD_GTM2 9 +#define R9A07G054_PD_MTU 10 +#define R9A07G054_PD_POE3 11 +#define R9A07G054_PD_GPT 12 +#define R9A07G054_PD_POEGA 13 +#define R9A07G054_PD_POEGB 14 +#define R9A07G054_PD_POEGC 15 +#define R9A07G054_PD_POEGD 16 +#define R9A07G054_PD_WDT0 17 +#define R9A07G054_PD_WDT1 18 +#define R9A07G054_PD_SPI 19 +#define R9A07G054_PD_SDHI0 20 +#define R9A07G054_PD_SDHI1 21 +#define R9A07G054_PD_3DGE 22 +#define R9A07G054_PD_ISU 23 +#define R9A07G054_PD_VCPL4 24 +#define R9A07G054_PD_CRU 25 +#define R9A07G054_PD_MIPI_DSI 26 +#define R9A07G054_PD_LCDC 27 +#define R9A07G054_PD_SSI0 28 +#define R9A07G054_PD_SSI1 29 +#define R9A07G054_PD_SSI2 30 +#define R9A07G054_PD_SSI3 31 +#define R9A07G054_PD_SRC 32 +#define R9A07G054_PD_USB0 33 +#define R9A07G054_PD_USB1 34 +#define R9A07G054_PD_USB_PHY 35 +#define R9A07G054_PD_ETHER0 36 +#define R9A07G054_PD_ETHER1 37 +#define R9A07G054_PD_I2C0 38 +#define R9A07G054_PD_I2C1 39 +#define R9A07G054_PD_I2C2 40 +#define R9A07G054_PD_I2C3 41 +#define R9A07G054_PD_SCIF0 42 +#define R9A07G054_PD_SCIF1 43 +#define R9A07G054_PD_SCIF2 44 +#define R9A07G054_PD_SCIF3 45 +#define R9A07G054_PD_SCIF4 46 +#define R9A07G054_PD_SCI0 47 +#define R9A07G054_PD_SCI1 48 +#define R9A07G054_PD_IRDA 49 +#define R9A07G054_PD_RSPI0 50 +#define R9A07G054_PD_RSPI1 51 +#define R9A07G054_PD_RSPI2 52 +#define R9A07G054_PD_CANFD 53 +#define R9A07G054_PD_ADC 54 +#define R9A07G054_PD_TSU 55 + #endif /* __DT_BINDINGS_CLOCK_R9A07G054_CPG_H__ */ From patchwork Thu Feb 8 12:42:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: claudiu beznea X-Patchwork-Id: 198439 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp226301dyd; Thu, 8 Feb 2024 07:01:44 -0800 (PST) X-Google-Smtp-Source: AGHT+IGo+whELq9s2u1Rjsbb6quW841gb5vw1js63+lgN9fRI1HLEP6X439Eqgbirmy3KuyOu+91 X-Received: by 2002:a05:620a:5d:b0:785:8bb1:5d6d with SMTP id t29-20020a05620a005d00b007858bb15d6dmr9067467qkt.32.1707404504147; Thu, 08 Feb 2024 07:01:44 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707404504; cv=pass; d=google.com; s=arc-20160816; b=ZugpBwRHNsTBWNhA6VvkzQ3XS2iKjgENRqxP/132RFy0PRHjo4xffbe7WzNP8pEvAW fNu68eVPEXu6EI1M8QNwHfrkQ3GlB/MapNTwUz6YPnz3zO2zMcXWvF/tKc2ZUQuuCx1r euJ+khX1OzmNQ7LAs1XGdrN2YYYDEEDg5yXKz3a8FRFFrLO7JnvERCxw+TgZGz7rM1hk FSPkVUNI4s/qZlmDIipxjeLp/GysUMwqI7pw4yg0mDfOwFPIPCPxTswKmd8hLuLown96 2+1qPZXd3X9I6k4S+pDuzVkkNLSe6bWTWMkFcIcRrG3Rzy539Ty5vLmpA1bu2YfOj8bp P2Zg== 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=5ntIc4Xd+YZj5HH2Wt0TNsIkkpEJY2U3yN2SR97JFpk=; fh=Y4wxGn5xGQoT9D/h8QhcgvU5TiIC9JRDJTt7OhT7AiM=; b=jOKVBJqlRq3Af8atenI3U1dlXDcXVRyIzYASq6VWgxZVc/9Mi8zEq1ykepCKvyzjUk BokLtrluHCWPqlaMPCOxRmU0E8T64IJKOe1PZAL2p4M9VsdQ79z1rAhaCYuFisiiyWRz 9zgNF07+R7Ej1dnVEyosH9rAhXq4gPJ4APmzitK3oWQPZEgzML/eIavoR0sXPJPHlfsz /NCcGU42LMrwoTczuCnjLVeywwDm1c77Rg0tz3y+tCvHUOwy4fXcGwvEC9oByxUbs1vH uEyDm490lhukNCOB0ajndIKZj8YCcZ9J45D3/jl3NBiP/7GBUMFT2tFeOXytUapm7cFJ sOBQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=Xi79072o; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-58076-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58076-ouuuleilei=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCXh7xLYl8sP0SOHnTCiRXItr/mjOSvMojfLRS3xVj14QhofA5gGEQ8irAjyDfJoVCMgxd6tiAAGgZ5u0Ea2OfZOEMrWWQ== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id y21-20020a05622a005500b0042c50f75489si189258qtw.113.2024.02.08.07.01.44 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 07:01:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-58076-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=Xi79072o; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-58076-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58076-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 393011C25C6C for ; Thu, 8 Feb 2024 12:45:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3E11276404; Thu, 8 Feb 2024 12:43:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b="Xi79072o" Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) (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 255C276908 for ; Thu, 8 Feb 2024 12:43:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707396234; cv=none; b=boBbJxlnePWEpmL7I/x1bwqE6hf33Xyl+Mdfq34qeCuyt0B+kzztNLFloe+9I7zTmP5icnnHAcXaCljIcVo28IFMYUPMw/9A1/ztXkN59GhthkLE83jaUy+eUyZmP/Qt1vRP80rpicPZw2JToZCx8FpbplxMs/HEWIBXqbqZrTM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707396234; c=relaxed/simple; bh=qp263+cE9JT3Z9tLyfxaY/WORzkVrN44CFTgkqNDGlo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=ZNYwaIAs1T3CUdBk/v0UfagFp+4lJuBvynoyHN5ECdbxbhW5BcQHQWyIMJ30+Amhwgdmjf8MTjuiV0KnO4s3OB0LVbZzVf0KwSHN+jM0iAuzxDqTN6xYXhrZp9RK+/my6MOSBGWjFyhhvXvX/cMzqodqfDYQjTxcA2Bl/MigvLw= 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=Xi79072o; arc=none smtp.client-ip=209.85.128.53 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-f53.google.com with SMTP id 5b1f17b1804b1-40fd2f7ef55so4954285e9.0 for ; Thu, 08 Feb 2024 04:43:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1707396231; x=1708001031; 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=5ntIc4Xd+YZj5HH2Wt0TNsIkkpEJY2U3yN2SR97JFpk=; b=Xi79072oRTzN0ag+Z63UFbgSwDTOLJRRMqGaJkzhN311BHYPfBcZQsiyG4IE+8+fih kYjqC1+OYo9Daa/4I23irVxrEUs8D9aH/Fdcka2fly33ZglEUwP2jiS5H6K2rLfeTtY7 eLydVW6b+I/IZmrLg8zfm/DcehLybxRI9oNS6K6Q7EjJZp12thJoJDcywYzGmeW43wbL OThdFxjsG7LPnK9m1ZrWMqc03oxPXyqZDfL0wbK3fEgNZmGRpVeHpNK/f1al/PGA6N5b 1/jrGOES55fTt1cc+3YM+MmoF+SidoVMykPEQKJ+yYY0ySC51lhF5f9xDAU8HxQXU5r+ JdeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707396231; x=1708001031; 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=5ntIc4Xd+YZj5HH2Wt0TNsIkkpEJY2U3yN2SR97JFpk=; b=wnAqWqfligWQEm3c2FDuK5kEcojfPqT7vaVu3aVsOQbS2qXczSglJIUhJZLzQUSenW T4YdUidhO+nYCalpwSWCM8IKjem00iWvBuAeJfZxzCjZ02g4Gv9e4HPYeJOVnWRtemkn 0EasmOIzUSO5eQldA9+DHHePl7n1Dd5Nz2Qg95Jbrfx3wx9Q6WYMtdsAUQtmBBA5vN92 Rz3//vl2lk+8wh0wUpyyVquYmXNd7vfv87XheAz7d3a3LuQRndrLv6U8v0TxqSEjNqXu ynLogQ1ZURz4p6PLyf6XM7nLQd+ffXBI4cuxEPZQa2u+SFMZ1A163SyGOeFI3xsGtZvf rUGQ== X-Gm-Message-State: AOJu0YxeUmD+ZWva8sRbwHZXE/P/g6oFeiV9DGYuHA9qMOgUueC29qHY IDnwHnJempbAol+8/4YWaUMbOEWAQ5166wM30KSdmTkhGsAQGvgVu/0gXTT6n8I= X-Received: by 2002:a5d:5392:0:b0:33a:ead3:6438 with SMTP id d18-20020a5d5392000000b0033aead36438mr1921387wrv.33.1707396231405; Thu, 08 Feb 2024 04:43:51 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCUmFgAW+Skjw1lnmXbQXSf/9hq51jiHJjDAVQk/4K6QzmOq/O9rXIdU/p6mQ301ukgVBqm9o3SqZiK1KTEZS371ZL3D8guYUX1220vQ3lKtetn5ReofmJLqM8ihrVHEhouSo5NuTYAj7t38SFPmAoUEi6yDYC7hiJt0XMBmT+6lRYSy8dB2bKZCcMcd0e4nEGhiuqi82zhv9PJbv40h0N2C+ECiFqdOM5OP+4ha6aqrH44Trrd2RCMpVVre6hcviWQTMbcXaUhhjoN40hIwqfMFbxkWD/J5rfQw4c5bhFAkV0cb1O9Xqh7B1QC3WCjE0Jkrp6qErRskPMFP6uw18A+T1jmp+CzLOWgzUWRN4sKgD0a0fvJ/vyScZAOGAqsqdOGlu0TQC8zDOUfI6QznLcMJ0zchmA6kwKVRexIaqqZyLujTcQkCUTWAkVjraYQiQivt+PjbJcpI1ZK82jFTbdeRBED/3HtxNN1kXdnvthvusegfD9NCOY3o1gQinq6MiztY6j+yw6aygjn4izuKrWfTXUwl3n1zurce98xOwIMlKNH0iQaU893nFZbgkDsu3U8= 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.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 04:43:50 -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 04/17] dt-bindings: clock: r9a08g045-cpg: Add power domain IDs Date: Thu, 8 Feb 2024 14:42:47 +0200 Message-Id: <20240208124300.2740313-5-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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790343385586040593 X-GMAIL-MSGID: 1790343385586040593 From: Claudiu Beznea Add power domain IDs for RZ/G3S (R9A08G045) SoC. Signed-off-by: Claudiu Beznea Reviewed-by: Geert Uytterhoeven --- include/dt-bindings/clock/r9a08g045-cpg.h | 70 +++++++++++++++++++++++ 1 file changed, 70 insertions(+) diff --git a/include/dt-bindings/clock/r9a08g045-cpg.h b/include/dt-bindings/clock/r9a08g045-cpg.h index 410725b778a8..8281e9caf3a9 100644 --- a/include/dt-bindings/clock/r9a08g045-cpg.h +++ b/include/dt-bindings/clock/r9a08g045-cpg.h @@ -239,4 +239,74 @@ #define R9A08G045_I3C_PRESETN 92 #define R9A08G045_VBAT_BRESETN 93 +/* Power domain IDs. */ +#define R9A08G045_PD_ALWAYS_ON 0 +#define R9A08G045_PD_GIC 1 +#define R9A08G045_PD_IA55 2 +#define R9A08G045_PD_MHU 3 +#define R9A08G045_PD_CORESIGHT 4 +#define R9A08G045_PD_SYC 5 +#define R9A08G045_PD_DMAC 6 +#define R9A08G045_PD_GTM0 7 +#define R9A08G045_PD_GTM1 8 +#define R9A08G045_PD_GTM2 9 +#define R9A08G045_PD_GTM3 10 +#define R9A08G045_PD_GTM4 11 +#define R9A08G045_PD_GTM5 12 +#define R9A08G045_PD_GTM6 13 +#define R9A08G045_PD_GTM7 14 +#define R9A08G045_PD_MTU 15 +#define R9A08G045_PD_POE3 16 +#define R9A08G045_PD_GPT 17 +#define R9A08G045_PD_POEGA 18 +#define R9A08G045_PD_POEGB 19 +#define R9A08G045_PD_POEGC 20 +#define R9A08G045_PD_POEGD 21 +#define R9A08G045_PD_WDT0 22 +#define R9A08G045_PD_XSPI 23 +#define R9A08G045_PD_SDHI0 24 +#define R9A08G045_PD_SDHI1 25 +#define R9A08G045_PD_SDHI2 26 +#define R9A08G045_PD_SSI0 27 +#define R9A08G045_PD_SSI1 28 +#define R9A08G045_PD_SSI2 29 +#define R9A08G045_PD_SSI3 30 +#define R9A08G045_PD_SRC 31 +#define R9A08G045_PD_USB0 32 +#define R9A08G045_PD_USB1 33 +#define R9A08G045_PD_USB_PHY 34 +#define R9A08G045_PD_ETHER0 35 +#define R9A08G045_PD_ETHER1 36 +#define R9A08G045_PD_I2C0 37 +#define R9A08G045_PD_I2C1 38 +#define R9A08G045_PD_I2C2 39 +#define R9A08G045_PD_I2C3 40 +#define R9A08G045_PD_SCIF0 41 +#define R9A08G045_PD_SCIF1 42 +#define R9A08G045_PD_SCIF2 43 +#define R9A08G045_PD_SCIF3 44 +#define R9A08G045_PD_SCIF4 45 +#define R9A08G045_PD_SCIF5 46 +#define R9A08G045_PD_SCI0 47 +#define R9A08G045_PD_SCI1 48 +#define R9A08G045_PD_IRDA 49 +#define R9A08G045_PD_RSPI0 50 +#define R9A08G045_PD_RSPI1 51 +#define R9A08G045_PD_RSPI2 52 +#define R9A08G045_PD_RSPI3 53 +#define R9A08G045_PD_RSPI4 54 +#define R9A08G045_PD_CANFD 55 +#define R9A08G045_PD_ADC 56 +#define R9A08G045_PD_TSU 57 +#define R9A08G045_PD_OCTA 58 +#define R9A08G045_PD_PDM 59 +#define R9A08G045_PD_PCI 60 +#define R9A08G045_PD_SPDIF 61 +#define R9A08G045_PD_I3C 62 +#define R9A08G045_PD_VBAT 63 + +#define R9A08G045_PD_DDR 64 +#define R9A08G045_PD_TZCDDR 65 +#define R9A08G045_PD_OTFDE_DDR 66 + #endif /* __DT_BINDINGS_CLOCK_R9A08G045_CPG_H__ */ From patchwork Thu Feb 8 12:42:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: claudiu beznea X-Patchwork-Id: 199258 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp1441740dyd; Sat, 10 Feb 2024 04:35:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IEOMUe2kxsXC/FG28T5b9EpbmkVUrK+zmrPafAuvftdlAnDmAv0SkOIJmGQnHO1gD9uzvu1 X-Received: by 2002:a05:6a20:e30b:b0:19e:a7c2:eee0 with SMTP id nb11-20020a056a20e30b00b0019ea7c2eee0mr2255128pzb.8.1707568511888; Sat, 10 Feb 2024 04:35:11 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707568511; cv=pass; d=google.com; s=arc-20160816; b=awtgpXq7yOddOTBx6nIA0ujd3mOLpHYiMzG/8LplyDwz+MM8GcGP8+aWY2K3uKkWZT qHF0uLmS6BxMOAqOds383n7swrbTt4lBZIOnIKx9ewiBLdd+b7Gv8LWhNZjOV5j9RhAb LmyzYkBsHvATUN5ONwFhw0AFvJ5morqC0Dff2YD+O+bTzRxAe0dv7exSse1wPK09agW+ wJ3Dy1mOi2SadaVi3RSDjNEXN7x/jst0xrsXgLoU+NiJVx6wryb+rZbSgpSEQ0cR9mi2 mH+MTNoIQ055UwKAw43wx0zecQZTYdl/fH1i6mv9kjLsfZE1DEoDKlHEueZ+kuQTEzMG 6z9w== 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=YVbMwB0TiglM9Jy2bve9nHK/i2B3Um4Ecj9XE9vae54=; fh=FGOYqS/wBgADOLLqsqsnP+nWcwCSE2FbrYoiZc+nlR8=; b=Wdw5x/OVWbim9MmxlQ/mPKo1CTvaMdJJi7DOHIw7+znaMcexLv3RSpF0XEst6CLl9p /1mRNZkMC/xWkSbmB3U3S8V79HknFH7zE4LD26Jrgh0fBzyq87nleudkUYNGxh0Lxv7K DSlUowvWAghB0vpI1+lOo+Q3B5LWVltjTW0kMMur2TeU9wPBD37iT4CyTNqTd70u+DdQ 675t2fPby2Z2aH53mkVf8QcBouVn//VkxYNt3kgtmVxiu3ZdPBI3bW7ZuJv4IWeixqHC +1ihZPkGXF7CAKl22caMUKTgZITBjNyGvbI86HropQgtf9MQ0sGi+4sQdbGFNIbQWk6J zo+g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=Umz37Cnx; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-58077-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58077-ouuuleilei=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCUh8MbDCbYNK+dxKNeSFki0rLWsc2m2XgCf5H+Y72kYwaNV0fn/xT3OKXW2hqYP+tM4BT7NGgpnu+r4BjDyGiVNafhXvQ== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id l13-20020a65680d000000b005dc5070656csi3457310pgt.785.2024.02.10.04.35.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Feb 2024 04:35:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-58077-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=Umz37Cnx; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-58077-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58077-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 02B68288F63 for ; Thu, 8 Feb 2024 12:45:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6B6F679945; Thu, 8 Feb 2024 12:44:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b="Umz37Cnx" Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) (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 C19D676C74 for ; Thu, 8 Feb 2024 12:43:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.45 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707396237; cv=none; b=rA0pMlFIxu0sJ+e+8wETh5nw9qGEEUw39mjzYA3yf9kvs70ZxGIGI/SXm1OkAK/D+ABrKyTwQIYUcSQBZIVOa4798UgRFk/U7tW83N+PeeODDk8xTerON++ZzGBMN4hf6ZOs+ObxEt5UDHpEG8aHYfBfgyRF8Adihm+ULmlwUg4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707396237; c=relaxed/simple; bh=EF1WGTgc7B/wPwokfhje4eT/Mebr8tr92pDDPkfm3H4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=tqYYzxKvzEBAhGVC6e1Bj+M/Jvt09hJw7ztOYNbKKE2QASa0IgLH+1Q0b/5ggRaquRcTkBzI7no+x2DzvLm+qIac48UvO5h0Yg+eS2KxbW86lFtSt6CK5OFiMiFckw2JrtysKSAww/0+vAQ1WhQHLy/jMxyIZ3HiD/oM2m3l8tA= 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=Umz37Cnx; arc=none smtp.client-ip=209.85.128.45 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-f45.google.com with SMTP id 5b1f17b1804b1-40fc6343bd2so15372945e9.1 for ; Thu, 08 Feb 2024 04:43:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1707396234; x=1708001034; 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=YVbMwB0TiglM9Jy2bve9nHK/i2B3Um4Ecj9XE9vae54=; b=Umz37CnxP9SO9Kcfxob2hndUOWMrpMtJi2LquUe+j3yv/jiGt1VnClGx3DEBQRt04G ih2wSFvQ7+0NjqVrjGvcELLFLRvafrm7m+JVBL5WDNTiNpjamxAwBu7vh1Jhfo6P3CFx RB6QaBl0yAXLGlE5Tz6oUKkQocjn1BEFlUxMu2KpsWhyLEPhAB3eMZWiKfeoCg1O5BsB neqDyfn/4GKjq1xKa8eMX992pt548jTzIAyJpXRL5aHwOl+Wnxy0fUZhMbpySCGZL0WC qTAEy4xDiBl0cnW4DA7sscgZ6FYu7V5sPtvc6vToOxD1OxinUoSOx/MAgj+wVvldMB5A W8MA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707396234; x=1708001034; 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=YVbMwB0TiglM9Jy2bve9nHK/i2B3Um4Ecj9XE9vae54=; b=hOZr+AFTdYowGxahAArrwmIqbWsdnExytwU4ukCJFVZai0TExaqbNMS/cjHcHo3ISr yORJHUtUcUGBkHndPxmnR/nyrPLPHSTAXWaB1Nv6DutY7b9PUt9ZKpAeIKCb2t9t9xk9 zsarG8dmDkIGAHM5Mp4S22X/tHyqdmQCHNsLOGUEnuFtdE+hhGL518AtkPpdEj7Xnhmi q1x6rMJDK4sEaWzO8eHPAPGlMFJ6CKcv13Om0/Zslz4mluXbeIDVelCSo9ZNVVvFSWyU ushLpSEPbHPYCz4obxKCF9CWsPohaf0sJduh71w8GSwiIIVCv4eGK14qX0T6EdheCJG+ 5jKA== X-Gm-Message-State: AOJu0Ywz4bsZ9xMIPx3r1jlYnHWkFI91X3O4YkrISlcgQr+K5gGw6zyq YyuDPfejxKrhUCSbalLtcohA1POSnid06c1M1idZXqaKhdDnjObgKeaSYWfjEHo= X-Received: by 2002:a05:600c:1e1d:b0:40f:f4b2:b26 with SMTP id ay29-20020a05600c1e1d00b0040ff4b20b26mr5738131wmb.25.1707396233978; Thu, 08 Feb 2024 04:43:53 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCW+k3ak3Q1EAZ44zAFQPvAThcwM466bhXPNIxXdC0k+54Ou7Zc12txWb58P6bsgdd6OT/w183dgapwgULEVG/ja7p/6VXKOKpT+MtV6ONpsgZU22nzt5NFnpcivsGxTLBsffy2XBOkR6aygjtY2sYYajYX570vNa6itMviKmUW3M5dIhgxqAheRT4dzyGXIksavPo2IdYe+20QSO946qX3hna55YZvGE5mRX2dO+yzE+EEcZBUJPUY25g6hTXPYi9ZwW+nqXLtFXFhjczn0qcibAomrERJzAJ9Bd2PYioQ7Rjs8wywIlbk4UxTI2V0l40yeWyyKcrZwtn2yN1u8icvnREZZEt+tIcHVRX+DMADriAAGj8+htO/QbKMRtYapriyn2R9RfS25WNfbCk6024l4bftl0+DZ+rTGhZ8w7kuA64+GGvLU18c2NV2HIOeYW+Ki68P7icEAi5t2b1tk7nMqJKKohxeJOvpJWEbDkt+aXWJNYXAHajWum7ELpdGlfL76g0x6l1a8oUVR+d7xN13hVXNOI8m6pEBxETYCVGNGYRJ3oBo/WrzYMdk9niAjtvc= 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.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 04:43:53 -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 05/17] dt-bindings: clock: r9a09g011-cpg: Add always-on power domain IDs Date: Thu, 8 Feb 2024 14:42:48 +0200 Message-Id: <20240208124300.2740313-6-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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790515359876073735 X-GMAIL-MSGID: 1790515359876073735 From: Claudiu Beznea Add always-on power domain ID for RZ/V2M (R9A09G011) SoC. Signed-off-by: Claudiu Beznea --- include/dt-bindings/clock/r9a09g011-cpg.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/dt-bindings/clock/r9a09g011-cpg.h b/include/dt-bindings/clock/r9a09g011-cpg.h index 41dd585d7115..250499faf049 100644 --- a/include/dt-bindings/clock/r9a09g011-cpg.h +++ b/include/dt-bindings/clock/r9a09g011-cpg.h @@ -349,4 +349,7 @@ #define R9A09G011_DDI_RESET 93 #define R9A09G011_DDI_RESETN_APB 94 +/* Power domain IDs. */ +#define R9A09G011_PD_ALWAYS_ON 0 + #endif /* __DT_BINDINGS_CLOCK_R9A09G011_CPG_H__ */ From patchwork Thu Feb 8 12:42:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: claudiu beznea X-Patchwork-Id: 198880 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp868972dyd; Fri, 9 Feb 2024 06:01:28 -0800 (PST) X-Google-Smtp-Source: AGHT+IFl9+viXGYV+lD0hFHl3yZZfO3JIAw0m10FNE83p/bFcuGSjYEBAGWlxjPM77HZ+rAy+KOU X-Received: by 2002:a1f:da84:0:b0:4b8:383e:8266 with SMTP id r126-20020a1fda84000000b004b8383e8266mr1425271vkg.11.1707487288489; Fri, 09 Feb 2024 06:01:28 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707487288; cv=pass; d=google.com; s=arc-20160816; b=pvKVuyMqOP1UdJaF7APJRO5b/moHDp7S6Y4YCJE02iHn4+HPs6ccs6W/kyqUGXUN7J Y2yCOqWntsN6NW27l/ADXQd01O9c1m95cJG7xMN7efg0l35mTfG1TYzuRauWcPcW44rx ETEBV4IBWjNIM9BpO36KjBcZRHWm7iouF5fQozv2Bjc1hDlEhjhkUhFi0rTa9oRWnIeP Vw9BDqJfbspHAbyLU/fWaMMBSDIACaUw6W3AVrLx7TFtzZwXkOrQgWbyAq2t3Bjn114U CHQmaPLn4Mo57CVHPPVbgThAxYmuelrALBJQ51LpQyHRa1DgHvGrz3zRnHJl013sBKUi H9og== 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=Ryh17vkvT9rK0W07k4+YFM6FrPWL3ef1PYzKuNba8sI=; fh=/OEFii3i1QabvxYPdUIkRexSenY+U+RnwjRN8MqlVjc=; b=P9f2YN72LGTFptFAc04DUVGNsrnmX4SkRc2Aa6dVA7iYfy728RlFJkYtoLc/wpQ2yB 5FRCPEydnlSIuUTefw7OxcaQaoX33AsEVExdp9fW4E7/MoGlOny/HoqjZHZ+wby3er21 C8HY6Vk06tSUnPZCB4p1OOGWioZU0wij5qHQIUiH8hOc2QJnLLaC9FaHyX8Eb8AZur8+ VOAPn9BVr+jXlegSSqJu3+eZznMFS5Cel36MSVlyYlOEChgcl/EhOHKGzjqwKYPJdYCE FzSTvgIDSpkg1G+X0CbVgmi280UwCRCeYr6bJ0zSg5rzniwu/ibwXbnAV2XJ20tzT2Bq 1sxw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=Xp8nbnL6; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-58078-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58078-ouuuleilei=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCUGKmka4RPXrh2ObH6BQqhQ1iQoKrnd0UX6pQmCcO+0LKo1iIgjtQonQkJtxB5NvtqzZpJfMlAq2LE8yOxbfKWrRiMMgg== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id en6-20020a056122280600b004c022163b7dsi252513vkb.153.2024.02.09.06.01.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 06:01:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-58078-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=Xp8nbnL6; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-58078-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58078-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 D183D1C26BC6 for ; Thu, 8 Feb 2024 12:45:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B5F0179DA1; Thu, 8 Feb 2024 12:44:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b="Xp8nbnL6" Received: from mail-wm1-f49.google.com (mail-wm1-f49.google.com [209.85.128.49]) (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 0A43178B70 for ; Thu, 8 Feb 2024 12:43:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.49 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707396239; cv=none; b=cHmZn/PMxlO3ayaxp2JwOm7wA1tAPAcV6dUKKCQ9ps1U1wsw6hIBsfaN9+mCSgGuJMuO0MyOjUB275+aHKiM1tTdCE4RVLV0HOSfxiaCbZvO7KHQWIWv+gdObTf39LGcGdwj42Xg2lm1DFvjJdHDnJBb3uMttWuvDZdvIQrW21k= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707396239; c=relaxed/simple; bh=v//21KnnDrpqx39OxUt/lqL3cNOdm1jgjiI36bhErsE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=oCMhsEZgxYp3ABMXXvoSShldb1wsO6UvYQfxhw+mV5yOEKzal0TSxHRe+yp/1nMQbeJ4gwm6UCnhoUfz3gJKGOYTm/EDd2QVDZ4xO/oqJXLTG/jnlWpp2+1oV1Mc5gFTg0ahYVX2oLKnTUajVgYr+yQcp39EjOTCT3gl8pG4NVY= 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=Xp8nbnL6; arc=none smtp.client-ip=209.85.128.49 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-f49.google.com with SMTP id 5b1f17b1804b1-4104dee26bfso901345e9.3 for ; Thu, 08 Feb 2024 04:43:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1707396236; x=1708001036; 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=Ryh17vkvT9rK0W07k4+YFM6FrPWL3ef1PYzKuNba8sI=; b=Xp8nbnL67o19u+sNe+HrLLxRdoXz6kuwP1cNB20SZueg9926xxqxRmc9vH2SPKcs4c J8u9O0uLlltCgW7saB79WMq2pOBQsv32FQfa4pOqJlLpI3EHej93ot0QKlnuCBt5abCE 2cNV8pyGrxaFzX1LD+UdZOyOBmFnuABFY+zt1sfubowSX0XIQnLX/CtlQ415LdVYDx7h nuOWrrYLptYpYAChgLVNsfryreXxubVQp8m3bc/4KdkukVun4ZYxpo3iqVObR1knLpcm 0R/CpV3VvhKrq+iv89Ou4NW3TcLXPySZnFlhXN6irXlTHdywglSr1VdsOmCRE2Q1G8S6 /+dw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707396236; x=1708001036; 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=Ryh17vkvT9rK0W07k4+YFM6FrPWL3ef1PYzKuNba8sI=; b=ieZQ0woXnsR442V92hnmfh9kMCvUedLRcbPbPGpMYcLpXjTl5oH7EvEzxXFRmKDQMt XQi4Wf0dB7W2gvpgO5d9ccmpeYQS8LyNqnzkUwyq1lgpg8QNaIJlukv2u9pwSAG3Qftn Qv3HV2NvVB24ZEmec38bC43n/qAhWZBUJN5WkiGCJsRby/EYqZunRbzaQpzsPrqUm+yG KPhJ+df2nIi1+fzDD95GdNtKCmXPLX7TpZNZpTQ1Gb2ta3uVq3bRN5rCDdsWqHz6pOBn hTKSmQ52uvF1jRwCbeFHcN79gJzSBGS3FIAFis1iwxFnprkii9+RW+SXPdX2L8FO9ems WrOQ== X-Gm-Message-State: AOJu0YwuugkXj6rNjxAD1LDapwERYwhgry6D2PKlSdT3r4/qENgIa3Ir 4DzgvgTpr12yIe6NbDPPp6K4U7qGULRql/Hfp9ZwArp+0dfm0cXJ7zmMEAF12D8= X-Received: by 2002:a05:600c:548e:b0:40f:ba01:6125 with SMTP id iv14-20020a05600c548e00b0040fba016125mr7327127wmb.32.1707396236421; Thu, 08 Feb 2024 04:43:56 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCVaVxKvgjdrUHMcn+vDtcSzWaDLuDkKGG1MKSWLY3PNZ0O8PwbQ/8uKSqKMrqsQyqbOXAvtKOsO1LiBcuVvKeuoJx/oI6dD0l+RKX2QOWKdpr1o20p4aJVnt9tdtQVLVnhgLycsbb0MxgH8LB4WbTuAL2XDwzB5Zl4Rzg1ujmlof7uMPM4JuCUmoaQjhm1yeySRXnRdu0m7SxyBzq4hhN7AUVPRnkUG9Od2zTGWQWtP3uzmqD4IOp99FGsKRXP2RVqFf/7rsH2xbwC4umSG+DsLKMgAYh1jBS1cVLJ8reXQ95Kt2dZyD+dqaa3OZ2TKL+wd0TaHTvsUF685HHjxJmb1MFPemn1IMMFHQ5SDchoPTqUuEtydBYfK4Bna0OuO43zXHHHDpGgJENqzdos6kbRBndcwPaLKecp8w+qSOlcZeun+FZn5SOSL9hG2I0UghoAdsJjm2wzRQvyBGvK45w/YznQaw0mhfYpvHJHNwf+VoRuJTR0X+SwDStf+YxKzZKBFvcUWqE/eH8EKHSLN8tzSHCXW8KKjCt7vT47cvh0+bQ+Oa4H96qsLHH3XRAJGMOg= 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.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 04:43:56 -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 06/17] dt-bindings: clock: renesas,rzg2l-cpg: Update #power-domain-cells = <1> Date: Thu, 8 Feb 2024 14:42:49 +0200 Message-Id: <20240208124300.2740313-7-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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790408303947992686 X-GMAIL-MSGID: 1790430190910195427 From: Claudiu Beznea The driver will be modified (in the next commits) to be able to specify individual power domain ID for each IP. Update the documentation to cope with this. Signed-off-by: Claudiu Beznea --- .../devicetree/bindings/clock/renesas,rzg2l-cpg.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/devicetree/bindings/clock/renesas,rzg2l-cpg.yaml b/Documentation/devicetree/bindings/clock/renesas,rzg2l-cpg.yaml index 80a8c7114c31..d7de3ddbc613 100644 --- a/Documentation/devicetree/bindings/clock/renesas,rzg2l-cpg.yaml +++ b/Documentation/devicetree/bindings/clock/renesas,rzg2l-cpg.yaml @@ -57,7 +57,7 @@ properties: can be power-managed through Module Standby should refer to the CPG device node in their "power-domains" property, as documented by the generic PM Domain bindings in Documentation/devicetree/bindings/power/power-domain.yaml. - const: 0 + const: 1 '#reset-cells': description: @@ -84,6 +84,6 @@ examples: clocks = <&extal_clk>; clock-names = "extal"; #clock-cells = <2>; - #power-domain-cells = <0>; + #power-domain-cells = <1>; #reset-cells = <1>; }; From patchwork Thu Feb 8 12:42:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: claudiu beznea X-Patchwork-Id: 198838 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp807243dyd; Fri, 9 Feb 2024 04:16:15 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXG+0x8q/qoaRXPlZoRTSdeec0V6P0rFbjlcShjsZUS0E1YrGmGO+ZtVpyq+orUHHfUpQyPCktPHUPJZhMX/BZq1gIkqQ== X-Google-Smtp-Source: AGHT+IHEQvzFD0EX3Ks+bEqHdQFnI15e+YSUYMGR4G31V6m2vs/YZ9OS6fvXU7FIOe7qam9qdWrp X-Received: by 2002:a05:6402:1812:b0:560:10c:3cc with SMTP id g18-20020a056402181200b00560010c03ccmr1166739edy.21.1707480974895; 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=noRywTSVi2SMPvyiKAO2DJNbpaJv04EEsICpmwSfkCgwnXB/UknMI6RMUukdkmX9vT 01gBmJsRB8VwpeCFRcfHZA72FeisPRKDJ32qD+eVbNU+6HAS0Qq+yzGOiqxJxZp7okqv loU00TWCjDOakwHtrf3ZUDtXzTxA4sJwdMqgd6M7hOw+W4tddBGBHf0uWEeFaUfb0534 UgHeTPTfqfoFSMD9hBXJSjCQXNlDKB8kHJjwxKuHjpTcauA+Dq+m5fSqgiL3FFdV8H9C +ouBBIDQkUCxqv6yQ1QwklhgqXCs9uCl6ECfM1n1i9Aoz/FqXmimBsScwKi7/608yVae RVzw== 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=1YxpUHAla5Wryw9iIi3tPbE4ZbFceRrwYviiC216IIY=; fh=0eDAKoKtLnJsAGv5fHdUHQARd8JbdMWrb4sXGAamiVY=; b=rNNgbkzvJ9puG2xPo90skIEljIaJvNclySXxclhNjlo4NlavVcLLfALgTwXgTicfF2 WsABAGd10ZJeGM8QwEZpZXGS3XTlpQc6+LI1AhNOoo2oC+diG8M0eHilGPv+3oi50HjX JKeOVUPYw2LbC1HYkVJ+BK/7aHXGgrddN7L9wLNulBeIEzT7dnq6N+9juWEffd+1iYP4 Gi3Gm1QXUIuy2eeck7yXje2h7DVo8equyJFwmKaOBbSJ9Dzw7YuA3LoOKXAIn0LeRtgh KQWB7wWFDCO2urXGxS3ASUAWhM6xzDTiPA3v4DvXKgMl62miC/bS+L7cMPJfQpetiyU0 Gmxw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=bjaXyTig; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-58079-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58079-ouuuleilei=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCVukURSBVahAXlH5DWK7q9374mmUEX6aPG3+yV39/7vDst2bU1788l7k330ucnpx8BLQxNJPQKaVjWjrCR9jZJ+Lv2nQA== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id w9-20020a056402268900b0056036d86e2esi862583edd.406.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-58079-ouuuleilei=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=bjaXyTig; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-58079-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58079-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 am.mirrors.kernel.org (Postfix) with ESMTPS id AC5621F276C8 for ; Thu, 8 Feb 2024 12:46:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E15F97B3FF; Thu, 8 Feb 2024 12:44:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b="bjaXyTig" Received: from mail-lf1-f47.google.com (mail-lf1-f47.google.com [209.85.167.47]) (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 B527779954 for ; Thu, 8 Feb 2024 12:44:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707396242; cv=none; b=bZJMbjUiNzVKIc4iZu1bijGEzQoMbmZSm9ukHvyr4xzV/GxWk+pJ9md3602jbw+5v6UGdlO0lpqxjEQ5c5r5po1DQ6us+mZRD4ioFLEOaH+VvD9z4TkWNjS7asGwu3onA8yKAdy4kMWrz8OGaN+HSGW8RtJqU2h8lzcN4DdepMg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707396242; c=relaxed/simple; bh=tDOmLAGfhVEz4/QtfXnjHFgiHQJjjE1A7Q52Ka2mBiY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=GAAmE/fUtqOGVX0+eiywiSUnAFNQ+3+bNVkdaUhHv5D2HYf0erJHkGbOOt1BlQpVGJzoCM+5GvfXw5bVkzxLA5PjzJMTj0zhzWwceTtn79nx6LjwY566YD1rM/TR9pC55U/2cltt0COpNMZHsEJ2l7S+8UlY31EjdrQe7ieX8lo= 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=bjaXyTig; arc=none smtp.client-ip=209.85.167.47 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-f47.google.com with SMTP id 2adb3069b0e04-51147d0abd1so2096271e87.1 for ; Thu, 08 Feb 2024 04:44:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1707396239; x=1708001039; 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=1YxpUHAla5Wryw9iIi3tPbE4ZbFceRrwYviiC216IIY=; b=bjaXyTigyKx0T6Gt8rNZaJly4nA6SjwiqqqfBOIPASXY+NuzQWKmlzwsnUZXd7BO4e RQuBVbegI+BxLFPoN1AS3XKtZeQ59iifX6nSDQddrZodbRguEK7v/5n7rjCHSRERnNW0 LN5JdM1sTKWk1Gez6o1392zjLDwhIQogvQaNB5jUChdA99IpnC9Bo2n4AcfaMryBODDr mZ/fogQL7EXGVdzBR4XO4IxVc+NR3+SDFC1hEfZGurS1s4y/gU+/PQYnDWeqVgSrPHip 2/YYMTVBbjMpCPSRGqDk4Lm0sU2kUz8iQItJ+exBXBKiODzpr15xVr8FlFgs4wjUxfL3 Ex/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707396239; x=1708001039; 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=1YxpUHAla5Wryw9iIi3tPbE4ZbFceRrwYviiC216IIY=; b=WzU+uhEgMkuvkMU8kVpvPeshCc0RvlMg+VVl6rUFQFOKofBj8FBl7nPoM3IBsoJOqd vixvoCEPPGKVlUbClW5BE4a3kfz+sNBqMHWYfZXgKxkoRm7wRrTnhahMFjh9Gg3dLdDn FpW0MHzkEey4n1CcI/uKwHyPjzpf3nSiVWkC/I9SZO47Xp/wivnDWJZ82WBsGwinXGEJ /v6wjrNP7Xlk2DVW0L1Vk1bgClpvlVVue08E3ElMnZKuGERZTFf4IC0LQWhSLLyE5nBr eMJNJGtVji489gdLXiIbjfCagHz66GrU9vOwTax5lv2QJl772r0yUDUQ366KA0Yzs370 h++A== X-Forwarded-Encrypted: i=1; AJvYcCVrtBHd6A0nK1krfkG7zmtdWEDWZ/jk6fONTKagzMl+N/XdJ6o9S8qlSZyQB19zmp0iARu213gY9N4QZ7lGHtLr/ZoPNY+05dvIezg3 X-Gm-Message-State: AOJu0YxwYY7d3BDYLQg0TPyNvLIu0fnmm0O095bo+3aG57kRVCc88AwZ jjBUpI/nF7YnuoXjBA+Aa50lVrqP4j6lmUiDTCVfVcDHbniVKmqCY8SG8G9dA2M= X-Received: by 2002:a05:6512:ad5:b0:511:60d0:c0ec with SMTP id n21-20020a0565120ad500b0051160d0c0ecmr6465924lfu.36.1707396238908; Thu, 08 Feb 2024 04:43:58 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCUMKC5QQ1BLQI72au2TdIqDut80ECvA/v8OPNWI/SG6QJB2n6yaW9Fu7epCTnz3wjA8QoOy1MfAHzmmqM27jhJo+nVEGEtQBck0AG6oQ0t3fjR2ztEXXoG6a1VulSo47fIsmNW6hAvGyfXVz/KwCF/Xs11OoV2GmkHAXPvWedNQnSixAr0Ce4TVARb1gJe1O5f3HnqtbNxqoi4pT3lSQ5skqAGa7njBuggI78j5e+Y2gnbT31y7JQDLub1jqQEyv+eLEDjQfJrXPK8+CBMV7vy2GG2zqvWzBmqKl9tMnC3wZFcMeA8RCJ6mhtFqMApxyLMKJXM9cY1Zd74kHYX3SqYKsHWna4lbQllT87visC2pBLnlUpum9W2NHaHtw18IewYRRyri+bLDZywHj2J/Ur6nfCnP7OV62ddi31EenKZotCKZlKfZjjG7ZLTIso5GmA3ndpid3/TJyn9P4YOPz9Zj8l75qGNXQwU3IRgwM5CbduM82Kqoo8a+vx9WuFuRuhwXfwH/vH75/2J91GLoihIbxXOs8oELAKKMsiVw5/Juh/RLgAkLp1vXHDNQ+mTGeis= 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.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 04:43:58 -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 07/17] clk: renesas: rzg2l: Extend power domain support Date: Thu, 8 Feb 2024 14:42:50 +0200 Message-Id: <20240208124300.2740313-8-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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790423571191227597 X-GMAIL-MSGID: 1790423571191227597 From: Claudiu Beznea RZ/{G2L, V2L, G3S}-based CPG versions have support for saving extra power when clocks are disabled by activating module standby. This is done through MSTOP-specific registers that are part of CPG. Each individual module has one or more bits associated with one MSTOP register (see table "Registers for Module Standby Mode" from HW manuals). Hardware manual associates modules' clocks with one or more MSTOP bits. There are 3 mappings available (identified by researching RZ/G2L, RZ/G3S, RZ/V2L HW manuals): case 1: N clocks mapped to N MSTOP bits (with N={0, ..., X}) case 2: N clocks mapped to 1 MSTOP bit (with N={0, ..., X}) case 3: N clocks mapped to M MSTOP bits (with N={0, ..., X}, M={0, ..., Y}) Case 3 has been currently identified on RZ/V2L for the VCPL4 module. To cover all three cases, the individual platform drivers will provide to clock driver MSTOP register offset and associated bits in this register as a bitmask and the clock driver will apply this bitmask to proper MSTOP register. Apart from MSTOP support, RZ/G3S can save more power by powering down the individual IPs (after MSTOP has been set) if proper bits in CPG_PWRDN_IP{1,2} registers are set. The MSTOP and IP power down support were implemented through power domains. Platform-specific clock drivers will register an array of type struct rzg2l_cpg_pm_domain_init_data, which will be used to instantiate properly the power domains. Signed-off-by: Claudiu Beznea --- drivers/clk/renesas/rzg2l-cpg.c | 227 ++++++++++++++++++++++++++++++-- drivers/clk/renesas/rzg2l-cpg.h | 68 ++++++++++ 2 files changed, 281 insertions(+), 14 deletions(-) diff --git a/drivers/clk/renesas/rzg2l-cpg.c b/drivers/clk/renesas/rzg2l-cpg.c index 3d2daa4ba2a4..3a7168c314c2 100644 --- a/drivers/clk/renesas/rzg2l-cpg.c +++ b/drivers/clk/renesas/rzg2l-cpg.c @@ -139,7 +139,6 @@ struct rzg2l_pll5_mux_dsi_div_param { * @num_resets: Number of Module Resets in info->resets[] * @last_dt_core_clk: ID of the last Core Clock exported to DT * @info: Pointer to platform data - * @genpd: PM domain * @mux_dsi_div_params: pll5 mux and dsi div parameters */ struct rzg2l_cpg_priv { @@ -156,8 +155,6 @@ struct rzg2l_cpg_priv { const struct rzg2l_cpg_info *info; - struct generic_pm_domain genpd; - struct rzg2l_pll5_mux_dsi_div_param mux_dsi_div_params; }; @@ -1559,9 +1556,34 @@ static bool rzg2l_cpg_is_pm_clk(struct rzg2l_cpg_priv *priv, return true; } +/** + * struct rzg2l_cpg_pm_domain - RZ/G2L PM domains data structure + * @domains: generic PM domains + * @onecell_data: cell data + */ +struct rzg2l_cpg_pm_domain { + struct generic_pm_domain **domains; + struct genpd_onecell_data onecell_data; +}; + +/** + * struct rzg2l_cpg_pd - RZ/G2L power domain data structure + * @priv: pointer to CPG private data structure + * @genpd: generic PM domain + * @conf: CPG PM domain configuration info + * @id: RZ/G2L power domain ID + */ +struct rzg2l_cpg_pd { + struct rzg2l_cpg_priv *priv; + struct generic_pm_domain genpd; + struct rzg2l_cpg_pm_domain_conf conf; + u16 id; +}; + static int rzg2l_cpg_attach_dev(struct generic_pm_domain *domain, struct device *dev) { - struct rzg2l_cpg_priv *priv = container_of(domain, struct rzg2l_cpg_priv, genpd); + struct rzg2l_cpg_pd *pd = container_of(domain, struct rzg2l_cpg_pd, genpd); + struct rzg2l_cpg_priv *priv = pd->priv; struct device_node *np = dev->of_node; struct of_phandle_args clkspec; bool once = true; @@ -1617,31 +1639,208 @@ static void rzg2l_cpg_detach_dev(struct generic_pm_domain *unused, struct device } static void rzg2l_cpg_genpd_remove(void *data) +{ + struct genpd_onecell_data *celldata = data; + + for (unsigned int i = 0; i < celldata->num_domains; i++) + pm_genpd_remove(celldata->domains[i]); +} + +static void rzg2l_cpg_genpd_remove_simple(void *data) { pm_genpd_remove(data); } +static int rzg2l_cpg_power_on(struct generic_pm_domain *domain) +{ + struct rzg2l_cpg_pd *pd = container_of(domain, struct rzg2l_cpg_pd, genpd); + struct rzg2l_cpg_priv *priv = pd->priv; + u32 off, mask; + + /* Set PWRDN. */ + if (pd->conf.pwrdn) { + off = PWRDN_OFF(pd->conf.pwrdn); + mask = PWRDN_MASK(pd->conf.pwrdn) << 16; + writel(mask, priv->base + off); + } + + /* Set MSTOP. */ + if (pd->conf.mstop) { + off = MSTOP_OFF(pd->conf.mstop); + mask = MSTOP_MASK(pd->conf.mstop) << 16; + writel(mask, priv->base + off); + } + + return 0; +} + +static int rzg2l_cpg_power_off(struct generic_pm_domain *domain) +{ + struct rzg2l_cpg_pd *pd = container_of(domain, struct rzg2l_cpg_pd, genpd); + struct rzg2l_cpg_priv *priv = pd->priv; + u32 off, mask; + + /* Set MSTOP. */ + if (pd->conf.mstop) { + off = MSTOP_OFF(pd->conf.mstop); + mask = MSTOP_MASK(pd->conf.mstop); + writel(mask | (mask << 16), priv->base + off); + } + + /* Set PWRDN. */ + if (pd->conf.pwrdn) { + off = PWRDN_OFF(pd->conf.pwrdn); + mask = PWRDN_MASK(pd->conf.pwrdn); + writel(mask | (mask << 16), priv->base + off); + } + + return 0; +} + +static int __init rzg2l_cpg_pd_setup(struct rzg2l_cpg_pd *pd, bool always_on) +{ + struct dev_power_governor *governor; + + pd->genpd.flags |= GENPD_FLAG_PM_CLK | GENPD_FLAG_ACTIVE_WAKEUP; + pd->genpd.attach_dev = rzg2l_cpg_attach_dev; + pd->genpd.detach_dev = rzg2l_cpg_detach_dev; + if (always_on) { + pd->genpd.flags |= GENPD_FLAG_ALWAYS_ON; + governor = &pm_domain_always_on_gov; + } else { + pd->genpd.power_on = rzg2l_cpg_power_on; + pd->genpd.power_off = rzg2l_cpg_power_off; + governor = &simple_qos_governor; + } + + return pm_genpd_init(&pd->genpd, governor, false); +} + static int __init rzg2l_cpg_add_clk_domain(struct rzg2l_cpg_priv *priv) { struct device *dev = priv->dev; struct device_node *np = dev->of_node; - struct generic_pm_domain *genpd = &priv->genpd; + struct rzg2l_cpg_pd *pd; int ret; - genpd->name = np->name; - genpd->flags = GENPD_FLAG_PM_CLK | GENPD_FLAG_ALWAYS_ON | - GENPD_FLAG_ACTIVE_WAKEUP; - genpd->attach_dev = rzg2l_cpg_attach_dev; - genpd->detach_dev = rzg2l_cpg_detach_dev; - ret = pm_genpd_init(genpd, &pm_domain_always_on_gov, false); + pd = devm_kzalloc(priv->dev, sizeof(*pd), GFP_KERNEL); + if (!pd) + return -ENOMEM; + + pd->genpd.name = np->name; + pd->priv = priv; + ret = rzg2l_cpg_pd_setup(pd, true); if (ret) return ret; - ret = devm_add_action_or_reset(dev, rzg2l_cpg_genpd_remove, genpd); + ret = devm_add_action_or_reset(dev, rzg2l_cpg_genpd_remove_simple, &pd->genpd); if (ret) return ret; - return of_genpd_add_provider_simple(np, genpd); + return of_genpd_add_provider_simple(np, &pd->genpd); +} + +static struct generic_pm_domain * +rzg2l_cpg_pm_domain_xlate(struct of_phandle_args *spec, void *data) +{ + struct generic_pm_domain *domain = ERR_PTR(-ENOENT); + struct genpd_onecell_data *genpd = data; + + if (spec->args_count != 1) + return ERR_PTR(-EINVAL); + + for (unsigned int i = 0; i < genpd->num_domains; i++) { + struct rzg2l_cpg_pd *pd = container_of(genpd->domains[i], struct rzg2l_cpg_pd, + genpd); + + if (pd->id == spec->args[0]) { + domain = &pd->genpd; + break; + } + } + + return domain; +} + +static int __init rzg2l_cpg_add_pm_domains(struct rzg2l_cpg_priv *priv) +{ + const struct rzg2l_cpg_info *info = priv->info; + struct device *dev = priv->dev; + struct device_node *np = dev->of_node; + struct rzg2l_cpg_pm_domain *domains; + struct generic_pm_domain *parent; + u32 ncells; + int ret; + + ret = of_property_read_u32(np, "#power-domain-cells", &ncells); + if (ret) + return ret; + + /* For backward compatibility. */ + if (!ncells) + return rzg2l_cpg_add_clk_domain(priv); + + domains = devm_kzalloc(priv->dev, sizeof(*domains), GFP_KERNEL); + if (!domains) + return -ENOMEM; + + domains->domains = devm_kcalloc(priv->dev, info->num_pm_domains, + sizeof(struct generic_pm_domain *), GFP_KERNEL); + if (!domains->domains) + return -ENOMEM; + + domains->onecell_data.domains = domains->domains; + domains->onecell_data.num_domains = info->num_pm_domains; + domains->onecell_data.xlate = rzg2l_cpg_pm_domain_xlate; + + ret = devm_add_action_or_reset(dev, rzg2l_cpg_genpd_remove, &domains->onecell_data); + if (ret) + return ret; + + for (unsigned int i = 0; i < info->num_pm_domains; i++) { + bool always_on = !!(info->pm_domains[i].flags & RZG2L_PD_F_ALWAYS_ON); + struct rzg2l_cpg_pd *pd; + + pd = devm_kzalloc(priv->dev, sizeof(*pd), GFP_KERNEL); + if (!pd) + return -ENOMEM; + + pd->genpd.name = info->pm_domains[i].name; + pd->conf = info->pm_domains[i].conf; + pd->id = info->pm_domains[i].id; + pd->priv = priv; + + ret = rzg2l_cpg_pd_setup(pd, always_on); + if (ret) + return ret; + + if (always_on) { + ret = rzg2l_cpg_power_on(&pd->genpd); + if (ret) + return ret; + } + + domains->domains[i] = &pd->genpd; + /* Parent should be on the very first entry of info->pm_domains[]. */ + if (info->pm_domains[i].flags & RZG2L_PD_F_PARENT) { + parent = &pd->genpd; + continue; + } + + ret = pm_genpd_add_subdomain(parent, &pd->genpd); + if (ret) + return ret; + } + + ret = of_genpd_add_provider_onecell(np, &domains->onecell_data); + if (ret) + return ret; + + /* Prepare for power down the BUSes in power down mode. */ + if (info->pm_domain_pwrdn_mstop) + writel(CPG_PWRDN_MSTOP_ENABLE, priv->base + CPG_PWRDN_MSTOP); + + return 0; } static int __init rzg2l_cpg_probe(struct platform_device *pdev) @@ -1697,7 +1896,7 @@ static int __init rzg2l_cpg_probe(struct platform_device *pdev) if (error) return error; - error = rzg2l_cpg_add_clk_domain(priv); + error = rzg2l_cpg_add_pm_domains(priv); if (error) return error; diff --git a/drivers/clk/renesas/rzg2l-cpg.h b/drivers/clk/renesas/rzg2l-cpg.h index 6e38c8fc888c..00d12b04ba2f 100644 --- a/drivers/clk/renesas/rzg2l-cpg.h +++ b/drivers/clk/renesas/rzg2l-cpg.h @@ -27,6 +27,16 @@ #define CPG_PL6_ETH_SSEL (0x418) #define CPG_PL5_SDIV (0x420) #define CPG_RST_MON (0x680) +#define CPG_ACPU_MSTOP (0xB60) +#define CPG_MCPU2_MSTOP (0xB68) +#define CPG_PERI_COM_MSTOP (0xB6C) +#define CPG_PERI_CPU_MSTOP (0xB70) +#define CPG_PERI_DDR_MSTOP (0xB74) +#define CPG_REG1_MSTOP (0xB80) +#define CPG_TZCDDR_MSTOP (0xB84) +#define CPG_PWRDN_IP1 (0xBB0) +#define CPG_PWRDN_IP2 (0xBB4) +#define CPG_PWRDN_MSTOP (0xBC0) #define CPG_OTHERFUNC1_REG (0xBE8) #define CPG_SIPLL5_STBY_RESETB BIT(0) @@ -70,6 +80,8 @@ #define EXTAL_FREQ_IN_MEGA_HZ (24) +#define CPG_PWRDN_MSTOP_ENABLE (BIT(16) | BIT(0)) + /** * Definitions of CPG Core Clocks * @@ -234,6 +246,54 @@ struct rzg2l_reset { #define DEF_RST(_id, _off, _bit) \ DEF_RST_MON(_id, _off, _bit, -1) +/** + * struct rzg2l_cpg_pm_domain_conf - PM domain configuration data structure + * @mstop: MSTOP configuration (MSB = register offset, LSB = bitmask) + * @pwrdn: PWRDN configuration (MSB = register offset, LSB = register bit) + */ +struct rzg2l_cpg_pm_domain_conf { + u32 mstop; + u32 pwrdn; +}; + +/** + * struct rzg2l_cpg_pm_domain_init_data - PM domain init data + * @name: PM domain name + * @conf: PM domain configuration + * @flags: RZG2L PM domain flags (see RZG2L_PD_F_*) + * @id: PM domain ID (similar to the ones defined in + * include/dt-bindings/clock/-cpg.h) + */ +struct rzg2l_cpg_pm_domain_init_data { + const char * const name; + struct rzg2l_cpg_pm_domain_conf conf; + u32 flags; + u16 id; +}; + +#define DEF_PD(_name, _id, _mstop_conf, _pwrdn_conf, _flags) \ + { \ + .name = (_name), \ + .id = (_id), \ + .conf = { \ + .mstop = (_mstop_conf), \ + .pwrdn = (_pwrdn_conf), \ + }, \ + .flags = (_flags), \ + } + +#define MSTOP(name, bitmask) ((CPG_##name##_MSTOP) << 16 | (bitmask)) +#define MSTOP_OFF(conf) ((conf) >> 16) +#define MSTOP_MASK(conf) ((conf) & GENMASK(15, 0)) + +#define PWRDN(name, bit) ((CPG_PWRDN_##name) << 16 | BIT(bit)) +#define PWRDN_OFF(conf) ((conf) >> 16) +#define PWRDN_MASK(conf) ((conf) & GENMASK(15, 0)) + +/* Power domain flags. */ +#define RZG2L_PD_F_PARENT BIT(0) +#define RZG2L_PD_F_ALWAYS_ON BIT(1) + /** * struct rzg2l_cpg_info - SoC-specific CPG Description * @@ -252,6 +312,9 @@ struct rzg2l_reset { * @crit_mod_clks: Array with Module Clock IDs of critical clocks that * should not be disabled without a knowledgeable driver * @num_crit_mod_clks: Number of entries in crit_mod_clks[] + * @pm_domains: PM domains init data array + * @num_pm_domains: Number of PM domains + * @pm_domain_pwrdn_mstop: Specifies if PWRDN MSTOP is supported * @has_clk_mon_regs: Flag indicating whether the SoC has CLK_MON registers */ struct rzg2l_cpg_info { @@ -278,6 +341,11 @@ struct rzg2l_cpg_info { const unsigned int *crit_mod_clks; unsigned int num_crit_mod_clks; + /* Power domain. */ + const struct rzg2l_cpg_pm_domain_init_data *pm_domains; + unsigned int num_pm_domains; + bool pm_domain_pwrdn_mstop; + bool has_clk_mon_regs; }; From patchwork Thu Feb 8 12:42:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: claudiu beznea X-Patchwork-Id: 199252 Return-Path: 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 (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 ; 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 ; 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790513746875977818 X-GMAIL-MSGID: 1790513746875977818 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, }; From patchwork Thu Feb 8 12:42:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: claudiu beznea X-Patchwork-Id: 199262 Return-Path: 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 (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 ; 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 ; 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 ; 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 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 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: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790517273430573821 X-GMAIL-MSGID: 1790517273430573821 From: Claudiu Beznea Instantiate always-on power domain for R9A07G044 SoC. At the moment, all the IPs are part of this domain. Signed-off-by: Claudiu Beznea --- drivers/clk/renesas/r9a07g044-cpg.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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 From patchwork Thu Feb 8 12:42:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: claudiu beznea X-Patchwork-Id: 198446 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp251684dyd; Thu, 8 Feb 2024 07:35:53 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWnSfjVpceQv4MaxkXykTzi+4yWEyoJtGoMEUkZ1gFgZhv5pswoJUwHhUZoFth4j+P5iUpxf5jSvNzUbnRE7fFOy7EReg== X-Google-Smtp-Source: AGHT+IH45ftKEkzAp9C84+EvuvcY7U6RYpcd2BKJ3NmkscYSpwspSEloVu9u1mnV7JPtAxgVgefs X-Received: by 2002:ac8:6e9d:0:b0:42b:e3ce:f43 with SMTP id c29-20020ac86e9d000000b0042be3ce0f43mr9896207qtv.53.1707406552647; Thu, 08 Feb 2024 07:35:52 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707406552; cv=pass; d=google.com; s=arc-20160816; b=QLptOLSVrxF0+tz1JnuPSPN9ZpLCTZBbpRRbU+MwNKK+BxYfBi5AIkIkXpZP5elgWp ceWo+M0OjGijz0LV6+PS3swebJi956xpx40m6qLwL4Qh9Lm7nbmqaWdum2zrhCwJNlJC w+5WyMlqCxXHL6TzmYqGwmqKAs3rOl3mTmONPrZZYrql29s+g6S+TcFa3l7rHJSY7y5m 4Hf+JATHO//9z3Wsz9NLSBoSDHPPc/+Hej5jV+4kLeq8EefMvDj29eWyBNrcoXE17CQU /QkA021MBgJdilq0FS39h3xoLUwd/4eUdwnMT2s8mbIBtUgCcTyAUrPI6/Xi76kh2oc1 JDeQ== 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=9rO5WdjuJmB2S7TQJ0EBDmOconefLyJTkDblhQ1H3b4=; fh=EQ0sgDvcNKCgGDTOTA8W1EUjXRd9/k6gbFLlvyyvYTI=; b=C6NHMgFW5ru+qS5I1t2hW+etLN2IjINuZulFFEOoK+GtNuvuoeQqHXQZNPyWOouNIY bpDkrgt1J4l2AeTwoobjhAvpjW8+gR4Cj/HDEEa5fC28RB7ok2w9Ymp798AgfnnkknJE rczfsWCx6/H55ywxP9AhrUZDWzETiERDMowxmi8UB1I3NIv8u0CoEeBTP9HLJcO/wKn3 +htYXPf2mpR7eDI0gjvNiSdMP+r7pLLrUYI0YZk9qBPQFjuPIwpdB0CM0DSS6h+iLzx6 vAouxzzdm9y3m7x8Ni9UOPhUH3PPQ4xkLhQTmLEvJeVM5HD0nDo3gHJNICZ62ybz9ZE2 U4Pw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=aVskWnLB; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-58082-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58082-ouuuleilei=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCX0eKD7NQjB+XEsf912o5A4jOmopf89QOud0bM4yEGj17dOtUpgcQRYno80BVUZFS2yWOgoOfka+LR+PaE80qzOBpg10w== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id u31-20020a05622a199f00b0042c3ed94d8csi212216qtc.392.2024.02.08.07.35.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 07:35:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-58082-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=aVskWnLB; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-58082-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58082-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 72BEE1C280FD for ; Thu, 8 Feb 2024 12:46:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 755867CF34; Thu, 8 Feb 2024 12:44:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b="aVskWnLB" Received: from mail-wm1-f44.google.com (mail-wm1-f44.google.com [209.85.128.44]) (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 267967B3E4 for ; Thu, 8 Feb 2024 12:44:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.44 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707396249; cv=none; b=aGJ/rUTE+qsrQBk6OxxK5S1MJI95xD5XZXN69RaKErJdfk56kVDFYOc6wVOUmBb7aqRo0WI7MMp/82YqJ/IHexUyIIWl6MmOlS5VQDqOwURNJvT6NFrc1LNvNHroPQrzEIfSF0uS/nCbHrRPUYPUf+M/aP/6wT83i49JjCsA+8k= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707396249; c=relaxed/simple; bh=/MlmcOyXoCfFZ4lv63XPpglVSMzow4LsfXUTpf+BCr4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Lr0+lvMxMy2hRbB5Cw0d40qdxCC/xTf2VfjlDMrTjgOh0WoYbxZowbmW1wSftPS0J15fa1AG3rcZqI86kRNj+NR0chSNWjBnVisEzzdAQWUMsHgjG9oeFr2bfcPAaS9XU417cZy1Ri2g4f8TcZl7AA3cpH9isiCrbz86ncoHvHM= 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=aVskWnLB; arc=none smtp.client-ip=209.85.128.44 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-f44.google.com with SMTP id 5b1f17b1804b1-40ff28388a6so16084325e9.1 for ; Thu, 08 Feb 2024 04:44:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1707396245; x=1708001045; 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=9rO5WdjuJmB2S7TQJ0EBDmOconefLyJTkDblhQ1H3b4=; b=aVskWnLBohnYJMeR2FIB2vDv2XMEZTnoJGQELgHQdimYuPbnjkAv6Xb26kITfcnXdQ F8kvGXRna4lCusomMtgS0nwJtQo3vVsvLJyscE+s8/TplO32gWpZetsHSM/k28QcLWo4 a/LkVL8VD/ab6ws98S7jDn0meqtbEr6mj5iVUCZo1xrUHgOYfV37oL52M/iaQrD0VwpG wnmRwjV4G6/v6GrKcPmG8kSb3042NsPIHJp3xl3EmkiI6mC7VS7fE2/U5/V+w6YvFwnJ yxkq5blW+4CTLddSMEw0kcFJnSUSkZsNpN+p2lNdfIv3i5+kGAYa/k36wxqeD1ZVU8+u 8xMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707396245; x=1708001045; 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=9rO5WdjuJmB2S7TQJ0EBDmOconefLyJTkDblhQ1H3b4=; b=K4rHQrySFHDbxAmobI1fSKxbb4jil+e6AJQORHHs9XpITc/l67LuRZVo0+ZiEW10Xo LRiFe5Ey/NaXOzsQ1E4pH2X9umfgDB3jDh/7fZBcFiMy+zxkk1DlXtH/1GXFShiVCwTV ROtSyjkbrYlQ0+LlN+rGYLEVxC784YZJtbFy2ivnKVO8Sgb4V8UQt+IRjmat67gKYIbT NIjyc9fnUyTRH23pJsoAMe6MArtIlfxZYUNB0embyj/28msDTxqPcWtSyWSBinM+x/Pr XQ0UAnxifh8axyqQ6yQM6i3e8QjEMZkm3KxujetQl+FMHFsYarx8ZXVQnE0dQRiW0nD+ bfeA== X-Forwarded-Encrypted: i=1; AJvYcCVXdOq702etww6sSwr4t0vguMU6FRfUPAr+6kd9ateN3INCL7Br1o1DYjcEQXgtwDRD9z50EuTO7UitJnpNEL2ohXcBQnqFt36itNEQ X-Gm-Message-State: AOJu0YxjefMVsa4Lp8eO7vQW9TCGdZqH11Q/buuo0mG4GelsBr5RLq/3 NtCinoNyhJ++k5kCv07IWrDU/2BU/oxE3PZcCDKNIoxAFeXFBZ3pBM1vGoYrH/s= X-Received: by 2002:a05:600c:3b97:b0:410:8f2:262a with SMTP id n23-20020a05600c3b9700b0041008f2262amr4272603wms.13.1707396245502; Thu, 08 Feb 2024 04:44:05 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCW7Lpay7FODh9fbZn3a01H8ZvmM2SiauhTcEP7H2iU5vuup9mMYT1+LGEIv3Cp9BD81U4vXRMCr/EOF9yA8rP3x2Y+AnhZaeVGXDbeReb1bgkWyFi1iPHI2XqMtH/j6BX470KlFbzpptyr3mTCkzGvtSvwH8+QdsLJgjGCLlm6VrR0hYSmhfQY0JfAdLkasF4N3lkfYv1ahZc8EAhd67oPU+eAVjbZxl+OAiGnfWtG1FjqbVRWrxRcQ33tu+sYQW9cK/tDYRgUAbGQvKckrJaz+domK+n/SGhw4+6nW/11h+pjlI3mUTt+lI87Qn//RPdf6BSsiN/p1KwI5TgwTZDDFuzqNAIueiRvSvzmxd3cOFMABK5GpDvMkVwfKJ3+fyrmjWz7UvH7RnRlldNB1GWdX3T7fL1I2vA5UXrLwVlbyso7UbjQ9ixUccrbcg1ZSCleoNZuImVzeDLgDRVua1i8sNgCYv4enjHmFQ6y0eEZS8I6QkNo3sEJQ9aMagG4wA8im8ZWKwW/TX5EyWjQ9i4eKp+0hvywPPy25Iw1SMamq9cM0A0Uh4xFkd4qpCfmDj8o= 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.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 04:44:05 -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 10/17] clk: renesas: r9a08g045: Add support for power domains Date: Thu, 8 Feb 2024 14:42:53 +0200 Message-Id: <20240208124300.2740313-11-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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790345533626456161 X-GMAIL-MSGID: 1790345533626456161 From: Claudiu Beznea Instantiate power domains for the currently enabled IPs of R9A08G045 SoC. Signed-off-by: Claudiu Beznea --- drivers/clk/renesas/r9a08g045-cpg.c | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/drivers/clk/renesas/r9a08g045-cpg.c b/drivers/clk/renesas/r9a08g045-cpg.c index c3e6da2de197..b06d8e93707f 100644 --- a/drivers/clk/renesas/r9a08g045-cpg.c +++ b/drivers/clk/renesas/r9a08g045-cpg.c @@ -240,6 +240,28 @@ static const unsigned int r9a08g045_crit_mod_clks[] __initconst = { MOD_CLK_BASE + R9A08G045_DMAC_ACLK, }; +static const struct rzg2l_cpg_pm_domain_init_data r9a08g045_pm_domains[] = { + DEF_PD("always-on", R9A08G045_PD_ALWAYS_ON, 0, 0, + RZG2L_PD_F_PARENT | RZG2L_PD_F_ALWAYS_ON), + DEF_PD("gic", R9A08G045_PD_GIC, MSTOP(ACPU, BIT(3)), PWRDN(IP1, 2), + RZG2L_PD_F_ALWAYS_ON), + DEF_PD("ia55", R9A08G045_PD_IA55, MSTOP(PERI_CPU, BIT(13)), PWRDN(IP1, 3), + RZG2L_PD_F_ALWAYS_ON), + DEF_PD("dmac", R9A08G045_PD_DMAC, MSTOP(REG1, GENMASK(3, 0)), 0, + RZG2L_PD_F_ALWAYS_ON), + DEF_PD("ddr", R9A08G045_PD_DDR, MSTOP(PERI_DDR, BIT(1)), PWRDN(IP2, 0), + RZG2L_PD_F_ALWAYS_ON), + DEF_PD("tzcddr", R9A08G045_PD_TZCDDR, MSTOP(TZCDDR, GENMASK(2, 0)), + PWRDN(IP2, 1), RZG2L_PD_F_ALWAYS_ON), + DEF_PD("otfde_ddr", R9A08G045_PD_OTFDE_DDR, 0, PWRDN(IP2, 2), RZG2L_PD_F_ALWAYS_ON), + DEF_PD("sdhi0", R9A08G045_PD_SDHI0, MSTOP(PERI_COM, BIT(0)), PWRDN(IP1, 13), 0), + DEF_PD("sdhi1", R9A08G045_PD_SDHI1, MSTOP(PERI_COM, BIT(1)), PWRDN(IP1, 14), 0), + DEF_PD("sdhi2", R9A08G045_PD_SDHI2, MSTOP(PERI_COM, BIT(11)), PWRDN(IP1, 15), 0), + DEF_PD("eth0", R9A08G045_PD_ETHER0, MSTOP(PERI_COM, BIT(2)), PWRDN(IP1, 11), 0), + DEF_PD("eth1", R9A08G045_PD_ETHER1, MSTOP(PERI_COM, BIT(3)), PWRDN(IP1, 12), 0), + DEF_PD("scif0", R9A08G045_PD_SCIF0, MSTOP(MCPU2, BIT(1)), 0, 0), +}; + const struct rzg2l_cpg_info r9a08g045_cpg_info = { /* Core Clocks */ .core_clks = r9a08g045_core_clks, @@ -260,5 +282,10 @@ const struct rzg2l_cpg_info r9a08g045_cpg_info = { .resets = r9a08g045_resets, .num_resets = R9A08G045_VBAT_BRESETN + 1, /* Last reset ID + 1 */ + /* Power domains */ + .pm_domains = r9a08g045_pm_domains, + .num_pm_domains = ARRAY_SIZE(r9a08g045_pm_domains), + .pm_domain_pwrdn_mstop = true, + .has_clk_mon_regs = true, }; From patchwork Thu Feb 8 12:42:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: claudiu beznea X-Patchwork-Id: 199254 Return-Path: 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 (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 ; 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 ; 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790514686291883620 X-GMAIL-MSGID: 1790514686291883620 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, }; From patchwork Thu Feb 8 12:42:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: claudiu beznea X-Patchwork-Id: 198836 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp806929dyd; Fri, 9 Feb 2024 04:15:46 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUEVA26qV6jeuo1iLjzZY6SA1TmAgvx7mxoBziuJVMIslIUUbIT72/U3zc9IQciwRVXHy6mYbdr0k36Ua+ZkIoZosWB+A== X-Google-Smtp-Source: AGHT+IGb+8sMLAAct0vQoEb8Csadhgb1VVbo++/vtvoMfN7VsHKWPNImzGOh0876vbfSrcpZ/x/e X-Received: by 2002:a17:903:2308:b0:1d6:f1cb:7a95 with SMTP id d8-20020a170903230800b001d6f1cb7a95mr1443804plh.57.1707480946049; Fri, 09 Feb 2024 04:15:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707480946; cv=pass; d=google.com; s=arc-20160816; b=vOt+Dpx2frRuO2IeyGlQObzVbrEMHzAPnnESEUZN46yqMYhDc0hWPAlWnJZe+BaiOJ QgOHCHzuhIxKxxcwqJDCfCN249yGcpgfMRZzq4rzZpr0FxbEmELF/0oR9QQH4054jVZK GBTI9ObHKvtzk/NaeF8weFKhU/mGmmYLpzbou848ZZ3vPUjqojvB3SF9PDuvwXBpcBR/ QCFx2XbK1RKSVE+dd01Ie+IQw2Q8GiwyJd+eNfOwMuRL8PnWjPH+znRkmF3JBLY/rbye +Bx80nUyRzKC+87JLdi/AZ3sel3FpwX0xgjLPpXiateLCrPJfmKIUJfjfwtkeOd5k2ej hkig== 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=McJKLtshO3D7dPz7Uw3van7kyM1Ng7QWriaUI03VR+Q=; fh=meb/y+Yxy8PpX/CH5C29trPszT/r2uYIT9cB+URvexw=; b=CwGUIFq8EvqwBPMYZSkYoVRm0NLpJpwYDkuGwjE5foeSARfNEPxNID0keWmyIjlcsV nhqGwE297+fBxu9pAdoFYsY5nONYDyDFMhHlg486AVvFg46rxa5KBT9f1bPg5zDjyixM 6fiuxohV2AOk3e0ldcIyP8A2ian9A9YfEQJt2Sgf8Kw5FDVMv+K7PEEUpKI+cs9LlVE0 NbYAhNvQzIGINVPlanp5yIt95QFJe/y9/WbGN9aIVVbpi/1V/A2R5EbQ29aXap4ekG6N tad96zKXbrIVRtf5CBn4EZj2aaMB5kOMNct1yZ4ciqFQCtvoyTlYGReGz/mE4E6YvJ8z bgAw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=hyYCBCdm; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-58084-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58084-ouuuleilei=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCWaPS53bUWkhHtaqsA1LhQ77sYA1XMo4p3j3NLhj2GrdzQb5Ptt++AtMV2/pAZOua61ZmejrUdP3eoEufCkK4yi4jElmg== Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 18-20020a170902c21200b001d71d722818si1526836pll.513.2024.02.09.04.15.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 04:15:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-58084-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=hyYCBCdm; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-58084-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58084-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 0FF7BB27A3C for ; Thu, 8 Feb 2024 12:47:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3882D7E565; Thu, 8 Feb 2024 12:44:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b="hyYCBCdm" Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (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 81CAD7CF23 for ; Thu, 8 Feb 2024 12:44:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707396253; cv=none; b=XHVQlyU4V9V02uf38WCHfc9V7t9GesVjR5kTHuduQ/AqtmuqwxwwTz4p3tDDcn/QF3vx4JMS0Pw3CYCmpTAc8U+BPk7OClB/dB+rfZjR9KEKsVbeGAuq6YJmHpoiK9byhsqhgYO2r9/p8GaMgeN/y9i/a51HWZvduXcMuWJdZCU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707396253; c=relaxed/simple; bh=QBxy2EnAA/OjW6Ak9KJdT0nTXRdbFAC1gRDLVJJpqB4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Kq3Svm7IID4slTRa7N4qkhgQsjGRbV33UPlPK3sL0BBirn0KER7KpubnGW8X+sg+xgiS5/IhwTjioo3l33+1hISSOjODJglWUfAc9xpKNdI3VRxIK/6Ko97TBj6AdWJUobljln5IqTGCu05+7GVzhnMUxdCYgL6GoyeprmW846g= 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=hyYCBCdm; arc=none smtp.client-ip=209.85.128.47 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-f47.google.com with SMTP id 5b1f17b1804b1-41001c6e19aso5066255e9.1 for ; Thu, 08 Feb 2024 04:44:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1707396250; x=1708001050; 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=McJKLtshO3D7dPz7Uw3van7kyM1Ng7QWriaUI03VR+Q=; b=hyYCBCdmsa2I4lWTk9r2SoZhnPhq5SGI9AXm7VHuHd/Am5yraxgoP2RYRMyauFTRdd yfRtHtubYyx+nAu0Z1cABEtgcGRDKHTFp+5YI//u9qNi2DOOjrEi0NqGVevy7hIz6d3I DZq6Nt/h9yCwuIXWy6SqbigtwuyECsh/7z5Kzqs4je/2MnDKGBSFit+Ua/X4OlCTD39Z GMMT88KzIMSUOhVyR3Cq2KLFjycEC3CIFSD4V0efv6AhposoWoZyL4fFCuK81q0N6wWK /hfXho6pALGnIANXRPy3efBwm+JrQzyBJ+6yAB3y37zWUzZKvtT0BsYev5vGria1uC6K HqwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707396250; x=1708001050; 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=McJKLtshO3D7dPz7Uw3van7kyM1Ng7QWriaUI03VR+Q=; b=W6f4p5nnlt0BQyxM6fZVv4bxErj4JXZ14sHK9lfAbEEr0OwjQZEOe7AUOmHnV+ODSU 6e7mraKe0HjlKhd8u7Nj994W/nkk+oLqlBo2EbVGEnaVMLnCvVBezET+VeE41gUafY8L EkUhTB/0TMYclpnRH/M1H9SS2LRdGoyjWpWULriMm0sjwSBUjOnbHalA6l+Ntg0e+xQJ 6edAZRnnqYCqHwWPxkqReUN73/WVvx/CFankZdR5552ne3u/ISnSaCyPPn6lyYNjk28/ C5fnVZNWJg3P9YCBaQep9Krp8bC/W+yTQw9C4MbmI0tS6ATM3xLQ/xDnCZ1BWXG0uMbl zX1w== X-Forwarded-Encrypted: i=1; AJvYcCUq/WS3n5A2883mQuxeTUtLpxCnuKnnJJ1k5x1RT3MUBVZk9DE0zA1NQ4sJhAipLxtFbpPndy5ZGllZub0/vcl6ZPLpqSjaTVVZVT+H X-Gm-Message-State: AOJu0Yys1slAYuQ4+AgmA0qNR/P+tsuGjMdjt+VGSK7MhF6NXg2L9B2t +3SEVwN9//zuyimOm7NI/YEorjexhksEUB1idwi7T+bDryskDpO9Kw2U2ttR9qA= X-Received: by 2002:a05:600c:1c17:b0:410:2975:cb05 with SMTP id j23-20020a05600c1c1700b004102975cb05mr1958906wms.19.1707396249979; Thu, 08 Feb 2024 04:44:09 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCUoiCqTbyl47pwC14HtcXzPMz44Gm6yb/nEUCELzy+BV/Axcoq9C92rydDNjm6ZJsUwtFYlNkf6Dnd9fDwpYkBn3RXEY9MMkTat3u7c/KTe+75xd0PnWSpVYuNP/BbCKoqGpK70xWYtHQr9rfUJbSb43myzOqXNMrY/H7zkSNHPpRz9nqQIyEwLWP9pErkSTaUUTQNLxnlUz9irTs9BCe9Si/OZWdth8LChjZb61VKx23+BaXVtWOgz4AAzS6LSt+cIkYKdNBr1WDvtmNSXqkrzuVInHcE3zRWzSMxTHV3AL/3Mh3hxBIsT2ANfP32/3HOd29eLSQdUsD6eF5+d2tlfGxAHG5a4CKXoDDBX7TdC9QiirOuPswZGyRUUXMtDqGgcXZOzlx6mBHElPMfmHZ559p60MHpfTytFDAhtjVvEuE5zstw+VsoHpvFJYq1NVTVHw8lK3AAZwj3W2Z8QJlg3vM1ZyDr0kSXq8pl8gL8r6E2cslkR9iehDygOM9YEfoQ4+87Z5aCE/qXoUFjDRZd7aSfPS4g0VIFfKRi/AQSgrg053XLXW1SPXRqEQgGsMHE= 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.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 04:44:09 -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 12/17] arm64: dts: renesas: rzg3s-smarc-som: Guard the ethernet IRQ GPIOs with proper flags Date: Thu, 8 Feb 2024 14:42:55 +0200 Message-Id: <20240208124300.2740313-13-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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790423540458198187 X-GMAIL-MSGID: 1790423540458198187 From: Claudiu Beznea Ethernet IRQ GPIOs are marked as gpio-hog. Thus, these GPIOs are requested at probe w/o considering if there are other peripherals that needs them. The Ethernet IRQ GPIOs are shared w/ SDHI2. Selection b/w Ethernet and SDHI2 is done through a hardware switch. To avoid scenarios where one wants to boot with SDHI2 support and some SDHI pins are not propertly configured because of gpio-hog guard Ethernet IRQ GPIO with proper build flag. Fixes: 932ff0c802c6 ("arm64: dts: renesas: rzg3s-smarc-som: Enable the Ethernet interfaces") Signed-off-by: Claudiu Beznea Reviewed-by: Geert Uytterhoeven --- arch/arm64/boot/dts/renesas/rzg3s-smarc-som.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/rzg3s-smarc-som.dtsi b/arch/arm64/boot/dts/renesas/rzg3s-smarc-som.dtsi index 2b7fa5817d58..acac4666ae59 100644 --- a/arch/arm64/boot/dts/renesas/rzg3s-smarc-som.dtsi +++ b/arch/arm64/boot/dts/renesas/rzg3s-smarc-som.dtsi @@ -193,12 +193,14 @@ &sdhi2 { #endif &pinctrl { +#if SW_CONFIG3 == SW_ON eth0-phy-irq-hog { gpio-hog; gpios = ; input; line-name = "eth0-phy-irq"; }; +#endif eth0_pins: eth0 { txc { @@ -234,12 +236,14 @@ mux { }; }; +#if SW_CONFIG3 == SW_ON eth1-phy-irq-hog { gpio-hog; gpios = ; input; line-name = "eth1-phy-irq"; }; +#endif eth1_pins: eth1 { txc { From patchwork Thu Feb 8 12:42:56 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: claudiu beznea X-Patchwork-Id: 198837 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp807234dyd; Fri, 9 Feb 2024 04:16:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IEgdQ0B7KdemPw8wf+9U8kU4r8h2yOq3PHvu5ENBepG+t1BjtX0ouriTv+egznD6cZ7BnaY X-Received: by 2002:aa7:c3c3:0:b0:560:c364:2cd3 with SMTP id l3-20020aa7c3c3000000b00560c3642cd3mr1291738edr.13.1707480974310; 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=rGquTWNFuR6vKhWSgKAdHLuHCiHG7AZlPzQzlw9vKGJz2mFWSKqDDWPIsEMNV5cQsV xnazmmfny+sCoyFLhGXv2yiADZOESzd49L5luZjfuSrEFZ30C4kMGoSu01rc7Dcn7hQo dW1qDVfYOKqyfc/SzKQ7/zcw0Ki7RNlB05jK1zGzoE7xs73XSdE9i1v5xVltAUS7n55K sYSXknkupMMtSbCohNu/fzmWuzsmjxYEW+2WIsOOpVcOSzm7kUkV5Xq1n2kPToif6I+k 1G4+gamAd4kg2BekoEwbz7c8XHAAmcW5u6GivGff0cMbdb5j/i6wxQ7+FeJb4lnEJpIN /OxQ== 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=o1OEC2TGCoY61eo3wIHDOREKTL6pfLj41IN2rZ/kx+k=; fh=1tNBRGd5wMlIMHLQJ9n2OdhCsTPqiECM2cgnu/Zn02Q=; b=n5fl6crLG1N6fyY+bYASoA7yoQFnRmETlNO9xPPLHIWxgaNIf67cNeEgjMI8wsfH6G /sKknpbWgY1vj6xLO1WZwFzlaHP6f7JjV2iknl5UFV4kK5Z8g2VWqgMMrxKXmEKdfcHn 9J4csLglECYhKwBCfdM23fNbIm2KfQh0SvkPxXYfQM5Z3Kd8bRXvcTwHhl3vWhO0jMsZ rq3SCTCzPlVzH7pg/DN2eAEb0xRFeYYQ6NmWWTA7m3O61md4VpbcOYWQPfyUfbuaIVR7 P73IRxTYKcl0DWutE6c2/SJ9W5Ko/0jM2bARpqW9BHnxI1M6n338YVWo9Riy3WvP+rfi FEWA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=GSCR1V+2; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-58085-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58085-ouuuleilei=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCU216aJdgR2wKYa2Tv2PCLDTcmNr1xTqDslfq6wyCFzVjJgetV2ZVGZvTbBevckWEsTLp2WAv1MkJHJCbmniRgjtNmmyA== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id d3-20020a05640208c300b00561165ae1d9si814741edz.24.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-58085-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=GSCR1V+2; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-58085-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58085-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 am.mirrors.kernel.org (Postfix) with ESMTPS id A0B271F2A970 for ; Thu, 8 Feb 2024 12:48:00 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DADE57640C; Thu, 8 Feb 2024 12:44:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b="GSCR1V+2" Received: from mail-lf1-f41.google.com (mail-lf1-f41.google.com [209.85.167.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 5C2577D405 for ; Thu, 8 Feb 2024 12:44:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707396256; cv=none; b=aYXJ1WZame37PseYhHc40UVtVsRxDvA+q1xbU+wVC2IrC55s/LIluxHjOJtHr951HLUvB1OtlVClcvyUbcjbAbImTwNvdEMe6fwhMFwrFRszSRlQEMyKJ41YMfZgzlFsymx6EHDwCAjrpS4wKv4wg9V0nSiRcxhUkWc8NCuSmRo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707396256; c=relaxed/simple; bh=iwuGUChOPncL9tXnA90KUoncCTsZfzgO0kLEDg7hSbY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=GsjUccHN6IKv8RinPkZlZKtU+VMelNlYBwAYv8E8qkHkERGSEp/mdoDO1qgiluP5AAmrNUEQyNeQq6hrADVo8OI/v5bRQdTRe8reixsVq8nXf3Qg23TxSGDP9JEb0MEus3cC/2tjuN8wnvoQM2/JQKQMO2WpxeQNx0SzTAQJkd8= 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=GSCR1V+2; arc=none smtp.client-ip=209.85.167.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-lf1-f41.google.com with SMTP id 2adb3069b0e04-51147d0abd1so2096513e87.1 for ; Thu, 08 Feb 2024 04:44:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1707396252; x=1708001052; 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=o1OEC2TGCoY61eo3wIHDOREKTL6pfLj41IN2rZ/kx+k=; b=GSCR1V+24vnD0elY9qmyDqv7tOxxQkfKnUrqWX2e38V/SHuW3pUUiYGZVfGLo0f1WK KqcA0izA1kCX9jY+Qv/IWyD4BcAXR8sRikwK3a7DY9UYQSp5wNMvVlHUA0lVX1uADU4w 2Uwwk/YYr6UKMHY/ti36mCEAmJTI1cCYtTYhxvKY0fhC+COOqhPB2LSDq7noZL8i7hW1 4olBckcaHo6cOxIizgPT6wOUfufTP1edfUQ7c3SZp5eTGjac1ECx4euNUQpUFPRkB7MG iyM40c4RDdAsoSQoWmk2kkrVzs+VonfhIvmM5IkaSxLOuXWSOhDqpA7SXp3OHhdMfdAm f1LA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707396252; x=1708001052; 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=o1OEC2TGCoY61eo3wIHDOREKTL6pfLj41IN2rZ/kx+k=; b=vva6s02jR4Ls810j8QchOsjNpzoUBek/iSGqdkSWcNbRh1yi2F7kVBJHloNYocatQb XlLtS9bAPQTC/NxGdKnts6z+Nuy6PwcaeYKtneYyq+Jvx/ztpFQfxaKxPHRbgx6+E6C3 pS3VJVF/sWwPvvCzdQfKj6A9H/+o1urcXMV4N2tBl1GGy9qTj/6uZgZSbnkaMMeIskWh vG/FRHZ0m4Wu8QzzxAzgG423i2jvIsDqG4G/6qTt+qq1tTA5PruN3gaUbjTf0SbbROKi x7yLYHc2FLQy4wf7Cdd4BQ2jOXhwT87JhMzUMVAylwllfFmfW0Dyht0Iel0maKBx5IhO aXWA== X-Gm-Message-State: AOJu0Ywpnu2MnIrQMHm/HSCPncplcGq9MfenuFFpIFWMVi3y/1bhE4j1 3SuDCkkoPJlgEoocIhe2xoYMAh1BDldAL9TbwGCrCHUf8Bs+DnqKSj/BftWrDvs= X-Received: by 2002:ac2:51b9:0:b0:511:552e:6ee3 with SMTP id f25-20020ac251b9000000b00511552e6ee3mr5708379lfk.39.1707396252359; Thu, 08 Feb 2024 04:44:12 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCVjpYGt1NJEfb6j/M95q9qoJUByI0mWDph51t57B6nJclQ4TZTsbk/7rtb2zpzqxYplrNcFELwfgJOBgmdMX8jSxHyFN20zXgZMO2s/FeNUMO5mCmcNGaAtZPtcMcLtIXj6ewiVc8R3mx8C1jn5ZmqZ/vjUZEWF/XIAYByb+A/59AVZWuPaqUROjEmOH1rObLvH8xiXlABoyztj4sl9kEX96ezV214lXsNCJb7CLmMIvRA6hlXjmM3mD0hyisAdCJa49moxdVhatpLBLPMlL0PO3tZdGYPF2tV5/4H0eGzUu0w9PMIkSxYCeEcNir4wC8iCdvgsAr2ZbT4ndmkVLigPYMs7XJ3vMhYWttfcABT0luynyK7u3xMeAlFhiJOFckPdnrytjuX5M0zRZXZ2BHP7itUWh2yYjXuHZvAvmrsQt3mOx/92Bro2nOQENJbcsEzmQ/nEAwFajz/cWrcdqwEZUbnHDN1DMEatjvC61VH7/o/mNFSVAzPsft8B/p0/r4MVrSz7fdqV3EzM9Iwqq++T9ARF67ye6K0PbknzRP2ARsoN3Yu1TcRXx55WwrIgN14= 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.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 04:44:12 -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 13/17] arm64: dts: renesas: r9a07g043: Update #power-domain-cells = <1> Date: Thu, 8 Feb 2024 14:42:56 +0200 Message-Id: <20240208124300.2740313-14-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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790423569859379562 X-GMAIL-MSGID: 1790423569859379562 From: Claudiu Beznea Update CPG #power-domain-cells = <1> and move all the IPs to be part of the always on power domain as the driver has been modified to support multiple power domains. Signed-off-by: Claudiu Beznea --- arch/arm64/boot/dts/renesas/r9a07g043.dtsi | 84 ++++++++++----------- arch/arm64/boot/dts/renesas/r9a07g043u.dtsi | 6 +- arch/riscv/boot/dts/renesas/r9a07g043f.dtsi | 2 +- 3 files changed, 46 insertions(+), 46 deletions(-) diff --git a/arch/arm64/boot/dts/renesas/r9a07g043.dtsi b/arch/arm64/boot/dts/renesas/r9a07g043.dtsi index 8721f4c9fa0f..3e12f9dd3c6a 100644 --- a/arch/arm64/boot/dts/renesas/r9a07g043.dtsi +++ b/arch/arm64/boot/dts/renesas/r9a07g043.dtsi @@ -138,7 +138,7 @@ mtu3: timer@10001200 { "tgia8", "tgib8", "tgic8", "tgid8", "tciv8", "tciu8"; clocks = <&cpg CPG_MOD R9A07G043_MTU_X_MCK_MTU3>; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G043_PD_ALWAYS_ON>; resets = <&cpg R9A07G043_MTU_X_PRESET_MTU3>; #pwm-cells = <2>; status = "disabled"; @@ -159,7 +159,7 @@ ssi0: ssi@10049c00 { resets = <&cpg R9A07G043_SSI0_RST_M2_REG>; dmas = <&dmac 0x2655>, <&dmac 0x2656>; dma-names = "tx", "rx"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G043_PD_ALWAYS_ON>; #sound-dai-cells = <0>; status = "disabled"; }; @@ -179,7 +179,7 @@ ssi1: ssi@1004a000 { resets = <&cpg R9A07G043_SSI1_RST_M2_REG>; dmas = <&dmac 0x2659>, <&dmac 0x265a>; dma-names = "tx", "rx"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G043_PD_ALWAYS_ON>; #sound-dai-cells = <0>; status = "disabled"; }; @@ -198,7 +198,7 @@ ssi2: ssi@1004a400 { resets = <&cpg R9A07G043_SSI2_RST_M2_REG>; dmas = <&dmac 0x265f>; dma-names = "rt"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G043_PD_ALWAYS_ON>; #sound-dai-cells = <0>; status = "disabled"; }; @@ -218,7 +218,7 @@ ssi3: ssi@1004a800 { resets = <&cpg R9A07G043_SSI3_RST_M2_REG>; dmas = <&dmac 0x2661>, <&dmac 0x2662>; dma-names = "tx", "rx"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G043_PD_ALWAYS_ON>; #sound-dai-cells = <0>; status = "disabled"; }; @@ -234,7 +234,7 @@ spi0: spi@1004ac00 { resets = <&cpg R9A07G043_RSPI0_RST>; dmas = <&dmac 0x2e95>, <&dmac 0x2e96>; dma-names = "tx", "rx"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G043_PD_ALWAYS_ON>; num-cs = <1>; #address-cells = <1>; #size-cells = <0>; @@ -252,7 +252,7 @@ spi1: spi@1004b000 { resets = <&cpg R9A07G043_RSPI1_RST>; dmas = <&dmac 0x2e99>, <&dmac 0x2e9a>; dma-names = "tx", "rx"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G043_PD_ALWAYS_ON>; num-cs = <1>; #address-cells = <1>; #size-cells = <0>; @@ -270,7 +270,7 @@ spi2: spi@1004b400 { resets = <&cpg R9A07G043_RSPI2_RST>; dmas = <&dmac 0x2e9d>, <&dmac 0x2e9e>; dma-names = "tx", "rx"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G043_PD_ALWAYS_ON>; num-cs = <1>; #address-cells = <1>; #size-cells = <0>; @@ -291,7 +291,7 @@ scif0: serial@1004b800 { "bri", "dri", "tei"; clocks = <&cpg CPG_MOD R9A07G043_SCIF0_CLK_PCK>; clock-names = "fck"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G043_PD_ALWAYS_ON>; resets = <&cpg R9A07G043_SCIF0_RST_SYSTEM_N>; status = "disabled"; }; @@ -310,7 +310,7 @@ scif1: serial@1004bc00 { "bri", "dri", "tei"; clocks = <&cpg CPG_MOD R9A07G043_SCIF1_CLK_PCK>; clock-names = "fck"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G043_PD_ALWAYS_ON>; resets = <&cpg R9A07G043_SCIF1_RST_SYSTEM_N>; status = "disabled"; }; @@ -329,7 +329,7 @@ scif2: serial@1004c000 { "bri", "dri", "tei"; clocks = <&cpg CPG_MOD R9A07G043_SCIF2_CLK_PCK>; clock-names = "fck"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G043_PD_ALWAYS_ON>; resets = <&cpg R9A07G043_SCIF2_RST_SYSTEM_N>; status = "disabled"; }; @@ -348,7 +348,7 @@ scif3: serial@1004c400 { "bri", "dri", "tei"; clocks = <&cpg CPG_MOD R9A07G043_SCIF3_CLK_PCK>; clock-names = "fck"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G043_PD_ALWAYS_ON>; resets = <&cpg R9A07G043_SCIF3_RST_SYSTEM_N>; status = "disabled"; }; @@ -367,7 +367,7 @@ scif4: serial@1004c800 { "bri", "dri", "tei"; clocks = <&cpg CPG_MOD R9A07G043_SCIF4_CLK_PCK>; clock-names = "fck"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G043_PD_ALWAYS_ON>; resets = <&cpg R9A07G043_SCIF4_RST_SYSTEM_N>; status = "disabled"; }; @@ -382,7 +382,7 @@ sci0: serial@1004d000 { interrupt-names = "eri", "rxi", "txi", "tei"; clocks = <&cpg CPG_MOD R9A07G043_SCI0_CLKP>; clock-names = "fck"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G043_PD_ALWAYS_ON>; resets = <&cpg R9A07G043_SCI0_RST>; status = "disabled"; }; @@ -397,7 +397,7 @@ sci1: serial@1004d400 { interrupt-names = "eri", "rxi", "txi", "tei"; clocks = <&cpg CPG_MOD R9A07G043_SCI1_CLKP>; clock-names = "fck"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G043_PD_ALWAYS_ON>; resets = <&cpg R9A07G043_SCI1_RST>; status = "disabled"; }; @@ -425,7 +425,7 @@ canfd: can@10050000 { resets = <&cpg R9A07G043_CANFD_RSTP_N>, <&cpg R9A07G043_CANFD_RSTC_N>; reset-names = "rstp_n", "rstc_n"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G043_PD_ALWAYS_ON>; status = "disabled"; channel0 { @@ -454,7 +454,7 @@ i2c0: i2c@10058000 { clocks = <&cpg CPG_MOD R9A07G043_I2C0_PCLK>; clock-frequency = <100000>; resets = <&cpg R9A07G043_I2C0_MRST>; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G043_PD_ALWAYS_ON>; status = "disabled"; }; @@ -476,7 +476,7 @@ i2c1: i2c@10058400 { clocks = <&cpg CPG_MOD R9A07G043_I2C1_PCLK>; clock-frequency = <100000>; resets = <&cpg R9A07G043_I2C1_MRST>; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G043_PD_ALWAYS_ON>; status = "disabled"; }; @@ -498,7 +498,7 @@ i2c2: i2c@10058800 { clocks = <&cpg CPG_MOD R9A07G043_I2C2_PCLK>; clock-frequency = <100000>; resets = <&cpg R9A07G043_I2C2_MRST>; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G043_PD_ALWAYS_ON>; status = "disabled"; }; @@ -520,7 +520,7 @@ i2c3: i2c@10058c00 { clocks = <&cpg CPG_MOD R9A07G043_I2C3_PCLK>; clock-frequency = <100000>; resets = <&cpg R9A07G043_I2C3_MRST>; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G043_PD_ALWAYS_ON>; status = "disabled"; }; @@ -534,7 +534,7 @@ adc: adc@10059000 { resets = <&cpg R9A07G043_ADC_PRESETN>, <&cpg R9A07G043_ADC_ADRST_N>; reset-names = "presetn", "adrst-n"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G043_PD_ALWAYS_ON>; status = "disabled"; #address-cells = <1>; @@ -554,7 +554,7 @@ tsu: thermal@10059400 { reg = <0 0x10059400 0 0x400>; clocks = <&cpg CPG_MOD R9A07G043_TSU_PCLK>; resets = <&cpg R9A07G043_TSU_PRESETN>; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G043_PD_ALWAYS_ON>; #thermal-sensor-cells = <1>; }; @@ -568,7 +568,7 @@ sbc: spi@10060000 { clocks = <&cpg CPG_MOD R9A07G043_SPI_CLK2>, <&cpg CPG_MOD R9A07G043_SPI_CLK>; resets = <&cpg R9A07G043_SPI_RST>; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G043_PD_ALWAYS_ON>; #address-cells = <1>; #size-cells = <0>; status = "disabled"; @@ -581,7 +581,7 @@ cpg: clock-controller@11010000 { clock-names = "extal"; #clock-cells = <2>; #reset-cells = <1>; - #power-domain-cells = <0>; + #power-domain-cells = <1>; }; sysc: system-controller@11020000 { @@ -599,7 +599,7 @@ pinctrl: pinctrl@11030000 { #interrupt-cells = <2>; interrupt-controller; clocks = <&cpg CPG_MOD R9A07G043_GPIO_HCLK>; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G043_PD_ALWAYS_ON>; resets = <&cpg R9A07G043_GPIO_RSTN>, <&cpg R9A07G043_GPIO_PORT_RESETN>, <&cpg R9A07G043_GPIO_SPARE_RESETN>; @@ -635,7 +635,7 @@ dmac: dma-controller@11820000 { clocks = <&cpg CPG_MOD R9A07G043_DMAC_ACLK>, <&cpg CPG_MOD R9A07G043_DMAC_PCLK>; clock-names = "main", "register"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G043_PD_ALWAYS_ON>; resets = <&cpg R9A07G043_DMAC_ARESETN>, <&cpg R9A07G043_DMAC_RST_ASYNC>; reset-names = "arst", "rst_async"; @@ -655,7 +655,7 @@ sdhi0: mmc@11c00000 { <&cpg CPG_MOD R9A07G043_SDHI0_ACLK>; clock-names = "core", "clkh", "cd", "aclk"; resets = <&cpg R9A07G043_SDHI0_IXRST>; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G043_PD_ALWAYS_ON>; status = "disabled"; }; @@ -671,7 +671,7 @@ sdhi1: mmc@11c10000 { <&cpg CPG_MOD R9A07G043_SDHI1_ACLK>; clock-names = "core", "clkh", "cd", "aclk"; resets = <&cpg R9A07G043_SDHI1_IXRST>; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G043_PD_ALWAYS_ON>; status = "disabled"; }; @@ -689,7 +689,7 @@ eth0: ethernet@11c20000 { <&cpg CPG_CORE R9A07G043_CLK_HP>; clock-names = "axi", "chi", "refclk"; resets = <&cpg R9A07G043_ETH0_RST_HW_N>; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G043_PD_ALWAYS_ON>; #address-cells = <1>; #size-cells = <0>; status = "disabled"; @@ -709,7 +709,7 @@ eth1: ethernet@11c30000 { <&cpg CPG_CORE R9A07G043_CLK_HP>; clock-names = "axi", "chi", "refclk"; resets = <&cpg R9A07G043_ETH1_RST_HW_N>; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G043_PD_ALWAYS_ON>; #address-cells = <1>; #size-cells = <0>; status = "disabled"; @@ -721,7 +721,7 @@ phyrst: usbphy-ctrl@11c40000 { reg = <0 0x11c40000 0 0x10000>; clocks = <&cpg CPG_MOD R9A07G043_USB_PCLK>; resets = <&cpg R9A07G043_USB_PRESETN>; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G043_PD_ALWAYS_ON>; #reset-cells = <1>; status = "disabled"; }; @@ -736,7 +736,7 @@ ohci0: usb@11c50000 { <&cpg R9A07G043_USB_U2H0_HRESETN>; phys = <&usb2_phy0 1>; phy-names = "usb"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G043_PD_ALWAYS_ON>; status = "disabled"; }; @@ -750,7 +750,7 @@ ohci1: usb@11c70000 { <&cpg R9A07G043_USB_U2H1_HRESETN>; phys = <&usb2_phy1 1>; phy-names = "usb"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G043_PD_ALWAYS_ON>; status = "disabled"; }; @@ -765,7 +765,7 @@ ehci0: usb@11c50100 { phys = <&usb2_phy0 2>; phy-names = "usb"; companion = <&ohci0>; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G043_PD_ALWAYS_ON>; status = "disabled"; }; @@ -780,7 +780,7 @@ ehci1: usb@11c70100 { phys = <&usb2_phy1 2>; phy-names = "usb"; companion = <&ohci1>; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G043_PD_ALWAYS_ON>; status = "disabled"; }; @@ -793,7 +793,7 @@ usb2_phy0: usb-phy@11c50200 { <&cpg CPG_MOD R9A07G043_USB_U2H0_HCLK>; resets = <&phyrst 0>; #phy-cells = <1>; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G043_PD_ALWAYS_ON>; status = "disabled"; }; @@ -806,7 +806,7 @@ usb2_phy1: usb-phy@11c70200 { <&cpg CPG_MOD R9A07G043_USB_U2H1_HCLK>; resets = <&phyrst 1>; #phy-cells = <1>; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G043_PD_ALWAYS_ON>; status = "disabled"; }; @@ -825,7 +825,7 @@ hsusb: usb@11c60000 { renesas,buswait = <7>; phys = <&usb2_phy0 3>; phy-names = "usb"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G043_PD_ALWAYS_ON>; status = "disabled"; }; @@ -840,7 +840,7 @@ wdt0: watchdog@12800800 { ; interrupt-names = "wdt", "perrout"; resets = <&cpg R9A07G043_WDT0_PRESETN>; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G043_PD_ALWAYS_ON>; status = "disabled"; }; @@ -851,7 +851,7 @@ ostm0: timer@12801000 { interrupts = ; clocks = <&cpg CPG_MOD R9A07G043_OSTM0_PCLK>; resets = <&cpg R9A07G043_OSTM0_PRESETZ>; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G043_PD_ALWAYS_ON>; status = "disabled"; }; @@ -862,7 +862,7 @@ ostm1: timer@12801400 { interrupts = ; clocks = <&cpg CPG_MOD R9A07G043_OSTM1_PCLK>; resets = <&cpg R9A07G043_OSTM1_PRESETZ>; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G043_PD_ALWAYS_ON>; status = "disabled"; }; @@ -873,7 +873,7 @@ ostm2: timer@12801800 { interrupts = ; clocks = <&cpg CPG_MOD R9A07G043_OSTM2_PCLK>; resets = <&cpg R9A07G043_OSTM2_PRESETZ>; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G043_PD_ALWAYS_ON>; status = "disabled"; }; }; diff --git a/arch/arm64/boot/dts/renesas/r9a07g043u.dtsi b/arch/arm64/boot/dts/renesas/r9a07g043u.dtsi index 01d08ebb4a78..1ac71b9cbbb6 100644 --- a/arch/arm64/boot/dts/renesas/r9a07g043u.dtsi +++ b/arch/arm64/boot/dts/renesas/r9a07g043u.dtsi @@ -75,7 +75,7 @@ cru: video@10830000 { resets = <&cpg R9A07G043_CRU_PRESETN>, <&cpg R9A07G043_CRU_ARESETN>; reset-names = "presetn", "aresetn"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G043_PD_ALWAYS_ON>; status = "disabled"; ports { @@ -106,7 +106,7 @@ csi2: csi2@10830400 { resets = <&cpg R9A07G043_CRU_PRESETN>, <&cpg R9A07G043_CRU_CMN_RSTB>; reset-names = "presetn", "cmn-rstb"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G043_PD_ALWAYS_ON>; status = "disabled"; ports { @@ -194,7 +194,7 @@ irqc: interrupt-controller@110a0000 { clocks = <&cpg CPG_MOD R9A07G043_IA55_CLK>, <&cpg CPG_MOD R9A07G043_IA55_PCLK>; clock-names = "clk", "pclk"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G043_PD_ALWAYS_ON>; resets = <&cpg R9A07G043_IA55_RESETN>; }; diff --git a/arch/riscv/boot/dts/renesas/r9a07g043f.dtsi b/arch/riscv/boot/dts/renesas/r9a07g043f.dtsi index 09ef10b39f46..925203746b28 100644 --- a/arch/riscv/boot/dts/renesas/r9a07g043f.dtsi +++ b/arch/riscv/boot/dts/renesas/r9a07g043f.dtsi @@ -62,7 +62,7 @@ plic: interrupt-controller@12c00000 { interrupt-controller; reg = <0x0 0x12c00000 0 0x400000>; clocks = <&cpg CPG_MOD R9A07G043_NCEPLIC_ACLK>; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G043_PD_ALWAYS_ON>; resets = <&cpg R9A07G043_NCEPLIC_ARESETN>; interrupts-extended = <&cpu0_intc 11 &cpu0_intc 9>; }; From patchwork Thu Feb 8 12:42:57 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: claudiu beznea X-Patchwork-Id: 198429 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp184640dyd; Thu, 8 Feb 2024 06:01:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IEF3kBBW1nULq6Hrhawb6u/aYvc5uR+p2UF2IkrS/TEtkyrGa7kvaM33TCTVtOdkIBSc/x5 X-Received: by 2002:a05:6a20:5111:b0:19c:af95:96ec with SMTP id a17-20020a056a20511100b0019caf9596ecmr6163284pzc.35.1707400918125; Thu, 08 Feb 2024 06:01:58 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707400918; cv=pass; d=google.com; s=arc-20160816; b=jO++4kActjjqAFL+o+kAIzRigJzkGCXdb+yQkwiG2IsQJDG3Bkuu5U9DA6vxBkKFFV SmJMnGivqjKIrK7jIB81xBFd2AI5l3mNaj3spDRL0QJaalVWJK0ptzNk4G7Ze98YXWa0 5yqhvEibJ/QlR08dgUnucIQe+nzaOxWQoMTHODIIxwJWKxH2PykyEJpjGV+karFvRKT5 ZSu36VOw1tGILuk/GSTlhnUr2qQIHU2NRaYMlsMcPst9SVwTAC6xEwmcXXU42AUtg3Cd WyRV7xTaIQQd5/6V0TQDsc596eK6qGypaDvDzSUHGhQO5Ykl2FCzuaBRBckyfyOQ5Y74 isEg== 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=2q05WYI4OL+ukrmA7Gg9x6hfcXcT/QN33PCIAMcnws4=; fh=MQ2nu0vvL36T2zB7cx3R4X7kNxPfOmMgKPgWjS+0mh4=; b=o7r2jpYXEpHzW3eiBRrG3v43yFqDPrqLLjpvWM0u+VpW67CZNvUX/T/Y8RVAZRiZRf gilLOlRkrNMkiO7YUTDIfhXkwhs7LJpkryMcHT5iT41RpQStn6+nH0Jb239kFGYiQ508 cb1izUTSpLbMVGAnabFSjVK25SuXUMCWDoQJ5k8lLrKuOqOZH0XbR/uL+TPISzj6wLYA jK4wE50CdYF5m1tA/jN/MOh6KHdr6LS4LWG+oiq14bDJSjKcU8pOnl7zXUmy5l+s7Imt yDnswIflOOCocrH6OOcmTWOouLv/JW1I99/GvhOQduZND4mK8FeisayIvqtaVVeaeV0m ho/A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=GmnIh2Sx; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-58086-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58086-ouuuleilei=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCWBmy4SweN4Rnd/S4VDsVfUzcnBN/ghosK20z1akHcyHLOnvXuZVFqABbKnbfcUSt2I830gHglLCmn0kasou4vEjUzvdw== Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id du4-20020a056a002b4400b006ddcec89d8dsi3838293pfb.194.2024.02.08.06.01.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 06:01:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-58086-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=GmnIh2Sx; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-58086-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58086-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 BDF1EB24B5B for ; Thu, 8 Feb 2024 12:48:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7CE167EF09; Thu, 8 Feb 2024 12:44:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b="GmnIh2Sx" Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) (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 9B7037E56E for ; Thu, 8 Feb 2024 12:44:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707396258; cv=none; b=FvZGHkD58qdIdZtzvdBZSnIP5t5VpWBTIeqh3dNvSMLEW1SVE0NWKJ1r/BWV4BNNgwg2HbaqAWmWPaN66sM2pHFC6addY0BVx0yT64lrp7T8fMJN8Nr7h9P/uAO04Vui15IOj74Ggj6Zdw2ktrWiA675STLVv1FRZn9KimqrICc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707396258; c=relaxed/simple; bh=6kRKQLioG6pCW21DjA1cjPhIw6mveabny2PHjMxWz+Q=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=TvKSaqS4KSaTnRWv1mwDifiAZ1EOLrecSlpWL4fNYM1RiPHtx87ql4TEwU/qKTRpUWreogzD5RIvC28dXDmIiHtkwXi6fe/1JcLRXYCb9JJz8QjOagU9ixJwUXHEcSdKXcJ0Aq45WlPU6pwadF8ULwTGog5LWs5VtWrZESxmvVw= 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=GmnIh2Sx; arc=none smtp.client-ip=209.85.128.48 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-f48.google.com with SMTP id 5b1f17b1804b1-410489e1a63so2214975e9.3 for ; Thu, 08 Feb 2024 04:44:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1707396255; x=1708001055; 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=2q05WYI4OL+ukrmA7Gg9x6hfcXcT/QN33PCIAMcnws4=; b=GmnIh2SxGtms6ucABlwFkxl9HxA1q1/Sp2ktlVzzpSSFEWUurG9TDKUAroKHqSjMeq Cg/t37FoQeqcvDV7HcN+NhHu87yOHWQcTnrlRhniAexOGw2amFiiyOXbTWKj5wmMR1rv tuea+YmfKKy+bCXXrF66p66a+yAhQp2SlISE8ZXAz6bN/It5ijwb7MV4oMZDYkt4gX4N O9iLoh0b2dkObDKl2DfocnmahmdWJPr/SZlMeGz7hf1Kai5+9AXkJyGM+A7bDCR8s3Vl EHuPCWQ0cA0MHDO+lxdqxzLDAUGjhdgMp9i7cgMvOs4DWvNHE3zcwkgEeWTljS7EFDVz I5xg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707396255; x=1708001055; 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=2q05WYI4OL+ukrmA7Gg9x6hfcXcT/QN33PCIAMcnws4=; b=tQpb6GamtdY1zNA5Iw5zAQ5mzquOTdveyeUDL7CMMdptEKs0sB/ZNmahkTTguPLLW9 CGB0cx7DdroJyJH78ml2JLG+jD+6hqor8yFvS4R2lm43+crwVuQ9uJGT/QGOA+xZAxsF hQccw5dPbQw6eIaxu/pF8mk9y8CQhz1RlWphVHlp0ObHOm877o/piZ3joCqlDQ/R3usI Spar5RMoRhT0W6sgwE6060Ajx9GcgEAstyXYXtGV1jmcWmqjoHBMuVae67SVPRaw9DWM GO7K/4DslibvtYjrt97ZVYB9ST9LhkXrO1xsXLLdIFifeRvXwQGmXlcyzyVqOWpHaeox uAKQ== X-Gm-Message-State: AOJu0Yzq5j245ZRoQE/kkFDJWH/3LbC4XFeeQjfGVFQ3v2oyXY4Hzguq oOJPGInRjha8xthuKkua3qDNU+ATA4z2nxmzs4BMEhYL8+OqNH+zFAc6iKw1btQ= X-Received: by 2002:a05:600c:1c21:b0:40d:3fee:97f6 with SMTP id j33-20020a05600c1c2100b0040d3fee97f6mr6528520wms.34.1707396254854; Thu, 08 Feb 2024 04:44:14 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCV02lG8nozcROyUGNAXy1XL9cR9Hey9exiMwlHIJ+8jlWEpLAqe+9kNay6GNVkjMXXPsmitjGa7JfIT8A8z6JTeK4sZctmey/6r07CrJszFHIo+lme2iws0xeGZnymXkqLSghA/6MOlV+Pr90pbWipjOrB97BUFFh6d0VuCf3aQpbMa7IVRG+/rsipzDh/P8sLKTdhwXeYpFaDiawIeEYiRuUm9DNZOMSjOTj+/m6TGRLeRpuAjKnebJPKh6lyvM6p8RtLUiuRCaE1oaG7Fz3LOHwnrXIB7+l4SaeKpEg8+N2ijVzwVf1qAL3929naoYWnd4soOc0o8E0K7bIoJmvynE5Jo8Kq09HAjk+FLPLFSZ5kl7TxFu2lZzpLzMUGN+3+BeqZ32blnFd2xuM9gW1734R4+iyh1ahFqmTV7oz5lI7yKyFWhkTZRuoMkvrjqchUAut4jFOlDTs32LDp1OlwE5GhMLe1L5ipeTG5kvOGcbCyBF1+eQ12eBnRYrxFvSFJE398BymdNY7fWyUo9iXZtpkyVzIenldNylZgtbnen6c/JVq2pAYUMPmc/49zxOcg= 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.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 04:44:14 -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 14/17] arm64: dts: renesas: r9a07g044: Update #power-domain-cells = <1> Date: Thu, 8 Feb 2024 14:42:57 +0200 Message-Id: <20240208124300.2740313-15-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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790339625111313928 X-GMAIL-MSGID: 1790339625111313928 From: Claudiu Beznea Update CPG #power-domain-cells = <1> and move all the IPs to be part of the always on power domain as the driver has been modified to support multiple power domains. Signed-off-by: Claudiu Beznea --- arch/arm64/boot/dts/renesas/r9a07g044.dtsi | 100 ++++++++++----------- 1 file changed, 50 insertions(+), 50 deletions(-) diff --git a/arch/arm64/boot/dts/renesas/r9a07g044.dtsi b/arch/arm64/boot/dts/renesas/r9a07g044.dtsi index 66f68fc2b241..c6aa62351b89 100644 --- a/arch/arm64/boot/dts/renesas/r9a07g044.dtsi +++ b/arch/arm64/boot/dts/renesas/r9a07g044.dtsi @@ -238,7 +238,7 @@ mtu3: timer@10001200 { "tgia8", "tgib8", "tgic8", "tgid8", "tciv8", "tciu8"; clocks = <&cpg CPG_MOD R9A07G044_MTU_X_MCK_MTU3>; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G044_PD_ALWAYS_ON>; resets = <&cpg R9A07G044_MTU_X_PRESET_MTU3>; #pwm-cells = <2>; status = "disabled"; @@ -259,7 +259,7 @@ ssi0: ssi@10049c00 { resets = <&cpg R9A07G044_SSI0_RST_M2_REG>; dmas = <&dmac 0x2655>, <&dmac 0x2656>; dma-names = "tx", "rx"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G044_PD_ALWAYS_ON>; #sound-dai-cells = <0>; status = "disabled"; }; @@ -279,7 +279,7 @@ ssi1: ssi@1004a000 { resets = <&cpg R9A07G044_SSI1_RST_M2_REG>; dmas = <&dmac 0x2659>, <&dmac 0x265a>; dma-names = "tx", "rx"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G044_PD_ALWAYS_ON>; #sound-dai-cells = <0>; status = "disabled"; }; @@ -298,7 +298,7 @@ ssi2: ssi@1004a400 { resets = <&cpg R9A07G044_SSI2_RST_M2_REG>; dmas = <&dmac 0x265f>; dma-names = "rt"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G044_PD_ALWAYS_ON>; #sound-dai-cells = <0>; status = "disabled"; }; @@ -318,7 +318,7 @@ ssi3: ssi@1004a800 { resets = <&cpg R9A07G044_SSI3_RST_M2_REG>; dmas = <&dmac 0x2661>, <&dmac 0x2662>; dma-names = "tx", "rx"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G044_PD_ALWAYS_ON>; #sound-dai-cells = <0>; status = "disabled"; }; @@ -334,7 +334,7 @@ spi0: spi@1004ac00 { resets = <&cpg R9A07G044_RSPI0_RST>; dmas = <&dmac 0x2e95>, <&dmac 0x2e96>; dma-names = "tx", "rx"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G044_PD_ALWAYS_ON>; num-cs = <1>; #address-cells = <1>; #size-cells = <0>; @@ -352,7 +352,7 @@ spi1: spi@1004b000 { resets = <&cpg R9A07G044_RSPI1_RST>; dmas = <&dmac 0x2e99>, <&dmac 0x2e9a>; dma-names = "tx", "rx"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G044_PD_ALWAYS_ON>; num-cs = <1>; #address-cells = <1>; #size-cells = <0>; @@ -370,7 +370,7 @@ spi2: spi@1004b400 { resets = <&cpg R9A07G044_RSPI2_RST>; dmas = <&dmac 0x2e9d>, <&dmac 0x2e9e>; dma-names = "tx", "rx"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G044_PD_ALWAYS_ON>; num-cs = <1>; #address-cells = <1>; #size-cells = <0>; @@ -390,7 +390,7 @@ scif0: serial@1004b800 { "bri", "dri", "tei"; clocks = <&cpg CPG_MOD R9A07G044_SCIF0_CLK_PCK>; clock-names = "fck"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G044_PD_ALWAYS_ON>; resets = <&cpg R9A07G044_SCIF0_RST_SYSTEM_N>; status = "disabled"; }; @@ -408,7 +408,7 @@ scif1: serial@1004bc00 { "bri", "dri", "tei"; clocks = <&cpg CPG_MOD R9A07G044_SCIF1_CLK_PCK>; clock-names = "fck"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G044_PD_ALWAYS_ON>; resets = <&cpg R9A07G044_SCIF1_RST_SYSTEM_N>; status = "disabled"; }; @@ -426,7 +426,7 @@ scif2: serial@1004c000 { "bri", "dri", "tei"; clocks = <&cpg CPG_MOD R9A07G044_SCIF2_CLK_PCK>; clock-names = "fck"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G044_PD_ALWAYS_ON>; resets = <&cpg R9A07G044_SCIF2_RST_SYSTEM_N>; status = "disabled"; }; @@ -444,7 +444,7 @@ scif3: serial@1004c400 { "bri", "dri", "tei"; clocks = <&cpg CPG_MOD R9A07G044_SCIF3_CLK_PCK>; clock-names = "fck"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G044_PD_ALWAYS_ON>; resets = <&cpg R9A07G044_SCIF3_RST_SYSTEM_N>; status = "disabled"; }; @@ -462,7 +462,7 @@ scif4: serial@1004c800 { "bri", "dri", "tei"; clocks = <&cpg CPG_MOD R9A07G044_SCIF4_CLK_PCK>; clock-names = "fck"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G044_PD_ALWAYS_ON>; resets = <&cpg R9A07G044_SCIF4_RST_SYSTEM_N>; status = "disabled"; }; @@ -477,7 +477,7 @@ sci0: serial@1004d000 { interrupt-names = "eri", "rxi", "txi", "tei"; clocks = <&cpg CPG_MOD R9A07G044_SCI0_CLKP>; clock-names = "fck"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G044_PD_ALWAYS_ON>; resets = <&cpg R9A07G044_SCI0_RST>; status = "disabled"; }; @@ -492,7 +492,7 @@ sci1: serial@1004d400 { interrupt-names = "eri", "rxi", "txi", "tei"; clocks = <&cpg CPG_MOD R9A07G044_SCI1_CLKP>; clock-names = "fck"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G044_PD_ALWAYS_ON>; resets = <&cpg R9A07G044_SCI1_RST>; status = "disabled"; }; @@ -520,7 +520,7 @@ canfd: can@10050000 { resets = <&cpg R9A07G044_CANFD_RSTP_N>, <&cpg R9A07G044_CANFD_RSTC_N>; reset-names = "rstp_n", "rstc_n"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G044_PD_ALWAYS_ON>; status = "disabled"; channel0 { @@ -549,7 +549,7 @@ i2c0: i2c@10058000 { clocks = <&cpg CPG_MOD R9A07G044_I2C0_PCLK>; clock-frequency = <100000>; resets = <&cpg R9A07G044_I2C0_MRST>; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G044_PD_ALWAYS_ON>; status = "disabled"; }; @@ -571,7 +571,7 @@ i2c1: i2c@10058400 { clocks = <&cpg CPG_MOD R9A07G044_I2C1_PCLK>; clock-frequency = <100000>; resets = <&cpg R9A07G044_I2C1_MRST>; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G044_PD_ALWAYS_ON>; status = "disabled"; }; @@ -593,7 +593,7 @@ i2c2: i2c@10058800 { clocks = <&cpg CPG_MOD R9A07G044_I2C2_PCLK>; clock-frequency = <100000>; resets = <&cpg R9A07G044_I2C2_MRST>; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G044_PD_ALWAYS_ON>; status = "disabled"; }; @@ -615,7 +615,7 @@ i2c3: i2c@10058c00 { clocks = <&cpg CPG_MOD R9A07G044_I2C3_PCLK>; clock-frequency = <100000>; resets = <&cpg R9A07G044_I2C3_MRST>; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G044_PD_ALWAYS_ON>; status = "disabled"; }; @@ -629,7 +629,7 @@ adc: adc@10059000 { resets = <&cpg R9A07G044_ADC_PRESETN>, <&cpg R9A07G044_ADC_ADRST_N>; reset-names = "presetn", "adrst-n"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G044_PD_ALWAYS_ON>; status = "disabled"; #address-cells = <1>; @@ -667,7 +667,7 @@ tsu: thermal@10059400 { reg = <0 0x10059400 0 0x400>; clocks = <&cpg CPG_MOD R9A07G044_TSU_PCLK>; resets = <&cpg R9A07G044_TSU_PRESETN>; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G044_PD_ALWAYS_ON>; #thermal-sensor-cells = <1>; }; @@ -682,7 +682,7 @@ sbc: spi@10060000 { clocks = <&cpg CPG_MOD R9A07G044_SPI_CLK2>, <&cpg CPG_MOD R9A07G044_SPI_CLK>; resets = <&cpg R9A07G044_SPI_RST>; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G044_PD_ALWAYS_ON>; #address-cells = <1>; #size-cells = <0>; status = "disabled"; @@ -702,7 +702,7 @@ cru: video@10830000 { resets = <&cpg R9A07G044_CRU_PRESETN>, <&cpg R9A07G044_CRU_ARESETN>; reset-names = "presetn", "aresetn"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G044_PD_ALWAYS_ON>; status = "disabled"; ports { @@ -743,7 +743,7 @@ csi2: csi2@10830400 { resets = <&cpg R9A07G044_CRU_PRESETN>, <&cpg R9A07G044_CRU_CMN_RSTB>; reset-names = "presetn", "cmn-rstb"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G044_PD_ALWAYS_ON>; status = "disabled"; ports { @@ -791,7 +791,7 @@ dsi: dsi@10850000 { <&cpg R9A07G044_MIPI_DSI_ARESET_N>, <&cpg R9A07G044_MIPI_DSI_PRESET_N>; reset-names = "rst", "arst", "prst"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G044_PD_ALWAYS_ON>; status = "disabled"; }; @@ -803,7 +803,7 @@ vspd: vsp@10870000 { <&cpg CPG_MOD R9A07G044_LCDC_CLK_P>, <&cpg CPG_MOD R9A07G044_LCDC_CLK_D>; clock-names = "aclk", "pclk", "vclk"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G044_PD_ALWAYS_ON>; resets = <&cpg R9A07G044_LCDC_RESET_N>; renesas,fcp = <&fcpvd>; }; @@ -816,7 +816,7 @@ fcpvd: fcp@10880000 { <&cpg CPG_MOD R9A07G044_LCDC_CLK_P>, <&cpg CPG_MOD R9A07G044_LCDC_CLK_D>; clock-names = "aclk", "pclk", "vclk"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G044_PD_ALWAYS_ON>; resets = <&cpg R9A07G044_LCDC_RESET_N>; }; @@ -827,7 +827,7 @@ cpg: clock-controller@11010000 { clock-names = "extal"; #clock-cells = <2>; #reset-cells = <1>; - #power-domain-cells = <0>; + #power-domain-cells = <1>; }; sysc: system-controller@11020000 { @@ -852,7 +852,7 @@ pinctrl: pinctrl@11030000 { interrupt-controller; gpio-ranges = <&pinctrl 0 0 392>; clocks = <&cpg CPG_MOD R9A07G044_GPIO_HCLK>; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G044_PD_ALWAYS_ON>; resets = <&cpg R9A07G044_GPIO_RSTN>, <&cpg R9A07G044_GPIO_PORT_RESETN>, <&cpg R9A07G044_GPIO_SPARE_RESETN>; @@ -909,7 +909,7 @@ irqc: interrupt-controller@110a0000 { clocks = <&cpg CPG_MOD R9A07G044_IA55_CLK>, <&cpg CPG_MOD R9A07G044_IA55_PCLK>; clock-names = "clk", "pclk"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G044_PD_ALWAYS_ON>; resets = <&cpg R9A07G044_IA55_RESETN>; }; @@ -943,7 +943,7 @@ dmac: dma-controller@11820000 { clocks = <&cpg CPG_MOD R9A07G044_DMAC_ACLK>, <&cpg CPG_MOD R9A07G044_DMAC_PCLK>; clock-names = "main", "register"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G044_PD_ALWAYS_ON>; resets = <&cpg R9A07G044_DMAC_ARESETN>, <&cpg R9A07G044_DMAC_RST_ASYNC>; reset-names = "arst", "rst_async"; @@ -964,7 +964,7 @@ gpu: gpu@11840000 { <&cpg CPG_MOD R9A07G044_GPU_AXI_CLK>, <&cpg CPG_MOD R9A07G044_GPU_ACE_CLK>; clock-names = "gpu", "bus", "bus_ace"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G044_PD_ALWAYS_ON>; resets = <&cpg R9A07G044_GPU_RESETN>, <&cpg R9A07G044_GPU_AXI_RESETN>, <&cpg R9A07G044_GPU_ACE_RESETN>; @@ -994,7 +994,7 @@ sdhi0: mmc@11c00000 { <&cpg CPG_MOD R9A07G044_SDHI0_ACLK>; clock-names = "core", "clkh", "cd", "aclk"; resets = <&cpg R9A07G044_SDHI0_IXRST>; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G044_PD_ALWAYS_ON>; status = "disabled"; }; @@ -1010,7 +1010,7 @@ sdhi1: mmc@11c10000 { <&cpg CPG_MOD R9A07G044_SDHI1_ACLK>; clock-names = "core", "clkh", "cd", "aclk"; resets = <&cpg R9A07G044_SDHI1_IXRST>; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G044_PD_ALWAYS_ON>; status = "disabled"; }; @@ -1028,7 +1028,7 @@ eth0: ethernet@11c20000 { <&cpg CPG_CORE R9A07G044_CLK_HP>; clock-names = "axi", "chi", "refclk"; resets = <&cpg R9A07G044_ETH0_RST_HW_N>; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G044_PD_ALWAYS_ON>; #address-cells = <1>; #size-cells = <0>; status = "disabled"; @@ -1048,7 +1048,7 @@ eth1: ethernet@11c30000 { <&cpg CPG_CORE R9A07G044_CLK_HP>; clock-names = "axi", "chi", "refclk"; resets = <&cpg R9A07G044_ETH1_RST_HW_N>; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G044_PD_ALWAYS_ON>; #address-cells = <1>; #size-cells = <0>; status = "disabled"; @@ -1060,7 +1060,7 @@ phyrst: usbphy-ctrl@11c40000 { reg = <0 0x11c40000 0 0x10000>; clocks = <&cpg CPG_MOD R9A07G044_USB_PCLK>; resets = <&cpg R9A07G044_USB_PRESETN>; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G044_PD_ALWAYS_ON>; #reset-cells = <1>; status = "disabled"; }; @@ -1075,7 +1075,7 @@ ohci0: usb@11c50000 { <&cpg R9A07G044_USB_U2H0_HRESETN>; phys = <&usb2_phy0 1>; phy-names = "usb"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G044_PD_ALWAYS_ON>; status = "disabled"; }; @@ -1089,7 +1089,7 @@ ohci1: usb@11c70000 { <&cpg R9A07G044_USB_U2H1_HRESETN>; phys = <&usb2_phy1 1>; phy-names = "usb"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G044_PD_ALWAYS_ON>; status = "disabled"; }; @@ -1104,7 +1104,7 @@ ehci0: usb@11c50100 { phys = <&usb2_phy0 2>; phy-names = "usb"; companion = <&ohci0>; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G044_PD_ALWAYS_ON>; status = "disabled"; }; @@ -1119,7 +1119,7 @@ ehci1: usb@11c70100 { phys = <&usb2_phy1 2>; phy-names = "usb"; companion = <&ohci1>; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G044_PD_ALWAYS_ON>; status = "disabled"; }; @@ -1132,7 +1132,7 @@ usb2_phy0: usb-phy@11c50200 { <&cpg CPG_MOD R9A07G044_USB_U2H0_HCLK>; resets = <&phyrst 0>; #phy-cells = <1>; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G044_PD_ALWAYS_ON>; status = "disabled"; }; @@ -1145,7 +1145,7 @@ usb2_phy1: usb-phy@11c70200 { <&cpg CPG_MOD R9A07G044_USB_U2H1_HCLK>; resets = <&phyrst 1>; #phy-cells = <1>; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G044_PD_ALWAYS_ON>; status = "disabled"; }; @@ -1164,7 +1164,7 @@ hsusb: usb@11c60000 { renesas,buswait = <7>; phys = <&usb2_phy0 3>; phy-names = "usb"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G044_PD_ALWAYS_ON>; status = "disabled"; }; @@ -1179,7 +1179,7 @@ wdt0: watchdog@12800800 { ; interrupt-names = "wdt", "perrout"; resets = <&cpg R9A07G044_WDT0_PRESETN>; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G044_PD_ALWAYS_ON>; status = "disabled"; }; @@ -1194,7 +1194,7 @@ wdt1: watchdog@12800c00 { ; interrupt-names = "wdt", "perrout"; resets = <&cpg R9A07G044_WDT1_PRESETN>; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G044_PD_ALWAYS_ON>; status = "disabled"; }; @@ -1205,7 +1205,7 @@ ostm0: timer@12801000 { interrupts = ; clocks = <&cpg CPG_MOD R9A07G044_OSTM0_PCLK>; resets = <&cpg R9A07G044_OSTM0_PRESETZ>; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G044_PD_ALWAYS_ON>; status = "disabled"; }; @@ -1216,7 +1216,7 @@ ostm1: timer@12801400 { interrupts = ; clocks = <&cpg CPG_MOD R9A07G044_OSTM1_PCLK>; resets = <&cpg R9A07G044_OSTM1_PRESETZ>; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G044_PD_ALWAYS_ON>; status = "disabled"; }; @@ -1227,7 +1227,7 @@ ostm2: timer@12801800 { interrupts = ; clocks = <&cpg CPG_MOD R9A07G044_OSTM2_PCLK>; resets = <&cpg R9A07G044_OSTM2_PRESETZ>; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G044_PD_ALWAYS_ON>; status = "disabled"; }; }; From patchwork Thu Feb 8 12:42:58 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: claudiu beznea X-Patchwork-Id: 199265 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp1460025dyd; Sat, 10 Feb 2024 05:15:25 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUf6SBE4PqswWaVeHdteemvSlzvXnPqRA4ZfTpHBLpKugYkz9KhoD6F+xVTnG3ecOnfpCqUd3Qnot/RqRvMlW59bYow7Q== X-Google-Smtp-Source: AGHT+IH4d4UyNtl9vJA0M4wnkDcYexu3XXNx5xt4qSCYeigLjFkb5eyrKQIu9t5pJepgizsB64ep X-Received: by 2002:a0c:ca01:0:b0:68c:8c52:1140 with SMTP id c1-20020a0cca01000000b0068c8c521140mr2047691qvk.3.1707570925637; Sat, 10 Feb 2024 05:15:25 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707570925; cv=pass; d=google.com; s=arc-20160816; b=r/CAM8Iw//ueB3Nx+R+IPaK06TPYt61dLd/K34PvttUB5e1LZdi7ae46sskOAEQmTL EY6RtU7iJjq3lnZyhpVA7BDbDL6OmR7SSLl+RggkF0N3g+ijG7+m7gmInowv1Cw8WSG1 0kvdajUaN4iBdL9rd0ilyL/GfI8+hYxwbF45lg+oD4ICg+qetUN347YlpVVaxrzxZf3l qc4UUWVo1q7IsszHNbzPRJVGo4TlZ4Sg/T3jWyuPY7IhoiGZo0ADj8OHWzslvT8+ZHcy 0/SZXRDyYKv82iDwFzvzVomQKlUO1seAufJk1c42Hy1donLYZlzu31aPyjpEww7R8B+C LKlA== 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=A5vDPFCyu4dKHPbIjfPJAR8Xl/z+7tvbrj2jQ3PSyCc=; fh=8BLbTLCmEmTn5vuqtvaYCFyn3lvP1ISI7voKHleqpEA=; b=DQ7TrgC8WkW/Nf10IanWsS+KlKx2BuwiZ4ZM4Jpd7fa1ka1cWA+iVaTNQbXyB0Ztq1 R5ZlBtI+b+ocCOrTJTNAwJVzr1ymo9Xoz5qR/QmK7YFMj1LSm4755KoNtH6YnJDYu32m 88DWxsrTlqV290Rf6G+ZJ2N1H7Yu6bwGzlS1dRigtkIdUfL1l9VYEl8bAK4njDHKgkCm j16ImEZFLsFgndWeIiGJfI7SeW48R9l1awKr/mzADF+YuvtfqadbBArc2krpiDQ/eIg0 bZ6K79nAzocBU0BqJYpz+Z01UiIOH0/nsAgt/01aIj69NKbnfl8GtUK3T9r649fDiuqb CKFw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=VVcZ4GfE; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-58087-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58087-ouuuleilei=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCVXuOE35vof5CrIBQbugMj/arlvDMLvjBR1Wt2oimvb/CWOIyT9qaw/rv9yR26aseZNDVye4/CaL+sdeIqYXaJ8XYVWig== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id jz14-20020a0562140e6e00b0068ccd4443c1si4146865qvb.174.2024.02.10.05.15.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Feb 2024 05:15:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-58087-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=VVcZ4GfE; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-58087-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58087-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 EBE801C295AC for ; Thu, 8 Feb 2024 12:48:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D3F1281AAA; Thu, 8 Feb 2024 12:44:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b="VVcZ4GfE" Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com [209.85.167.48]) (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 02C5A7E59D for ; Thu, 8 Feb 2024 12:44:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.48 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707396261; cv=none; b=Regxyeu3DwgkvbX5ifbBlCZKChEJXtad/UpFxQ9Iy6MWSgmD3bRlVOvjb+z+lLl+bdIG6TdBVaXnvNULKIGpdIcT6+z4U/+gb+ktQ/jfdNm/I40x1VybHYQBRSyAlrb9k2KY/prJDi/5u+6jTZkUtukUdO2NWIl0+R+43yVDzFg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707396261; c=relaxed/simple; bh=dKiLPHEJqEKqUnVf0lz6gCePZTKCt84dEy249ZdO6ME=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Gzm6LAY16Iw8rqhDyqK10Htn+rb8COsu2J5m4hHdGquUMWi5KH0C7mHcK15kpId6sYqOnYlppMaI6qG0b+oDRUG7R+6P8B4e4/OX5WFQPpA0/eerLz0xNi/QcSKgMxiUqk9NhYtfFIxfGoSwEb/1nezoW8YqUutjEBnfm9L8nnw= 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=VVcZ4GfE; arc=none smtp.client-ip=209.85.167.48 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-f48.google.com with SMTP id 2adb3069b0e04-5116b017503so1582160e87.1 for ; Thu, 08 Feb 2024 04:44:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1707396257; x=1708001057; 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=A5vDPFCyu4dKHPbIjfPJAR8Xl/z+7tvbrj2jQ3PSyCc=; b=VVcZ4GfEkQuP2QAMGuyY2Hy7zBxnvJrt8N1xDIvI1Y5nzHyVIRpSI+M9QXZqiLyNS1 uwLVdHpc4cJHH0+U0LSi9hp945l6TxoeQYDudfXyoToyio7PzbWeLzQiBFViCbmeKjxF 1MgQJkIquFKtV9ljU/CpxvNqDIKLWwVTC7LBSpUbZcEsxazeL4gESAn9kfPcSkHILy5K TP142r6DKnCg3qofIi3VLY9wqJnldnCv28+TunzXC3ZLegzjfD8aTTeFPy9gmDyO2Q/Q Zd4R0fUqOGwNNP6c8M00OOqszGurogTQ1Roa4FniqSEEDqJIuwiCABIYO1vN98QvX05r IW4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707396257; x=1708001057; 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=A5vDPFCyu4dKHPbIjfPJAR8Xl/z+7tvbrj2jQ3PSyCc=; b=Cz55B/Ba2tOfpi5MRLqK9puw4bBm/KfNauUftqWrAivhDAPJapHXQORc9GFP7G+pT8 0ZvyxEwWFbJr4R+hRk35nS/Xq9GqGPFdEmUCfGSLIjsJvFzZAyRJYMuqwtHXI9FBz234 CWF79ReCNHDmW1n2zqdeyEbye3epMldY1JZzXVvvFC5qxT4uO8h8C/R4q/IyY8r61Qel rXY00ZUAhH9Nu26s2MNmOfltziIH2zehxi//zRWbs50dcLFXO0ibsYRnVu39DU285V4e Vn2wRQg2anVHB0vrk5dHNr5rV3hIYgogUIst8DGhyMCz3iaICV+vUTswFL3YjBqBiaAe O5og== X-Forwarded-Encrypted: i=1; AJvYcCXhybDybvQJr4+mXs4XYquFMvX+HuwJyYUqjlmv5F+eOtorXWCdUYqRHl8UV1rnEkbzgYeqk32aheX0EvE+QuauO3TaK3RlgY6IGX0t X-Gm-Message-State: AOJu0YwlDhcHwRi52x+xH70590CW8+sSPFh6Nm2Xid3byF3ihrcDQsuz /lY9yZfq9ttl8IFLIXIvLRhHLu70cJx504lf6x4b5VYHoIQzuYJ2TEpNk3yJtIo= X-Received: by 2002:a19:7410:0:b0:50f:18f7:855e with SMTP id v16-20020a197410000000b0050f18f7855emr5896888lfe.39.1707396257242; Thu, 08 Feb 2024 04:44:17 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCXE7c3sz4f5wWPPmFgkoRc8BY8A6X4pjg9pmgXzPlV8fvP2U6xbA+abb1l1nwiYJgCT7u6OewuD5z6gEJmGZPUtyVRvDWC0kOXVbIMjKhVhIu7ONfA2dsZB6vzVtPHreOtK1kFaVkBL2F98E3HbSsKPfa0OvjBiy/XBo0MDALyrxBO7WQKAVc1L8OVnpbdwAYDUI71K2HcIyTk5UimsmZWqzTZa+dJTkHkAFRa+ELtCDsHkoNMdDuF8iUfQP3cAmVZw5tqZJewtmvDUkX5XukL6Q25yUETVAYQHyZdbnOVTzjLnIUkc4tPhLwhrKsZIueQ4151kivB7MtT6ZOB0JWq2sHhvt1qe6ueKQdDWiqdpFsOleRXqlpUAVBJKphw/sQsYjG/xilfTzsEkquQd+WoD0gpXbKbxqVumkGEM/Q9WNogZxjRrtUyQJwdRf9TWFpmXIdNj4BXgnr25F7H2uwBW3+Qo8p3nOAp6pxpuNkFixHqt0oupKc0zwXpq2bQmnupyZufRU2Bqpi1hEq7REH/QsMPc9FYipFYJPU7L8077AGlwndFAz7DKBq7kJ5epoG8= 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.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 04:44:16 -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 15/17] arm64: dts: renesas: r9a07g054: Update #power-domain-cells = <1> Date: Thu, 8 Feb 2024 14:42:58 +0200 Message-Id: <20240208124300.2740313-16-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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790517891171451711 X-GMAIL-MSGID: 1790517891171451711 From: Claudiu Beznea Update CPG #power-domain-cells = <1> and move all the IPs to be part of the always on power domain as the driver has been modified to support multiple power domains. Signed-off-by: Claudiu Beznea --- arch/arm64/boot/dts/renesas/r9a07g054.dtsi | 100 ++++++++++----------- 1 file changed, 50 insertions(+), 50 deletions(-) diff --git a/arch/arm64/boot/dts/renesas/r9a07g054.dtsi b/arch/arm64/boot/dts/renesas/r9a07g054.dtsi index 1f1d481dc783..15fc6e6f79ce 100644 --- a/arch/arm64/boot/dts/renesas/r9a07g054.dtsi +++ b/arch/arm64/boot/dts/renesas/r9a07g054.dtsi @@ -238,7 +238,7 @@ mtu3: timer@10001200 { "tgia8", "tgib8", "tgic8", "tgid8", "tciv8", "tciu8"; clocks = <&cpg CPG_MOD R9A07G054_MTU_X_MCK_MTU3>; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G054_PD_ALWAYS_ON>; resets = <&cpg R9A07G054_MTU_X_PRESET_MTU3>; #pwm-cells = <2>; status = "disabled"; @@ -259,7 +259,7 @@ ssi0: ssi@10049c00 { resets = <&cpg R9A07G054_SSI0_RST_M2_REG>; dmas = <&dmac 0x2655>, <&dmac 0x2656>; dma-names = "tx", "rx"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G054_PD_ALWAYS_ON>; #sound-dai-cells = <0>; status = "disabled"; }; @@ -279,7 +279,7 @@ ssi1: ssi@1004a000 { resets = <&cpg R9A07G054_SSI1_RST_M2_REG>; dmas = <&dmac 0x2659>, <&dmac 0x265a>; dma-names = "tx", "rx"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G054_PD_ALWAYS_ON>; #sound-dai-cells = <0>; status = "disabled"; }; @@ -298,7 +298,7 @@ ssi2: ssi@1004a400 { resets = <&cpg R9A07G054_SSI2_RST_M2_REG>; dmas = <&dmac 0x265f>; dma-names = "rt"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G054_PD_ALWAYS_ON>; #sound-dai-cells = <0>; status = "disabled"; }; @@ -318,7 +318,7 @@ ssi3: ssi@1004a800 { resets = <&cpg R9A07G054_SSI3_RST_M2_REG>; dmas = <&dmac 0x2661>, <&dmac 0x2662>; dma-names = "tx", "rx"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G054_PD_ALWAYS_ON>; #sound-dai-cells = <0>; status = "disabled"; }; @@ -334,7 +334,7 @@ spi0: spi@1004ac00 { resets = <&cpg R9A07G054_RSPI0_RST>; dmas = <&dmac 0x2e95>, <&dmac 0x2e96>; dma-names = "tx", "rx"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G054_PD_ALWAYS_ON>; num-cs = <1>; #address-cells = <1>; #size-cells = <0>; @@ -352,7 +352,7 @@ spi1: spi@1004b000 { resets = <&cpg R9A07G054_RSPI1_RST>; dmas = <&dmac 0x2e99>, <&dmac 0x2e9a>; dma-names = "tx", "rx"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G054_PD_ALWAYS_ON>; num-cs = <1>; #address-cells = <1>; #size-cells = <0>; @@ -370,7 +370,7 @@ spi2: spi@1004b400 { resets = <&cpg R9A07G054_RSPI2_RST>; dmas = <&dmac 0x2e9d>, <&dmac 0x2e9e>; dma-names = "tx", "rx"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G054_PD_ALWAYS_ON>; num-cs = <1>; #address-cells = <1>; #size-cells = <0>; @@ -391,7 +391,7 @@ scif0: serial@1004b800 { "bri", "dri", "tei"; clocks = <&cpg CPG_MOD R9A07G054_SCIF0_CLK_PCK>; clock-names = "fck"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G054_PD_ALWAYS_ON>; resets = <&cpg R9A07G054_SCIF0_RST_SYSTEM_N>; status = "disabled"; }; @@ -410,7 +410,7 @@ scif1: serial@1004bc00 { "bri", "dri", "tei"; clocks = <&cpg CPG_MOD R9A07G054_SCIF1_CLK_PCK>; clock-names = "fck"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G054_PD_ALWAYS_ON>; resets = <&cpg R9A07G054_SCIF1_RST_SYSTEM_N>; status = "disabled"; }; @@ -429,7 +429,7 @@ scif2: serial@1004c000 { "bri", "dri", "tei"; clocks = <&cpg CPG_MOD R9A07G054_SCIF2_CLK_PCK>; clock-names = "fck"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G054_PD_ALWAYS_ON>; resets = <&cpg R9A07G054_SCIF2_RST_SYSTEM_N>; status = "disabled"; }; @@ -448,7 +448,7 @@ scif3: serial@1004c400 { "bri", "dri", "tei"; clocks = <&cpg CPG_MOD R9A07G054_SCIF3_CLK_PCK>; clock-names = "fck"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G054_PD_ALWAYS_ON>; resets = <&cpg R9A07G054_SCIF3_RST_SYSTEM_N>; status = "disabled"; }; @@ -467,7 +467,7 @@ scif4: serial@1004c800 { "bri", "dri", "tei"; clocks = <&cpg CPG_MOD R9A07G054_SCIF4_CLK_PCK>; clock-names = "fck"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G054_PD_ALWAYS_ON>; resets = <&cpg R9A07G054_SCIF4_RST_SYSTEM_N>; status = "disabled"; }; @@ -482,7 +482,7 @@ sci0: serial@1004d000 { interrupt-names = "eri", "rxi", "txi", "tei"; clocks = <&cpg CPG_MOD R9A07G054_SCI0_CLKP>; clock-names = "fck"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G054_PD_ALWAYS_ON>; resets = <&cpg R9A07G054_SCI0_RST>; status = "disabled"; }; @@ -497,7 +497,7 @@ sci1: serial@1004d400 { interrupt-names = "eri", "rxi", "txi", "tei"; clocks = <&cpg CPG_MOD R9A07G054_SCI1_CLKP>; clock-names = "fck"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G054_PD_ALWAYS_ON>; resets = <&cpg R9A07G054_SCI1_RST>; status = "disabled"; }; @@ -525,7 +525,7 @@ canfd: can@10050000 { resets = <&cpg R9A07G054_CANFD_RSTP_N>, <&cpg R9A07G054_CANFD_RSTC_N>; reset-names = "rstp_n", "rstc_n"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G054_PD_ALWAYS_ON>; status = "disabled"; channel0 { @@ -554,7 +554,7 @@ i2c0: i2c@10058000 { clocks = <&cpg CPG_MOD R9A07G054_I2C0_PCLK>; clock-frequency = <100000>; resets = <&cpg R9A07G054_I2C0_MRST>; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G054_PD_ALWAYS_ON>; status = "disabled"; }; @@ -576,7 +576,7 @@ i2c1: i2c@10058400 { clocks = <&cpg CPG_MOD R9A07G054_I2C1_PCLK>; clock-frequency = <100000>; resets = <&cpg R9A07G054_I2C1_MRST>; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G054_PD_ALWAYS_ON>; status = "disabled"; }; @@ -598,7 +598,7 @@ i2c2: i2c@10058800 { clocks = <&cpg CPG_MOD R9A07G054_I2C2_PCLK>; clock-frequency = <100000>; resets = <&cpg R9A07G054_I2C2_MRST>; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G054_PD_ALWAYS_ON>; status = "disabled"; }; @@ -620,7 +620,7 @@ i2c3: i2c@10058c00 { clocks = <&cpg CPG_MOD R9A07G054_I2C3_PCLK>; clock-frequency = <100000>; resets = <&cpg R9A07G054_I2C3_MRST>; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G054_PD_ALWAYS_ON>; status = "disabled"; }; @@ -634,7 +634,7 @@ adc: adc@10059000 { resets = <&cpg R9A07G054_ADC_PRESETN>, <&cpg R9A07G054_ADC_ADRST_N>; reset-names = "presetn", "adrst-n"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G054_PD_ALWAYS_ON>; status = "disabled"; #address-cells = <1>; @@ -672,7 +672,7 @@ tsu: thermal@10059400 { reg = <0 0x10059400 0 0x400>; clocks = <&cpg CPG_MOD R9A07G054_TSU_PCLK>; resets = <&cpg R9A07G054_TSU_PRESETN>; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G054_PD_ALWAYS_ON>; #thermal-sensor-cells = <1>; }; @@ -687,7 +687,7 @@ sbc: spi@10060000 { clocks = <&cpg CPG_MOD R9A07G054_SPI_CLK2>, <&cpg CPG_MOD R9A07G054_SPI_CLK>; resets = <&cpg R9A07G054_SPI_RST>; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G054_PD_ALWAYS_ON>; #address-cells = <1>; #size-cells = <0>; status = "disabled"; @@ -707,7 +707,7 @@ cru: video@10830000 { resets = <&cpg R9A07G054_CRU_PRESETN>, <&cpg R9A07G054_CRU_ARESETN>; reset-names = "presetn", "aresetn"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G054_PD_ALWAYS_ON>; status = "disabled"; ports { @@ -748,7 +748,7 @@ csi2: csi2@10830400 { resets = <&cpg R9A07G054_CRU_PRESETN>, <&cpg R9A07G054_CRU_CMN_RSTB>; reset-names = "presetn", "cmn-rstb"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G054_PD_ALWAYS_ON>; status = "disabled"; ports { @@ -796,7 +796,7 @@ dsi: dsi@10850000 { <&cpg R9A07G054_MIPI_DSI_ARESET_N>, <&cpg R9A07G054_MIPI_DSI_PRESET_N>; reset-names = "rst", "arst", "prst"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G054_PD_ALWAYS_ON>; status = "disabled"; }; @@ -809,7 +809,7 @@ vspd: vsp@10870000 { <&cpg CPG_MOD R9A07G054_LCDC_CLK_P>, <&cpg CPG_MOD R9A07G054_LCDC_CLK_D>; clock-names = "aclk", "pclk", "vclk"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G054_PD_ALWAYS_ON>; resets = <&cpg R9A07G054_LCDC_RESET_N>; renesas,fcp = <&fcpvd>; }; @@ -822,7 +822,7 @@ fcpvd: fcp@10880000 { <&cpg CPG_MOD R9A07G054_LCDC_CLK_P>, <&cpg CPG_MOD R9A07G054_LCDC_CLK_D>; clock-names = "aclk", "pclk", "vclk"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G054_PD_ALWAYS_ON>; resets = <&cpg R9A07G054_LCDC_RESET_N>; }; @@ -833,7 +833,7 @@ cpg: clock-controller@11010000 { clock-names = "extal"; #clock-cells = <2>; #reset-cells = <1>; - #power-domain-cells = <0>; + #power-domain-cells = <1>; }; sysc: system-controller@11020000 { @@ -859,7 +859,7 @@ pinctrl: pinctrl@11030000 { interrupt-controller; gpio-ranges = <&pinctrl 0 0 392>; clocks = <&cpg CPG_MOD R9A07G054_GPIO_HCLK>; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G054_PD_ALWAYS_ON>; resets = <&cpg R9A07G054_GPIO_RSTN>, <&cpg R9A07G054_GPIO_PORT_RESETN>, <&cpg R9A07G054_GPIO_SPARE_RESETN>; @@ -916,7 +916,7 @@ irqc: interrupt-controller@110a0000 { clocks = <&cpg CPG_MOD R9A07G054_IA55_CLK>, <&cpg CPG_MOD R9A07G054_IA55_PCLK>; clock-names = "clk", "pclk"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G054_PD_ALWAYS_ON>; resets = <&cpg R9A07G054_IA55_RESETN>; }; @@ -950,7 +950,7 @@ dmac: dma-controller@11820000 { clocks = <&cpg CPG_MOD R9A07G054_DMAC_ACLK>, <&cpg CPG_MOD R9A07G054_DMAC_PCLK>; clock-names = "main", "register"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G054_PD_ALWAYS_ON>; resets = <&cpg R9A07G054_DMAC_ARESETN>, <&cpg R9A07G054_DMAC_RST_ASYNC>; reset-names = "arst", "rst_async"; @@ -971,7 +971,7 @@ gpu: gpu@11840000 { <&cpg CPG_MOD R9A07G054_GPU_AXI_CLK>, <&cpg CPG_MOD R9A07G054_GPU_ACE_CLK>; clock-names = "gpu", "bus", "bus_ace"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G054_PD_ALWAYS_ON>; resets = <&cpg R9A07G054_GPU_RESETN>, <&cpg R9A07G054_GPU_AXI_RESETN>, <&cpg R9A07G054_GPU_ACE_RESETN>; @@ -1001,7 +1001,7 @@ sdhi0: mmc@11c00000 { <&cpg CPG_MOD R9A07G054_SDHI0_ACLK>; clock-names = "core", "clkh", "cd", "aclk"; resets = <&cpg R9A07G054_SDHI0_IXRST>; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G054_PD_ALWAYS_ON>; status = "disabled"; }; @@ -1017,7 +1017,7 @@ sdhi1: mmc@11c10000 { <&cpg CPG_MOD R9A07G054_SDHI1_ACLK>; clock-names = "core", "clkh", "cd", "aclk"; resets = <&cpg R9A07G054_SDHI1_IXRST>; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G054_PD_ALWAYS_ON>; status = "disabled"; }; @@ -1035,7 +1035,7 @@ eth0: ethernet@11c20000 { <&cpg CPG_CORE R9A07G054_CLK_HP>; clock-names = "axi", "chi", "refclk"; resets = <&cpg R9A07G054_ETH0_RST_HW_N>; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G054_PD_ALWAYS_ON>; #address-cells = <1>; #size-cells = <0>; status = "disabled"; @@ -1055,7 +1055,7 @@ eth1: ethernet@11c30000 { <&cpg CPG_CORE R9A07G054_CLK_HP>; clock-names = "axi", "chi", "refclk"; resets = <&cpg R9A07G054_ETH1_RST_HW_N>; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G054_PD_ALWAYS_ON>; #address-cells = <1>; #size-cells = <0>; status = "disabled"; @@ -1067,7 +1067,7 @@ phyrst: usbphy-ctrl@11c40000 { reg = <0 0x11c40000 0 0x10000>; clocks = <&cpg CPG_MOD R9A07G054_USB_PCLK>; resets = <&cpg R9A07G054_USB_PRESETN>; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G054_PD_ALWAYS_ON>; #reset-cells = <1>; status = "disabled"; }; @@ -1082,7 +1082,7 @@ ohci0: usb@11c50000 { <&cpg R9A07G054_USB_U2H0_HRESETN>; phys = <&usb2_phy0 1>; phy-names = "usb"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G054_PD_ALWAYS_ON>; status = "disabled"; }; @@ -1096,7 +1096,7 @@ ohci1: usb@11c70000 { <&cpg R9A07G054_USB_U2H1_HRESETN>; phys = <&usb2_phy1 1>; phy-names = "usb"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G054_PD_ALWAYS_ON>; status = "disabled"; }; @@ -1111,7 +1111,7 @@ ehci0: usb@11c50100 { phys = <&usb2_phy0 2>; phy-names = "usb"; companion = <&ohci0>; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G054_PD_ALWAYS_ON>; status = "disabled"; }; @@ -1126,7 +1126,7 @@ ehci1: usb@11c70100 { phys = <&usb2_phy1 2>; phy-names = "usb"; companion = <&ohci1>; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G054_PD_ALWAYS_ON>; status = "disabled"; }; @@ -1139,7 +1139,7 @@ usb2_phy0: usb-phy@11c50200 { <&cpg CPG_MOD R9A07G054_USB_U2H0_HCLK>; resets = <&phyrst 0>; #phy-cells = <1>; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G054_PD_ALWAYS_ON>; status = "disabled"; }; @@ -1152,7 +1152,7 @@ usb2_phy1: usb-phy@11c70200 { <&cpg CPG_MOD R9A07G054_USB_U2H1_HCLK>; resets = <&phyrst 1>; #phy-cells = <1>; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G054_PD_ALWAYS_ON>; status = "disabled"; }; @@ -1171,7 +1171,7 @@ hsusb: usb@11c60000 { renesas,buswait = <7>; phys = <&usb2_phy0 3>; phy-names = "usb"; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G054_PD_ALWAYS_ON>; status = "disabled"; }; @@ -1186,7 +1186,7 @@ wdt0: watchdog@12800800 { ; interrupt-names = "wdt", "perrout"; resets = <&cpg R9A07G054_WDT0_PRESETN>; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G054_PD_ALWAYS_ON>; status = "disabled"; }; @@ -1201,7 +1201,7 @@ wdt1: watchdog@12800c00 { ; interrupt-names = "wdt", "perrout"; resets = <&cpg R9A07G054_WDT1_PRESETN>; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G054_PD_ALWAYS_ON>; status = "disabled"; }; @@ -1212,7 +1212,7 @@ ostm0: timer@12801000 { interrupts = ; clocks = <&cpg CPG_MOD R9A07G054_OSTM0_PCLK>; resets = <&cpg R9A07G054_OSTM0_PRESETZ>; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G054_PD_ALWAYS_ON>; status = "disabled"; }; @@ -1223,7 +1223,7 @@ ostm1: timer@12801400 { interrupts = ; clocks = <&cpg CPG_MOD R9A07G054_OSTM1_PCLK>; resets = <&cpg R9A07G054_OSTM1_PRESETZ>; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G054_PD_ALWAYS_ON>; status = "disabled"; }; @@ -1234,7 +1234,7 @@ ostm2: timer@12801800 { interrupts = ; clocks = <&cpg CPG_MOD R9A07G054_OSTM2_PCLK>; resets = <&cpg R9A07G054_OSTM2_PRESETZ>; - power-domains = <&cpg>; + power-domains = <&cpg R9A07G054_PD_ALWAYS_ON>; status = "disabled"; }; }; From patchwork Thu Feb 8 12:42:59 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: claudiu beznea X-Patchwork-Id: 198835 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp806674dyd; Fri, 9 Feb 2024 04:15:21 -0800 (PST) X-Google-Smtp-Source: AGHT+IE4Yd29v13qil7HANPQGPfTw9bv9fnKzE9qqk/I7ovencpz8TVAOrQUKPVOHv1FfkSHpQFx X-Received: by 2002:a05:622a:11d3:b0:42b:e7f2:bbf0 with SMTP id n19-20020a05622a11d300b0042be7f2bbf0mr1172766qtk.30.1707480921253; Fri, 09 Feb 2024 04:15:21 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707480921; cv=pass; d=google.com; s=arc-20160816; b=JFldVEh1HA2arspI8E+OJ9VukgjS2udkIbTWcqSZ6KfIb3g/6ZDnwseGjs3Y+JeJit 85XvpDSwcw2EeDwRrP2CnYk2dmA/eIu9jfLsldnpMBPlh/sxGI8Ao6s6oBmZs74B48YY Jz++LZJjcBVr1RfEkg0Lu4whxgtBRKFI1LGg6H6LJzrIfVNknWSxQUTozyfo+9eULen7 w4FZLqPvCuC0n23KSvnjvWhUyfW2Cim/2MPiky1QWRPDFA+B5fm1gqhn/lbaVcXPITrU qpYHZ0Sg/tqTGYtLu+74qvlDFuO1GT/A0iN3sjOQgK0HBC2eiwQlkqFw9CZAhe8fhARO yz1w== 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=BpJ+A6WuI8qVYR+ufe285R9BOl0SnuSgZcst9eKsxpE=; fh=QIaToDAw682B1ARUQiJaAEljXeK8Q6VUyRxKKGNCrPU=; b=VYJ387+/weOXZAp5tIS1D8SnS8epoUIPDTRcvGzN58mSpMcOFsr5ESekK1sNMgtJra QkraoCsVGMYzInoOukMs/7Gd1Ef6PFTT/USvH0V3HRMSUmPboZ2CN57MDnaVHVsHaTj2 yiNtEzyLLJyDs5Oea4v60rKjhvrW+o3PxTPbxumnq3Lna+19gBNOQpNy3qrcmSTl4GHY RvCvMIt+KSWh/gsdWlzPYeMegI17L5dV0AmZoZtSGKu8pL5DEUqIf5Xx1Vh/0C1K486U K1FrKXc9DACq50u2gs4GULeCG59h/i7lv5Qkxpqdcw6W8KRDYAx2ta4VA2qk9E32ahkd d78A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=fiknCi9A; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-58088-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58088-ouuuleilei=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCX1Q5wmZbUfpq9Y8kCqS5mnrbax3IbcdBLJViznw3Kkq4k8OqMGHd4dkAG08gRPLLpZpnBO2mIXVzm8QMpBEeuJRlZq2A== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id z4-20020ac87f84000000b0042bf2d1d145si1714807qtj.640.2024.02.09.04.15.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 04:15:21 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-58088-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=fiknCi9A; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-58088-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58088-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 261691C294EE for ; Thu, 8 Feb 2024 12:48:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5364F8121B; Thu, 8 Feb 2024 12:44:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b="fiknCi9A" Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) (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 4B6247EEE8 for ; Thu, 8 Feb 2024 12:44:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.51 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707396263; cv=none; b=L5JuOqdM20UZIhbDsuDB7qqddU5zU6mfEUbWzIG81ljENsn6IYXdNaNyIRo+iO0HpeGcC4ZHzS6cOwNQzbMYHbAwOXLsWy8a/z4KWBC5KbnpA4kz3l6YBopDtS83XmSOb9Kfm4wNuU79W7a2skyo1QFPtd3kQf6QpDAoEPQK7qc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707396263; c=relaxed/simple; bh=bh8OxNLltqAtice2XaSPcJsXgH8FBZnkqH4Nk5wq9do=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=XUNtjEsWZaT8wp7URden3nisQIMdld+lEEKdPY2ic+f8BRDU6Fj0UWaIuJjrSvuuNf4GGE8QCo6/WGV+8B8o4NoTmprgTSiDRTa3vurBNK7hNae9svxDAOysrHHWN+KPVTwNLEuqB84jq50WvkAXr49rdDdcDFisAiA7WRxTkYI= 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=fiknCi9A; arc=none smtp.client-ip=209.85.128.51 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-f51.google.com with SMTP id 5b1f17b1804b1-40f033c2e30so15266365e9.0 for ; Thu, 08 Feb 2024 04:44:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1707396259; x=1708001059; 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=BpJ+A6WuI8qVYR+ufe285R9BOl0SnuSgZcst9eKsxpE=; b=fiknCi9AQzEmA2+ACbwGfwZTziUWgfZU6ZNn5upFfSZZO9TqiDV+v1nzVkpQEDgFaC 69BNvIyAwdhe1Gssbda34bsM3XWawwuLLZAsd64CsE+khXR2zgBxelQlwZArzurX1qfx aBZGlVBnTRxp76iR6dUrRXbj8/W6x1y/58VIWFzLFqRC1wKDVoQhTBmRvQLuMhZByCjI e96qGhXq2HEeELoLebvJu44sTmxaTh5o3kuA5rn9QP+uAjswA5Cc2qGAoxBeK41ML3R8 AOJi4TX+HF05aUEjMDQVRglKt8a2gV75xH6BaRRlMVz76F8pKM9hf8Psg1YVCJuOb8pX IpeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707396259; x=1708001059; 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=BpJ+A6WuI8qVYR+ufe285R9BOl0SnuSgZcst9eKsxpE=; b=pun21ZUYnYlutPKhCk7HwFtwlSVptCpVHtyU4iQn3ID8O6nwiQAFrmoMAEG3xj6laN LVz55NjRu82iLaqOUfqTuBJKmt8aqEbHvLPfErGXUvhTc4W8bsDmRAaffkIAOYhL6jWT KbHDUESPEbzWu4yaWE0MXCwhTYmNmuH2g4SaQwBtthlVoEPk2BRTQxCqO3ghHeipNflz 54FB8h+g1ji2dn+714ACArYUMVG/27cXRunKSiwSpHwXFGp7et/r+dChDYV3Te6qj0+1 eTd61B/qRQknidTAiSU9E70TSIq00yoXGJzgR55uiwavPrepB8OfUsLcHtmeVAnR8E/s IR0A== X-Gm-Message-State: AOJu0YxuyK9bZxGSW8nlbIlrnEaoNUUisoUloYd4tgAoEX0+MMmjsFMU /aUenuc4oRR7LkRCIgRP9jZfyImWDn9OOPdJ1H8FbZbxlAsMuAB8gyYZbbzh1P8= X-Received: by 2002:a05:600c:1e1a:b0:40f:f069:8d13 with SMTP id ay26-20020a05600c1e1a00b0040ff0698d13mr5499134wmb.9.1707396259681; Thu, 08 Feb 2024 04:44:19 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCU9bngb2X5GISbv/yy4j9mBBKnrhZrZe/gI/sdxeOnyMsmZ2gSqgLXZyHsX3ZlpZxGigWkWe6GSwDnD4tO+f8wqHead8T2e8iNOMHdV5b639DFoeDoZZIg+IAVvhvJdbPXv0SzGz5XkIKQg9XFqSfWCT0HgB6EbbrIx5T3QEwDngGV/hg2FqFGLMO4PL2rZZDJSYNdNfDUX6Ml6dMEBeMaV+gpd2wJCcnD/3xEH7W/6HsOkMUH/34CX68J7zMfusaioZyzGycnwzfXdjc90Sz2Uwv2cJvWbbIE3Id3ziAgggEXuhKA63/s5c4rg1ZU4U1gp3TRCObPRvyYJzSuyl/v9isF3DDEqWjmMVFLesJ9Moj4cxOZ8Uk5rQV12scBuS7gdF4VOFcaKS1QuErd7owZXZnKwF+36SAam3c22tRApNCKCJuAkY2Ruxuw2tWt1OV4yQ9Ts86qdbfv5VfzLq70hrZcxDuZkV2/LyzMDo9xuGSHC0yS2h0CJCPcZaNcqq+lRqLnfTgXAmCgYFhdiQt2ZNZFqPALsdIXX1AVQsVjLiF2SHSP4cE06KE6TRh3FvwY= 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.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 04:44:19 -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 16/17] arm64: dts: renesas: r9a08g045: Update #power-domain-cells = <1> Date: Thu, 8 Feb 2024 14:42:59 +0200 Message-Id: <20240208124300.2740313-17-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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790423514804978619 X-GMAIL-MSGID: 1790423514804978619 From: Claudiu Beznea Update CPG #power-domain-cells = <1> and move all the IPs to be part of the IP specific power domain as the driver has been modified to support multiple power domains. Signed-off-by: Claudiu Beznea --- arch/arm64/boot/dts/renesas/r9a08g045.dtsi | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/arch/arm64/boot/dts/renesas/r9a08g045.dtsi b/arch/arm64/boot/dts/renesas/r9a08g045.dtsi index dfee878c0f49..11be621aaa82 100644 --- a/arch/arm64/boot/dts/renesas/r9a08g045.dtsi +++ b/arch/arm64/boot/dts/renesas/r9a08g045.dtsi @@ -62,7 +62,7 @@ scif0: serial@1004b800 { "bri", "dri", "tei"; clocks = <&cpg CPG_MOD R9A08G045_SCIF0_CLK_PCK>; clock-names = "fck"; - power-domains = <&cpg>; + power-domains = <&cpg R9A08G045_PD_SCIF0>; resets = <&cpg R9A08G045_SCIF0_RST_SYSTEM_N>; status = "disabled"; }; @@ -74,7 +74,7 @@ cpg: clock-controller@11010000 { clock-names = "extal"; #clock-cells = <2>; #reset-cells = <1>; - #power-domain-cells = <0>; + #power-domain-cells = <1>; }; sysc: system-controller@11020000 { @@ -99,7 +99,7 @@ pinctrl: pinctrl@11030000 { interrupt-parent = <&irqc>; gpio-ranges = <&pinctrl 0 0 152>; clocks = <&cpg CPG_MOD R9A08G045_GPIO_HCLK>; - power-domains = <&cpg>; + power-domains = <&cpg R9A08G045_PD_ALWAYS_ON>; resets = <&cpg R9A08G045_GPIO_RSTN>, <&cpg R9A08G045_GPIO_PORT_RESETN>, <&cpg R9A08G045_GPIO_SPARE_RESETN>; @@ -168,7 +168,7 @@ irqc: interrupt-controller@11050000 { clocks = <&cpg CPG_MOD R9A08G045_IA55_CLK>, <&cpg CPG_MOD R9A08G045_IA55_PCLK>; clock-names = "clk", "pclk"; - power-domains = <&cpg>; + power-domains = <&cpg R9A08G045_PD_ALWAYS_ON>; resets = <&cpg R9A08G045_IA55_RESETN>; }; @@ -183,7 +183,7 @@ sdhi0: mmc@11c00000 { <&cpg CPG_MOD R9A08G045_SDHI0_ACLK>; clock-names = "core", "clkh", "cd", "aclk"; resets = <&cpg R9A08G045_SDHI0_IXRST>; - power-domains = <&cpg>; + power-domains = <&cpg R9A08G045_PD_SDHI0>; status = "disabled"; }; @@ -198,7 +198,7 @@ sdhi1: mmc@11c10000 { <&cpg CPG_MOD R9A08G045_SDHI1_ACLK>; clock-names = "core", "clkh", "cd", "aclk"; resets = <&cpg R9A08G045_SDHI1_IXRST>; - power-domains = <&cpg>; + power-domains = <&cpg R9A08G045_PD_SDHI1>; status = "disabled"; }; @@ -213,7 +213,7 @@ sdhi2: mmc@11c20000 { <&cpg CPG_MOD R9A08G045_SDHI2_ACLK>; clock-names = "core", "clkh", "cd", "aclk"; resets = <&cpg R9A08G045_SDHI2_IXRST>; - power-domains = <&cpg>; + power-domains = <&cpg R9A08G045_PD_SDHI2>; status = "disabled"; }; @@ -230,7 +230,7 @@ eth0: ethernet@11c30000 { <&cpg CPG_MOD R9A08G045_ETH0_REFCLK>; clock-names = "axi", "chi", "refclk"; resets = <&cpg R9A08G045_ETH0_RST_HW_N>; - power-domains = <&cpg>; + power-domains = <&cpg R9A08G045_PD_ETHER0>; #address-cells = <1>; #size-cells = <0>; status = "disabled"; @@ -249,7 +249,7 @@ eth1: ethernet@11c40000 { <&cpg CPG_MOD R9A08G045_ETH1_REFCLK>; clock-names = "axi", "chi", "refclk"; resets = <&cpg R9A08G045_ETH1_RST_HW_N>; - power-domains = <&cpg>; + power-domains = <&cpg R9A08G045_PD_ETHER1>; #address-cells = <1>; #size-cells = <0>; status = "disabled"; @@ -275,7 +275,7 @@ wdt0: watchdog@12800800 { ; interrupt-names = "wdt", "perrout"; resets = <&cpg R9A08G045_WDT0_PRESETN>; - power-domains = <&cpg>; + power-domains = <&cpg R9A08G045_PD_WDT0>; status = "disabled"; }; }; From patchwork Thu Feb 8 12:43:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: claudiu beznea X-Patchwork-Id: 199261 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp1452241dyd; Sat, 10 Feb 2024 05:01:42 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV1uKm0kjivYdS8UHL7Tdy4jtqOBG74hIIZQVnIpXmkNyJ57czAKWqDk61gVAtrWLjESfhkB2zCmSi/OXJFNbsrhIC+fQ== X-Google-Smtp-Source: AGHT+IFi4PxjxlzckzkrUzcmm4xVHiDa5qzr4g5TzOxLRhaZMCsMo6Bo/9BKnMGDI0Dz3WhOjiHm X-Received: by 2002:ac2:5e68:0:b0:511:72f5:8219 with SMTP id a8-20020ac25e68000000b0051172f58219mr1125972lfr.29.1707570102531; Sat, 10 Feb 2024 05:01:42 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707570102; cv=pass; d=google.com; s=arc-20160816; b=jltgGVTYubwd/hh7yJLk7puUSjdcRmD02Pz8DqC4NgimIFIwy0hKVNiaJsd/FepeCg uAhfLr0naiMQ23MHPEmlwSH7MD28f3nSBYktGwyJOInKEL3+uJvLuhpm0FBuJ7XMjxYu jnocNXicbm83kEPrxjdq+Vfsh8t6e3bshFka+kuxI+3paX+q+Y9YnKt+oVSvzi8YAR02 EA0dUOd3cDdk5/biVKtkRxUWFp2JVogmj4fkcFkOrOTi3Or6gnu1UK7BkhiVXe0G2G47 HngBhmpRaPMw7Ht5k51trtgFLCYHoHK3xfxMd40vPHUUPLucEjqfatXe7X+idCXSx+gQ +4Ew== 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=6yTEa4/lsVRh49barZX5/hHwmF5ODn+0XbIAzs9ib3A=; fh=jo9glgi8zotU7Qxc3FTtm9x4WZLRmL0I1KLcSsGt2KU=; b=os6w5xD2AZZGmK56YMXti+uXzDsYsvrFj490I5+OYpt5Rkdh909bIQUSeMBjDk0d9b ZaMiFUK2ggDaoa/rp0cnLxCb7FcgrQh8x+hdP7FPAtJm/GgSRi7UOW4RlJ+UVOEE5oJ4 2w7RWIBY8M1Keta/Kyh0mSP/SbL35q+UVKPPvNAn94Lk9z3IQJPVIK0/vzCL/0RIdX4y qYOYajY1wgB1jJyCpu/MOcMKaMRqFVE1MHcqyRJwlkHVwpNjIjg2bYYfTMdcwWD7AmEr WZoZ9RJUE2nxYhmBL3wKKohe/gMBOv2kxg12R0/uq2SvnIZJOIjKdfPbk1VCrUdOBHe6 YLNg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=KKJuxj0d; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-58089-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58089-ouuuleilei=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCUfV9dKvqzygRLPH0XjKN46xPDGvRTb/B+btLZqH2eCzVmjPceCBauSsUdcIglByR6XCtP2R43AWX6kBe+VdaxgpBpUEg== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id x11-20020a170906710b00b00a3c00b1fd6dsi1406673ejj.771.2024.02.10.05.01.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Feb 2024 05:01:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-58089-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=KKJuxj0d; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-58089-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58089-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 1A72A1F2B515 for ; Thu, 8 Feb 2024 12:48:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 37CA6823A2; Thu, 8 Feb 2024 12:44:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b="KKJuxj0d" Received: from mail-wm1-f53.google.com (mail-wm1-f53.google.com [209.85.128.53]) (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 1CDFF7EF06 for ; Thu, 8 Feb 2024 12:44:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.53 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707396265; cv=none; b=nKCnIQO9B8Pb7fMWvzzmDNBAoSRtH1DOPOFXZoPjRttxSmGBwZWSU7xx+ZegTP5etIoygJE5CvQL7CctAR5tn+8H1khYvEJGnh4kqop1PT2sMrSFpNvdb7HLzcq3hBnmjaCFvuo8Ve/pED6jMr06pliuFB+zI7Jy3xkNopdT340= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707396265; c=relaxed/simple; bh=gRX2x88FqVLUStqN8zuHyneH2upnBTYGjfOVYMyFZ0E=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=ikqFNv2jh4168jh+xY0cZ3jPffQO59etB4//BGJPVujJgfTHPOBgVqQr+cpsfVlGwkxyB9YGOQs07lbLOSL/eDp39AwQcSemMMBrmVSJw8jxGqdP8dIXTxGAW0vOFoHcTNsm8whhGS4++Wya6aIsqikQSIa2jWsFELTTQ9TOdWY= 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=KKJuxj0d; arc=none smtp.client-ip=209.85.128.53 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-f53.google.com with SMTP id 5b1f17b1804b1-41008ab427fso16158805e9.0 for ; Thu, 08 Feb 2024 04:44:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1707396261; x=1708001061; 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=6yTEa4/lsVRh49barZX5/hHwmF5ODn+0XbIAzs9ib3A=; b=KKJuxj0d3E7VI/zgAkCYq9iS28icvQc3wktVef55AGsDGZgWHKVJe+dQX4GUCCoDGM zONbRMFr4bDbPYkT7u2D+nh2HerfwtkxgrJIirDXYFrAGCa8YX8w73vTeGZZhlmYbwcQ /By6OAPXb3e5wnhInvQc3UEz6coIW8UAo6y/ep0lAf8e8X69GUDiKUEpUe0shoXKD8Rq 6OwZkiopObf0sFrH/LbF51tgjI9l8I/JD2TH5aRx2EG5sELqZ2P/76aaX4euJecJ2949 QI1i16pl3rEbmCGSI0WYdVlmlULbo3r+auNKFvwtu7gWbUYNIUL26CVnrkIct8HG8fJS yVAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707396261; x=1708001061; 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=6yTEa4/lsVRh49barZX5/hHwmF5ODn+0XbIAzs9ib3A=; b=blg1BJnvuxRtvs8idE2Cl5pbbR4WsR2Jhs6wiT/PqNdmT7HwnbK3wdx0dxrWxJVJ2o l/qWtep037jhkSBVYtRLaoPhXYPlE0Qj7IVkF7k+FzZH9Pd7LRcXkDmN0RW+sngUTKk3 6iY5CqHC96PV3l+1SvSxw41mE8K4I/ekBjZVxVMeXmNyf5SM7dEFC1IdNkhotALWkSVK HxHVey6wkczZ+CHjTS1lXMHiNkeMWuWj15/IbgPUbSKVpSqJ01OzFXesjA3lFtlAqHNm 1/9d/EkIYtwemniaKbJpwZcOkH31VUB4Tk7yHMqPah0aI7lUkxQUFDebq7YayFo8FiLH 0eMA== X-Forwarded-Encrypted: i=1; AJvYcCV0C9+OdcQ95gvLnzNkOZ/6Vf4gmMWyt2Zns5ruK0VyFhC5yvA6QwQVO/deUovIn9yGpNCI3zh0SSIXMR8HlEgVfWmMj+aYML5ty88x X-Gm-Message-State: AOJu0YzgSM2vkBzL95hy0+PPvjDKA8bblHqDZud+7b4ccpgxE+vceA3C zBiqtJLE2AHp0sXYDnN61sr7JYoQaEYFz57joT803GjiGRS+VZSgsSyfL7wclXk= X-Received: by 2002:a05:600c:1c9e:b0:40f:c1b7:2556 with SMTP id k30-20020a05600c1c9e00b0040fc1b72556mr7366673wms.11.1707396261396; Thu, 08 Feb 2024 04:44:21 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCW9Sr/LYarYn0Ydw9Z5UndLl0lPc2rf5eImobbDtGEveI/5qBkV4OQYupRBQfDCMJRJ35YozSSMZas9QWzlnjzZVptnk7zkEZazrYTVw86UYlPS3AI0amTEsE6I1FZTTCY+hKtcasM7WBV0CBCiw8LWCK5V8+EBrXoy+b097mnpz/r7tCy6nox9rqP8L6C/nTjqQwSbamMiJThJ8fRRSO1vtaaCazKwu8e2vMsvJBixIu9GxEvggwQmByZNF0Ftcn2PZ+sei2Tg2ED43jC+Pkt/GSwfzj4BqqDpmdcS/ligPgbTVv4N94S7AmYojqC3XPwLYcTPlsGwptui7xpDuKnOfdMoU91UuSuawHavUuKJrBzwPp3Gk8VKSIXbo2O13LQPhV7Rrq5vTtcWY2ksYI7gP3GUlsypZNX08ORpOoYrg0q6+EI8xVUSuGbFdrQeqxp/s1UyKIEqYLsn9o0yOymBeDmq7b0rAXaZJ+wGnPwDdhKPP0W9GZMM1Ow3IYm8P5oq0ulAfZVqpmXZbInU1pEw6JiKqDGpNY1BXjMkk/DzWiFO5eVGwKSTxx5g6mbiqdQ= 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.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 04:44:20 -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 17/17] arm64: dts: renesas: r9a09g011: Update #power-domain-cells = <1> Date: Thu, 8 Feb 2024 14:43:00 +0200 Message-Id: <20240208124300.2740313-18-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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790517027941877620 X-GMAIL-MSGID: 1790517027941877620 From: Claudiu Beznea Update CPG #power-domain-cells = <1> and move all the IPs to be part of the always on power domain as the driver has been modified to support multiple power domains. Signed-off-by: Claudiu Beznea --- arch/arm64/boot/dts/renesas/r9a09g011.dtsi | 28 +++++++++++----------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/arch/arm64/boot/dts/renesas/r9a09g011.dtsi b/arch/arm64/boot/dts/renesas/r9a09g011.dtsi index 50ed66d42a24..74af0f730b89 100644 --- a/arch/arm64/boot/dts/renesas/r9a09g011.dtsi +++ b/arch/arm64/boot/dts/renesas/r9a09g011.dtsi @@ -81,7 +81,7 @@ sdhi0: mmc@85000000 { <&cpg CPG_MOD R9A09G011_SDI0_ACLK>; clock-names = "core", "clkh", "cd", "aclk"; resets = <&cpg R9A09G011_SDI0_IXRST>; - power-domains = <&cpg>; + power-domains = <&cpg R9A09G011_PD_ALWAYS_ON>; status = "disabled"; }; @@ -97,7 +97,7 @@ sdhi1: mmc@85010000 { <&cpg CPG_MOD R9A09G011_SDI1_ACLK>; clock-names = "core", "clkh", "cd", "aclk"; resets = <&cpg R9A09G011_SDI1_IXRST>; - power-domains = <&cpg>; + power-domains = <&cpg R9A09G011_PD_ALWAYS_ON>; status = "disabled"; }; @@ -113,7 +113,7 @@ emmc: mmc@85020000 { <&cpg CPG_MOD R9A09G011_EMM_ACLK>; clock-names = "core", "clkh", "cd", "aclk"; resets = <&cpg R9A09G011_EMM_IXRST>; - power-domains = <&cpg>; + power-domains = <&cpg R9A09G011_PD_ALWAYS_ON>; status = "disabled"; }; @@ -129,7 +129,7 @@ usb3drd: usb3drd@85070400 { <&cpg CPG_MOD R9A09G011_USB_PCLK>; clock-names = "axi", "reg"; resets = <&cpg R9A09G011_USB_DRD_RESET>; - power-domains = <&cpg>; + power-domains = <&cpg R9A09G011_PD_ALWAYS_ON>; ranges; #address-cells = <2>; #size-cells = <2>; @@ -144,7 +144,7 @@ usb3host: usb@85060000 { <&cpg CPG_MOD R9A09G011_USB_PCLK>; clock-names = "axi", "reg"; resets = <&cpg R9A09G011_USB_ARESETN_H>; - power-domains = <&cpg>; + power-domains = <&cpg R9A09G011_PD_ALWAYS_ON>; status = "disabled"; }; @@ -157,7 +157,7 @@ usb3peri: usb3peri@85070000 { <&cpg CPG_MOD R9A09G011_USB_PCLK>; clock-names = "axi", "reg"; resets = <&cpg R9A09G011_USB_ARESETN_P>; - power-domains = <&cpg>; + power-domains = <&cpg R9A09G011_PD_ALWAYS_ON>; status = "disabled"; }; }; @@ -207,7 +207,7 @@ avb: ethernet@a3300000 { <&cpg CPG_MOD R9A09G011_ETH0_GPTP_EXT>; clock-names = "axi", "chi", "gptp"; resets = <&cpg R9A09G011_ETH0_RST_HW_N>; - power-domains = <&cpg>; + power-domains = <&cpg R9A09G011_PD_ALWAYS_ON>; #address-cells = <1>; #size-cells = <0>; status = "disabled"; @@ -220,7 +220,7 @@ cpg: clock-controller@a3500000 { clock-names = "extal"; #clock-cells = <2>; #reset-cells = <1>; - #power-domain-cells = <0>; + #power-domain-cells = <1>; }; pwc: pwc@a3700000 { @@ -244,7 +244,7 @@ csi0: spi@a4020000 { <&cpg CPG_MOD R9A09G011_CPERI_GRPG_PCLK>; clock-names = "csiclk", "pclk"; resets = <&cpg R9A09G011_CSI_GPG_PRESETN>; - power-domains = <&cpg>; + power-domains = <&cpg R9A09G011_PD_ALWAYS_ON>; #address-cells = <1>; #size-cells = <0>; status = "disabled"; @@ -258,7 +258,7 @@ csi4: spi@a4020200 { <&cpg CPG_MOD R9A09G011_CPERI_GRPH_PCLK>; clock-names = "csiclk", "pclk"; resets = <&cpg R9A09G011_CSI_GPH_PRESETN>; - power-domains = <&cpg>; + power-domains = <&cpg R9A09G011_PD_ALWAYS_ON>; #address-cells = <1>; #size-cells = <0>; status = "disabled"; @@ -274,7 +274,7 @@ i2c0: i2c@a4030000 { interrupt-names = "tia", "tis"; clocks = <&cpg CPG_MOD R9A09G011_IIC_PCLK0>; resets = <&cpg R9A09G011_IIC_GPA_PRESETN>; - power-domains = <&cpg>; + power-domains = <&cpg R9A09G011_PD_ALWAYS_ON>; status = "disabled"; }; @@ -288,7 +288,7 @@ i2c2: i2c@a4030100 { interrupt-names = "tia", "tis"; clocks = <&cpg CPG_MOD R9A09G011_IIC_PCLK1>; resets = <&cpg R9A09G011_IIC_GPB_PRESETN>; - power-domains = <&cpg>; + power-domains = <&cpg R9A09G011_PD_ALWAYS_ON>; status = "disabled"; }; @@ -311,7 +311,7 @@ wdt0: watchdog@a4050000 { clock-names = "pclk", "oscclk"; interrupts = ; resets = <&cpg R9A09G011_WDT0_PRESETN>; - power-domains = <&cpg>; + power-domains = <&cpg R9A09G011_PD_ALWAYS_ON>; status = "disabled"; }; @@ -361,7 +361,7 @@ pinctrl: pinctrl@b6250000 { , ; clocks = <&cpg CPG_MOD R9A09G011_PFC_PCLK>; - power-domains = <&cpg>; + power-domains = <&cpg R9A09G011_PD_ALWAYS_ON>; resets = <&cpg R9A09G011_PFC_PRESETN>; }; };