From patchwork Mon Apr 22 09:57: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: 16303 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f71.google.com (mail-yh0-f71.google.com [209.85.213.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 0E2F625DEE for ; Mon, 22 Apr 2013 09:58:59 +0000 (UTC) Received: by mail-yh0-f71.google.com with SMTP id i72sf11030913yha.2 for ; Mon, 22 Apr 2013 02:58:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-beenthere:x-received:received-spf:x-received :x-forwarded-to:x-forwarded-for:delivered-to:x-received:received-spf :from:to:cc:subject:date:message-id:x-mailer: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=LSFe+TpScfOVbldMKOnUYZAC+BTr3x9t4edXZeQuzaw=; b=FabDXaS6xSDatKUHpHNgdn45OKiGuytt7qfopuoqQGeNBkxxPGa5WpNMom1AtjliVO hZ5vGMp2Rl3UI0Boy861RDt9KwBWb0usxpXMF/SzAJDZdoU7g3vYOzdjdvXOCgT0yWC9 lYzpJ4leu09yPviMTv6ke8nAU2p5vILWMC39RpAr/fBP2R3kW4ND458IQ5ALJW/yF6SH Ow41N2RYsS9ntHf/ZXFw4w/CnL1s2UuGxSNAqQSuo6EXSgvkhBLv99hMfTT6MGuf69zh 0VTt8Fqde/9BBnmFw0yDs6ztbP6VIiQL/ekorTeL3HWNlQcXkCEEGqkf3d6s9tcO1zut 0x0w== X-Received: by 10.236.111.106 with SMTP id v70mr12885726yhg.34.1366624692962; Mon, 22 Apr 2013 02:58:12 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.96.2 with SMTP id do2ls3121264qeb.62.gmail; Mon, 22 Apr 2013 02:58:12 -0700 (PDT) X-Received: by 10.220.104.68 with SMTP id n4mr18532263vco.37.1366624692770; Mon, 22 Apr 2013 02:58:12 -0700 (PDT) Received: from mail-vc0-f173.google.com (mail-vc0-f173.google.com [209.85.220.173]) by mx.google.com with ESMTPS id ow6si15542847vcb.63.2013.04.22.02.58.12 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 22 Apr 2013 02:58:12 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.173 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.173; Received: by mail-vc0-f173.google.com with SMTP id gf12so5994532vcb.32 for ; Mon, 22 Apr 2013 02:58:12 -0700 (PDT) X-Received: by 10.52.71.4 with SMTP id q4mr15624589vdu.8.1366624692630; Mon, 22 Apr 2013 02:58:12 -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.58.127.98 with SMTP id nf2csp68873veb; Mon, 22 Apr 2013 02:58:11 -0700 (PDT) X-Received: by 10.180.39.207 with SMTP id r15mr12682390wik.16.1366624691487; Mon, 22 Apr 2013 02:58:11 -0700 (PDT) Received: from eu1sys200aog120.obsmtp.com (eu1sys200aog120.obsmtp.com [207.126.144.149]) by mx.google.com with SMTP id m44si38565158eeo.246.2013.04.22.02.58.02 (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 22 Apr 2013 02:58:11 -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-ap.st.com ([138.198.100.35]) (using TLSv1) by eu1sys200aob120.postini.com ([207.126.147.11]) with SMTP ID DSNKUXUJp+RbwP9lrX6RDIX3GwwRejIJzfCH@postini.com; Mon, 22 Apr 2013 09:58:10 UTC Received: from zeta.dmz-ap.st.com (ns6.st.com [138.198.234.13]) by beta.dmz-ap.st.com (STMicroelectronics) with ESMTP id 13A98F1; Mon, 22 Apr 2013 09:49:49 +0000 (GMT) Received: from relay2.stm.gmessaging.net (unknown [10.230.100.18]) by zeta.dmz-ap.st.com (STMicroelectronics) with ESMTP id A8E0113D8; Mon, 22 Apr 2013 09:57:55 +0000 (GMT) Received: from exdcvycastm022.EQ1STM.local (alteon-source-exch [10.230.100.61]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (Client CN "exdcvycastm022", Issuer "exdcvycastm022" (not verified)) by relay2.stm.gmessaging.net (Postfix) with ESMTPS id 8867CA8081; Mon, 22 Apr 2013 11:57:50 +0200 (CEST) Received: from steludxu4075.lud.stericsson.com (10.230.100.153) by smtp.stericsson.com (10.230.100.30) with Microsoft SMTP Server (TLS) id 8.3.279.5; Mon, 22 Apr 2013 11:57:54 +0200 From: Linus Walleij To: , Liam Girdwood , Mark Brown Cc: Arnd Bergmann , , Linus Walleij Subject: [PATCH 16/23] ARM: u300: support regulators in the device tree Date: Mon, 22 Apr 2013 11:57:48 +0200 Message-ID: <1366624668-6682-1-git-send-email-linus.walleij@stericsson.com> X-Mailer: git-send-email 1.7.11.3 MIME-Version: 1.0 X-Gm-Message-State: ALoCoQkjWwvPxegb++XEGTTCu9TaPsZo+tTZ8lj/DgB9NFj87m+SyxDY1w5Oy8YCdLfBfeVImm9w X-Original-Sender: linus.walleij@stericsson.com X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.173 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 784e17a..1b3ec2d 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: timer0@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 {