Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3968273imu; Mon, 10 Dec 2018 10:44:04 -0800 (PST) X-Google-Smtp-Source: AFSGD/UgU5WpWRwjaAR8zjKsvqt7hO1V52rO2v843U25z4Ue6x+HW3KwuRc8H63BDJI6KtTXTek8 X-Received: by 2002:a17:902:d01:: with SMTP id 1mr13323495plu.127.1544467444868; Mon, 10 Dec 2018 10:44:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544467444; cv=none; d=google.com; s=arc-20160816; b=I5Q4LDX2nmCwN1ddW6/y3E+zhaT5dnjL659q3JPpJw4J5EJltgRXlvCmz54NgbCPQQ HOmZNxzuM0dkxHBjolfogMvQvQORDCI+w0EoovFAqs+C1xnE58VraEvIACTOmwacHGk/ n+bt+hhptqV6CwI7v8v772jNIdHG5TAQ+/c0uvtAv7aHy69K0CKSpYNgep30XgwHhuL0 PoQ4wq6bbWAtDhbYTIITczKooR6hbbcAKJbfPknrDWmLW+TLeKVMPicyuJl1Iq6Z8hd/ 2IGbLtgr+DdbDs7Qsxd3joRMvsAUqym1VtisfvOVnCBFDQ+HwcWcooTOxGSUSSX5ym/z QrDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=j4eUQ+sM1iEsZO24q56/5FPJEm07aGKYQLB+p3BzlNE=; b=WfZ1xL1vUwao7HKou74PpmmYYrcoOUV9pc3+gJqDHX1TRNol1D5bjPVzH4QvIsoDyD h18oA7G+R2/c1yymto+UwQb/yeKdbB0yeGPlBPqE9bZx4chU6M9mhmSTZjSZIAGGgnz4 bZiKlf4iqYCxdwYK+xfBvlcY+wkLClbTil8SXWFKaGoR4/FUiyQ/O7C6sTXk4A55oxF5 OS4SXFQXwBikWpYtwjdRfICVI6iYj9/TtYw8gL0pViQXqjChqkr8hLZAtqsntvv68vFw 7bsIbQk55KrMq5p23sT0A3dTUQzU9XJPHbT6D0dTx8GLFBUihCDMY6Dm2Nl2h8pkAj03 mRQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@plaes.org header.s=mail header.b=SQz0IQv0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z6si10643713pgl.109.2018.12.10.10.43.49; Mon, 10 Dec 2018 10:44:04 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@plaes.org header.s=mail header.b=SQz0IQv0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728907AbeLJSmz (ORCPT + 99 others); Mon, 10 Dec 2018 13:42:55 -0500 Received: from plaes.org ([188.166.43.21]:55160 "EHLO plaes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728500AbeLJSm3 (ORCPT ); Mon, 10 Dec 2018 13:42:29 -0500 Received: from localhost (unknown [213.204.46.240]) by plaes.org (Postfix) with ESMTPSA id 94FCA41911; Mon, 10 Dec 2018 18:42:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=plaes.org; s=mail; t=1544467347; bh=snlyZLidIJEaCnhVA6nQ3LGjhvn8FydspTFdTImmP0M=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SQz0IQv0kp3gM2C/gvHmVEeCq10zBLBUhrgzqkVmAFLNJYYuEgy2WCJXC5z86/37w HBu/YOxmKcktbgqsM59G28edueIEoA5rIv/olUx1lUsaovMgJiQRoAtAeNPzHu3pmY uYajVcooyH9AGKHaszB8Qn07e6zMTLNQk/UTipuF46Chs7fHsnV7+uhF1xWXEAfGWi Km1yXg4FH9AAYMdMOgUKafVaw+PotE0tutJoPhV4mzluftUncY84eGiDBVBjRnMvjR oMP4++DvG8kzsAq0Ik1wQISAlT5EKPeLZ8eQJLKiVkH8cTw5AsAKeyMK1+FufdXxKi Sd+NjNByjpwnA== From: Priit Laes To: Lee Jones , Rob Herring , Mark Rutland , Chen-Yu Tsai , Maxime Ripard , Liam Girdwood , Mark Brown , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Olliver Schinagl , linux-sunxi Cc: Priit Laes Subject: [PATCH 5/8] dt-bindings: mfd: axp20x: Add software based soft_start for AXP209 LDO3 Date: Mon, 10 Dec 2018 20:42:16 +0200 Message-Id: <25e67fe9b5397aa5f11bdd7026e4ae6be51dd18b.1544466940.git-series.plaes@plaes.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Olliver Schinagl In the past, there have been words on various lists that if LDO3 is disabled in u-boot, but enabled in the DTS, the axp209 driver would fail to continue/hang. Several enable/disable patches have been issues to devicetree's in both the kernel and u-boot to address this issue. What really happened however, was that the AXP209 shuts down without a notice and without setting an interrupt. This is caused when LDO3 gets overloaded, for example with large capacitors on the LDO3 output. Normally, we would expect that AXP209 would source 200 mA as per datasheet and set and trigger an interrupt when being overloaded. For some reason however, this does not happen. As a work-around, implement software-based 'regulator-soft-start' property for AXP209 LDO3 regulator, which is used to first bring up the LDO3 to the lowest possible voltage and then enable the LDO. After that, we can set the requested voltage as usual. Combining this setting with the regulator-ramp-delay allows LDO3 to come up slowly and staggered, potentially reducing overall inrush current. Signed-off-by: Olliver Schinagl Signed-off-by: Priit Laes --- Documentation/devicetree/bindings/mfd/axp20x.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Documentation/devicetree/bindings/mfd/axp20x.txt b/Documentation/devicetree/bindings/mfd/axp20x.txt index c626605..2af4ff9 100644 --- a/Documentation/devicetree/bindings/mfd/axp20x.txt +++ b/Documentation/devicetree/bindings/mfd/axp20x.txt @@ -37,6 +37,9 @@ more information: - regulator-ramp-delay: sets the ramp up delay in uV/us AXP20x/DCDC2: 1600, 800 AXP20x/LDO3: 1600, 800 +- regulator-soft-start: enable the output at the lowest possible voltage and + only then set the desired voltage + AXP20x/LDO3: software-based implementation Optional properties: - x-powers,dcdc-freq: defines the work frequency of DC-DC in KHz -- git-series 0.9.1