From patchwork Fri Jan 6 12:58:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrizio Castro X-Patchwork-Id: 40121 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp809780wrt; Fri, 6 Jan 2023 04:59:49 -0800 (PST) X-Google-Smtp-Source: AMrXdXsWKr1dFqH/guare5+N9ZnzY1kjdQk4SkL7KeyIhbrMx1SWxpzWwamfEYiURKrzyXKJv634 X-Received: by 2002:a17:907:d109:b0:818:3f54:8df7 with SMTP id uy9-20020a170907d10900b008183f548df7mr60856673ejc.2.1673009989389; Fri, 06 Jan 2023 04:59:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673009989; cv=none; d=google.com; s=arc-20160816; b=ziNdikdYge73cPS3ITnJS/lUG4nhDAhszgHIHGJfX1Ms0e8xllUi7tJ7DsYWJuL0pf cf0qr3REcWT434C+ymwzUJCFkwqspuptaDPMIaBzSs/UwYMbUOm/0X43fS38Xj/SLWi4 2V/zuzSX7ATQDE/F7LhsZVAhV/dR4FlnffifGE/dnTjWqI+x7V1i//RbCHB/oc6fl01U 4rWbMA0oN2xSKkuV3+QtkLzAD1WgR61ztmXSHm+J2pxVKGnRipd155uIGdbDAYnrxtE/ A+1tLER6HCQjLRqwhG5oqfSOvBzNoFK0SMQPLIs7rpawcINIXUjdIRQyj7t4rl4Ior6+ uppg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=BsItFcAcXiqwWWk6YiNTAopnJ3PZUCzfIqIn3saJQTc=; b=hTxs5gjNmmKoh2ofoA4or2COTOdbwECy1e395dVdobQ0aLNM303JANzXf0SvaNVkcA IUTcQHhwOwmCues03Ur1R/M+bXMgBaQe9NS8hI0o5NMW+FnIL0IEYWM3h2f5QtxifGyu OY3+r5rQChFPvCAHMEF+GcUzsPHw4tOGUpzY19hBSzC0wMtFzBbBpk4uWWB+ydfMQZ/4 q9Z13qoNpAsFmsqIMHK2CrTOAArJ3ooQG1iwwVuSc+iriwdJXHcmh6FUhuEO3OTt7T3M lIwo+IeA2x9CQkeBGzcYDwezl+vbD8Hq0EnH5uFWEf2fjUfuVSDGlZ1VFZbQByR9ye79 7fEA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=renesas.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qf11-20020a1709077f0b00b007bd6264c2dbsi1444289ejc.28.2023.01.06.04.59.24; Fri, 06 Jan 2023 04:59:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=renesas.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234327AbjAFM6s (ORCPT + 99 others); Fri, 6 Jan 2023 07:58:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234573AbjAFM6d (ORCPT ); Fri, 6 Jan 2023 07:58:33 -0500 Received: from relmlie5.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BAA056B19D; Fri, 6 Jan 2023 04:58:31 -0800 (PST) X-IronPort-AV: E=Sophos;i="5.96,305,1665414000"; d="scan'208";a="145413764" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie5.idc.renesas.com with ESMTP; 06 Jan 2023 21:58:31 +0900 Received: from mulinux.example.org (unknown [10.226.92.206]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id 1C67B4254DA6; Fri, 6 Jan 2023 21:58:25 +0900 (JST) From: Fabrizio Castro To: Linus Walleij , Bartosz Golaszewski , Rob Herring , Krzysztof Kozlowski , Sebastian Reichel , Geert Uytterhoeven Cc: Fabrizio Castro , Lee Jones , linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Chris Paterson , Biju Das , linux-renesas-soc@vger.kernel.org, Laurent Pinchart , Jacopo Mondi , Rob Herring Subject: [PATCH v5 1/2] dt-bindings: soc: renesas: Add RZ/V2M PWC Date: Fri, 6 Jan 2023 12:58:15 +0000 Message-Id: <20230106125816.10600-2-fabrizio.castro.jz@renesas.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230106125816.10600-1-fabrizio.castro.jz@renesas.com> References: <20230106125816.10600-1-fabrizio.castro.jz@renesas.com> MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754278122768640208?= X-GMAIL-MSGID: =?utf-8?q?1754278122768640208?= The Renesas RZ/V2M External Power Sequence Controller (PWC) IP is capable of: * external power supply on/off sequence generation * on/off signal generation for the LPDDR4 core power supply (LPVDD) * key input signals processing * general-purpose output pins Add the corresponding dt-bindings. Signed-off-by: Fabrizio Castro Reviewed-by: Rob Herring Reviewed-by: Geert Uytterhoeven --- v1->v2: I have dropped syscon, simple-mfd, regmap, offset, and the child nodes. v2->v3: No change. v3->v4: Moved file under Documentation/devicetree/bindings/soc/renesas, and changed $id accordingly. v4->v5: Fixed subject line and changelog. Rob, I have kept your Reviewed-by tag assuming you are still happy, please do jump in if you think that's not appropriate anymore. .../soc/renesas/renesas,rzv2m-pwc.yaml | 56 +++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/renesas/renesas,rzv2m-pwc.yaml diff --git a/Documentation/devicetree/bindings/soc/renesas/renesas,rzv2m-pwc.yaml b/Documentation/devicetree/bindings/soc/renesas/renesas,rzv2m-pwc.yaml new file mode 100644 index 000000000000..12df33f58484 --- /dev/null +++ b/Documentation/devicetree/bindings/soc/renesas/renesas,rzv2m-pwc.yaml @@ -0,0 +1,56 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/soc/renesas/renesas,rzv2m-pwc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Renesas RZ/V2M External Power Sequence Controller (PWC) + +description: |+ + The PWC IP found in the RZ/V2M family of chips comes with the below + capabilities + - external power supply on/off sequence generation + - on/off signal generation for the LPDDR4 core power supply (LPVDD) + - key input signals processing + - general-purpose output pins + +maintainers: + - Fabrizio Castro + +properties: + compatible: + items: + - enum: + - renesas,r9a09g011-pwc # RZ/V2M + - renesas,r9a09g055-pwc # RZ/V2MA + - const: renesas,rzv2m-pwc + + reg: + maxItems: 1 + + gpio-controller: true + + '#gpio-cells': + const: 2 + + renesas,rzv2m-pwc-power: + description: The PWC is used to control the system power supplies. + type: boolean + +required: + - compatible + - reg + - gpio-controller + - '#gpio-cells' + +additionalProperties: false + +examples: + - | + pwc: pwc@a3700000 { + compatible = "renesas,r9a09g011-pwc", "renesas,rzv2m-pwc"; + reg = <0xa3700000 0x800>; + gpio-controller; + #gpio-cells = <2>; + renesas,rzv2m-pwc-power; + };