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: 8861231 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 17C959F1D3 for ; Sat, 16 Apr 2016 06:39:34 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 42A6E20259 for ; Sat, 16 Apr 2016 06:39:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4F06020222 for ; Sat, 16 Apr 2016 06:39:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751040AbcDPGjJ (ORCPT ); Sat, 16 Apr 2016 02:39:09 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:36193 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750993AbcDPGjI (ORCPT ); Sat, 16 Apr 2016 02:39:08 -0400 Received: by mail-wm0-f65.google.com with SMTP id l6so10947186wml.3; 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=Tk2YsrTUFopy+nZH1hJeHi76tDZsWqFC5pD75SHBXDhv2paQ7E9X+5iGLxHRvqm1zC nUVsmMv3jy8zXTLfoMXfZ+l5DSPgkzvHdAOn/XrMgslrDFbqf6bwZLQLcw0NmZVB8G9h qRZMLgx+uEK7LqzMP4c+012fci+bhsabBAp+inm1WKd4/LgfFUpy3F+xWaW+/a7NVSpl 5KCGBImJRN/ahMlNnSlccsSWAzluSigEvLmSHzOTNBUwVTR/6PNZ7pwa0Q8UOUyNEuLT lJV/JRdNm/A013L83rNFzXWmcVjbrNPosjmrlfhl/QdTkkIJwNtd8K2pOJr4MRiSNki6 eC8Q== X-Gm-Message-State: AOPr4FWmcWAXk+bLjrFpaGw0onTIJGgieIaIcd1JQiHRWyzMNzRpuUch0Jg/FHFVr9p6sw== 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 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, Ivaylo Dimitrov 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 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 --- 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 {