Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp114141rwb; Tue, 13 Dec 2022 14:52:44 -0800 (PST) X-Google-Smtp-Source: AA0mqf7X6tFKALk5G89jaiwL+5+qjv9fvQ2XGqOwBqK+GmKZ85x5KqnExn/9hGJG4MrEmoTO2/CC X-Received: by 2002:a05:6a00:1a8c:b0:566:900d:5ae4 with SMTP id e12-20020a056a001a8c00b00566900d5ae4mr26627864pfv.20.1670971964552; Tue, 13 Dec 2022 14:52:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670971964; cv=none; d=google.com; s=arc-20160816; b=IydjpKScuAQF0T+VcCjENGg2SKTuyVUUIMdzxuimpOkEDDx2IGfENpBoTsaiGr3Q0g eSFpaP6tWSqLSlxMVyBj1jP0XWTf5AlSlD6KMGe8wHrfiKUNZpa9JpN/LSyojbtin01Z fjtvlTfjQDDCR/qR7j4XXPE39xvkbRLLtPgD8n41IGi9ICUZH79SxujBPTVcdFwH54O2 x4NzA5ZZtd+2jH5OylsojBQRdqcliLIC5Ppa2GL+UVThNZAi+RU6hapEwwdIckyuV9iI RYOBnToND3YkLggiH0EguE7yCgRtnVnKfFgfVWk6myNXHEjQxdyZfgYOVQhdKjpO8lab Ygcw== 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 :message-id:date:subject:cc:to:from; bh=4SARlsnyLe6Qu3PMy3GpOoZv9ihvNhUgpkhGVEjVZp0=; b=ecHkewT96Re2VXFzkvjhN3u38ZPsv+UUCg/p+xGUPfxJl/LTzMPHX17UGkIxjtR0y9 YBDvelXpITvcT/F0dUld1wHedsg0KA1R44inpYlL8c7S6GlQaCMq/hDDw7sNnaSmAhH5 eAcU4fLSOg/FkomJnxLikYDjdR/TRvh8LyYLCipUrz/kPcSqGvaq54RYjSaACDzEW9yT 2yf5CrzyjNqb51aSVVCSvopmq1apshuj5AcxGhf5vlUCH8sAPT3V3Zrs8nFpkZiBL0U0 fOgBcxC6q1kP4J2//jdRQJXPvNBC5Hfxs9ecyOOhNr/spGu8NA+YyqbIlbcElNFWhMEK Ir4A== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c13-20020a056a00248d00b00561cb07c77csi14784034pfv.232.2022.12.13.14.52.34; Tue, 13 Dec 2022 14:52:44 -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 S229999AbiLMWnX (ORCPT + 73 others); Tue, 13 Dec 2022 17:43:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235536AbiLMWnV (ORCPT ); Tue, 13 Dec 2022 17:43:21 -0500 Received: from relmlie5.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7094621834; Tue, 13 Dec 2022 14:43:19 -0800 (PST) X-IronPort-AV: E=Sophos;i="5.96,242,1665414000"; d="scan'208";a="143229812" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie5.idc.renesas.com with ESMTP; 14 Dec 2022 07:43:18 +0900 Received: from mulinux.home (unknown [10.226.93.1]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id 7C83C40F34F4; Wed, 14 Dec 2022 07:43:13 +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 Subject: [PATCH 0/5] Driver support for RZ/V2M PWC Date: Tue, 13 Dec 2022 22:43:05 +0000 Message-Id: <20221213224310.543243-1-fabrizio.castro.jz@renesas.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=1.1 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * 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 The PWC IP found in the RZ/V2M family of chips fits the Multi-Function Device (MFD) model quite well, and 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 This series introduces a driver to address GPIO support, and a driver to address power off support, alongside the corresponding dt-bindings. Thanks, Fab Fabrizio Castro (5): dt-bindings: gpio: Add RZ/V2M PWC GPIO driver bindings dt-bindings: power: reset: Add RZ/V2M PWC Power OFF bindings dt-bindings: mfd: Add RZ/V2M PWC global registers bindings gpio: Add support for Renesas RZ/V2M PWC power: reset: Add new driver for RZ/V2M PWC poweroff .../bindings/gpio/renesas,rzv2m-pwc-gpio.yaml | 62 +++++++++ .../bindings/mfd/renesas,rzv2m-pwc.yaml | 70 ++++++++++ .../reset/renesas,rzv2m-pwc-poweroff.yaml | 48 +++++++ drivers/gpio/Kconfig | 8 ++ drivers/gpio/Makefile | 1 + drivers/gpio/gpio-rzv2m-pwc.c | 123 ++++++++++++++++++ drivers/power/reset/Kconfig | 10 ++ drivers/power/reset/Makefile | 1 + drivers/power/reset/rzv2m-pwc-poweroff.c | 81 ++++++++++++ 9 files changed, 404 insertions(+) create mode 100644 Documentation/devicetree/bindings/gpio/renesas,rzv2m-pwc-gpio.yaml create mode 100644 Documentation/devicetree/bindings/mfd/renesas,rzv2m-pwc.yaml create mode 100644 Documentation/devicetree/bindings/power/reset/renesas,rzv2m-pwc-poweroff.yaml create mode 100644 drivers/gpio/gpio-rzv2m-pwc.c create mode 100644 drivers/power/reset/rzv2m-pwc-poweroff.c -- 2.34.1