Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2909209iog; Mon, 27 Jun 2022 05:33:56 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sV1oCfU6JFepMV+3CxGYg4Fr/qHT1e6iVzuWCfivq68gP5wp5AyLY+gftbgy81B2yv2lxW X-Received: by 2002:a17:907:961f:b0:726:9aee:f061 with SMTP id gb31-20020a170907961f00b007269aeef061mr6608885ejc.45.1656333235898; Mon, 27 Jun 2022 05:33:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656333235; cv=none; d=google.com; s=arc-20160816; b=u/cKUF8QSFGDnBoAjPSg5ZBCHG518IyMmFzO0UpJDK6tF+RYFTseIz9fiS6dTXiFu8 U1zdA60PeUN81vcOVGLvWIK/EEIUwAt7bwhSFv1aj4qrsmsRBJ5PQCx873wtwqVZPZOL xWNMtPx6GkOyP5opSy6NfTu7nFw/lrJuNv7oCdL++uGy1T+aYNFWs4l59F05cdKs0eWc Eb/h+pPaJOKpis+s8+sfrRu6hz06vkKjC127b4PtmrbtJWPb9CKWWMqpOFioDK52tTyS eLd3ejIs5EOlm7RHlozAuggixJWLTskNn5KBNjgXyvOapwhDL6IV+kKtCMSH3umJJTNT Zzyg== 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=uMHh3EOuFEnuQGAVGzKqCr4S/rcIq6Ihuj+iDIuOjjU=; b=gm1KhFmh8RUGwmVKyBAXMywRWmEGl3/m6L1KIllnsAVwDVoeNgxjAgyoh7RmGqoMhF 6ohTsFjCvDFWbGUAN/DHkeS9wENaj7LI9IETVZhrc6rUAe4+niWqZobJSnK2FljgudKx s8wjMfaRaUGDJ3hIA2nVnuC2x4piaO8CoOr0lWzxIUbO4zrO1Rdfv1PcIEhplAYJrtdC 5f5vk2eKcj2Ej553M+S6yjiqwNXAuSyJ/ocPTOZXmGZxRfYP8STYFkh39tGYqfeDNtRM 2ZW//eHSUDhHOLKCr72oMmFisbWk5kVWINbPIyqX+ZYsi28tntRE9tWnyV2ZZ9U/ojaT uDMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=af7puuye; 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 ht8-20020a170907608800b00726c53b9203si209159ejc.860.2022.06.27.05.33.30; Mon, 27 Jun 2022 05:33:55 -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=af7puuye; 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 S236075AbiF0LfY (ORCPT + 99 others); Mon, 27 Jun 2022 07:35:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56098 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236325AbiF0Ldh (ORCPT ); Mon, 27 Jun 2022 07:33:37 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E985DEAC; Mon, 27 Jun 2022 04:30:57 -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 0B253612D8; Mon, 27 Jun 2022 11:30:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0C3F2C3411D; Mon, 27 Jun 2022 11:30:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1656329456; bh=CE16h4Za8gFzCYa0eRZvLILjAcKuoaholZwAc3agvQI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=af7puuye9HCFPQ2GVW6VnuO21O95dzcb7EsXwSXuZxRCxq7+Akq5GzxX5SEPDSnGP fJNl5O5DyBOAV/j3TI8gOFh83cQlgU8XprK7hNR7oi19PboFJ0qmsmKIo3gfRMyTI+ EPN1anO+bZryWTQGxYhIu92DYumxUWRATqmNUXQY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Lucas Stach , Shawn Guo Subject: [PATCH 5.4 52/60] ARM: dts: imx6qdl: correct PU regulator ramp delay Date: Mon, 27 Jun 2022 13:22:03 +0200 Message-Id: <20220627111929.221347169@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220627111927.641837068@linuxfoundation.org> References: <20220627111927.641837068@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 @@ -766,7 +766,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>;