From patchwork Fri Mar 19 07:57:04 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Peng Fan \(OSS\)" X-Patchwork-Id: 404743 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp1140935jai; Fri, 19 Mar 2021 00:28:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxSTgjQgXWtQaxnaexZRH3dT3ifYIO5JjThb/fin7dQb90wLx6zhkDv+/AikGYSoB3dLSzM X-Received: by 2002:a05:6402:2076:: with SMTP id bd22mr7916892edb.378.1616138919614; Fri, 19 Mar 2021 00:28:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1616138919; cv=pass; d=google.com; s=arc-20160816; b=DHe3993PTxXNQxkS2HJD0tYKRd8ZHCuwryqK3tbuZnsLFpd+2lZadqlaAtv26cw/+o /OXPVm+iSHEMC4JSI8g8IAxq6tmUb1JrFf8BiIUOfIMFi/mqogUU9UYFXl73mY5unsoW DyBdrFF/va0e5Oqn/DFmL/zb+s2TNvtX30LROUCswepTLwc75h9jpttRV3sQ6xtBxGst fTHFPojNgEt2gympThWQd9HOgctFJf+u5rLI2wDlGw55959v+DFRx5vpkHKBb3zWHeNS 8i5tzuk/n8QRFi4P8kiQLHNVu6CbF7IXDDrKaZSoMve5ofdPrSNCbw8+txXTqOQ37ec2 yLtA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:mime-version :content-transfer-encoding:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=jk0jnb7lM6COqhfZOdi0+tzDsPpCL8Rna4KsMlYSCbA=; b=HCVsZLcmzb1TUEopTUMmd6jlaluQXZQM8G8GbutL+WaO29GvOfqgsgXZzqxsa0VIxF xlBqMSrIc9YNpBaJRdcAnBvaxIkmfafen5ysvHdtMHpePSoX5EUelq4h2dCzt7nQZXL3 F4hc2K5p67QxKE9uF3+Fu2WrXxJfgozjsT3uNFiiJeembyYDAEn87nLBupVI95gAQaZo JCAV2XhnJt11MyrtNCyhlfte/tHfxeSja5asTvM6ySLt9ZU17l/mTsWTJFB+Rb3pSr9V TnEpR8Zj71cHFvwX1Pb1HJ3eXlI5YC2en+c4bAsRH9iBnENaNPCejhVDxLbQMzODmNVp /bZQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=hF5GlJD8; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id b1si3635701ejb.714.2021.03.19.00.28.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Mar 2021 00:28:39 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=hF5GlJD8; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 0935C828E8; Fri, 19 Mar 2021 08:27:57 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=oss.nxp.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=NXP1.onmicrosoft.com header.i=@NXP1.onmicrosoft.com header.b="hF5GlJD8"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C724A828F7; Fri, 19 Mar 2021 08:27:06 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FORGED_SPF_HELO,MSGID_FROM_MTA_HEADER,SPF_HELO_PASS autolearn=no autolearn_force=no version=3.4.2 Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04on0614.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe0c::614]) (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 B2B81828D6 for ; Fri, 19 Mar 2021 08:26:59 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=oss.nxp.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=peng.fan@oss.nxp.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WUyFJs/rfqeCj9RRu1EenKahv7bLCZnjwmt6OAb/webezNoo99hgknd2FASN7J8qEwp+Xqj8D/h6P5qnOVTAv4zTBUwBv1PlVnMFIiZmCyhL+iRr3J5B2cBxm+EGPlQkohPvyhtlPe+J5BqJueL0skZnfCdyH+fIax3PHoYYZJnjnw554InXEMT8vuLPPu3WHlUYujRulTlQG9Ee5OWj5CIWfIEsJn2+Xe7gxstQrR99UsRZPshCo7m44upEh0JE9QI5uk/K2Sz2LKD55FgrubpCr3I8DI2cTVK85yN3LY6HtJut2Y6UH6Sayd13Eeh3q16PAq0r7T2DuO8KWIfUXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jk0jnb7lM6COqhfZOdi0+tzDsPpCL8Rna4KsMlYSCbA=; b=GjwQcEYotiHeyzcjhaZQZrIAcjN6GgvK1Rl8J7DAC+aKqskGuUXyeNhWmKz53wiipoCGp1itgLTUjqC7O3234EVB9KZGzTwgTKAOQ0S+hs03K/CYda/tbOTzqE+PxV12F2gzwpPsMauUMYHfR09j6pvdX9qH2eYZniXvcJBNdNqGMiMDriYxs8fExp6+uEQyOYIuJ8Q2vQYu3sWXPMGnuySzvYcJrWm7nIk8IjH9OHoQDOqV4+kmI+krcT67gDQrWNcz9/6m3eQu/2R9vsAWVIzGO0wsmGrx95H9uQKGGbg9fCM9mb1YxCnfR65asgrGchyzwVoCDydu+txho0PvYQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=jk0jnb7lM6COqhfZOdi0+tzDsPpCL8Rna4KsMlYSCbA=; b=hF5GlJD8FphySdYtW1RljDmC7JbNNEuwKpus8ukPEATI/TGGfTuwMbcUyno8GcA8K3a6CaJOVd34cWcwzhe28PiNIK6Wnz1TgqxfE1KgcM+xiiupqL7CNDWlYbxV9fgOVVSdrSiYPKw+SodiKIuLUW4UIH4yrScQZOJto80A+oo= Authentication-Results: denx.de; dkim=none (message not signed) header.d=none; denx.de; dmarc=none action=none header.from=oss.nxp.com; Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) by DBAPR04MB7223.eurprd04.prod.outlook.com (2603:10a6:10:1b0::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3955.18; Fri, 19 Mar 2021 07:26:58 +0000 Received: from DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::d58c:d479:d094:43d0]) by DB6PR0402MB2760.eurprd04.prod.outlook.com ([fe80::d58c:d479:d094:43d0%9]) with mapi id 15.20.3933.032; Fri, 19 Mar 2021 07:26:58 +0000 From: "Peng Fan (OSS)" To: sbabic@denx.de, festevam@gmail.com Cc: u-boot@lists.denx.de, uboot-imx@nxp.com, Peng Fan , Ye Li Subject: [PATCH 12/26] imx8mp_evk: Increase VDD_ARM to 0.95v Overdrive voltage Date: Fri, 19 Mar 2021 15:57:04 +0800 Message-Id: <20210319075718.14181-13-peng.fan@oss.nxp.com> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210319075718.14181-1-peng.fan@oss.nxp.com> References: <20210319075718.14181-1-peng.fan@oss.nxp.com> X-Originating-IP: [119.31.174.71] X-ClientProxiedBy: MA1PR01CA0170.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a01:d::20) To DB6PR0402MB2760.eurprd04.prod.outlook.com (2603:10a6:4:a1::14) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from linux-1xn6.ap.freescale.net (119.31.174.71) by MA1PR01CA0170.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a01:d::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3955.18 via Frontend Transport; Fri, 19 Mar 2021 07:26:56 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 3f3023f9-6965-44d5-7a8c-08d8eaa86175 X-MS-TrafficTypeDiagnostic: DBAPR04MB7223: X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:7691; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ggBcVCYr51M4Xe+PyjeVCtPXxCHoG3gCiKJ40pbp/57vhvHm2lOsMgeGGSUMmEpWw0cD9jsY+Kbcwq+n/Jq2GRWo0aQPa0lg8pdoLgt8ly/P9EX/Z7bfn6H75tXJKzg763SAtryuQF5T8ar53gGkh9/zaAtl7zlSpYYRNRORKx/2VCbM+NPwE/8hidl2SdQP92dpWCFax8b5l4Ry30YqWfK1Lhvwjdq4yPSsM91a5JdoRMwsmhMY+qLGbQLoDDxUmF1rgI4ttI0W4353qRagEaFNe0ElGByUkfnYqS9Rryfny3hX7RDS0ysUwsWAJDHDme3EfFWJh4L9qIet0xT6hMgQhkkro7ib453j9wHDaeIXGYuxJeMuR4p97pLsa/jfsWvRP7EAQS+bhOSMo3VVkgQqNphbQwrLwEqj3HcZWCZXvHsopYBNNX7WGZtjdciY9Xy4W0gPRptmTT41dwnKV0B+HwwgKulH0wuI4ra86gmrFg8ke3DYqDbA+avocdSFYCpuJ/Q3Y8GuvczF/DaKbmlb23DzzEMlxlZ33bc9rJn33MbjIY/vS5cKsBIAulaY/Nl9XHmRE0ogfzrdgcLXkFin7dy2e41TvB60Ei9zvwQHyKFXrj28Jilm5rIcANUZNv7SjKdnB1qugwac6kjjDJ4PnTehwyj5Tu0fdtNE6aI= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB6PR0402MB2760.eurprd04.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(376002)(346002)(396003)(136003)(366004)(39860400002)(2906002)(6512007)(6486002)(26005)(4326008)(52116002)(6506007)(5660300002)(54906003)(86362001)(1076003)(83380400001)(6666004)(66476007)(66556008)(16526019)(186003)(8936002)(316002)(8676002)(478600001)(2616005)(66946007)(38100700001)(956004); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData: no1kej8Gw1LC6yYktsa6NmR7U0T/MSGSgk/MpIEYqWY6sazlTXE0M6rLccEKVITAoezwcE5F4eyYlr/VYHDyCzEGbvXbaDpUFqrgxxIgOkGXSmMV882STqiz3vCKPK+G/VrraBy5hBnuaDV44Ygg8+Jtwmve4ZljYEhOxw/LWSHGeJdESJjcLGN6X0TKG9YqO4ougKtoRqoxbMVhEtJKuXdo+jiDBHaFBAUJczZKzvkB/EXZQUVOQR6cJYbrkaotjc1e4koeJaPMRy5knO07H7tN7qgkT85yic8jkNPO8ewRqyfipA7XcHn0PTjwQ/a4kG41+/hAFOGTMyDhEzfQm30DMkUhRsYAvhZsPhABqWF9F5gc8i9Wu2nd+slAnMRhB4I2PONUEu/Waq4XPlrhlJS1Ryde0iGm7JW2Amgr7jlUP3QgeUIxtV6vmJgJusS8jaJ0hWn1jqSVy+E8Mf3sMtYAlStnsI4wOS8LjdCuDgV4Qqys4AUZY8sw9t8GtIjlmYPmQ+GZ9GdO1TKPjbvJpEqZ0VMrRg+Qn1m8Z9lt6fxooGffh+z1GcZY581OQE/UAC6Yc9C96umbPYegJOHx6RZAx8mRBd5JSXFxE5Zjc7t9M/WAAAiX/AcEB2coLSzNxdZD+XiDRy+A0dIsNSwH+wM9HJ5z1LQQUFDNaEyX6Sxh+ScBoa53vrQZbH39HWcLsGHmDrfPCiFlpiIEMv4a/iJKXtIVy79Ays1r/orrG0hI+CsCKuDCGLw94dGHz8edZMrq7zFRf7fNtaZbFMrrnajT8Df9QD9KuOi3qJYa4TMTWHn6lkb/7k/7X/TvH6Rl5Zya4Gsj+WtGrRnOA4B1Q89Buv4aSWgOsSTgrLNHEk+z955fts2C0vtU6GEzYkA/PPcLX0gBlwAvdx0jKmF6Nhl9ziKX1lzka8K840GvRbce1N/w38stKXSITkR3jSXnFfdHYmfuq09C2dWenmnthvrx2R6bN0KaaHfBmnvDpV/IQC5VJtbCGN5iQ0jQbtBuMSyAVOKbV1iSGcyAu8/T7KeMHbYIV5nWpnV+1NaQ8pm5MCxo6yUNrxJQBQo+29fizsG6OottRgGPZhy7qXwxJsOT1qJ9FKmuq5yB68hPJ1mQY00MlVOtg45vDDaUDQNn5pyPTFh/S+DW7CBDaZjl+Dt7BhD0eNbnZPtpwgZqh64uWfqBKHR7QxtvrDrTDOwxE5D9tXQ02XA4494FBwYyXlCkM2GKFEDhV9HZGUJBUxHA9vY9Dv81Mm9KgvyDRDwvpyGzbGBHa4LoePNVr7UZtRx25vQQrEWOgqPoDBVM7WdtGmeL9gDF4NmVHAjt+NuN38GBaEJlB59nqqg2mkB/oA== X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3f3023f9-6965-44d5-7a8c-08d8eaa86175 X-MS-Exchange-CrossTenant-AuthSource: DB6PR0402MB2760.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Mar 2021 07:26:58.6018 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 4l4C5u5WM8IVEq28NWykND6yhyjSD4sfMJS8OVNgRzFihwBixhVLb1swD7uoATrmJ7rETpF/WuU3TgaL0rBURw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBAPR04MB7223 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.102.4 at phobos.denx.de X-Virus-Status: Clean From: Peng Fan There is a frequency/timing limitation for SOC and ARM, if SOC is OD voltage/OD freq, then ARM can't run at ND voltage/1.2Ghz, it may have timing risk from SOC to ARM. Current VDD_SOC is set to 0.95v OD voltage in SPL, and kernel will increase bus clocks to OD frequency before it increases ARM voltage. So to conform to the limitation, we'd better increases VDD_ARM to OD voltage in SPL. Signed-off-by: Ye Li Signed-off-by: Peng Fan --- board/freescale/imx8mp_evk/spl.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) -- 2.30.0 diff --git a/board/freescale/imx8mp_evk/spl.c b/board/freescale/imx8mp_evk/spl.c index ef14cfc227..6ccf5ac8fa 100644 --- a/board/freescale/imx8mp_evk/spl.c +++ b/board/freescale/imx8mp_evk/spl.c @@ -35,6 +35,16 @@ void spl_dram_init(void) void spl_board_init(void) { + /* + * Set GIC clock to 500Mhz for OD VDD_SOC. Kernel driver does + * not allow to change it. Should set the clock after PMIC + * setting done. Default is 400Mhz (system_pll1_800m with div = 2) + * set by ROM for ND VDD_SOC + */ + clock_enable(CCGR_GIC, 0); + clock_set_target_val(GIC_CLK_ROOT, CLK_ROOT_ON | CLK_ROOT_SOURCE_SEL(5)); + clock_enable(CCGR_GIC, 1); + puts("Normal Boot\n"); } @@ -84,6 +94,10 @@ int power_init_board(void) pmic_reg_write(p, PCA9450_BUCK1OUT_DVS1, 0x14); pmic_reg_write(p, PCA9450_BUCK1CTRL, 0x59); + /* Kernel uses OD/OD freq for SOC */ + /* To avoid timing risk from SOC to ARM,increase VDD_ARM to OD voltage 0.95v */ + pmic_reg_write(p, PCA9450_BUCK2OUT_DVS0, 0x1C); + /* set WDOG_B_CFG to cold reset */ pmic_reg_write(p, PCA9450_RESET_CTRL, 0xA1);