Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp2910075iog; Mon, 27 Jun 2022 05:34:50 -0700 (PDT) X-Google-Smtp-Source: AGRyM1v3oMooENCtN0YRvwsRQ2AgiqaMiDzo85Mfh9Yk+cbkVuYLShfoPD+rtSPrlyFKQA+cWtXI X-Received: by 2002:a05:6a00:1a0e:b0:523:1e7c:e26e with SMTP id g14-20020a056a001a0e00b005231e7ce26emr14601092pfv.60.1656333290215; Mon, 27 Jun 2022 05:34:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656333290; cv=none; d=google.com; s=arc-20160816; b=IMhSDHQYTvlRRtmYzy7CD0o1R7g+LuTJqX1Flkyg80uGUEkKj5y0JLG1NhpbiGrCv/ OLyV1sUP2dtGBHjLAaYojmgjWBJv5e/SQ6cTkO8JlT31iLfXlQrhnRGPYVnThJzqXnYp OhFj7SDK1K8JKkzY+hX+EHx2AS20bAKpRUd8WaveHIyYAXR7gfBRKIuaqQRSim9nZm9Y DqNPEvAQtSf8s129XcGuB2R0pSD+rpnyVgYYAf7JPKSCH8vv2Lx3pyWiF46XX1JOL/VG 99un4fB00OpKL8KfoJ2d0rAECuqY+tfE8kAlJxQu5/+E7EcAO/RcDiDFtg0YrrzIM5Bv h/4g== 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=WVi5YWPXWj/LpYa9h4QjmqjRSZu0oqdU1HJdKszXGdI=; b=RjTvFsd4hydBUYf5NOdW7ZtxPqswkvyRpadgThSSxzDnLvQV7G9Cj9YfSLUXBqHI/F y+HJdp7er2/xhZoM70aep8dUdWEhN2ejdbApSD7tnc1l0qoOuAUfzFKhj29BxHAKqzsj gmh/Z03FIaAKWtSWDkCrCqjFT7uGPiv3qG7Lj6HD8SunRHhMApVZEbiI4EiwQRwqnHXA +ytxgTKllHHb5vrtjRNvaqTYSuRvUEgeVVC0M8mvAXeyGkwl3h/TUQ8hUwAI4Xq4C+WY hd6FDWxZuiHL7y7vGMufF4BhQY03dcpD7cVBljPWAL96UI+Q9T6OMkT/UWKBTHq/gugS bzoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=1OD2Kf0R; 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 w4-20020a63c104000000b0040d3e6f0ee2si15129551pgf.656.2022.06.27.05.34.37; Mon, 27 Jun 2022 05:34: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=1OD2Kf0R; 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 S239334AbiF0L7i (ORCPT + 99 others); Mon, 27 Jun 2022 07:59:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238794AbiF0Lwi (ORCPT ); Mon, 27 Jun 2022 07:52:38 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2ECF9DE9A; Mon, 27 Jun 2022 04:45:44 -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 ams.source.kernel.org (Postfix) with ESMTPS id B93A9B80D37; Mon, 27 Jun 2022 11:45:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 08C1BC341CB; Mon, 27 Jun 2022 11:45:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1656330341; bh=R9WiNoA1Z375yZXr23Z0fc8V/aSxJXUXwDvhAfWi05s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=1OD2Kf0RgqDMjdY+g1T3GPSXc8J889D5gpltCgVSVr7I4Cw/R3xawokeWkyWA1Ant FDviB1X4/1EoGqn7frmF16hAe/woTd1PcHRI5GEsHmMZ4fQ9rRpYIQ6/xpFje9I1/k O+pe3IKhjkCY+VO024nAYbXFKzRPB8OSsD58O2f8= 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.18 164/181] ARM: dts: imx6qdl: correct PU regulator ramp delay Date: Mon, 27 Jun 2022 13:22:17 +0200 Message-Id: <20220627111949.442997221@linuxfoundation.org> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20220627111944.553492442@linuxfoundation.org> References: <20220627111944.553492442@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 @@ -762,7 +762,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>;