From patchwork Wed Jul 12 09:42:46 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean-Jacques Hiblot X-Patchwork-Id: 107472 Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp584824qge; Wed, 12 Jul 2017 02:43:03 -0700 (PDT) X-Received: by 10.80.132.69 with SMTP id 63mr5534444edp.173.1499852583201; Wed, 12 Jul 2017 02:43:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1499852583; cv=none; d=google.com; s=arc-20160816; b=n1/bkTNQ2E8ww+kN7aGCGVnn+m/DRzz00RBcbpYXCiXwXNlSxvlixXmHFRjIRX0ECr KdkRfr94FY6zYNhL25w3nrav6hhPtXoSCuh2omqXfuCGlUxYaCp+w+6r4Mdn2mcGhduj TTayVROum++p3u9DQljxbh2yVBosB1ID/evS2hHKEvlehC1WOSha02q1caxOfuZEaZZc PaOFyWx5+hMrKmtgPWtW6c5jfMMn3+qvJbG89S2+Qf0RZ6UJLf61GHwB6kR4zxUJzr1H /RJe6itkkxrHz/lAZQm/AYijAWeXj8Ba3GU7nvUcfv1WFkY7+AEs+H7vRwZoOQ7khIcA 3okg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:references:in-reply-to:message-id:date:to:from :dkim-signature:arc-authentication-results; bh=3b07hwnvTQPJETe4SGnc6NLeHiJN3mA8uJYXx8cSbtM=; b=K2so3dhiM1VXqOfeZIBdc7sVUQn7qjNjdEpC3K+cSLJjOt1Bm/H995ToECMgHxjVkS JAzV4s4xQBrdbhcYwNAv17oLON1GjH4oTc2HYZiQA3WhgvG61wfWUuvtPTTpA8/tBAgj oHmbMot6B+HVHfingQYJ6ymYiFNFK27z8UCMc729mBE9S/d2ktGR6jhCQqM/jaZEl/uK MDN3gMVy0SQsxAUunjTx7/mlPAjC71oNSTVRw1Vx/JX2n3yq53fjGz0/yFemnuFkGENB 2pcztw+StzLJ3EHVydNZqB5bm+VV67KjE9qInujbVClUf7P9GWPXmWiAewi5NAlHoJ5I I7yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.b=BHNoqY6C; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id 33si1813654edu.184.2017.07.12.02.43.02; Wed, 12 Jul 2017 02:43:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@ti.com header.b=BHNoqY6C; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: by lists.denx.de (Postfix, from userid 105) id 67DCDC21EFF; Wed, 12 Jul 2017 09:42:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 2FC51C21D09; Wed, 12 Jul 2017 09:42:57 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id D6694C21D09; Wed, 12 Jul 2017 09:42:55 +0000 (UTC) Received: from lelnx194.ext.ti.com (lelnx194.ext.ti.com [198.47.27.80]) by lists.denx.de (Postfix) with ESMTPS id AABC1C21C51 for ; Wed, 12 Jul 2017 09:42:53 +0000 (UTC) Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by lelnx194.ext.ti.com (8.15.1/8.15.1) with ESMTP id v6C9gpE2021751; Wed, 12 Jul 2017 04:42:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1499852571; bh=JeW+mYSxXvkPM6qe17nvCSPJIxs+DyD1icv4aBFUEEc=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=BHNoqY6CvEgJ4f23Cun1X37ojMBaK/UcazI0/ZAAK4EPOjHfZ1xZJPxxSjrZKkpAa En8cumDxew5IEEtMpFk9ilOiCku7cwpnA/3ZGmWAS9qlB7zEomVrXxwx3HtZX1lGAq 1n5b8iwzZqH92E0SKuAOAlNFCO5EWGvCXqsHbVwk= Received: from DLEE71.ent.ti.com (dlee71.ent.ti.com [157.170.170.114]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id v6C9gpRi019267; Wed, 12 Jul 2017 04:42:51 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DLEE71.ent.ti.com (157.170.170.114) with Microsoft SMTP Server id 14.3.294.0; Wed, 12 Jul 2017 04:42:50 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id v6C9goGr006869; Wed, 12 Jul 2017 04:42:50 -0500 From: Jean-Jacques Hiblot To: , , , , , Date: Wed, 12 Jul 2017 11:42:46 +0200 Message-ID: <1499852567-28165-2-git-send-email-jjhiblot@ti.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1499852567-28165-1-git-send-email-jjhiblot@ti.com> References: <1499852567-28165-1-git-send-email-jjhiblot@ti.com> MIME-Version: 1.0 Subject: [U-Boot] [PATCH 1/2] regulator: palmas: Add support for LDO1 regulator to provide 1.8V X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" From: Kishon Vijay Abraham I Modify palmas_mmc1_poweron_ldo() API to set the voltage based on the voltage parameter passed as argument instead of always setting it to 3.0V. This allows MMC1 to set the LDO1 regulator voltage to 3.3V or 1.8V. 1.8V is required to add support for UHS mode. Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Tom Rini --- drivers/power/palmas.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/power/palmas.c b/drivers/power/palmas.c index c813b21..4e98959 100644 --- a/drivers/power/palmas.c +++ b/drivers/power/palmas.c @@ -50,10 +50,9 @@ int palmas_mmc1_poweron_ldo(uint voltage) int ret; /* * Currently valid for the dra7xx_evm board: - * Set TPS659038 LDO1 to 3.0 V + * Set TPS659038 LDO1 to 3.0 V or 1.8V */ - val = LDO_VOLT_3V0; - ret = palmas_i2c_write_u8(TPS65903X_CHIP_P1, LDO1_VOLTAGE, val); + ret = palmas_i2c_write_u8(TPS65903X_CHIP_P1, LDO1_VOLTAGE, voltage); if (ret) { printf("tps65903x: could not set LDO1 voltage.\n"); return ret;