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: 8863041 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id BAE839F1D3 for ; Sun, 17 Apr 2016 14:30:12 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E7EA1201C0 for ; Sun, 17 Apr 2016 14:30:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6E2C8201ED for ; Sun, 17 Apr 2016 14:30:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751306AbcDQO3u (ORCPT ); Sun, 17 Apr 2016 10:29:50 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:35531 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751044AbcDQO3t (ORCPT ); Sun, 17 Apr 2016 10:29:49 -0400 Received: by mail-wm0-f65.google.com with SMTP id a140so17930153wma.2; 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=FcPkxA2wIiMsLOuEDtrqyoLiT7000Y1Uny0ecU4axFLCvTUdEHD6b9wNgfBDmHXoJ8 FlUom7+HfpygnrLGM7PF+rucNwhy5pJjAGoyiMFuGd8q612aSBHgqaKvQ1LURMsXRjJo w5ytyRgMbJX/KwshpnkGBSXd8fPSHzyJ40ntPiPAs8QTZRvAXGTqF4ef16o3WuWYhP3m VMJZhwREKyatcZPvdIS+ETEHgWqB7XYvwHTE7Vo/8bKx/ywiL8ehHkhY5Clr9bzJnPgE bC9TYYSpNPmJU9XCgfPkZW7bEnTaSiSFaPy4hHJHDsqtSNvH2Of26t4jBvqIvTtrspKv AzsQ== X-Gm-Message-State: AOPr4FVIHAW+ZKBz41/AdhEGVdgETB1DDQqwTbpLJFutVKbs+oYCy2ivvMFUxLP1I8iSvw== 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 Cc: robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org, linux@arm.linux.org.uk, linux-omap@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, sre@kernel.org, Ivaylo Dimitrov 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> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, 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 {