Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp1423331rwb; Fri, 12 Aug 2022 00:07:30 -0700 (PDT) X-Google-Smtp-Source: AA6agR7ekZXQYwuWqyVXBaaAf1SegoypQsK1jUgtVULAei51JQuaJP8TD4wyTx2C8sN50cd/KnNd X-Received: by 2002:a17:902:ecd2:b0:16e:d87f:d19e with SMTP id a18-20020a170902ecd200b0016ed87fd19emr2719458plh.75.1660288049976; Fri, 12 Aug 2022 00:07:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660288049; cv=none; d=google.com; s=arc-20160816; b=j+DT3j3QzqYX9qKF43wDh8j+A0VXZmsKPsIsF3c9wNNhAaR3KPROfChaoFTyBXgCzG 94P1i99QcnDJtJ94kpc2ZeiUNSOx7AYaZofiiQ/1b5vpfMm6loLryqe9S5ZMCESLYX1B k4p7Ijp5Zls2oqDTMqs7gCTTW1VxLCYmwteuxkkr3g/xPo9XNxMTzbQ4MSQlKqWSUXX9 JOSX2LTYgcIreYvn14xrPKbWrPABwHSsbr5IvP6w1uleMZvtttzyRz0Xt2N4FiLkPguN 8+4zh7SCxY5GzsFTbohXmjwfMqg8rrBbPME32NRm98vqqAnoFYHnBE7+P3KPAWEp7015 KWhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=Vn2mY8cCaElX+HspGlr6m2TlbxZXzV4V/Fj5on+E5wA=; b=BIgOAOKIQfPVRuBfUX+UzPia4rWZPBqlD5OywuciP5ZKRwUugE9/6sI/HRNcyN/GxD 5Xvm47d7IPQJ+pe06po3Kipkb0LWtJoax/l2UDsKbpOfclEwhH96Q/OePbnibnRJR0VZ Nsbj/qkvs+t4uPLQpZRmsTubCHYUlrZx3z2HFociPspLBm3QjlM/RWTa1Hmy0aqM1Bfx cZQc52eRI03tAylflCxx3UamuYGC42DuxbgX/GomAF6J5Xv+kus/e4i6GusZ3FKKNszs yLUgS4rTm622UwVwE434pHevLAAOIuNfiF5g4bL74n5Ri5vA9rVaqgJISeOhXQr2LZ5I Q1YA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SiAo4Xf6; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q5-20020a655245000000b004198148dd1fsi1816083pgp.192.2022.08.12.00.07.15; Fri, 12 Aug 2022 00:07:29 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=SiAo4Xf6; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236890AbiHLHBS (ORCPT + 99 others); Fri, 12 Aug 2022 03:01:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229552AbiHLHBO (ORCPT ); Fri, 12 Aug 2022 03:01:14 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 76B94760D0; Fri, 12 Aug 2022 00:01:13 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id DE659B82368; Fri, 12 Aug 2022 07:01:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 92C8FC433D6; Fri, 12 Aug 2022 07:01:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1660287670; bh=Yc1UoNzkUPCSb683h7ID5Q9aOBKqG/sOvwNmagMqBVA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=SiAo4Xf6Eo7bB9rMLk6IW7F4K+UBJvghm8SYitZcHv6eIOppFWlW/oDyTdpM3Zsh1 Fhglla4429SZ6MA9UR+fFoYwScSk/Br9xgxvCL0TxiwuWxwg+v/CM7Lmv0XLNwl0tz 64dSiw4/3xlnIdAviBWU1yWI0qXaF3cETFlye/HpGU9RAx3JZPgQoClV/fHLN6mB/K wPzi1fDwTwTsbup35YqRKCGltFVyR5HJMYlBwKimlPfS3wMopfA5r+FpGdbDVh1QRH yWP/ad9tZzBqj1InsH+4nON2U+gbDeTh/4wJkTXzQQqQBqyaGQd0ZIgsXy573MvzAX r7AsM2iZLu0FQ== Date: Fri, 12 Aug 2022 08:01:04 +0100 From: Lee Jones To: Matt Ranostay Cc: nm@ti.com, j-keerthy@ti.com, linux-kernel@vger.kernel.org, linux-rtc@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2 2/6] MFD: TPS6594x: Add new PMIC device driver for TPS6594x chips Message-ID: References: <20220812032242.564026-1-mranostay@ti.com> <20220812032242.564026-3-mranostay@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220812032242.564026-3-mranostay@ti.com> X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On Thu, 11 Aug 2022, Matt Ranostay wrote: > From: Keerthy > > The TPS6594x chip is a PMIC, and contains the following components: > > - Regulators > - GPIO controller > - RTC > > However initially only RTC is supported. > > Signed-off-by: Keerthy > Signed-off-by: Matt Ranostay > --- > drivers/mfd/Kconfig | 14 ++++ > drivers/mfd/Makefile | 1 + > drivers/mfd/tps6594x.c | 121 +++++++++++++++++++++++++++++++++++ > include/linux/mfd/tps6594x.h | 84 ++++++++++++++++++++++++ > 4 files changed, 220 insertions(+) > create mode 100644 drivers/mfd/tps6594x.c > create mode 100644 include/linux/mfd/tps6594x.h > > diff --git a/drivers/mfd/Kconfig b/drivers/mfd/Kconfig > index abb58ab1a1a4..4845683ae1d0 100644 > --- a/drivers/mfd/Kconfig > +++ b/drivers/mfd/Kconfig > @@ -1547,6 +1547,20 @@ config MFD_TI_LP873X > This driver can also be built as a module. If so, the module > will be called lp873x. > > +config MFD_TPS6594X > + tristate "TI TPS6594X Power Management IC" > + depends on I2C && OF > + select MFD_CORE > + select REGMAP_I2C > + help > + If you say yes here then you get support for the TPS6594X series of > + Power Management Integrated Circuits (PMIC). > + These include voltage regulators, RTS, configurable > + General Purpose Outputs (GPO) that are used in portable devices. > + > + This driver can also be built as a module. If so, the module > + will be called tps6594x. > + > config MFD_TI_LP87565 > tristate "TI LP87565 Power Management IC" > depends on I2C && OF > diff --git a/drivers/mfd/Makefile b/drivers/mfd/Makefile > index 858cacf659d6..7ff6a8a57d55 100644 > --- a/drivers/mfd/Makefile > +++ b/drivers/mfd/Makefile > @@ -105,6 +105,7 @@ obj-$(CONFIG_MFD_TPS65910) += tps65910.o > obj-$(CONFIG_MFD_TPS65912) += tps65912-core.o > obj-$(CONFIG_MFD_TPS65912_I2C) += tps65912-i2c.o > obj-$(CONFIG_MFD_TPS65912_SPI) += tps65912-spi.o > +obj-$(CONFIG_MFD_TPS6594X) += tps6594x.o > obj-$(CONFIG_MENELAUS) += menelaus.o > > obj-$(CONFIG_TWL4030_CORE) += twl-core.o twl4030-irq.o twl6030-irq.o > diff --git a/drivers/mfd/tps6594x.c b/drivers/mfd/tps6594x.c > new file mode 100644 > index 000000000000..ff265b91db3e > --- /dev/null > +++ b/drivers/mfd/tps6594x.c > @@ -0,0 +1,121 @@ > +// SPDX-License-Identifier: GPL-2.0-or-later > +/* > + * Driver for tps6594x PMIC chips > + * > + * Copyright (C) 2022 Texas Instruments Incorporated - https://www.ti.com/ > + * Author: Keerthy > + */ > + > +#include > +#include > +#include > +#include > +#include > +#include > +#include > + > +static const struct regmap_config tps6594x_regmap_config = { > + .reg_bits = 8, > + .val_bits = 8, > + .max_register = TPS6594X_REG_MAX, > +}; > + > +static const struct mfd_cell tps6594x_cells[] = { > + { .name = "tps6594x-gpio" }, > + { .name = "tps6594x-regulator" }, > + { .name = "tps6594x-rtc" }, > +}; Where are the device drivers for these? -- Lee Jones [李琼斯]