Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp10240224ybi; Wed, 24 Jul 2019 19:06:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqyDQa5OUVmx8h0aIF6Jun2oxMEkCNKe5PuYuzdXwNhze5U4PJ5Tm7bMlyGzFJAtKK29WgD3 X-Received: by 2002:a62:8f91:: with SMTP id n139mr14528147pfd.48.1564020360247; Wed, 24 Jul 2019 19:06:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564020360; cv=none; d=google.com; s=arc-20160816; b=ytFxK8eaM2ZYqALYtueBhuMDIuDu6g9If3CtHUW/vCyuyADK9F1/ZNqdN7Yueo3c9l 01xLJXYn0gNyrRvLAXnclMi7T9VzO+9QVKx10Whd6GglZTb4ONF+Cb5WdXg6+vFZNgRp LUmYAnZsNnK841XGLeE1i7Na9bsKkF7SpLupmn22weqgNQA/EaYeHTLp9yuaH++RX3IZ k4ZE9Kn3MFzxKMrs5tXgicCxoDvYSZYyPA08btIcCAiEQaqKWfIefpkJSfT0xgn7pRg8 Pvj3B5r5ENbFZzFZgMEFdUnafMD94c/Rnt+BA2vfo4B+zMBkSlvY5HrtE+d0Wc5CxEX6 bBdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=d0p2aX3YYscsBQDb0VKNiyv6jok+WEUJg3TYrXdhP2Y=; b=f25Ja8CQWi/jxgRN2q/rBs+2rVbh70wi4q7gddCHbUNZFHKjcQQfNg8ZxcTF46iNW3 hWfS5IkbiyD8D6SJVVnhtuo0rd0QTe06ap3F76bYh6+Xalbwl8IQrAE3PR5cCnFwTJ/R 3YXS3Teh+hcjUmmVRtwIoqynhnD9TnVUzqBlnLkVBp+k/pRDnMBiC2Tqmhm+clJWpNJd Ft1kr3+BFVsGJQ5lm3jKeGOb+2SOjagmPn0lcH6bugsYa5PIuBdmV7Nuplach3hqd52g BurYKzhoZQK4aQssmGvuwIkrdaw0u4hXUofkICIjhHdX4w4rlVli49XaBeEncx0Gds3f 6HTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=w0rJPAae; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w4si16234603plz.323.2019.07.24.19.05.43; Wed, 24 Jul 2019 19:06:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=w0rJPAae; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389392AbfGXThE (ORCPT + 99 others); Wed, 24 Jul 2019 15:37:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:36894 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389377AbfGXThB (ORCPT ); Wed, 24 Jul 2019 15:37:01 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D8D2620665; Wed, 24 Jul 2019 19:36:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1563997020; bh=wLenPchzmHu2bxlRqWuzksxeHYWnPHMNI1svPZQDuIw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=w0rJPAae0UwSXEL86pS80KUwcjaOCSiyv/zG8Deq+yAt7fzK7f74c/BWWKhO1w6lZ oLZJnX+pz/iZilqRjUZ5zqc3mw5BTyuW5RluGZEU5issbc+4HSJlrUx7DBDR/kyDwD GI4AIiuQ5cEg2LlohrCfBkQRiq33VII6Ej3clJr8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jon Hunter , Thierry Reding Subject: [PATCH 5.2 293/413] arm64: tegra: Fix Jetson Nano GPU regulator Date: Wed, 24 Jul 2019 21:19:44 +0200 Message-Id: <20190724191757.121960621@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190724191735.096702571@linuxfoundation.org> References: <20190724191735.096702571@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jon Hunter commit 434e8aedeaec595933811c2af191db9f11d3ce3b upstream. There are a few issues with the GPU regulator defined for Jetson Nano which are: 1. The GPU regulator is a PWM based regulator and not a fixed voltage regulator. 2. The output voltages for the GPU regulator are not correct. 3. The regulator enable ramp delay is too short for the regulator and needs to be increased. 2ms should be sufficient. 4. This is the same regulator used on Jetson TX1 and so make the ramp delay and settling time the same as Jetson TX1. Cc: stable@vger.kernel.org Signed-off-by: Jon Hunter Fixes: 6772cd0eacc8 ("arm64: tegra: Add NVIDIA Jetson Nano Developer Kit support") Signed-off-by: Thierry Reding Signed-off-by: Greg Kroah-Hartman --- arch/arm64/boot/dts/nvidia/tegra210-p3450-0000.dts | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) --- a/arch/arm64/boot/dts/nvidia/tegra210-p3450-0000.dts +++ b/arch/arm64/boot/dts/nvidia/tegra210-p3450-0000.dts @@ -633,17 +633,16 @@ }; vdd_gpu: regulator@6 { - compatible = "regulator-fixed"; + compatible = "pwm-regulator"; reg = <6>; - + pwms = <&pwm 1 4880>; regulator-name = "VDD_GPU"; - regulator-min-microvolt = <5000000>; - regulator-max-microvolt = <5000000>; - regulator-enable-ramp-delay = <250>; - - gpio = <&pmic 6 GPIO_ACTIVE_HIGH>; - enable-active-high; - + regulator-min-microvolt = <710000>; + regulator-max-microvolt = <1320000>; + regulator-ramp-delay = <80>; + regulator-enable-ramp-delay = <2000>; + regulator-settling-time-us = <160>; + enable-gpios = <&pmic 6 GPIO_ACTIVE_HIGH>; vin-supply = <&vdd_5v0_sys>; }; };