From patchwork Mon Aug 11 11:38: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: 4706791 Return-Path: X-Original-To: patchwork-linux-samsung-soc@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 AB457C0338 for ; Mon, 11 Aug 2014 11:39:33 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D724920122 for ; Mon, 11 Aug 2014 11:39:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E89032011D for ; Mon, 11 Aug 2014 11:39:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752882AbaHKLiz (ORCPT ); Mon, 11 Aug 2014 07:38:55 -0400 Received: from bhuna.collabora.co.uk ([93.93.135.160]:37511 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751649AbaHKLia (ORCPT ); Mon, 11 Aug 2014 07:38:30 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: javier) with ESMTPSA id B0937603180 From: Javier Martinez Canillas To: Kukjin Kim Cc: Doug Anderson , Olof Johansson , Yuvaraj Kumar C D , Mark Brown , linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Javier Martinez Canillas Subject: [RESEND PATCH 2/2] ARM: dts: Add tps65090 FET constraints on Peach Pit and Pi Date: Mon, 11 Aug 2014 13:38:11 +0200 Message-Id: <1407757091-18730-2-git-send-email-javier.martinez@collabora.co.uk> X-Mailer: git-send-email 2.0.0.rc2 In-Reply-To: <1407757091-18730-1-git-send-email-javier.martinez@collabora.co.uk> References: <1407757091-18730-1-git-send-email-javier.martinez@collabora.co.uk> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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 {