From patchwork Mon Nov 26 15:27:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Priit Laes X-Patchwork-Id: 10698511 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A686513BB for ; Mon, 26 Nov 2018 15:30:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 93F4029E88 for ; Mon, 26 Nov 2018 15:30:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 82C2829E9D; Mon, 26 Nov 2018 15:30:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.4 required=2.0 tests=BAYES_00,DKIM_ADSP_ALL, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 09B8929E88 for ; Mon, 26 Nov 2018 15:30:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=DaJkeCbHPa/TO4/p6dDqEFLpj8mtUzyoTznOQwA7+4Y=; b=kgpZ5C7ulzdygs 2CoMxWl8Crl8Ack/GPM+HEsq0nwtjam/QKVsslppueVqldxfunkkYUSeE/49tCKp3+HbqeGS5epHP rsiWsnA5zE6K3Xjmc4oTa8i1aH0V6G2Dv7Na6VBwLgxh06zkfJtie04Tg4d/CemPL4ynJj6BwZR2W m/oEDz8c04BSx+zDEJNz7SXoEdk2gZR3GU38QU405KPRndTNBH7i7cBs7RWyPXYzcqvtj70ubaCsy L7lV6qw8BKM9Z/unpvG8jnudJfu+EFJrPrOxOQ8HasgvZfQ+F4aN6Ysfi+FN3DvXz4zYllucwPNX1 ezfAeAuYsseQRFG2kncw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gRIpg-0006Pn-VH; Mon, 26 Nov 2018 15:29:56 +0000 Received: from plaes.org ([188.166.43.21]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gRIoc-0005Jo-JT for linux-arm-kernel@lists.infradead.org; Mon, 26 Nov 2018 15:29:00 +0000 Received: from localhost (85.253.196.132.cable.starman.ee [85.253.196.132]) by plaes.org (Postfix) with ESMTPSA id EB1DC4128B; Mon, 26 Nov 2018 15:28:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=plaes.org; s=mail; t=1543246089; bh=+dxr20gmRSo77fcR/PRI+1UvYyHbhSOv99xBK9H8OMI=; h=From:To:Cc:Subject:Date:From; b=cZUz2ob+RoyUsYR6CIsgPEa75MPHxc8bN0kj4zIIwmwxlM0n8r17sVDgPbCFMGF7J nnBoith9ZKxQqGwcTmDRDFbTPoCXq1Z7W2kvWufHPNZxRjuMRCgsBMgCqiq06418B2 7K+qKRtnGmHDkpwS7RYKhaycPQN8Y6NXvnBN3Mch+R4Cx9yRSh0r4UB5qe/vULxBqn 1Y8TB+J22ZM4/vwG/ne+QQqAnN3orj+aJ2/65d9MGIMlgAC/bXIOFctkR4Y+xTqUlE AwJXWxxMgef3tJVOAKwwRtYjG3C9h1heK1wLogdDyRoL+eHFlKTuqJDSwxUyuMkhjp IWr5gyXPuqkWA== From: Priit Laes To: Lee Jones , Rob Herring , Mark Rutland , Chen-Yu Tsai , Maxime Ripard , Sebastian Reichel , Hans de Goede , Liam Girdwood , Mark Brown , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org Subject: [PATCH 00/14] regulator: axp20x: Stop AXP209 from crashing when enabling LDO3 Date: Mon, 26 Nov 2018 17:27:41 +0200 Message-Id: X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181126_072851_669075_C6D1C17E X-CRM114-Status: UNSURE ( 7.96 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Priit Laes Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This series implements voltage ramping for AXP209 DCDC2 and LDO3 regulators and software based soft-start for AXP209 LDO3 regulator. Both features are needed to work around a PMIC shutdown when toggling LDO3 on certain boards with high capacitance on the LDO3 output. Similar features (or workarounds) have been also implemented on u-boot side [1]. Also included in this series are various magic constant cleanups and also fix for core regulator framework, where 'always-enabled' constraint overrides the 'soft-start' and 'ramp-delay' features. [1] https://lists.denx.de/pipermail/u-boot/2018-November/348612.html Olliver Schinagl (14): regulator: axp20x: use defines for masks regulator: axp20x: name voltage ramping define properly regulator: core: enable power when setting up constraints regulator: axp20x: add support for set_ramp_delay for AXP209 dt-bindings: mfd: axp20x: add support for regulator-ramp-delay for AXP209 regulator: axp20x: add software based soft_start for AXP209 LDO3 dt-bindings: mfd: axp20x: Add software based soft_start for AXP209 LDO3 regulator: dts: enable soft-start and ramp delay for the OLinuXino Lime2 regulator: dts: add full voltage range to LDO4 on the Lime2 regulator: dts: set proper lradc vref on OLinuXino Lime2 mfd: axp20x: Clean up included headers mfd: axp20x: use explicit bit defines power: supply: axp20x: add missing include bitops.h power: supply: axp288: use the BIT() macro Documentation/devicetree/bindings/mfd/axp20x.txt | 8 +- arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dts | 13 +- drivers/mfd/axp20x.c | 13 +- drivers/power/supply/axp20x_usb_power.c | 1 +- drivers/power/supply/axp288_charger.c | 35 +- drivers/regulator/axp20x-regulator.c | 875 ++++++++++++---- drivers/regulator/core.c | 22 +- include/linux/mfd/axp20x.h | 4 +- 8 files changed, 753 insertions(+), 218 deletions(-) base-commit: 2e6e902d185027f8e3cb8b7305238f7e35d6a436