From patchwork Thu Jan 7 14:15:25 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 358405 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=-16.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI,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 29393C4332E for ; Thu, 7 Jan 2021 14:21:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0272022DBF for ; Thu, 7 Jan 2021 14:21:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728869AbhAGOQx (ORCPT ); Thu, 7 Jan 2021 09:16:53 -0500 Received: from esa.microchip.iphmx.com ([68.232.154.123]:60829 "EHLO esa.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728381AbhAGOQx (ORCPT ); Thu, 7 Jan 2021 09:16:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1610029012; x=1641565012; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=L//+ipVMtry19HxS3lm/Lz4ZRAdxHYA5e8itIJykReU=; b=nQ3NPswMmKqyPniMWEHS6DcQ8N43/8NHmPBrzkw2s7T62/zJbyAA1aja xn4giKosSjkEJ1od46DqtmjRCggvG/yFjQEkQ02+ySM8w4KrHUVgd6tEN vWHT5n4J6XGptIOKeXcTNuJsIaoXZfUzAtWMQv8I539NBYr6bRSbyEngT dMK77Oimsy2DkcCa2dnYA+PVLtzvzwhYoPJPRk4H27g7e9zFH9CZxhonK 0jwRvSejRCktZuCgIVhjUeOrmLwH7SN8+EnfrOsur+xFblQmapj8ncFyU UrwQfnRei48kO212jEoszdKPuQmBgYLvCXA5VaFqcq362STDhF1SBY9jh A==; IronPort-SDR: 3F7v/TmC9PrVficNcCmINf62I839NAfl+BOE+li44DIW2TgH+4fbzajF5nSCYTv6k5Y2SI39es oi3ga6lZ2E6RIBXKco31h8lbv9gbW1OCbFBpTBCDbuHmlpdr284I5HIbdsLqIjeu1spFH6DiIk 6Hoesh7DmUOn0oS1036MoMDKnMp4Qs442l+vtcQjj9Prgc1dEKkID+dFzZ4F2UIhrF1eM7LdSz zOes5qlCSb9uU0IKVhUNAVYhd58+WJI6JLox7AefduYTvl8DvI7JHWIT0tFxOfSW0GtTPHVJ5D b+Y= X-IronPort-AV: E=Sophos;i="5.79,329,1602572400"; d="scan'208";a="99315398" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa4.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 07 Jan 2021 07:15:37 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1979.3; Thu, 7 Jan 2021 07:15:37 -0700 Received: from m18063-ThinkPad-T460p.microchip.com (10.10.115.15) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.1979.3 via Frontend Transport; Thu, 7 Jan 2021 07:15:33 -0700 From: Claudiu Beznea To: , , CC: , , , , Claudiu Beznea Subject: [PATCH 1/3] dt-bindings: regulator: mcp16502: document lpm as optional Date: Thu, 7 Jan 2021 16:15:25 +0200 Message-ID: <1610028927-9842-2-git-send-email-claudiu.beznea@microchip.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1610028927-9842-1-git-send-email-claudiu.beznea@microchip.com> References: <1610028927-9842-1-git-send-email-claudiu.beznea@microchip.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Document LPM pin as optional. Signed-off-by: Claudiu Beznea --- Documentation/devicetree/bindings/regulator/mcp16502-regulator.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/regulator/mcp16502-regulator.txt b/Documentation/devicetree/bindings/regulator/mcp16502-regulator.txt index d86584ed4d93..451cc4e86b01 100644 --- a/Documentation/devicetree/bindings/regulator/mcp16502-regulator.txt +++ b/Documentation/devicetree/bindings/regulator/mcp16502-regulator.txt @@ -4,7 +4,8 @@ Required properties: - compatible: "microchip,mcp16502" - reg: I2C slave address - lpm-gpios: GPIO for LPM pin. Note that this GPIO *must* remain high during - suspend-to-ram, keeping the PMIC into HIBERNATE mode. + suspend-to-ram, keeping the PMIC into HIBERNATE mode; this + property is optional; - regulators: A node that houses a sub-node for each regulator within the device. Each sub-node is identified using the node's name. The content of each sub-node is defined by the From patchwork Thu Jan 7 14:15:26 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 359267 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=-16.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI,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 D22C0C43333 for ; Thu, 7 Jan 2021 14:20:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9DAC62333E for ; Thu, 7 Jan 2021 14:20:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728924AbhAGOQ7 (ORCPT ); Thu, 7 Jan 2021 09:16:59 -0500 Received: from esa.microchip.iphmx.com ([68.232.154.123]:60844 "EHLO esa.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728910AbhAGOQ6 (ORCPT ); Thu, 7 Jan 2021 09:16:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1610029017; x=1641565017; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=0r6ZtrJr5p+eG//to76xKoSi5Qiv9tgIM+LgVgJD08U=; b=XsDo5L61K/KQBWy3D1v1Ayi4QQchBCvb8xFbyJmPehAJzV4GMZyZ+IB5 lp4XJqn/uyWqdwRkU2kLy6It367hO+RvQYipnnONsoN8KMOmYINU7IPO3 TuXj+bDfVVanYk7Kpa/DWCbRVeNIr+11o4fvAogzTcIVEzFI/27pw+Bmg Mc9yCIeXjQY6M2CKALdgpCZHoKM98/9uecdkUAFWoWKzdszCT/YwF4DR2 Ft/qmuD4qka++NTw+BiRKFpvIojSy0kCdgFcTZmneCGe61VU5sNuDsDfZ 1Iz0UTcR5UHmxfu5Usv5oUkT4LTjfDUgxGcOXN05KvEtyXoR+jRGn7846 g==; IronPort-SDR: 6vftMJsU8BfNSYQZXlRtTLne9EDb1uHQAN+Ck7bBk8z+zZwNnjgpk87S/Lg/zu06ISDHpC27P/ wR+TCtYaqT9OOp9+wwiuB4r1w4XjHoHxWcVW8Xg3XhC2DxOyn2y3EYkfhzfto6UxwsyhaKyZYZ iKsKI75nUfuVgE7pFOd4KIk1U6sT313r+M5OWV7zdIYsOqbw4tDmR1lBi3JtTZZUdVHp9CTsER BOIcL1jbLegCUQdQMWqN0yuIzyZ4QOVjFJJu2P2yPHlTeCmsFxWre/8j+w4oGVobAl2zIX4mXH AxM= X-IronPort-AV: E=Sophos;i="5.79,329,1602572400"; d="scan'208";a="99315412" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa4.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 07 Jan 2021 07:15:42 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1979.3; Thu, 7 Jan 2021 07:15:41 -0700 Received: from m18063-ThinkPad-T460p.microchip.com (10.10.115.15) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.1979.3 via Frontend Transport; Thu, 7 Jan 2021 07:15:38 -0700 From: Claudiu Beznea To: , , CC: , , , , Claudiu Beznea Subject: [PATCH 2/3] regulator: mcp16502: lpm pin can be optional on some platforms Date: Thu, 7 Jan 2021 16:15:26 +0200 Message-ID: <1610028927-9842-3-git-send-email-claudiu.beznea@microchip.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1610028927-9842-1-git-send-email-claudiu.beznea@microchip.com> References: <1610028927-9842-1-git-send-email-claudiu.beznea@microchip.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On some platform (e.g. SAMA7G5) LPM pin should be optional as it can be controlled explicitly (via shutdown controller registers) in the platform specific power saving code to decrease the power consumption while suspended as this SoC pin may be connected to other devices that could take power saving actions based on its value. Signed-off-by: Claudiu Beznea --- drivers/regulator/mcp16502.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/mcp16502.c b/drivers/regulator/mcp16502.c index 74ad92dc664a..88c6bd5b6c78 100644 --- a/drivers/regulator/mcp16502.c +++ b/drivers/regulator/mcp16502.c @@ -550,7 +550,7 @@ static int mcp16502_probe(struct i2c_client *client, config.regmap = rmap; config.driver_data = mcp; - mcp->lpm = devm_gpiod_get(dev, "lpm", GPIOD_OUT_LOW); + mcp->lpm = devm_gpiod_get_optional(dev, "lpm", GPIOD_OUT_LOW); if (IS_ERR(mcp->lpm)) { dev_err(dev, "failed to get lpm pin: %ld\n", PTR_ERR(mcp->lpm)); return PTR_ERR(mcp->lpm); From patchwork Thu Jan 7 14:15:27 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Claudiu Beznea X-Patchwork-Id: 358406 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=-16.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, 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 6F4FAC433E0 for ; Thu, 7 Jan 2021 14:20:53 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 32DB623120 for ; Thu, 7 Jan 2021 14:20:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728954AbhAGORC (ORCPT ); Thu, 7 Jan 2021 09:17:02 -0500 Received: from esa.microchip.iphmx.com ([68.232.154.123]:16454 "EHLO esa.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728943AbhAGORC (ORCPT ); Thu, 7 Jan 2021 09:17:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1610029021; x=1641565021; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=4QhHyeujT+lb+gqqtezm3Ek1N0lMijNnWzOwgiYQ6aw=; b=wVvkAl9Z2CgA3x7EtI+vJRoWNmP05D6WoFAdy9Ck16OmVKquZyXX3SNK YBsaqFWTw5qVHyhCuteY7MQ2Pk9B0y+EDTuMu4maINF7awdthlL3RTi9z fOa+UVX7Qis34Fm1SBrq5p5/a3+Uhu9bbdn7g3opCYpznAsvihiKpKdh7 6pSRKaxVgtnoz9sDWjBNAxYN5kmPlrQtuNV308cp/hsp94IaVcUd16rlm z/rQsC+h68xX8A+qTBV5p9ULZUsQAOisKb6r9R9kZplKrpnight5fYqEt rL6Ymb/bNGjZpYPRnHM9WVca7/kJD0Tl5wVq1uoWGuE3Hju+1U9frPcaR g==; IronPort-SDR: MDVW/CHkblbwjqyN+JUvhkMuSLkzJ0tGMxlH8dz0yxa+j+asTh7/LJujfhSo7W2Z8SZpH8RDFe CoDW/YFy6JSzJQDkPGp5RSB4yubaygNKBaGOvNpiVrYBhWcF7OyLLlqcL70dXn8/WA8//8cv7F 04woakvam5HcGIKJdATWOo8gSylc9jyZC54dBk+PMmNgWekUJqeRVaDAyfHP1Pn++nsEU883So yrkZdxzQd+b3cnzh7HZJTCTgFtRjkn++lpXTL79Q6Hx5g9MplToCoLboDg7uA/zhc00eHoIo+B 6rI= X-IronPort-AV: E=Sophos;i="5.79,329,1602572400"; d="scan'208";a="39654793" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa6.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 07 Jan 2021 07:15:45 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1979.3; Thu, 7 Jan 2021 07:15:45 -0700 Received: from m18063-ThinkPad-T460p.microchip.com (10.10.115.15) by chn-vm-ex04.mchp-main.com (10.10.85.152) with Microsoft SMTP Server id 15.1.1979.3 via Frontend Transport; Thu, 7 Jan 2021 07:15:42 -0700 From: Claudiu Beznea To: , , CC: , , , , Claudiu Beznea Subject: [PATCH 3/3] MAINTAINERS: add myself as maintainer for mcp16502 Date: Thu, 7 Jan 2021 16:15:27 +0200 Message-ID: <1610028927-9842-4-git-send-email-claudiu.beznea@microchip.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1610028927-9842-1-git-send-email-claudiu.beznea@microchip.com> References: <1610028927-9842-1-git-send-email-claudiu.beznea@microchip.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Andrei is no longer with Microchip. Add myself as maintainer for MCP16502. Along with this change the status from maintained to supported. Signed-off-by: Claudiu Beznea Acked-by: Nicolas Ferre --- MAINTAINERS | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/MAINTAINERS b/MAINTAINERS index 6eff4f720c72..1cd9914b95eb 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -11690,9 +11690,9 @@ F: drivers/video/fbdev/atmel_lcdfb.c F: include/video/atmel_lcdc.h MICROCHIP MCP16502 PMIC DRIVER -M: Andrei Stefanescu +M: Claudiu Beznea L: linux-arm-kernel@lists.infradead.org (moderated for non-subscribers) -S: Maintained +S: Supported F: Documentation/devicetree/bindings/regulator/mcp16502-regulator.txt F: drivers/regulator/mcp16502.c