Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp668272iog; Thu, 30 Jun 2022 08:02:27 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uDgJcrke9VqXauhA2ZQ+9nmhh+3Bd8RKYM3Nlvqp1wxIXbGc3TUu7vV+Ezk9IP0jCC6hy2 X-Received: by 2002:aa7:8bd3:0:b0:527:d84d:fa83 with SMTP id s19-20020aa78bd3000000b00527d84dfa83mr12104973pfd.30.1656601347403; Thu, 30 Jun 2022 08:02:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656601347; cv=none; d=google.com; s=arc-20160816; b=ctVidyL8XFjhgc/VQLwb4y1dFQF3XhW1GK2u4RuMIgDhQrfT6nJrAKNJOsAYShpitx yxtIQBAYyjysubooXcZ3FA0gTeEj8b45OwjHCahjfClhg7zz2N/bI8760Jckl6KePhW9 do550keAzT6xWm69SSDAa4br4VSDRrbE5jTsgZ8S8nLuo+uKR97PmtVcNZJSugqoZT1F srd4S63yFVckgIPVrdVc+as/QFc4sxbrmqldz6suZVkn/ulopcM80CUoNM2MHuZ2Z4e8 y8VSgpqLj2JlfGw9rPOWrokOwsKNidgA16etc/jKXUsDNDp5ASahRTJEVEumzumLK0E1 A0ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=dT3tBLqojRH6t0aYvXIcLOAQ8cqalAlE567n97cqJG8=; b=1AgFEmgmU7iigXHmn3pgX+34xTcpQqWeyWg8h4riQLqysraEkGvZ+Bggd0HamskNtv 0UaQDtUqTYcIpfFvnD0J59u0JF+bKGN1REG+8OymVJxfJZlpzc7z0fKEUyfUw/HIU4FW EX2tJp+QomeC7+9Sb1zEIlBS6MemvAwz61Cwq/Io2aU/rECnk0Yhu04IyeztBXSoZpN8 Ic8A5N0vqhWPdgeka/1ZLd8wJklKQRJ7Q6dmhGMxPNvCHBqDJmTPwiub1h+ZWaEqOh0E zcx6YYLfpPr6C+CcvsS+7WF+ML5kqN98qAk2a4nM+Fic2tXdKd89sSlfpXN8Qr7TcN07 5TBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Oxu5VyJt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 66-20020a630045000000b0040d4352bc21si24505850pga.716.2022.06.30.08.02.08; Thu, 30 Jun 2022 08:02:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Oxu5VyJt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235860AbiF3NyE (ORCPT + 99 others); Thu, 30 Jun 2022 09:54:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235877AbiF3Nwp (ORCPT ); Thu, 30 Jun 2022 09:52:45 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD24B4D4FE; Thu, 30 Jun 2022 06:49:55 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 4A4746200C; Thu, 30 Jun 2022 13:49:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 52419C34115; Thu, 30 Jun 2022 13:49:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1656596994; bh=o3tqqsF5eFwjKTHYgfSEao3TrrhqYt7yT8Nw8o9EBlY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Oxu5VyJtSoMOQhwfvhOIyoeMArtKxZ9keMc/hbLKxl9DGbQeKVWlK9bNVYJOZifun 09cJMVvep0MbMkM2vza19hzW/+YndZpm1ZNM4PIi2Bb52Oda769J5MZALCb+KyzI9i 8HNXKV+/x+VbGFnq5iRXZycUe8U18Lu7jgll7id4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Lucas Stach , Shawn Guo Subject: [PATCH 4.14 25/35] ARM: dts: imx6qdl: correct PU regulator ramp delay Date: Thu, 30 Jun 2022 15:46:36 +0200 Message-Id: <20220630133233.179789514@linuxfoundation.org> X-Mailer: git-send-email 2.37.0 In-Reply-To: <20220630133232.433955678@linuxfoundation.org> References: <20220630133232.433955678@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Lucas Stach commit 93a8ba2a619816d631bd69e9ce2172b4d7a481b8 upstream. Contrary to what was believed at the time, the ramp delay of 150us is not plenty for the PU LDO with the default step time of 512 pulses of the 24MHz clock. Measurements have shown that after enabling the LDO the voltage on VDDPU_CAP jumps to ~750mV in the first step and after that the regulator executes the normal ramp up as defined by the step size control. This means it takes the regulator between 360us and 370us to ramp up to the nominal 1.15V voltage for this power domain. With the old setting of the ramp delay the power up of the PU GPC domain would happen in the middle of the regulator ramp with the voltage being at around 900mV. Apparently this was enough for most units to properly power up the peripherals in the domain and execute the reset. Some units however, fail to power up properly, especially when the chip is at a low temperature. In that case any access to the GPU registers would yield an incorrect result with no way to recover from this situation. Change the ramp delay to 380us to cover the measured ramp up time with a bit of additional slack. Fixes: 40130d327f72 ("ARM: dts: imx6qdl: Allow disabling the PU regulator, add a enable ramp delay") Signed-off-by: Lucas Stach Signed-off-by: Shawn Guo Signed-off-by: Greg Kroah-Hartman --- arch/arm/boot/dts/imx6qdl.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/arm/boot/dts/imx6qdl.dtsi +++ b/arch/arm/boot/dts/imx6qdl.dtsi @@ -699,7 +699,7 @@ regulator-name = "vddpu"; regulator-min-microvolt = <725000>; regulator-max-microvolt = <1450000>; - regulator-enable-ramp-delay = <150>; + regulator-enable-ramp-delay = <380>; anatop-reg-offset = <0x140>; anatop-vol-bit-shift = <9>; anatop-vol-bit-width = <5>;