From patchwork Fri May 31 09:18:48 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 17325 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f200.google.com (mail-qc0-f200.google.com [209.85.216.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A076D25CAB for ; Fri, 31 May 2013 09:20:43 +0000 (UTC) Received: by mail-qc0-f200.google.com with SMTP id n10sf1518798qcx.11 for ; Fri, 31 May 2013 02:20:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-beenthere:x-forwarded-to:x-forwarded-for:delivered-to:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :mime-version:x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe :content-type; bh=4VKQm/j81gdQ5G07NlM+daqEGcVhlw5kEGu4Hd/OJ7Q=; b=QH1E1+v+GfNDX/zc6Zurfh/8iHMwQM6OVmjr3QWvVJ0Ljj+nkU98YYyxPlIQ2TWCL+ Yzc77xhUraMlEh5XT4HJ9oFc12c12aJap1/lDIexTVyOug0wr62cqlhyustpKBOhzhsw PqjnMuYUfOx9pTf+HsskKPoBOwmjwUeO71DT2MyyyxwRq9VcbcO2zN03u5SWvfPNaCPm D+G3udTqUQtmfSf5xdWpSNCqRtTLU4M74P2jFcJyeQbvT6Rwbfpcl6cKRqrzSAfBgKSV V8TCdgGkfNlqUEba0k/kANOTIJPOL+e0k8uTYoph+P1SBT0j9Pub2VQzrslDoxvYk35n XTFQ== X-Received: by 10.224.36.66 with SMTP id s2mr6287704qad.6.1369992043364; Fri, 31 May 2013 02:20:43 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.26.100 with SMTP id k4ls892080qeg.37.gmail; Fri, 31 May 2013 02:20:43 -0700 (PDT) X-Received: by 10.220.73.135 with SMTP id q7mr9304344vcj.33.1369992043211; Fri, 31 May 2013 02:20:43 -0700 (PDT) Received: from mail-vc0-f170.google.com (mail-vc0-f170.google.com [209.85.220.170]) by mx.google.com with ESMTPS id iz8si27788369vdb.149.2013.05.31.02.20.43 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 31 May 2013 02:20:43 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.170 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.170; Received: by mail-vc0-f170.google.com with SMTP id gf11so901359vcb.29 for ; Fri, 31 May 2013 02:20:43 -0700 (PDT) X-Received: by 10.59.13.193 with SMTP id fa1mr6582859ved.56.1369992043085; Fri, 31 May 2013 02:20:43 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.229.199 with SMTP id jj7csp42403vcb; Fri, 31 May 2013 02:20:42 -0700 (PDT) X-Received: by 10.15.75.196 with SMTP id l44mr12858562eey.79.1369992041701; Fri, 31 May 2013 02:20:41 -0700 (PDT) Received: from eu1sys200aog120.obsmtp.com (eu1sys200aog120.obsmtp.com [207.126.144.149]) by mx.google.com with SMTP id 7si29973597eeb.355.2013.05.31.02.20.18 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Fri, 31 May 2013 02:20:41 -0700 (PDT) Received-SPF: neutral (google.com: 207.126.144.149 is neither permitted nor denied by best guess record for domain of linus.walleij@stericsson.com) client-ip=207.126.144.149; Received: from beta.dmz-us.st.com ([167.4.1.35]) (using TLSv1) by eu1sys200aob120.postini.com ([207.126.147.11]) with SMTP ID DSNKUahrUISkYQvAJmoTadXQPGsznsVGvvCb@postini.com; Fri, 31 May 2013 09:20:41 UTC Received: from zeta.dmz-us.st.com (ns4.st.com [167.4.16.71]) by beta.dmz-us.st.com (STMicroelectronics) with ESMTP id 00BC361; Fri, 31 May 2013 09:19:11 +0000 (GMT) Received: from relay1.stm.gmessaging.net (unknown [10.230.100.17]) by zeta.dmz-us.st.com (STMicroelectronics) with ESMTP id 07A5357; Fri, 31 May 2013 09:20:12 +0000 (GMT) Received: from exdcvycastm003.EQ1STM.local (alteon-source-exch [10.230.100.61]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (Client CN "exdcvycastm003", Issuer "exdcvycastm003" (not verified)) by relay1.stm.gmessaging.net (Postfix) with ESMTPS id 7023324C07D; Fri, 31 May 2013 11:20:06 +0200 (CEST) Received: from steludxu4075.lud.stericsson.com (10.230.100.153) by smtp.stericsson.com (10.230.100.1) with Microsoft SMTP Server (TLS) id 8.3.279.5; Fri, 31 May 2013 11:20:11 +0200 From: Linus Walleij To: Cc: Arnd Bergmann , Linus Walleij , Mark Brown Subject: [PATCH 13/39] ARM: u300: support regulators in the device tree Date: Fri, 31 May 2013 11:18:48 +0200 Message-ID: <1369991954-17406-14-git-send-email-linus.walleij@stericsson.com> X-Mailer: git-send-email 1.7.11.3 In-Reply-To: <1369991954-17406-1-git-send-email-linus.walleij@stericsson.com> References: <1369991954-17406-1-git-send-email-linus.walleij@stericsson.com> MIME-Version: 1.0 X-Gm-Message-State: ALoCoQmvNPB8HRG9fkPstG1/DZ1EPPZXpZkaAGnxFNOgqMsIbvt6YhNC9wgHLb5F+/uD9DMFnhV8 X-Original-Sender: linus.walleij@stericsson.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.170 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Linus Walleij Now that we have enabled board power and the AB3100 regulators, put the regulator data into the device tree and enable it so we can start to tie regulators to devices. To begin with we're only supplying the power to the board itself. Cc: Mark Brown Signed-off-by: Linus Walleij --- arch/arm/boot/dts/ste-u300.dts | 79 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) diff --git a/arch/arm/boot/dts/ste-u300.dts b/arch/arm/boot/dts/ste-u300.dts index 711a2d9..d1ab4e9 100644 --- a/arch/arm/boot/dts/ste-u300.dts +++ b/arch/arm/boot/dts/ste-u300.dts @@ -24,6 +24,11 @@ reg = <0x48000000 0x03c00000>; }; + s365 { + compatible = "stericsson,s365"; + vana15-supply = <&ab3100_ldo_d_reg>; + }; + timer: timer@c0014000 { compatible = "stericsson,u300-apptimer"; reg = <0xc0014000 0x1000>; @@ -70,6 +75,74 @@ interrupts = <8>; #address-cells = <1>; #size-cells = <0>; + ab3100: ab3100@0x48 { + compatible = "stericsson,ab3100"; + reg = <0x48>; + interrupt-parent = <&vica>; + interrupts = <0>; /* EXT0 IRQ */ + ab3100-regulators { + compatible = "stericsson,ab3100-regulators"; + ab3100_ldo_a_reg: ab3100_ldo_a { + regulator-compatible = "ab3100_ldo_a"; + startup-delay-us = <200>; + regulator-always-on; + regulator-boot-on; + }; + ab3100_ldo_c_reg: ab3100_ldo_c { + regulator-compatible = "ab3100_ldo_c"; + startup-delay-us = <200>; + }; + ab3100_ldo_d_reg: ab3100_ldo_d { + regulator-compatible = "ab3100_ldo_d"; + startup-delay-us = <200>; + }; + ab3100_ldo_e_reg: ab3100_ldo_e { + regulator-compatible = "ab3100_ldo_e"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + startup-delay-us = <200>; + regulator-always-on; + regulator-boot-on; + }; + ab3100_ldo_f_reg: ab3100_ldo_f { + regulator-compatible = "ab3100_ldo_f"; + regulator-min-microvolt = <2500000>; + regulator-max-microvolt = <2500000>; + startup-delay-us = <600>; + regulator-always-on; + regulator-boot-on; + }; + ab3100_ldo_g_reg: ab3100_ldo_g { + regulator-compatible = "ab3100_ldo_g"; + regulator-min-microvolt = <1500000>; + regulator-max-microvolt = <2850000>; + startup-delay-us = <400>; + }; + ab3100_ldo_h_reg: ab3100_ldo_h { + regulator-compatible = "ab3100_ldo_h"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <2750000>; + startup-delay-us = <200>; + }; + ab3100_ldo_k_reg: ab3100_ldo_k { + regulator-compatible = "ab3100_ldo_k"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <2750000>; + startup-delay-us = <200>; + }; + ab3100_ext_reg: ab3100_ext { + regulator-compatible = "ab3100_ext"; + }; + ab3100_buck_reg: ab3100_buck { + regulator-compatible = "ab3100_buck"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1800000>; + startup-delay-us = <1000>; + regulator-always-on; + regulator-boot-on; + }; + }; + }; }; i2c1: i2c@c0005000 { @@ -79,6 +152,12 @@ interrupts = <9>; #address-cells = <1>; #size-cells = <0>; + fwcam0: fwcam@0x10 { + reg = <0x10>; + }; + fwcam1: fwcam@0x5d { + reg = <0x5d>; + }; }; amba {