From patchwork Thu Jan 5 20:12:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrizio Castro X-Patchwork-Id: 3633 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp479672wrt; Thu, 5 Jan 2023 12:19:22 -0800 (PST) X-Google-Smtp-Source: AMrXdXtijTSGV8yFGDEdbBYHe/+atyiKSBz/YUNFm31i4cVVIAA2/hors4FrpfSU+nlqS6YLcpmc X-Received: by 2002:a50:ccc1:0:b0:492:dec9:67d7 with SMTP id b1-20020a50ccc1000000b00492dec967d7mr2793958edj.36.1672949962656; Thu, 05 Jan 2023 12:19:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672949962; cv=none; d=google.com; s=arc-20160816; b=roG2Ep6uvkTn8S9GrUSUYXqW5BDETRhjCVoDYpya3Vg00+bg6YdXeKmXTzd91mKSJz DBd8Otnv5+eiFgQlaFJiQMegIkelY+D9wHwwbEpI5pk+YCtPGAnekzofOleLJ4WicC1H swyRvPqXMEXqIkudMWkRDQleD4X4ywcOWSJZDMEZUTwsdKf6Wb7HnLT3aXSKNxzwsgc1 iHk98uco/acpoeyMQ51TYmcqMiyDZSZDzbGWp7R+vsYjiHsWHN7ZIew7v/6Py957OwpU jz7XYHVVQ06i2t5lnxWCEAvpecCwqQPkNu0NE47cLjTBus4rTJ2KbRiFs7NooA6EHtrU SZdg== 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=tdrLQt0ncPaqYkB+W3pk0TMRCHNrKll43KLwis04PSk=; b=Dc+588GAlzg36MQXh9NnRQD9oTXKBWIjEjXW5x2og7LrPjyHSvjgbCDFbgQSjiNHF9 cChdEQ8LJnXvbbRFRLMgFhNC0vISdiqbPoeAImT+jIklYCRvti5+hGj+6B0tQ6bbHyV9 BQ1v6HSdWegMqnlKPvXoJOdRyj2R8xjVkvXKvAa0UX9/eL3JlAx62ywCQjyWZjWzOHbV Rp+etxgZd7j6sJzSjsadYxf1kjdCEZEEZgj3a+MZD02Co9ZN3Cpua9DZNdnMzzphwk5B Z7eDmvKUPA2+oAEcl+s32mMEEWrF54MBIjg47WACX1onmiUp3FlGnUcf8Ty1h33Sd4BI iPBA== 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 h14-20020a05640250ce00b004841a568226si33181782edb.476.2023.01.05.12.18.53; Thu, 05 Jan 2023 12:19:22 -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 S235638AbjAEUMz (ORCPT + 99 others); Thu, 5 Jan 2023 15:12:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52124 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235407AbjAEUMx (ORCPT ); Thu, 5 Jan 2023 15:12:53 -0500 Received: from relmlie5.idc.renesas.com (relmlor1.renesas.com [210.160.252.171]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C691E19039; Thu, 5 Jan 2023 12:12:51 -0800 (PST) X-IronPort-AV: E=Sophos;i="5.96,303,1665414000"; d="scan'208";a="145308096" Received: from unknown (HELO relmlir5.idc.renesas.com) ([10.200.68.151]) by relmlie5.idc.renesas.com with ESMTP; 06 Jan 2023 05:12:50 +0900 Received: from mulinux.example.org (unknown [10.226.92.64]) by relmlir5.idc.renesas.com (Postfix) with ESMTP id B0B16400515A; Fri, 6 Jan 2023 05:12:45 +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 v4 0/2] Driver support for RZ/V2M PWC Date: Thu, 5 Jan 2023 20:12:40 +0000 Message-Id: <20230105201242.189195-1-fabrizio.castro.jz@renesas.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-0.9 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-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?1754208848300857252?= X-GMAIL-MSGID: =?utf-8?q?1754215179990020360?= 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 Version 4 of this series basically just moves the dt-bindings file under Documentation/devicetree/bindings/soc/renesas. Thanks, Fab Fabrizio Castro (2): dt-bindings: mfd: Add RZ/V2M PWC soc: renesas: Add PWC support for RZ/V2M .../soc/renesas/renesas,rzv2m-pwc.yaml | 56 +++++++ drivers/soc/renesas/Kconfig | 4 + drivers/soc/renesas/Makefile | 1 + drivers/soc/renesas/pwc-rzv2m.c | 141 ++++++++++++++++++ 4 files changed, 202 insertions(+) create mode 100644 Documentation/devicetree/bindings/soc/renesas/renesas,rzv2m-pwc.yaml create mode 100644 drivers/soc/renesas/pwc-rzv2m.c