Message ID | 20240208124300.2740313-3-claudiu.beznea.uj@bp.renesas.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-58074-ouuuleilei=gmail.com@vger.kernel.org> 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 <ouuuleilei@gmail.com> (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 <ouuuleilei@gmail.com>; 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 <linux-kernel@vger.kernel.org>; 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 <linux-kernel@vger.kernel.org>; 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 <claudiu.beznea@tuxon.dev> X-Google-Original-From: Claudiu <claudiu.beznea.uj@bp.renesas.com> To: geert+renesas@glider.be, mturquette@baylibre.com, sboyd@kernel.org, robh@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, magnus.damm@gmail.com, paul.walmsley@sifive.com, palmer@dabbelt.com, aou@eecs.berkeley.edu Cc: linux-renesas-soc@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, claudiu.beznea@tuxon.dev, Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> Subject: [PATCH 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: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790334768413250992 X-GMAIL-MSGID: 1790334768413250992 |
Series |
clk: renesas: rzg2l: Add support for power domains
|
|
Commit Message
claudiu beznea
Feb. 8, 2024, 12:42 p.m. UTC
From: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> Add power domain IDs for RZ/G2L (R9A07G044) SoC. Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> --- include/dt-bindings/clock/r9a07g044-cpg.h | 58 +++++++++++++++++++++++ 1 file changed, 58 insertions(+)
Comments
Hi Claudiu, > -----Original Message----- > From: Claudiu <claudiu.beznea@tuxon.dev> > Sent: Thursday, February 8, 2024 12:43 PM > Subject: [PATCH 02/17] dt-bindings: clock: r9a07g044-cpg: Add power domain > IDs > > From: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> > > Add power domain IDs for RZ/G2L (R9A07G044) SoC. > > Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> > --- > 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 Not sure these PD id's can be generic and used across all RZ/G2L family devices and RZ/V2M? Cheers, Biju > + > #endif /* __DT_BINDINGS_CLOCK_R9A07G044_CPG_H__ */ > -- > 2.39.2 >
Hi, Biju, On 08.02.2024 16:39, Biju Das wrote: > Hi Claudiu, > >> -----Original Message----- >> From: Claudiu <claudiu.beznea@tuxon.dev> >> Sent: Thursday, February 8, 2024 12:43 PM >> Subject: [PATCH 02/17] dt-bindings: clock: r9a07g044-cpg: Add power domain >> IDs >> >> From: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> >> >> Add power domain IDs for RZ/G2L (R9A07G044) SoC. >> >> Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> >> --- >> 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 > > Not sure these PD id's can be generic and used across all RZ/G2L family > devices and RZ/V2M? That may be another approach. I chose this one to have everything SoC specific in a single place. With this, e.g., we can have all the SCIF related IDs grouped together (as we know from the beginning how many SCIF blocks a SoC has): +#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 If a single file with all the IDs for all the SoC will be used then, as every SoC will have a different number of SCIFs, I2Cs, RSPIs, to keep the DT binding backward compatibility, we will end up with these IDs not being grouped on functionality, e.g., we may end up with something like: +#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 +#define R9A07G044_PD_SCIF5 56 +#define R9A07G044_PD_SCIF6 57 +#define R9A07G044_PD_I2C4 58 +#define R9A07G044_PD_RSPI3 58 +#define R9A07G044_PD_RSPI4 59 Of course, I can adjust it if Geert wants it differently. Thank you, Claudiu Beznea > > Cheers, > Biju > >> + >> #endif /* __DT_BINDINGS_CLOCK_R9A07G044_CPG_H__ */ >> -- >> 2.39.2 >> >
On Thu, Feb 8, 2024 at 1:43 PM Claudiu <claudiu.beznea@tuxon.dev> wrote: > From: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> > > Add power domain IDs for RZ/G2L (R9A07G044) SoC. > > Signed-off-by: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68korg In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
diff --git a/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__ */