Message ID | 20240208124300.2740313-7-claudiu.beznea.uj@bp.renesas.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-58078-ouuuleilei=gmail.com@vger.kernel.org> 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 <ouuuleilei@gmail.com> (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 <ouuuleilei@gmail.com>; 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 <linux-kernel@vger.kernel.org>; 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 <linux-kernel@vger.kernel.org>; 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 <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 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: <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: 1790408303947992686 X-GMAIL-MSGID: 1790430190910195427 |
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> 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 <claudiu.beznea.uj@bp.renesas.com> --- .../devicetree/bindings/clock/renesas,rzg2l-cpg.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Comments
Hi Claudiu, On Thu, Feb 8, 2024 at 1:43 PM Claudiu <claudiu.beznea@tuxon.dev> wrote: > From: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> > > 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 <claudiu.beznea.uj@bp.renesas.com> Thanks for your patch! > --- 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 While the driver will soon support both 0 and 1, we may need to keep 0 for RZ/V2M for now? RZ/V2M does not have CPG_BUS_*_MSTOP registers, but uses the Internal Power Domain Controller (PMC). Please add a link to the power domain numbers in <dt-bindings/clock/r9a0*-cpg.h>, like is done for #clock-cells. 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
On 16.02.2024 16:04, Geert Uytterhoeven wrote: > Hi Claudiu, > > On Thu, Feb 8, 2024 at 1:43 PM Claudiu <claudiu.beznea@tuxon.dev> wrote: >> From: Claudiu Beznea <claudiu.beznea.uj@bp.renesas.com> >> >> 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 <claudiu.beznea.uj@bp.renesas.com> > > Thanks for your patch! > >> --- 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 > > While the driver will soon support both 0 and 1, we may need to keep 0 > for RZ/V2M for now? RZ/V2M does not have CPG_BUS_*_MSTOP registers, > but uses the Internal Power Domain Controller (PMC). ok > > Please add a link to the power domain numbers in > <dt-bindings/clock/r9a0*-cpg.h>, > like is done for #clock-cells. ok > > Gr{oetje,eeting}s, > > Geert > > > -- > Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org > > 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/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>; };