Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp883068rdb; Fri, 9 Feb 2024 04:20:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IHjeyYrLeTkhJC/f6PwZNOwxGSp8/kkA391wALf5wpEZFBNWpOUUT6gkNIiRNgWP7kn/9hR X-Received: by 2002:ad4:5d6b:0:b0:68c:d9bf:1ebb with SMTP id fn11-20020ad45d6b000000b0068cd9bf1ebbmr538578qvb.9.1707481219357; Fri, 09 Feb 2024 04:20:19 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707481219; cv=pass; d=google.com; s=arc-20160816; b=BhoT1UywcoVIKZZ02RsmOMbk682nP/2Gwqdj/Wb6qAQxziNhSGRofYr97T4KTjIumg edxjFrCplblla8Bd3cJLXhSj9wfr/GsgUIArP9+SDwQ+sORYx1HlmpN+UVSyygKOBOsT BS2OjWIoo+BdtXM98xzbOupuXdGpb0HkDKdZC1jR5uz1hdHtr5ROQ8bLn5iLG8hz0EY8 OUFsUNXc+f48awJ1xck67VaO9ux/bs8leYGybsSjwCGKCQLDFxTmFuAFuHt2pkfnDcRL k4odYLTyrv6LNN5kwlPQt+ZM7yMnvEKcFxHU3RJ4GkGZkvpfkLZur2BaqPRcTo2+B1gr yfqw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=jwj187v5DmD95irFdBgTanplv+ZSPDewhhqQqZrj+18=; fh=OkZCCYuhb5d8+x75WgfTblCAgeu0dW7Fg6M+dBQE0Eo=; b=eVZJKP+vaknA4ffOQtkX8S4m+WG9+IudKB4TPliMv7pUB4UmVwyiYOCDjAhMaDg8zO OOVm71DufdwJ6EpXDAAiNuR2+k/ThIzD1ScwO413qFvpbzG6T3IwnZpDwS629YkjHaBq dmktocrHDoAYFRkGbmn6ibCfMkZpiQAxbRVOp2fPjVoXc+BcX3DhQJ4g7uOoa6ODjzQB DowNSvNesrnmarcnfIToCm2em7LLaM9+Ettu6IMBfZHHCT1ITwTqwowzdTZEPs+u2PeB quWUuA9FzLcQMaef6r6ALCETiX8ix88I17VVVp5H+8pnvwkIPybbmVQneFsVEl0EzAMl amtw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@tuxon.dev header.s=google header.b=Ku88jgjg; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-58312-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58312-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCWET8Cjh7wQRkcsvojp5dX5WoJnt7ei2OkUGcN62mb3TBQI8ZmW8E5VhXJ3Bv4YCAtGmo9BytWyNt38Pg6046WqZeGq/yJIB6IUdb6akw== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id dv10-20020ad44eea000000b0068cb7ed9d62si1857804qvb.436.2024.02.09.04.20.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Feb 2024 04:20:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-58312-linux.lists.archive=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=Ku88jgjg; arc=pass (i=1 spf=pass spfdomain=tuxon.dev dkim=pass dkdomain=tuxon.dev); spf=pass (google.com: domain of linux-kernel+bounces-58312-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58312-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 5D2271C22AFD for ; Thu, 8 Feb 2024 15:56:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D22777CF3B; Thu, 8 Feb 2024 15:56:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=tuxon.dev header.i=@tuxon.dev header.b="Ku88jgjg" Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.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 E9B157CF39 for ; Thu, 8 Feb 2024 15:55:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707407759; cv=none; b=BTtPmIxDKC/kFYu0ZavN7efYP/MnqwglHF9XLHwqzGNhH8VWq2YyLchKt3kQZKfLk6+VDeEIEdS8t0fDjc13sWddAMwNXVlI0vHyQSzzYl7OluiIHl/n47tXpG8R/I/+v8W+c5G08aQmDnvxVAQLBITq0zpO4wVxhmdcMREEKKk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707407759; c=relaxed/simple; bh=VxRJGKaYXSRYdovy63fzI0ASEaNdAGwALPigMzGJrG8=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=qsShKf0KJ6mEVfGn3IOPVvrR1lgT55CyM9sbz61YUjpzmWh3XuliseiNawvzA14ClkphTvppGzJnHBYCM3itfqEkTaKv0sPQ4T8GwjU4lH/806kLAFqKCA22fmgtxRGdZZGIeAxQA0Pkyg14NMXQ8snvCJt8T/IqMYuTUbIfLPY= 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=Ku88jgjg; arc=none smtp.client-ip=209.85.221.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-wr1-f53.google.com with SMTP id ffacd0b85a97d-33b1d7f736bso1375177f8f.3 for ; Thu, 08 Feb 2024 07:55:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tuxon.dev; s=google; t=1707407756; x=1708012556; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=jwj187v5DmD95irFdBgTanplv+ZSPDewhhqQqZrj+18=; b=Ku88jgjgigv/7hXHH5pvyCXBDd7haFMI+DznB49JMHo/JZO2YfqIkQRE/+1EOKBSK3 kFwBZOI8Jq/mjZsGqzBqiskJBuZGWYlsFxInR719+tDZYC/ZrOwJTItoA8q4a76+jVmh WxkKJmWwXUc3YypNRyULcjDUy24pM0twQ5SjHQZY3rCb2SMEkVfbaGyH3709Z19tQTkJ HL/32NjTTBvLgLgziQmNRD79A4TQQy6CNFwCYOXOS+1pRXog5YmsNqhOv9ig+DrpzjkI aD6r5Mwsta0Z91tWLkjAY0woYrAXlm/3o20FasAhSgSv1ncs5qC2wBOMuV2Imc9R6Qj2 l2Ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707407756; x=1708012556; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=jwj187v5DmD95irFdBgTanplv+ZSPDewhhqQqZrj+18=; b=vdSwPgPVDeQ/+/9xnnbx4/3n57wXjTRSnbJca51GChF6muioZ1ep/4FMGPWeZJRHtp TynmlB2+6gk1pUKqUVuKf/8BvZRBJDOitsCG4QToezvDVZQw4uFrtKZQw8JGBvrFGHKG zzopfdupa1x7cwW0FNNuGLW+1OqPpiuByuEevpC+FT0BX5O+DPfAzyFekNhtnESBsdY7 LJ969AvzpVkjZzZArqbSP67RHZHpBXjcjavcgfUx5cI8v1sle7uUdeHHbqvxvZOn6YYy JscA591tsxRIVtLxWf9fscOBivb04NxFw/eeJqVCqQYFDEMrPATf8Fs5ZHEM1yLaLaJw 8bzQ== X-Gm-Message-State: AOJu0YwlM6JvRztegsunNHDxDF83midlE4CG+EEbRbMgojbF3SoteMwr pcMJtkUJ353wnc1/37mwpkBS+LJuyuxEdyntNjdeZ4oNIVS6S3sAzH7VnyoLiZE= X-Received: by 2002:a5d:4dcc:0:b0:33b:4d13:3e91 with SMTP id f12-20020a5d4dcc000000b0033b4d133e91mr3820391wru.45.1707407756251; Thu, 08 Feb 2024 07:55:56 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCULtDWAiTDbRxR7h0kvcsiu+OwZWCxku0b5SYZAaErDiFKeCuOOEqPUGLCtZgOuCtf8Ip8AbJdxJssk7bBOvR3rBCFEgHHjk2EYqEyBNOoBHo5KhtPaw9ZubnDqy5qaaePhYqDWQaoGgWY2JjEIPecqTMFop0/ZLyoCjIZ7KFaYo4dsW7LP3+CmmpalQje2sv1+lnZkGXX4bseVubc+J8Ius9BpkVWiCN/Ju0Fnw50gR2O/U13W6a+T7sJGHU28QuhAPqT1fLAp3DtFBMJCeSk6wWkwon1PZgYBm/lvKAUwYEUlmsRwZorlOWqlGaYxenBRQqZERJ3QZ7PFihZ4Mh6Id0bMDxzgRREJC/x3YR7pmrn3yU6Y7138sx4gwvJJ6DeyuC4Xf0d/zuu/HD0NBfPWt62HdnQdGoBpM7OP1ifpDE+M/aZR8SPVf/FUN07kd8JpQHQSAIsB8bzUfTS0AsK/y5hHU1Gnw2aXnsbsraqBpD0aKw7loIPDQOQWjrNrzG3X5wZgvEmlEYHhNlmzKcZHNWO5g5w+eQO23Gwg6TrsHQyOEda3pdXae2MPThgDDRiw2tIdPPkZB1+1sgQcH+ch5DIzgBVaEegH Received: from [192.168.50.4] ([82.78.167.45]) by smtp.gmail.com with ESMTPSA id m25-20020a056000181900b0033b4235b155sm3852770wrh.48.2024.02.08.07.55.54 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 08 Feb 2024 07:55:55 -0800 (PST) Message-ID: <0e45aef2-5fc5-4677-9370-b9e565f0767b@tuxon.dev> Date: Thu, 8 Feb 2024 17:55:53 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 02/17] dt-bindings: clock: r9a07g044-cpg: Add power domain IDs Content-Language: en-US To: Biju Das , "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 References: <20240208124300.2740313-1-claudiu.beznea.uj@bp.renesas.com> <20240208124300.2740313-3-claudiu.beznea.uj@bp.renesas.com> From: claudiu beznea In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi, Biju, On 08.02.2024 16:39, Biju Das wrote: > Hi Claudiu, > >> -----Original Message----- >> From: Claudiu >> Sent: Thursday, February 8, 2024 12:43 PM >> Subject: [PATCH 02/17] dt-bindings: clock: r9a07g044-cpg: Add power domain >> IDs >> >> From: Claudiu Beznea >> >> Add power domain IDs for RZ/G2L (R9A07G044) SoC. >> >> Signed-off-by: Claudiu Beznea >> --- >> 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 >> >