From patchwork Sat Apr 16 06:37: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: 8861241 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 767DBBF29F for ; Sat, 16 Apr 2016 06:41:21 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9B32B20222 for ; Sat, 16 Apr 2016 06:41:20 +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 B150F20221 for ; Sat, 16 Apr 2016 06:41:19 +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 1arJtC-00005x-On; Sat, 16 Apr 2016 06:39:30 +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 1arJt9-0008WB-Nn for linux-arm-kernel@lists.infradead.org; Sat, 16 Apr 2016 06:39:28 +0000 Received: by mail-wm0-x242.google.com with SMTP id n3so10987693wmn.1 for ; Fri, 15 Apr 2016 23:39:07 -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; bh=qYTpp2IwgpORUr+I6YWEkDa06S6/TzubzOnHkYJAVuo=; b=NqYj9DGe4V8Gv8rexQLS+BISmSbGspJWbsFOVhRy+Zo8QHYHEeTGTJUzed8+XbhNgw IHPrW9Tf6abRQ4cxR3UoFZDGReNwYhr+uHASCTMpfgXDZ2+H5Csb3tcLR9jXE1Pi6HF8 Qo/cXWs2W6fg1lbDQ5EXlczoORHtMfh+8/XE6UnHkSuPqTxlW13L3+ay98AAikNN2lSb tUw+YTDuycTmKDZD5+eiMe0fQ8w8EujRbho1ShH1ahxz3kH7UaruHj+lSiN7TngBNYqw SL1Ur4qxQx6iyCc3UtGVOgfOrcfHYqIpYCbezr2R60FXzUUGf0DJs8r4YRDrnlr1oLbp OEQw== 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; bh=qYTpp2IwgpORUr+I6YWEkDa06S6/TzubzOnHkYJAVuo=; b=WDv0OFyTGp9X1ImcuDgSP6c6MDF00Nihx86mxABfNRUHOkltZEyktTDrwyC+hs3ejN 053wIJrGfiYpiF9QRo+FnB+O4L7TEUUg8WAqYKpStTjWBvCbyE/qPjtyyZgHOojfNENw NQomPXQLp+Cs7LdKxkc/vsL0TH8xPwBTVO8ixY9iSTJQhRkJs5e32PaCMUVn0tGcrcsv 9vCJM3o4HdmNBUd29EpIAt/CdIqSTYuwN1pRKwgfWEr+hr/R/1VjNfTP07hhi9mI719H c0kxHYL2kZcTi1BJtAeATaXdD783QKpazKck16KB2zGptbnE3vsFGwZSeQS/9E14S6OB cZ4g== X-Gm-Message-State: AOPr4FVlyYcqKMAAXV4TTrxkWE4bwIy7wpD/AsHOTSNWOAdofay72LNy1e4AtLKCycQHfg== X-Received: by 10.28.48.69 with SMTP id w66mr7689192wmw.51.1460788746426; Fri, 15 Apr 2016 23:39:06 -0700 (PDT) Received: from localhost.localdomain ([46.249.74.23]) by smtp.gmail.com with ESMTPSA id c125sm42096811wme.6.2016.04.15.23.39.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 15 Apr 2016 23:39:05 -0700 (PDT) From: Ivaylo Dimitrov To: tony@atomide.com, bcousson@baylibre.com Subject: [PATCH] ARM: dts: omap3-n900: Specify peripherals LDO regulators initial mode Date: Sat, 16 Apr 2016 09:37:23 +0300 Message-Id: <1460788643-18590-1-git-send-email-ivo.g.dimitrov.75@gmail.com> X-Mailer: git-send-email 1.9.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160415_233927_933680_E7D3AD19 X-CRM114-Status: UNSURE ( 9.77 ) X-CRM114-Notice: Please train this message. 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, 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 --- 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..1bb36e2 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>; 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>; }; &vaux3 { regulator-name = "VMMC2_30"; regulator-min-microvolt = <2800000>; regulator-max-microvolt = <3000000>; + regulator-initial-mode = <0x0e>; }; &vaux4 { regulator-name = "VCAM_ANA_28"; regulator-min-microvolt = <2800000>; regulator-max-microvolt = <2800000>; + regulator-initial-mode = <0x0e>; }; &vmmc1 { regulator-name = "VMMC1"; regulator-min-microvolt = <1850000>; regulator-max-microvolt = <3150000>; + regulator-initial-mode = <0x0e>; }; &vmmc2 { regulator-name = "V28_A"; regulator-min-microvolt = <2800000>; regulator-max-microvolt = <3000000>; + regulator-initial-mode = <0x0e>; 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>; regulator-always-on; }; @@ -374,6 +381,7 @@ regulator-name = "VSDI_CSI"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; + regulator-initial-mode = <0x0e>; regulator-always-on; }; @@ -381,6 +389,7 @@ regulator-name = "VMMC2_IO_18"; regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; + regulator-initial-mode = <0x0e>; }; &vio {