From patchwork Sun Mar 22 22:46:22 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Saravanan Sekar X-Patchwork-Id: 212507 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 63A37C54FD6 for ; Sun, 22 Mar 2020 22:46:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 384E42076E for ; Sun, 22 Mar 2020 22:46:59 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="cljqWDWN" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726897AbgCVWqi (ORCPT ); Sun, 22 Mar 2020 18:46:38 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:40087 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726816AbgCVWqh (ORCPT ); Sun, 22 Mar 2020 18:46:37 -0400 Received: by mail-wr1-f68.google.com with SMTP id f3so14677840wrw.7; Sun, 22 Mar 2020 15:46:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=zz9hBu718mZQ2dhsZQciqBHR8CZ+3iF/z6AsVOjjjyY=; b=cljqWDWNVqYRVCD8vIg6A/pDDgMfzse7X+Aff2doKntjJdlGKdmq5lPOWiMpWGA/Im xP2m5sVtG2/sG7P+NLDRZbGDguX0bow4/SESqsspLwmHp4Pi3VCFvKVBB/SzGOWJBZPx xg9v/x4SSCagzSiIJJQaLYL2A3qnySWTcJi46OMDT3V8rOBBUDnkRuDVZTocWxdCNE/6 JN6FEO0nmxw5Owgp9ss5vAXlVlw0iBhovNRhCfMdHbRYZdEY0nfVN76Ncc1Y5QBajOym /JVJ0Lw/vab6CXaHxN8KKsMSKRrVUSQz09hpfasi7ubzGc1FRJsLwu1dV7JZ41iE5UG1 MD3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=zz9hBu718mZQ2dhsZQciqBHR8CZ+3iF/z6AsVOjjjyY=; b=K7dlMmybAxX5dFsCIY6Lu4y2D6T1hdvDq27cG+F9PjFKLQf14FXpISVb82Uj/CuQLX CuRv3bTMAS3V2TE5sEbXDc+Q1hZ4HYinw/Ef2RRhu3Fom6EBroLx1AmyhTgBriqVnUuP EleCTMsUr2vZ2iz6xuQ3mqH4osfV0TcZuzY7b3Vw5iynVyXMYRQjmlP/d9OuMTAGUIVS WVc8uBMNxcbdC6+mMagrtTaYMs2PU7LuDpjfuSBbiN6rinM1wvSUvLcJqQYVvBTiemlU 6vqUvOKqzMZokMrHddN01CnyKIROd37TwIJ8Zs0pQmz+OikJuO6P/mMOpK9YN4+3qlqQ WxuA== X-Gm-Message-State: ANhLgQ1ka66g5e8EG+0p3iiwO1Bai/fGOgKck2CBROrUzAm4xY0H/sVK e5euYHSNsdvbJKfvmyGt2gFe+UNMvTQ= X-Google-Smtp-Source: ADFU+vsa+VfsopPSbloSSuVuZxTchLF6DLY2tBzhHmfmq7SFR9xMpDvZmjRI1AdeaJjSyM/nMPnu6Q== X-Received: by 2002:a5d:510d:: with SMTP id s13mr15739180wrt.110.1584917195266; Sun, 22 Mar 2020 15:46:35 -0700 (PDT) Received: from localhost.localdomain (p5DCFFFE5.dip0.t-ipconnect.de. [93.207.255.229]) by smtp.gmail.com with ESMTPSA id r9sm19158549wma.47.2020.03.22.15.46.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Mar 2020 15:46:34 -0700 (PDT) From: Saravanan Sekar To: lee.jones@linaro.org, robh+dt@kernel.org, jic23@kernel.org, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, sre@kernel.org Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, linux-pm@vger.kernel.org, Saravanan Sekar Subject: [PATCH v4 1/5] dt-bindings: mfd: add document bindings for mp2629 Date: Sun, 22 Mar 2020 23:46:22 +0100 Message-Id: <20200322224626.13160-2-sravanhome@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200322224626.13160-1-sravanhome@gmail.com> References: <20200322224626.13160-1-sravanhome@gmail.com> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Add device tree binding information for mp2629 mfd driver. Signed-off-by: Saravanan Sekar --- .../devicetree/bindings/mfd/mps,mp2629.yaml | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 Documentation/devicetree/bindings/mfd/mps,mp2629.yaml diff --git a/Documentation/devicetree/bindings/mfd/mps,mp2629.yaml b/Documentation/devicetree/bindings/mfd/mps,mp2629.yaml new file mode 100644 index 000000000000..314309ea91ac --- /dev/null +++ b/Documentation/devicetree/bindings/mfd/mps,mp2629.yaml @@ -0,0 +1,60 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/mfd/mps,mp2629.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MP2629 Battery Charger PMIC from Monolithic Power System. + +maintainers: + - Saravanan Sekar + +description: | + MP2629 is an PMIC providing battery charging and power supply for smartphones, + wireless camera and portable devices. Chip is contrlled over I2C. + + The MFD device handles battery charger controller and ADC IIO device for + battery, system voltage + +properties: + compatible: + const: mps,mp2629 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + + interrupt-controller: true + + "#interrupt-cells": + const: 2 + description: + The first cell is the IRQ number, the second cell is the trigger type. + +required: + - compatible + - reg + - interrupts + - interrupt-controller + - "#interrupt-cells" + +examples: + - | + #include + #include + i2c { + #address-cells = <1>; + #size-cells = <0>; + + pmic@4b { + compatible = "mps,mp2629"; + reg = <0x4b>; + + interrupt-controller; + interrupt-parent = <&gpio2>; + #interrupt-cells = <2>; + interrupts = <3 IRQ_TYPE_LEVEL_HIGH>; + }; + }; From patchwork Sun Mar 22 22:46:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Saravanan Sekar X-Patchwork-Id: 212508 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,UNWANTED_LANGUAGE_BODY,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D337EC54FD3 for ; Sun, 22 Mar 2020 22:46:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9E90D20637 for ; Sun, 22 Mar 2020 22:46:57 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="tomXjFBz" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726983AbgCVWql (ORCPT ); Sun, 22 Mar 2020 18:46:41 -0400 Received: from mail-wr1-f68.google.com ([209.85.221.68]:41038 "EHLO mail-wr1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726916AbgCVWqk (ORCPT ); Sun, 22 Mar 2020 18:46:40 -0400 Received: by mail-wr1-f68.google.com with SMTP id h9so14688357wrc.8; Sun, 22 Mar 2020 15:46:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=9H8A2HbY1w0LSOhr2nvKesIOJNJPWZKH+LxS/vDPtSo=; b=tomXjFBzu+1Oyuiv3HgbkaY4OLIXi92QUIpaE9zeb132V/2B/9d7E09Bt8Y+m3hxBt uU1h2RABywmNr8WIwpgax2t0sZhYoqnxL8AiIHQB0W87z9TVp0auODzzshWJoRK039Zo igu/DJN1CcL8GbhdNywKDJDX3gLV4EHJ5xP+X32T0nBO+0cYtxYLjA71TazHGI1BAmoI uFi0jRfHIjYJ1YlsoV2EHFmJDntGdQh4OBwwVyL6IQ+msk7kcz0OUxLnmil8IMUAlH/B AI7YyVC6yG2dHjLaH5HgT/fZKzYBaV8TpXGTY2HnP2ncC+iB6lrorkwTE07H1IMTkxss sy/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=9H8A2HbY1w0LSOhr2nvKesIOJNJPWZKH+LxS/vDPtSo=; b=V284yUjzjyKEJD1zRgGfJBWxMvrHkVYQ9EqcZ/ivguQNhcTeILrmsqqsI3MSPZmuy6 ZpNzKskLDPtIuffbP88eh1DVMGomNFL2zTLtnmUXOWTLxu0oRjAhnDUdvNCPu8VsWx8N f9wUfc0GDMSvD63fYemp8NIytSiB6JquNETCf+U5/dLXYU7VDHYeLJHj1iKeSAaSldko aTpA+xW4C4tXnBgxfcElqBptYZTWCD814h50TvX4bBedZ41v+OUivGWzQjcSqn0nf/g8 heL4wnoOLlPPFzM2HudYaxoTvm4Z/b3I/x+E//E8v6DfvE8IPPLizvrNsyH9P5RTih3o J1LQ== X-Gm-Message-State: ANhLgQ0IopuMTvGA5Dp4kaVws7B7iR1YXe/B0RsG/pZAiJjdUCw7BbAs SDuYY7IwunbIN47m9aBXf1QXUxbMhyI= X-Google-Smtp-Source: ADFU+vv5UWPaWFm/prklUDkjixoJ9o1Zi0xB1MvOTclOsQN7Tl6fK5UM/ytZ/G/69tCgMXIwQrn69g== X-Received: by 2002:a5d:474b:: with SMTP id o11mr24657557wrs.4.1584917197953; Sun, 22 Mar 2020 15:46:37 -0700 (PDT) Received: from localhost.localdomain (p5DCFFFE5.dip0.t-ipconnect.de. [93.207.255.229]) by smtp.gmail.com with ESMTPSA id r9sm19158549wma.47.2020.03.22.15.46.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Mar 2020 15:46:37 -0700 (PDT) From: Saravanan Sekar To: lee.jones@linaro.org, robh+dt@kernel.org, jic23@kernel.org, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, sre@kernel.org Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, linux-pm@vger.kernel.org, Saravanan Sekar Subject: [PATCH v4 3/5] iio: adc: mp2629: Add support for mp2629 ADC driver Date: Sun, 22 Mar 2020 23:46:24 +0100 Message-Id: <20200322224626.13160-4-sravanhome@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200322224626.13160-1-sravanhome@gmail.com> References: <20200322224626.13160-1-sravanhome@gmail.com> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Add support for 8-bit resolution ADC readings for input power supply and battery charging measurement. Provides voltage, current readings to mp2629 power supply driver. Signed-off-by: Saravanan Sekar --- drivers/iio/adc/Kconfig | 10 ++ drivers/iio/adc/Makefile | 1 + drivers/iio/adc/mp2629_adc.c | 214 +++++++++++++++++++++++++++++++++++ include/linux/mfd/mp2629.h | 9 ++ 4 files changed, 234 insertions(+) create mode 100644 drivers/iio/adc/mp2629_adc.c diff --git a/drivers/iio/adc/Kconfig b/drivers/iio/adc/Kconfig index 82e33082958c..ef0c0cd31855 100644 --- a/drivers/iio/adc/Kconfig +++ b/drivers/iio/adc/Kconfig @@ -680,6 +680,16 @@ config MESON_SARADC To compile this driver as a module, choose M here: the module will be called meson_saradc. +config MP2629_ADC + tristate "Monolithic MP2629 ADC driver" + depends on MFD_MP2629 + help + Say yes to have support for battery charger IC MP2629 ADC device + accessed over I2C. + + This driver provides ADC conversion of system, input power supply + and battery voltage & current information. + config NAU7802 tristate "Nuvoton NAU7802 ADC driver" depends on I2C diff --git a/drivers/iio/adc/Makefile b/drivers/iio/adc/Makefile index 919228900df9..f14416c245a6 100644 --- a/drivers/iio/adc/Makefile +++ b/drivers/iio/adc/Makefile @@ -64,6 +64,7 @@ obj-$(CONFIG_MCP3911) += mcp3911.o obj-$(CONFIG_MEDIATEK_MT6577_AUXADC) += mt6577_auxadc.o obj-$(CONFIG_MEN_Z188_ADC) += men_z188_adc.o obj-$(CONFIG_MESON_SARADC) += meson_saradc.o +obj-$(CONFIG_MP2629_ADC) += mp2629_adc.o obj-$(CONFIG_MXS_LRADC_ADC) += mxs-lradc-adc.o obj-$(CONFIG_NAU7802) += nau7802.o obj-$(CONFIG_NPCM_ADC) += npcm_adc.o diff --git a/drivers/iio/adc/mp2629_adc.c b/drivers/iio/adc/mp2629_adc.c new file mode 100644 index 000000000000..6967c695d177 --- /dev/null +++ b/drivers/iio/adc/mp2629_adc.c @@ -0,0 +1,214 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* + * MP2629 Driver for ADC + * + * Copyright 2020 Monolithic Power Systems, Inc + * + * Author: Saravanan Sekar + */ + +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include + +#define MP2629_REG_ADC_CTRL 0x03 +#define MP2629_REG_BATT_VOLT 0x0e +#define MP2629_REG_SYSTEM_VOLT 0x0f +#define MP2629_REG_INPUT_VOLT 0x11 +#define MP2629_REG_BATT_CURRENT 0x12 +#define MP2629_REG_INPUT_CURRENT 0x13 + +#define MP2629_ADC_START BIT(7) +#define MP2629_ADC_CONTINUOUS BIT(6) + +#define MP2629_MAP(_mp, _mpc) IIO_MAP(#_mp, "mp2629_charger", "mp2629-"_mpc) + +#define MP2629_ADC_CHAN(_ch, _type) { \ + .type = _type, \ + .indexed = 1, \ + .datasheet_name = #_ch, \ + .channel = MP2629_ ## _ch, \ + .address = MP2629_REG_ ## _ch, \ + .info_mask_separate = BIT(IIO_CHAN_INFO_RAW), \ + .info_mask_shared_by_type = BIT(IIO_CHAN_INFO_SCALE), \ +} + +struct mp2629_adc { + struct regmap *regmap; + struct device *dev; +}; + +static struct iio_chan_spec mp2629_channels[] = { + MP2629_ADC_CHAN(BATT_VOLT, IIO_VOLTAGE), + MP2629_ADC_CHAN(SYSTEM_VOLT, IIO_VOLTAGE), + MP2629_ADC_CHAN(INPUT_VOLT, IIO_VOLTAGE), + MP2629_ADC_CHAN(BATT_CURRENT, IIO_CURRENT), + MP2629_ADC_CHAN(INPUT_CURRENT, IIO_CURRENT) +}; + +static struct iio_map mp2629_adc_maps[] = { + MP2629_MAP(BATT_VOLT, "batt-volt"), + MP2629_MAP(SYSTEM_VOLT, "system-volt"), + MP2629_MAP(INPUT_VOLT, "input-volt"), + MP2629_MAP(BATT_CURRENT, "batt-current"), + MP2629_MAP(INPUT_CURRENT, "input-current") +}; + +static int mp2629_read_raw(struct iio_dev *indio_dev, + struct iio_chan_spec const *chan, + int *val, int *val2, long mask) +{ + struct mp2629_adc *info = iio_priv(indio_dev); + unsigned int rval; + int ret; + + switch (mask) { + case IIO_CHAN_INFO_RAW: + ret = regmap_read(info->regmap, chan->address, &rval); + if (ret < 0) + return ret; + + if (chan->address == MP2629_INPUT_VOLT) + rval &= 0x7f; + *val = rval; + return IIO_VAL_INT; + + case IIO_CHAN_INFO_SCALE: + switch (chan->channel) { + case MP2629_BATT_VOLT: + case MP2629_SYSTEM_VOLT: + *val = 20; + return IIO_VAL_INT; + + case MP2629_INPUT_VOLT: + *val = 60; + return IIO_VAL_INT; + + case MP2629_BATT_CURRENT: + *val = 175; + *val2 = 10; + return IIO_VAL_FRACTIONAL; + + case MP2629_INPUT_CURRENT: + *val = 133; + *val2 = 10; + return IIO_VAL_FRACTIONAL; + + default: + return -EINVAL; + } + + default: + return -EINVAL; + } + + return 0; +} + +static const struct iio_info mp2629_adc_info = { + .read_raw = &mp2629_read_raw, +}; + +static int mp2629_adc_probe(struct platform_device *pdev) +{ + struct device *dev = &pdev->dev; + void **pdata = pdev->dev.platform_data; + struct mp2629_adc *info; + struct iio_dev *indio_dev; + int ret; + + indio_dev = devm_iio_device_alloc(dev, sizeof(*info)); + if (!indio_dev) + return -ENOMEM; + + info = iio_priv(indio_dev); + info->regmap = *pdata; + info->dev = dev; + platform_set_drvdata(pdev, indio_dev); + + ret = iio_map_array_register(indio_dev, mp2629_adc_maps); + if (ret) { + dev_err(dev, "IIO maps register fail: %d\n", ret); + return ret; + } + + indio_dev->name = dev_name(dev); + indio_dev->dev.parent = dev; + indio_dev->dev.of_node = pdev->dev.of_node; + indio_dev->channels = mp2629_channels; + indio_dev->num_channels = ARRAY_SIZE(mp2629_channels); + indio_dev->modes = INDIO_DIRECT_MODE; + indio_dev->info = &mp2629_adc_info; + + ret = regmap_update_bits(info->regmap, MP2629_REG_ADC_CTRL, + MP2629_ADC_START | MP2629_ADC_CONTINUOUS, + MP2629_ADC_START | MP2629_ADC_CONTINUOUS); + if (ret) { + dev_err(dev, "adc enable fail: %d\n", ret); + goto fail_unmap; + } + + ret = devm_iio_device_register(dev, indio_dev); + if (ret) { + dev_err(dev, "IIO device register fail: %d\n", ret); + goto fail_disable; + } + + return 0; + +fail_disable: + regmap_update_bits(info->regmap, MP2629_REG_ADC_CTRL, + MP2629_ADC_CONTINUOUS, 0); + regmap_update_bits(info->regmap, MP2629_REG_ADC_CTRL, + MP2629_ADC_START, 0); + +fail_unmap: + iio_map_array_unregister(indio_dev); + + return ret; +} + +static int mp2629_adc_remove(struct platform_device *pdev) +{ + struct iio_dev *indio_dev = platform_get_drvdata(pdev); + struct mp2629_adc *info = iio_priv(indio_dev); + + regmap_update_bits(info->regmap, MP2629_REG_ADC_CTRL, + MP2629_ADC_CONTINUOUS, 0); + regmap_update_bits(info->regmap, MP2629_REG_ADC_CTRL, + MP2629_ADC_START, 0); + + iio_map_array_unregister(indio_dev); + iio_device_unregister(indio_dev); + + return 0; +} + +static const struct of_device_id mp2629_adc_of_match[] = { + { .compatible = "mps,mp2629_adc"}, + {} +}; +MODULE_DEVICE_TABLE(of, mp2629_adc_of_match); + +static struct platform_driver mp2629_adc_driver = { + .driver = { + .name = "mp2629_adc", + .of_match_table = mp2629_adc_of_match, + }, + .probe = mp2629_adc_probe, + .remove = mp2629_adc_remove, +}; +module_platform_driver(mp2629_adc_driver); + +MODULE_AUTHOR("Saravanan Sekar "); +MODULE_DESCRIPTION("MP2629 ADC driver"); +MODULE_LICENSE("GPL"); diff --git a/include/linux/mfd/mp2629.h b/include/linux/mfd/mp2629.h index 371e44330ba8..8b9c717e1fb0 100644 --- a/include/linux/mfd/mp2629.h +++ b/include/linux/mfd/mp2629.h @@ -19,4 +19,13 @@ struct mp2629_info { struct regmap *regmap; }; +enum mp2629_adc_chan { + MP2629_BATT_VOLT, + MP2629_SYSTEM_VOLT, + MP2629_INPUT_VOLT, + MP2629_BATT_CURRENT, + MP2629_INPUT_CURRENT, + MP2629_ADC_CHAN_END +}; + #endif From patchwork Sun Mar 22 22:46:26 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Saravanan Sekar X-Patchwork-Id: 212509 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 05631C54FCF for ; Sun, 22 Mar 2020 22:46:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CF2B42072E for ; Sun, 22 Mar 2020 22:46:51 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="HIr4scsd" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726913AbgCVWqn (ORCPT ); Sun, 22 Mar 2020 18:46:43 -0400 Received: from mail-wr1-f67.google.com ([209.85.221.67]:38644 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726822AbgCVWqm (ORCPT ); Sun, 22 Mar 2020 18:46:42 -0400 Received: by mail-wr1-f67.google.com with SMTP id s1so14702951wrv.5; Sun, 22 Mar 2020 15:46:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=6QvXfJZlpggMK4ANi6m9pBKzrWALkcbq78l8N8OifPg=; b=HIr4scsd5CyEHBoqj1U5s520InaNnU6ukkhaIeFvp/H4MXzlrxKHL7C+z676GpP4+k zQ7HMfbZW1cjxYHAs2V/WWYabNTwpjYRCzkfnWtN6C8AHyKxQjozli8Q20eN4lPQyrLR XcmRb5Dcixl5lgVQ7ayeCPrL83hBIZAjEzNLF8LcHiwigfpXpfUqtPUzMt8qzBmov50K NLBmmvPN6M5v5m74HdpSdVeSCW6w+rvLu7RaWAN9kvVRoEAD4rcB36jVJUfraGS71ciX 0EInl/B9hHDS77jnW3kTA2W2xsaZIhuu1pBRJlpvpJ3qinvRsPeCyGq9sGpzpe9DGceR LOPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=6QvXfJZlpggMK4ANi6m9pBKzrWALkcbq78l8N8OifPg=; b=F+p2m2kJeZwW59fcdaopwqx5/7ru58vzBoB+j8qjB716EFJ1SviFg/rlD1Nm4IwnDG fxxVQOXAy6K6fYp06nd/hZElIS7RgzicwCgmJZK1KmBvnsf8ZIQ9LfBqJnGjQW+WnkHb TERTBRfxg4pc7Uz05aAtJ6In39m6WahcH4u5rWtD17nHY/RTQBFhxQ7K7ohtAR+hpt5U 8ysM7n1zh6Vez3F+Yl6gfaOMrW+aGJmWdcXQsKyOfJH/wdzojmrK/OgvfGFN5diF31Lu PZXftuLcM1wNUTPZuplQSPhvfT0VCJN9yVF+4MIztrh9nFmVCFijXrx9F3bCuwaCOwNZ uWVQ== X-Gm-Message-State: ANhLgQ30L9x5Z+ZC/E/SD40fa6a2Bzpi597ayadNo/HSH1YovftSQE2b thPKdHkYs8twc28p8kCZPHE= X-Google-Smtp-Source: ADFU+vtC61VOoEmFTPzpk2jh6z2sJXWYoQ7hNyHjcRLmkgxTZQ/sfrLGUtTaPogC6cRtvvBCIdQmpg== X-Received: by 2002:adf:b31d:: with SMTP id j29mr11690199wrd.218.1584917200180; Sun, 22 Mar 2020 15:46:40 -0700 (PDT) Received: from localhost.localdomain (p5DCFFFE5.dip0.t-ipconnect.de. [93.207.255.229]) by smtp.gmail.com with ESMTPSA id r9sm19158549wma.47.2020.03.22.15.46.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Mar 2020 15:46:39 -0700 (PDT) From: Saravanan Sekar To: lee.jones@linaro.org, robh+dt@kernel.org, jic23@kernel.org, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, sre@kernel.org Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-iio@vger.kernel.org, linux-pm@vger.kernel.org, Saravanan Sekar Subject: [PATCH v4 5/5] MAINTAINERS: Add entry for mp2629 Battery Charger driver Date: Sun, 22 Mar 2020 23:46:26 +0100 Message-Id: <20200322224626.13160-6-sravanhome@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200322224626.13160-1-sravanhome@gmail.com> References: <20200322224626.13160-1-sravanhome@gmail.com> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Add MAINTAINERS entry for Monolithic Power Systems mp2629 Charger driver. Signed-off-by: Saravanan Sekar --- MAINTAINERS | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 32a95d162f06..0f82d5a7a614 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -11358,10 +11358,15 @@ F: drivers/tty/mxser.* MONOLITHIC POWER SYSTEM PMIC DRIVER M: Saravanan Sekar S: Maintained +F: Documentation/devicetree/bindings/mfd/mps,mp2629.yaml F: Documentation/devicetree/bindings/regulator/mps,mp*.yaml +F: drivers/iio/adc/mp2629_adc.c +F: drivers/mfd/mp2629.c +F: drivers/power/supply/mp2629_charger.c F: drivers/regulator/mp5416.c F: drivers/regulator/mpq7920.c F: drivers/regulator/mpq7920.h +F: include/linux/mfd/mp2629.h MR800 AVERMEDIA USB FM RADIO DRIVER M: Alexey Klimov