From patchwork Fri Mar 27 10:58:53 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Iain Paton X-Patchwork-Id: 6105081 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 6105BBF90F for ; Fri, 27 Mar 2015 11:02:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 792F720439 for ; Fri, 27 Mar 2015 11:02:43 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B76422041F for ; Fri, 27 Mar 2015 11:02:41 +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 1YbRzT-0000Kn-R1; Fri, 27 Mar 2015 10:59:51 +0000 Received: from mail-wg0-x235.google.com ([2a00:1450:400c:c00::235]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YbRzL-00009Y-Jc for linux-arm-kernel@lists.infradead.org; Fri, 27 Mar 2015 10:59:45 +0000 Received: by wgdm6 with SMTP id m6so95248120wgd.2 for ; Fri, 27 Mar 2015 03:59:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :content-type:content-transfer-encoding; bh=oFsdthr4tpVWF2zTl91xpaDy2QUQkt31lVlH088RIH0=; b=G8jsKbpXwkEB8siNgDMxEuI2fAaDoJZp7xlq2bzdDJ6kkZDsknevdIYim91qiVh7Rc jn5jPUEv9Tiqj9QDb81eNzr8XZvrqS+s7hwvjw/lF4+74Pl4inRqpwlf8XvkJ12hSdCU qOu5z3H6hwWN/Wnr4TMnTUX9C77tHecuUd8ph677BfcLsQDlKAM2AE0oamHR17wFDhuw q37PmWIQ7IE+HVTfPDvnVQOgL5FHHvCzpAllMOvTk+iuliYzdZ8EbUmUF6JBYSjc9NQH JYyso/po5tT1qmnJQm+y/pxjCAUQ3Wc41fWaQFOMQO7ulIl8Eq/5lHmbarUG68hQWSE+ +eEg== X-Received: by 10.194.178.164 with SMTP id cz4mr36068294wjc.140.1427453961374; Fri, 27 Mar 2015 03:59:21 -0700 (PDT) Received: from [172.17.255.60] (host81-138-205-228.in-addr.btopenworld.com. [81.138.205.228]) by mx.google.com with ESMTPSA id 14sm2299270wjv.29.2015.03.27.03.59.20 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 27 Mar 2015 03:59:20 -0700 (PDT) Message-ID: <551537ED.7060402@gmail.com> Date: Fri, 27 Mar 2015 10:58:53 +0000 From: Iain Paton User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121011 Thunderbird/16.0.1 MIME-Version: 1.0 To: Maxime Ripard , linux-arm-kernel@lists.infradead.org Subject: [PATCH] sunxi: a10-lime: add regulator nodes X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150327_035943_902427_2F35D4B2 X-CRM114-Status: UNSURE ( 8.81 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.6 (/) Cc: Hans de Goede X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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 add pmic regulator definitions matching the manufacturers 3.4.x fex file. Signed-off-by: Iain Paton --- As this file belongs to Hans and he decided not to use axp209.dtsi in http://lists.infradead.org/pipermail/linux-arm-kernel/2015-January/315612.html then I won't add it here. arch/arm/boot/dts/sun4i-a10-olinuxino-lime.dts | 68 ++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) diff --git a/arch/arm/boot/dts/sun4i-a10-olinuxino-lime.dts b/arch/arm/boot/dts/sun4i-a10-olinuxino-lime.dts index 31dc2f1..f7a8fcc 100644 --- a/arch/arm/boot/dts/sun4i-a10-olinuxino-lime.dts +++ b/arch/arm/boot/dts/sun4i-a10-olinuxino-lime.dts @@ -67,6 +67,15 @@ default-state = "on"; }; }; + + reg_axp_ipsout: axp_ipsout { + compatible = "regulator-fixed"; + regulator-name = "axp-ipsout"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <5000000>; + regulator-always-on; + }; + }; &ahci { @@ -97,10 +106,69 @@ axp209: pmic@34 { compatible = "x-powers,axp209"; reg = <0x34>; + interrupt-parent = <&intc>; interrupts = <0>; interrupt-controller; #interrupt-cells = <1>; + + acin-supply = <®_axp_ipsout>; + vin2-supply = <®_axp_ipsout>; + vin3-supply = <®_axp_ipsout>; + ldo24in-supply = <®_axp_ipsout>; + ldo3in-supply = <®_axp_ipsout>; + + x-powers,dcdc-freq = <1500>; + + regulators { + vdd_rtc: ldo1 { + regulator-min-microvolt = <1300000>; + regulator-max-microvolt = <1300000>; + regulator-always-on; + regulator-name="vdd_rtc"; + }; + + avcc: ldo2 { + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3000000>; + regulator-always-on; + regulator-name="avcc"; + }; + + vcc_csi0: ldo3 { + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; + regulator-always-on; + regulator-name="vcc_csi0"; + }; + + vcc_csi1: ldo4 { + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; + regulator-always-on; + regulator-name="vcc_csi1"; + }; + + ldo5 { + regulator-min-microvolt = <2800000>; + regulator-max-microvolt = <2800000>; + regulator-name="reg_unused"; + }; + + vdd_cpu: dcdc2 { + regulator-min-microvolt = <1250000>; + regulator-max-microvolt = <1550000>; + regulator-always-on; + regulator-name="vdd_cpu"; + }; + + vdd_int: dcdc3 { + regulator-min-microvolt = <1250000>; + regulator-max-microvolt = <1250000>; + regulator-always-on; + regulator-name="vdd_int"; + }; + }; }; };