Received: by 2002:a05:6358:f14:b0:e5:3b68:ec04 with SMTP id b20csp6289910rwj; Wed, 21 Dec 2022 13:25:05 -0800 (PST) X-Google-Smtp-Source: AMrXdXvKQSnheJJtRrlvOHjnVuX+yFaeQAP0MJ2WkIpRERGnf1FKHq0aj2389aELPqrbj5lh0A+q X-Received: by 2002:a17:902:f254:b0:190:f5be:89cb with SMTP id j20-20020a170902f25400b00190f5be89cbmr2929157plc.20.1671657905361; Wed, 21 Dec 2022 13:25:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671657905; cv=none; d=google.com; s=arc-20160816; b=KBSkQMEMfPvDWbk83LVl8uaRzQ+ZBxpeTqFT4JME7iEQAA3gumxH3cMTlrXHLVon3T vHdZt0RbPkurdkOWnqst2PSEGcGg7UEQjVH4SGWnyFQkjrA7Bjsy/Qe6bfdv2SEckahZ bovU5IlgwmjcaEbTLml7JwW1dUlUUz1LgfERdsiiZ+7zUJVyE/VBMJ6TTbRg+kTVnhQY Qo3UnEVl+GKlXIn3NUiybujnRpWbNZLiah+hGxNX81R3TApkZGMaOudTB9wgurFNDrJ8 4oyolFaYsbMCkgpWYM0+QgWwvf2ksdNJx7C938saZwUhYnEgrpdFrK41HMkEMdwWAziY F9qg== 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=IWkhkM+7CselIiLYX0e3MNtEWYQ2xus5SkZlL/J/uIY=; b=d3d5K85OHogq26Vi7Owzuht6NaJ12+Z4n12Sxscjxlr3vdwp3u1Yk1j+Im9hQccwkj sxCJeLDD6+OViy1xRLYhwWUPwJejWnywEauxLRRqZuwZa7FqJB/xbfeL04T59/JE2x9d Ma7wF8R/wk57P4dkwr5rztVlP3Pt6prNoH7QBvVL3g3CK4UIvKCtIP0iLhyufABxDNqL qCHptiANszCDjnndcZMyxWwQ92ktaqtVYXIYdYTwmFTsh4ixXDzvWqf2CJv77U1ZcjUd XceggmakJclZ4G3wKkFk9qazD4Df622hq0RWJJwcrdKZhRzqdsmxTw0EAZvXZ4BFef/4 sI2A== 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 j7-20020a170903024700b001899e936c2csi19019809plh.531.2022.12.21.13.24.56; Wed, 21 Dec 2022 13:25:05 -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 S232013AbiLUVJj (ORCPT + 67 others); Wed, 21 Dec 2022 16:09:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46482 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229491AbiLUVJf (ORCPT ); Wed, 21 Dec 2022 16:09:35 -0500 Received: from relmlie5.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 2567E20BEC; Wed, 21 Dec 2022 13:09:34 -0800 (PST) X-IronPort-AV: E=Sophos;i="5.96,263,1665414000"; d="scan'208";a="144108253" Received: from unknown (HELO relmlir6.idc.renesas.com) ([10.200.68.152]) by relmlie5.idc.renesas.com with ESMTP; 22 Dec 2022 06:09:33 +0900 Received: from mulinux.example.org (unknown [10.226.92.211]) by relmlir6.idc.renesas.com (Postfix) with ESMTP id 7051440DC566; Thu, 22 Dec 2022 06:09:28 +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 v2 0/4] Driver support for RZ/V2M PWC Date: Wed, 21 Dec 2022 21:09:13 +0000 Message-Id: <20221221210917.458537-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 With this new version I have changed model for the DT/dt-bindings. I have dropped syscon, simple-mfd, regmap, offset, and the child nodes. Thanks, Fab Fabrizio Castro (4): dt-bindings: mfd: Add RZ/V2M PWC mfd: Add RZ/V2M PWC core driver gpio: Add support for the Renesas RZ/V2M PWC GPIOs power: reset: Add new driver for RZ/V2M PWC poweroff .../bindings/mfd/renesas,rzv2m-pwc.yaml | 56 ++++++++++ drivers/gpio/Kconfig | 10 ++ drivers/gpio/Makefile | 1 + drivers/gpio/gpio-rzv2m-pwc.c | 105 ++++++++++++++++++ drivers/mfd/Kconfig | 14 +++ drivers/mfd/Makefile | 1 + drivers/mfd/rzv2m-pwc.c | 70 ++++++++++++ drivers/mfd/rzv2m-pwc.h | 18 +++ drivers/power/reset/Kconfig | 9 ++ drivers/power/reset/Makefile | 1 + drivers/power/reset/rzv2m-pwc-poweroff.c | 67 +++++++++++ 11 files changed, 352 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/renesas,rzv2m-pwc.yaml create mode 100644 drivers/gpio/gpio-rzv2m-pwc.c create mode 100644 drivers/mfd/rzv2m-pwc.c create mode 100644 drivers/mfd/rzv2m-pwc.h create mode 100644 drivers/power/reset/rzv2m-pwc-poweroff.c -- 2.34.1