From patchwork Wed Jul 7 12:58:02 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Teresa Remmet X-Patchwork-Id: 1501724 X-Patchwork-Delegate: sbabic@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=phytec.de header.i=@phytec.de header.a=rsa-sha256 header.s=a4 header.b=EAX/Lpt5; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4GKfdV6F7Pz9sWc for ; Wed, 7 Jul 2021 22:59:26 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9655082E12; Wed, 7 Jul 2021 14:58:34 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=phytec.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=phytec.de header.i=@phytec.de header.b="EAX/Lpt5"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2734E82E2B; Wed, 7 Jul 2021 14:58:22 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_HELO_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mickerik.phytec.de (mickerik.phytec.de [195.145.39.210]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 9314082E0E for ; Wed, 7 Jul 2021 14:58:06 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=phytec.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=t.remmet@phytec.de DKIM-Signature: v=1; a=rsa-sha256; d=phytec.de; s=a4; c=relaxed/simple; q=dns/txt; i=@phytec.de; t=1625662686; x=1628254686; h=From:Sender:Reply-To:Subject:Date:Message-Id:To:Cc:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=FFg6GX6GHddcI+SfuLopwez8DwrJSbaQa6ZcHUQf0pU=; b=EAX/Lpt5+pHUdkOql2xQ0W5Yug6Pscf3uU6Zx24LAnI6boqFg450YIDMakuVE9OC 0McFj6SaOlKklY338LzmSg+pelNqsX81Yo8vwG5pHITr/mMSdpS+lohRSCO0H83k vVLPRUvP4keEpynPhB00CvoKZ8E7FPffiCJLEf08wKE=; X-AuditID: c39127d2-1d8f870000001daf-f8-60e5a4def536 Received: from idefix.phytec.de (Unknown_Domain [172.16.0.10]) by mickerik.phytec.de (PHYTEC Mail Gateway) with SMTP id CD.71.07599.ED4A5E06; Wed, 7 Jul 2021 14:58:06 +0200 (CEST) Received: from augenblix3.phytec.de ([172.16.0.233]) by idefix.phytec.de (IBM Domino Release 9.0.1FP7) with ESMTP id 2021070714580614-1108506 ; Wed, 7 Jul 2021 14:58:06 +0200 From: Teresa Remmet To: u-boot@lists.denx.de Cc: Stefano Babic , Fabio Estevam , "NXP i . MX U-Boot Team" , Peng Fan , Jagan Teki , Heiko Schocher Subject: [PATCH v3 7/9] board: phytec: phycore-imx8mp: Enable DVS1 control Date: Wed, 7 Jul 2021 12:58:02 +0000 Message-Id: <20210707125804.3010652-8-t.remmet@phytec.de> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210707125804.3010652-1-t.remmet@phytec.de> References: <20210707125804.3010652-1-t.remmet@phytec.de> MIME-Version: 1.0 X-MIMETrack: Itemize by SMTP Server on Idefix/Phytec(Release 9.0.1FP7|August 17, 2016) at 07.07.2021 14:58:06, Serialize by Router on Idefix/Phytec(Release 9.0.1FP7|August 17, 2016) at 07.07.2021 14:58:06 X-TNEFEvaluated: 1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrPLMWRmVeSWpSXmKPExsWyRoCBS/fekqcJBq9+yVg8vOpvsePOfWaL L5smsFn8WPWF1aL9lI/F272d7BZTHq9nd2D3WPvxPqvHvFknWDx2zrrL7nH2zg5Gj43vdjAF sEZx2aSk5mSWpRbp2yVwZZy7/JCloIejYt2+X4wNjL/Zuhg5OSQETCS6tkxl7GLk4hAS2MYo sfrZc3YI5wKjRPu/mUwgVWwCGhJPV5wGs0UEJCR+9V8F62AWuM4oMXn9CbCEsICXxITuU2Bj WQRUJPrOPGQFsXkFLCWaJ01gglgnLzHz0nd2EJtTwEpi74l7YLYQUM3N6R+g6gUlTs58wgJR f4VR4skXJQhbSOL04rPMIDazgLbEsoWvmScwCsxC0jILSWoBI9MqRqHczOTs1KLMbL2CjMqS 1GS9lNRNjMBAPjxR/dIOxr45HocYmTgYDzFKcDArifAyOjxNEOJNSaysSi3Kjy8qzUktPsQo zcGiJM67gbckTEggPbEkNTs1tSC1CCbLxMEp1cCY0eClyjj5SeHkC5dcTZ6uaz3fbHq5y3jn 28rTvKc+XG1bk67zR/2E8DvZbpHZX/bzfpXw+D7vU51k9W6Oh7/aN/ROrDn+/eZmwTjZZxpJ Mbeiq2/w23LUrLnz/sfZUw237MR+5Zds0jzFo+Xp8HWf1ovXU39JtFTMrih1kIlziNskLRV9 0nK6EktxRqKhFnNRcSIAPvHz/FICAAA= X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean Enable DVS1 control through PMIC_STBY_REQ. Signed-off-by: Teresa Remmet Reviewed-by: Fabio Estevam --- No changes in v2 or v3. board/phytec/phycore_imx8mp/spl.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/board/phytec/phycore_imx8mp/spl.c b/board/phytec/phycore_imx8mp/spl.c index 815ca9badcba..19c486e55174 100644 --- a/board/phytec/phycore_imx8mp/spl.c +++ b/board/phytec/phycore_imx8mp/spl.c @@ -66,7 +66,11 @@ int power_init_board(void) pmic_reg_write(p, PCA9450_BUCK1OUT_DVS0, 0x1C); pmic_reg_write(p, PCA9450_BUCK2OUT_DVS0, 0x1C); - /* set WDOG_B_CFG to cold reset */ + /* Set BUCK1 DVS1 to suspend controlled through PMIC_STBY_REQ */ + pmic_reg_write(p, PCA9450_BUCK1OUT_DVS1, 0x14); + pmic_reg_write(p, PCA9450_BUCK1CTRL, 0x59); + + /* Set WDOG_B_CFG to cold reset */ pmic_reg_write(p, PCA9450_RESET_CTRL, 0xA1); return 0;