From patchwork Sun Apr 17 14:29:23 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ivaylo Dimitrov X-Patchwork-Id: 8863051 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id C97A1BF29F for ; Sun, 17 Apr 2016 14:32:11 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DD3B4201CE for ; Sun, 17 Apr 2016 14:32:10 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C75B6201C0 for ; Sun, 17 Apr 2016 14:32:09 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1arniF-00052X-Fv; Sun, 17 Apr 2016 14:30:11 +0000 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1arniD-0003p9-Fb for linux-arm-kernel@lists.infradead.org; Sun, 17 Apr 2016 14:30:10 +0000 Received: by mail-wm0-x242.google.com with SMTP id n3so17958944wmn.1 for ; Sun, 17 Apr 2016 07:29:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=EPcyPMw0ineSkTfCTHFhLqKnIGq9E7l8X9fTUA3COuM=; b=aF0ogUEgu7aI7oMnjxzyhIFAvEbkt0NUFc0i2Y3nAPMKdClxkIogW9LU3RvRkJCuYy OGfNRtuC5uZcHS+2nYZ3oL2hnTpsm/tqVy1WthqTUX4hs6zWn7j0eOKlVCvN15aW0Pdq twKVlLuIWhvxSE/Hlzusk1xlLLSKwcRjh8tD3COXCtNr73ncPeSu3HVAq84scCVmz+EO PiR96rauL66hk9WvjmT8DPlT4ucdNT92DK208lHZYVG/bBfQwMMizjoyvEJKc9Lse223 JtGqMPNfjDVKVGR+upDUs8P4qrOV5ZzwDKTfU95KVLurWmtePqI/tD2zaNfgtidr/W04 iBDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=EPcyPMw0ineSkTfCTHFhLqKnIGq9E7l8X9fTUA3COuM=; b=KSId68zjtX6oMHKUlrS00LV2/iyUw8Vu13RPsw8nAHG7nkDibpKzZ8Zvk25aokTLdA /F7AYai0VZiCfb9kfIbT6PW3OwNKa1mvmKF9r58W+BYHeFAM4Wwju91E5Ep1LAeP2VCn YqBHNV+XDXUyMIglVgFCSRgEgrXC0xn6CDiRuwokgpaHgv/lCGRIObfhbZznvzCg7lOR 8rvcmZz9quRRW0oso4TS0sYepL0xd28OWnrJZL2pqVSv3fLFPNmrQ1uP/arxltdkMA2R MByEfmcXSEPbN4EOaOQs5jD1tHNCAVXVa6xSPcHdGaRhKlEl6xvceT1sAg2lsEQeO49r IpHA== X-Gm-Message-State: AOPr4FVbeRNRZJJZFUBL8TcKi4jRr2/v7dDTUYHafazpIl7jeSaCiiZacvZ3EKTeRtawLQ== X-Received: by 10.28.30.79 with SMTP id e76mr14836899wme.27.1460903387230; Sun, 17 Apr 2016 07:29:47 -0700 (PDT) Received: from localhost.localdomain ([46.249.74.23]) by smtp.gmail.com with ESMTPSA id f204sm21870586wmf.22.2016.04.17.07.29.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 17 Apr 2016 07:29:46 -0700 (PDT) From: Ivaylo Dimitrov To: tony@atomide.com, bcousson@baylibre.com Subject: [PATCH v1] ARM: dts: omap3-n900: Specify peripherals LDO regulators initial mode Date: Sun, 17 Apr 2016 17:29:23 +0300 Message-Id: <1460903363-2197-1-git-send-email-ivo.g.dimitrov.75@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <20160417122933.GA8093@earth> References: <20160417122933.GA8093@earth> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160417_073009_680408_2B9088D5 X-CRM114-Status: GOOD ( 10.50 ) X-Spam-Score: -2.5 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, devicetree@vger.kernel.org, Ivaylo Dimitrov , linux@arm.linux.org.uk, pawel.moll@arm.com, ijc+devicetree@hellion.org.uk, linux-kernel@vger.kernel.org, sre@kernel.org, robh+dt@kernel.org, galak@codeaurora.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Without that, regulators are left in the mode last set by the bootloader or by the kernel the device was rebooted from. This leads to various problems, like non-working peripherals. Signed-off-by: Ivaylo Dimitrov Reviewed-By: Sebastian Reichel Reviewed-by: Javier Martinez Canillas Reviewed-by: Pavel Machek --- arch/arm/boot/dts/omap3-n900.dts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm/boot/dts/omap3-n900.dts b/arch/arm/boot/dts/omap3-n900.dts index b3c26a9..d9e2d9c 100644 --- a/arch/arm/boot/dts/omap3-n900.dts +++ b/arch/arm/boot/dts/omap3-n900.dts @@ -329,6 +329,7 @@ regulator-name = "V28"; regulator-min-microvolt = <2800000>; regulator-max-microvolt = <2800000>; + regulator-initial-mode = <0x0e>; /* RES_STATE_ACTIVE */ regulator-always-on; /* due to battery cover sensor */ }; @@ -336,30 +337,35 @@ regulator-name = "VCSI"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; + regulator-initial-mode = <0x0e>; /* RES_STATE_ACTIVE */ }; &vaux3 { regulator-name = "VMMC2_30"; regulator-min-microvolt = <2800000>; regulator-max-microvolt = <3000000>; + regulator-initial-mode = <0x0e>; /* RES_STATE_ACTIVE */ }; &vaux4 { regulator-name = "VCAM_ANA_28"; regulator-min-microvolt = <2800000>; regulator-max-microvolt = <2800000>; + regulator-initial-mode = <0x0e>; /* RES_STATE_ACTIVE */ }; &vmmc1 { regulator-name = "VMMC1"; regulator-min-microvolt = <1850000>; regulator-max-microvolt = <3150000>; + regulator-initial-mode = <0x0e>; /* RES_STATE_ACTIVE */ }; &vmmc2 { regulator-name = "V28_A"; regulator-min-microvolt = <2800000>; regulator-max-microvolt = <3000000>; + regulator-initial-mode = <0x0e>; /* RES_STATE_ACTIVE */ regulator-always-on; /* due VIO leak to AIC34 VDDs */ }; @@ -367,6 +373,7 @@ regulator-name = "VPLL"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; + regulator-initial-mode = <0x0e>; /* RES_STATE_ACTIVE */ regulator-always-on; }; @@ -374,6 +381,7 @@ regulator-name = "VSDI_CSI"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; + regulator-initial-mode = <0x0e>; /* RES_STATE_ACTIVE */ regulator-always-on; }; @@ -381,6 +389,7 @@ regulator-name = "VMMC2_IO_18"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; + regulator-initial-mode = <0x0e>; /* RES_STATE_ACTIVE */ }; &vio {