Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2904022iog; Mon, 27 Jun 2022 05:27:50 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vdTCLm8FKEx5goFRd6Eq0jb2OpjAqkW4vdM/WAAzJ/P61RFbZYzxDlyf4LYdRDz0/h9J7g X-Received: by 2002:a05:6402:40d4:b0:435:d900:6d4b with SMTP id z20-20020a05640240d400b00435d9006d4bmr16182604edb.154.1656332870638; Mon, 27 Jun 2022 05:27:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656332870; cv=none; d=google.com; s=arc-20160816; b=F6UVLyGGhnOd7NDDz9lBn0MHFFwiJT5nUfWETMk8ZFLL6cXXrvTKlDhx2ptS95+mb4 cqjZLKfjQ8VufOkYxRLF9zOgV8MjmXrDeS+JKQ34RcyF27Zxwrat9n1nD4yNhaO8IWu5 q2hK4w6ORzng/pXj9+7iCpdGate579BfTH8hU9ACZpTIuKc7pkYY+DlJZnrzty8b7x/j 5CBtf3i3VfPGygS8cnFP0CL9vGEvfqrUDqU+UkeBzC+SlvxwppS2qCUjj4WEdnBVcThY zJJNuQYg0H8iMUSgiPzI76xW9hJfRK8a7CKsN6Od/Y7ig83oD7Zf9rEqi8XmaFZt5hPy ixng== 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=CwMKo1NXFnagBRfdyuGSxAQIkcHKL1V232GrPmH9nF0=; b=D9V5jCuJ3rm35OVP9QdXr50VOqYh0PjX9a+orjMEbLLxdGSW7juRGRiTAzczlFpg5G iuWV2J/IdRI32bSVBboVhhBU5zLPxnDJ5eRQXsA1IJfPVbnWRSdpWVBB3f7eW1ELGnQp qHq0dlKPEXzTn1rCkOk1T4GZCEERB1q4qK2Ypahn1zsmG70XhplQxiciiw1rtImwoSP5 xyhI3a5V7fK+itGxvYjQpR0HzERGDuBNPoti912Wqyjj06HlBKNp02bYSZ1VkXpJIoRR +CTOK3iIqbALbDN0nQpKd9hEx6HNfk5LdJyIKvMGM2UqnzVZMnSBOcVJeVjXKtrzMOE8 zjbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=M6QaMv9V; 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 f16-20020a0564021e9000b00425d8c9efd2si14734948edf.152.2022.06.27.05.27.25; Mon, 27 Jun 2022 05:27:50 -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=M6QaMv9V; 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 S235259AbiF0L2t (ORCPT + 99 others); Mon, 27 Jun 2022 07:28:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235247AbiF0L13 (ORCPT ); Mon, 27 Jun 2022 07:27:29 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07A5895A3; Mon, 27 Jun 2022 04:27:07 -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 154CC6149A; Mon, 27 Jun 2022 11:27:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0B3DFC3411D; Mon, 27 Jun 2022 11:27:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1656329226; bh=jaYeSq8RMd7CvRO05tklhk/K8wwDlJj9FKd33kmk2SU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=M6QaMv9Vkq+XZnTGCPwHKDWBSa6mMdgxfSlkPSjvbGe8u0GSfUeuVivpO1a6pCDBY 1wC9C/9W4eVpqfDvNUIKl0+xXdrpkdIHmA3JPWS6yNl6sQ1tW7muipDTW3AwCB/fdG VXqLo2Vck/4M472Do3/Tq0a4kfHWVLgIyVtF6bVk= 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.10 093/102] ARM: dts: imx6qdl: correct PU regulator ramp delay Date: Mon, 27 Jun 2022 13:21:44 +0200 Message-Id: <20220627111936.225858508@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220627111933.455024953@linuxfoundation.org> References: <20220627111933.455024953@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 @@ -756,7 +756,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>;