Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5BE18C07E9B for ; Wed, 7 Jul 2021 12:59:24 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id D700D61CB9 for ; Wed, 7 Jul 2021 12:59:23 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D700D61CB9 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=phytec.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de 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) 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 Content-Transfer-Encoding: quoted-printable 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=5FSTBY=5FREQ. Signed-off-by: Teresa Remmet Reviewed-by: Fabio Estevam --- No changes in v2 or v3. board/phytec/phycore=5Fimx8mp/spl.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/board/phytec/phycore=5Fimx8mp/spl.c b/board/phytec/phycore=5Fi= mx8mp/spl.c index 815ca9badcba..19c486e55174 100644 --- a/board/phytec/phycore=5Fimx8mp/spl.c +++ b/board/phytec/phycore=5Fimx8mp/spl.c @@ -66,7 +66,11 @@ int power=5Finit=5Fboard(void) pmic=5Freg=5Fwrite(p, PCA9450=5FBUCK1OUT=5FDVS0, 0x1C); pmic=5Freg=5Fwrite(p, PCA9450=5FBUCK2OUT=5FDVS0, 0x1C); =20 - /* set WDOG=5FB=5FCFG to cold reset */ + /* Set BUCK1 DVS1 to suspend controlled through PMIC=5FSTBY=5FREQ */ + pmic=5Freg=5Fwrite(p, PCA9450=5FBUCK1OUT=5FDVS1, 0x14); + pmic=5Freg=5Fwrite(p, PCA9450=5FBUCK1CTRL, 0x59); + + /* Set WDOG=5FB=5FCFG to cold reset */ pmic=5Freg=5Fwrite(p, PCA9450=5FRESET=5FCTRL, 0xA1); =20 return 0; --=20 2.25.1