From patchwork Thu Jul 31 11:55:11 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Martinez Canillas X-Patchwork-Id: 4655491 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.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id A085FC0338 for ; Thu, 31 Jul 2014 11:59:06 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B781A2017A for ; Thu, 31 Jul 2014 11:59:05 +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 DB04F20103 for ; Thu, 31 Jul 2014 11:59:04 +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 1XCoyP-00033v-CR; Thu, 31 Jul 2014 11:56:41 +0000 Received: from bhuna.collabora.co.uk ([93.93.135.160]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XCoy1-0002it-Fg for linux-arm-kernel@lists.infradead.org; Thu, 31 Jul 2014 11:56:18 +0000 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: javier) with ESMTPSA id 11E9E608D20 From: Javier Martinez Canillas To: Kukjin Kim Subject: [PATCH 2/2] ARM: dts: Add tps65090 FET constraints on Peach Pit and Pi Date: Thu, 31 Jul 2014 13:55:11 +0200 Message-Id: <1406807711-19955-3-git-send-email-javier.martinez@collabora.co.uk> X-Mailer: git-send-email 2.0.0.rc2 In-Reply-To: <1406807711-19955-1-git-send-email-javier.martinez@collabora.co.uk> References: <1406807711-19955-1-git-send-email-javier.martinez@collabora.co.uk> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140731_045617_870989_4A089F4A X-CRM114-Status: UNSURE ( 9.48 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) Cc: linux-samsung-soc@vger.kernel.org, Doug Anderson , linux-kernel@vger.kernel.org, Mark Brown , Olof Johansson , Javier Martinez Canillas , linux-arm-kernel@lists.infradead.org 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: , 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=-2.6 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD, 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 Both Exynos5420 Peach Pit and Exynos5800 Peach Pi boards have a tps65090 PMU that has a number of switches (FETs) that are just on/off devices but they do have a current limit and the output voltage of the switch is ramped up within a controlled slope. After the switch is turned on, a safety timer is started and before this timer times out the output voltage must have reached the input voltage. Otherwise the switch is turned off expecting an overload condition. So using the maximum output voltage slew rate and the timer minimum and maximum timeouts, a voltage constraints can be expressed as bounded limits for the timeout. That is what is used in the board schematics and should be in the DT too. Signed-off-by: Javier Martinez Canillas --- arch/arm/boot/dts/exynos5420-peach-pit.dts | 14 ++++++++++++++ arch/arm/boot/dts/exynos5800-peach-pi.dts | 14 ++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/arch/arm/boot/dts/exynos5420-peach-pit.dts b/arch/arm/boot/dts/exynos5420-peach-pit.dts index d8710c1..eefafe6 100644 --- a/arch/arm/boot/dts/exynos5420-peach-pit.dts +++ b/arch/arm/boot/dts/exynos5420-peach-pit.dts @@ -386,27 +386,41 @@ }; tps65090_fet1: fet1 { regulator-name = "vcd_led"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <1700000>; }; tps65090_fet2: fet2 { regulator-name = "video_mid"; + regulator-min-microvolt = <4500000>; + regulator-max-microvolt = <5500000>; regulator-always-on; }; tps65090_fet3: fet3 { regulator-name = "wwan_r"; + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <5500000>; regulator-always-on; }; tps65090_fet4: fet4 { regulator-name = "sdcard"; + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <5500000>; regulator-always-on; }; tps65090_fet5: fet5 { regulator-name = "camout"; + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <5500000>; }; tps65090_fet6: fet6 { regulator-name = "lcd_vdd"; + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <5500000>; }; tps65090_fet7: fet7 { regulator-name = "video_mid_1a"; + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <5500000>; regulator-always-on; }; tps65090_ldo1: ldo1 { diff --git a/arch/arm/boot/dts/exynos5800-peach-pi.dts b/arch/arm/boot/dts/exynos5800-peach-pi.dts index 07b29b7..5c38bc0 100644 --- a/arch/arm/boot/dts/exynos5800-peach-pi.dts +++ b/arch/arm/boot/dts/exynos5800-peach-pi.dts @@ -384,27 +384,41 @@ }; tps65090_fet1: fet1 { regulator-name = "vcd_led"; + regulator-min-microvolt = <5000000>; + regulator-max-microvolt = <1700000>; }; tps65090_fet2: fet2 { regulator-name = "video_mid"; + regulator-min-microvolt = <4500000>; + regulator-max-microvolt = <5500000>; regulator-always-on; }; tps65090_fet3: fet3 { regulator-name = "wwan_r"; + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <5500000>; regulator-always-on; }; tps65090_fet4: fet4 { regulator-name = "sdcard"; + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <5500000>; regulator-always-on; }; tps65090_fet5: fet5 { regulator-name = "camout"; + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <5500000>; }; tps65090_fet6: fet6 { regulator-name = "lcd_vdd"; + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <5500000>; }; tps65090_fet7: fet7 { regulator-name = "video_mid_1a"; + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <5500000>; regulator-always-on; }; tps65090_ldo1: ldo1 {