From patchwork Thu May 13 10:18:30 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giulio Benetti X-Patchwork-Id: 1478013 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=pass (2048-bit key; unprotected) header.d=aruba.it header.i=@aruba.it header.a=rsa-sha256 header.s=a1 header.b=IXxOeZdy; 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 4Fgnl221JFz9sWP for ; Thu, 13 May 2021 20:21:50 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 977DD82E5B; Thu, 13 May 2021 12:21:42 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=benettiengineering.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=aruba.it header.i=@aruba.it header.b="IXxOeZdy"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D4AA082E24; Thu, 13 May 2021 12:19:12 +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=-1.9 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=3.4.2 Received: from smtpcmd12131.aruba.it (smtpcmd12131.aruba.it [62.149.156.131]) by phobos.denx.de (Postfix) with ESMTP id 1FE9181D1B for ; Thu, 13 May 2021 12:18:57 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=benettiengineering.com Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=giulio.benetti@benettiengineering.com Received: from ubuntu.localdomain ([146.241.190.106]) by Aruba Outgoing Smtp with ESMTPSA id h8QelewxePQJJh8QhlLfh4; Thu, 13 May 2021 12:18:56 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aruba.it; s=a1; t=1620901136; bh=awzCTJOgm+P5bz8D5WuYWDCHlNvaQuAGOEwL5w/6gUg=; h=From:To:Subject:Date:MIME-Version; b=IXxOeZdyXfsLH4iYIvR16fXjuvN/7IAWdIHkdxpvMEeHpU4xnOhwUdUKDv9mJmYhX lMHqvnYWio0GUUSWUlsoW65Y9cdxyjS4khkpp5h4J4sOHbOEn7mubcKuzVpM1g2Seb 3auKM8b5KYSRx59gRYbbc5X6iJs6vMLEgXj0VP0GbxRNnMSJO3VAAUpa2lT5TZokQt yMN/4q6+JPy7U8e9byFW5I6vZHg0ELR5aeHFiIcH+QDZtuiJXnD+r1fgS4Ju1iiotT MJwr8HxvIgzYNpYHqHZBKEnaGIovIiPga3bdHSRWreU7t38xjWoQZcnb1NM6pygwS5 RjA57BiPnieWA== From: Giulio Benetti To: Stefano Babic Cc: Fabio Estevam , "NXP i.MX U-Boot Team" , Lukasz Majewski , Anatolij Gustschin , Simon Glass , Sean Anderson , Rick Chen , Bin Meng , Claudiu Beznea , Jesse Taube , u-boot@lists.denx.de, Giulio Benetti Subject: [PATCH v3 01/22] arm: imxrt: soc: make mpu regions generic Date: Thu, 13 May 2021 12:18:30 +0200 Message-Id: <20210513101851.11223-2-giulio.benetti@benettiengineering.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210513101851.11223-1-giulio.benetti@benettiengineering.com> References: <20210513101851.11223-1-giulio.benetti@benettiengineering.com> MIME-Version: 1.0 X-CMAE-Envelope: MS4wfHpFpM3D8aoFsLn7ZRSut0Xv5twx8fWAMKXHlMLH5bhfQEA16lDMUDBqjFp6dmZwdudnJ8DwmzG0FQEkyJWOi4YgwoqEKeJLjk/64XhI35Ah3PTTwV1V LalUf4ESc5w7MOMNpDqLAp9VjlpQEpHly2FmzC8dWTqXIm1zJP1VqKrouRpipeC8adzJCwl1OLxsvqeMBkjlOutzki/TNI4PwKVqk3aPrZop3hiFnJRkvEJn LlKrYPbeomvdY5rilJWIdz9CAy072SchSTiuCHypYJwwpUKLvaC0cPYQXa4HKk4KNDiM1gtN926s0jANFnFtf18zXqDSF/kAH01jrLdkhW2xJRW9N8qNgZRG geVJHF0Dv9XB0+B4134ej5r2EotJmc5QSPNxrVlB9F+nDqHOZDVYRbR9yxaFwd7rqnPSHl8DdltAXiX9C0JxnLp1UvVa07SMnMsJkk657o5LYROTAI/dNN6v jU1fn2xTtCRMWJYKFgV2plbo1etRf2oYgA8ot60KEqy3uQbByTxfifai99Ociz6DVla4nTWhHz146QluUmFGM1cUhXBGmbEJBe8GnUvqHl10eszFF3oB8Hog I1o= 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 This mpu handling works for every i.MXRT SoC that we have, so let's generalize imxrt1050_region_config to imxrt_region_config. Signed-off-by: Giulio Benetti --- arch/arm/mach-imx/imxrt/soc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-imx/imxrt/soc.c b/arch/arm/mach-imx/imxrt/soc.c index 8e7d15160d..c533f3554a 100644 --- a/arch/arm/mach-imx/imxrt/soc.c +++ b/arch/arm/mach-imx/imxrt/soc.c @@ -14,7 +14,7 @@ int arch_cpu_init(void) { int i; - struct mpu_region_config imxrt1050_region_config[] = { + struct mpu_region_config imxrt_region_config[] = { { 0x00000000, REGION_0, XN_DIS, PRIV_RW_USR_RW, STRONG_ORDER, REGION_4GB }, { PHYS_SDRAM, REGION_1, XN_DIS, PRIV_RW_USR_RW, @@ -29,8 +29,8 @@ int arch_cpu_init(void) * the whole 4GB address space. */ disable_mpu(); - for (i = 0; i < ARRAY_SIZE(imxrt1050_region_config); i++) - mpu_config(&imxrt1050_region_config[i]); + for (i = 0; i < ARRAY_SIZE(imxrt_region_config); i++) + mpu_config(&imxrt_region_config[i]); enable_mpu(); return 0; From patchwork Thu May 13 10:18:31 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giulio Benetti X-Patchwork-Id: 1478003 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=pass (2048-bit key; unprotected) header.d=aruba.it header.i=@aruba.it header.a=rsa-sha256 header.s=a1 header.b=SJlCD+uc; 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 4FgnhR5S64z9sTD for ; Thu, 13 May 2021 20:19:35 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C011B81D32; Thu, 13 May 2021 12:19:17 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=benettiengineering.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=aruba.it header.i=@aruba.it header.b="SJlCD+uc"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C63E6819D2; Thu, 13 May 2021 12:19:10 +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=-1.9 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from smtpcmd12131.aruba.it (smtpcmd12131.aruba.it [62.149.156.131]) by phobos.denx.de (Postfix) with ESMTP id AE81081CE7 for ; Thu, 13 May 2021 12:18:56 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=benettiengineering.com Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=giulio.benetti@benettiengineering.com Received: from ubuntu.localdomain ([146.241.190.106]) by Aruba Outgoing Smtp with ESMTPSA id h8QelewxePQJJh8QilLfhn; Thu, 13 May 2021 12:18:56 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aruba.it; s=a1; t=1620901136; bh=KQLPPqwVoCKSx6rF5uLrS3NZYkmuzCxm6vmGr8Iy7mE=; h=From:To:Subject:Date:MIME-Version; b=SJlCD+uctggO6j/S83UNh+eAoll21Zua/g4Rl8zRDc4m3+sOJdl1BVcJeWpOCv3oV VnWX5YWZeSjaejeaWflvJ7oMCjiM1c9o2vGOK17FiZznSY8gP8CFA07nbshaoOiLxr /IQr6tUT1R/oVwVJTnHeBmJcN0LjKEtMTjp6L2AgF0WdAYyZNC3iSxqOcGuGboyemn K7EHerFzs5FJWpCljQxYNNh9AAQTnJ2mUqgc+teoZoLmQrv4jz9S58qppUlk0hSf43 VDWMV5/C/OJFkLGL/I472/3DGns+hsO3LAevoiikrFUCcyvLR7qOy0ZjNwNYOLQcoV piX25v6jqwvLw== From: Giulio Benetti To: Stefano Babic Cc: Fabio Estevam , "NXP i.MX U-Boot Team" , Lukasz Majewski , Anatolij Gustschin , Simon Glass , Sean Anderson , Rick Chen , Bin Meng , Claudiu Beznea , Jesse Taube , u-boot@lists.denx.de, Giulio Benetti Subject: [PATCH v3 02/22] timer: imx-gpt: Add timer support for i.MX SoCs family Date: Thu, 13 May 2021 12:18:31 +0200 Message-Id: <20210513101851.11223-3-giulio.benetti@benettiengineering.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210513101851.11223-1-giulio.benetti@benettiengineering.com> References: <20210513101851.11223-1-giulio.benetti@benettiengineering.com> MIME-Version: 1.0 X-CMAE-Envelope: MS4wfHpFpM3D8aoFsLn7ZRSut0Xv5twx8fWAMKXHlMLH5bhfQEA16lDMUDBqjFp6dmZwdudnJ8DwmzG0FQEkyJWOi4YgwoqEKeJLjk/64XhI35Ah3PTTwV1V LalUf4ESc5w7MOMNpDqLAp9VjlpQEpHly2FmzC8dWTqXIm1zJP1VqKrouRpipeC8adzJCwl1OLxsvqeMBkjlOutzki/TNI4PwKVqk3aPrZop3hiFnJRkvEJn LlKrYPbeomvdY5rilJWIdz9CAy072SchSTiuCHypYJwwpUKLvaC0cPYQXa4HKk4KNDiM1gtN926s0jANFnFtf18zXqDSF/kAH01jrLdkhW2xJRW9N8qNgZRG geVJHF0Dv9XB0+B4134ej5r2EotJmc5QSPNxrVlB9F+nDqHOZDVYRbR9yxaFwd7rqnPSHl8DdltAXiX9C0JxnLp1UvVa07SMnMsJkk657o5LYROTAI/dNN6v jU1fn2xTtCRMWJYKFgV2plbo1etRf2oYgA8ot60KEqy3uQbByTxfifai99Ociz6DVla4nTWhHz146QluUmFGM1cUhXBGmbEJBe8GnUvqHl10eszFF3oB8Hog I1o= 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 This timer driver uses GPT Timer (General Purpose Timer) available on a lot of i.MX SoCs family. This driver deals with both 24Mhz oscillator as well as peripheral clock. Signed-off-by: Giulio Benetti [Giulio: added the driver's stub and handled peripheral clock prescaler setting making driver to work correctly] Signed-off-by: Jesse Taube [Jesse: added init, setting prescaler for 24Mhz support and enabling timer] --- drivers/timer/Kconfig | 7 ++ drivers/timer/Makefile | 1 + drivers/timer/imx-gpt-timer.c | 162 ++++++++++++++++++++++++++++++++++ 3 files changed, 170 insertions(+) create mode 100644 drivers/timer/imx-gpt-timer.c diff --git a/drivers/timer/Kconfig b/drivers/timer/Kconfig index 80743a2551..ee81dfa776 100644 --- a/drivers/timer/Kconfig +++ b/drivers/timer/Kconfig @@ -227,4 +227,11 @@ config MCHP_PIT64B_TIMER Select this to enable support for Microchip 64-bit periodic interval timer. +config IMX_GPT_TIMER + bool "NXP i.MX GPT timer support" + depends on TIMER + help + Select this to enable support for the timer found on + NXP i.MX devices. + endmenu diff --git a/drivers/timer/Makefile b/drivers/timer/Makefile index eb5c48cc6c..e214ba7268 100644 --- a/drivers/timer/Makefile +++ b/drivers/timer/Makefile @@ -25,3 +25,4 @@ obj-$(CONFIG_STM32_TIMER) += stm32_timer.o obj-$(CONFIG_X86_TSC_TIMER) += tsc_timer.o obj-$(CONFIG_MTK_TIMER) += mtk_timer.o obj-$(CONFIG_MCHP_PIT64B_TIMER) += mchp-pit64b-timer.o +obj-$(CONFIG_IMX_GPT_TIMER) += imx-gpt-timer.o diff --git a/drivers/timer/imx-gpt-timer.c b/drivers/timer/imx-gpt-timer.c new file mode 100644 index 0000000000..72be297754 --- /dev/null +++ b/drivers/timer/imx-gpt-timer.c @@ -0,0 +1,162 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright (C) 2021 + * Author(s): Giulio Benetti + */ + +#include +#include +#include +#include +#include +#include + +#include + +#define GPT_CR_EN BIT(0) +#define GPT_CR_FRR BIT(9) +#define GPT_CR_EN_24M BIT(10) +#define GPT_CR_SWR BIT(15) + +#define GPT_PR_PRESCALER24M_MASK 0x0000F000 +#define GPT_PR_PRESCALER24M_SHIFT 12 +#define GPT_PR_PRESCALER24M_MAX (GPT_PR_PRESCALER24M_MASK >> GPT_PR_PRESCALER24M_SHIFT) +#define GPT_PR_PRESCALER_MASK 0x00000FFF +#define GPT_PR_PRESCALER_SHIFT 0 +#define GPT_PR_PRESCALER_MAX (GPT_PR_PRESCALER_MASK >> GPT_PR_PRESCALER_SHIFT) + +#define GPT_CLKSRC_IPG_CLK (1 << 6) +#define GPT_CLKSRC_IPG_CLK_24M (5 << 6) + +/* If CONFIG_SYS_HZ_CLOCK not specified et's default to 3Mhz */ +#ifndef CONFIG_SYS_HZ_CLOCK +#define CONFIG_SYS_HZ_CLOCK 3000000 +#endif + +struct imx_gpt_timer_regs { + u32 cr; + u32 pr; + u32 sr; + u32 ir; + u32 ocr1; + u32 ocr2; + u32 ocr3; + u32 icr1; + u32 icr2; + u32 cnt; +}; + +struct imx_gpt_timer_priv { + struct imx_gpt_timer_regs *base; +}; + +static u64 imx_gpt_timer_get_count(struct udevice *dev) +{ + struct imx_gpt_timer_priv *priv = dev_get_priv(dev); + struct imx_gpt_timer_regs *regs = priv->base; + + return timer_conv_64(readl(®s->cnt)); +} + +static int imx_gpt_setup(struct imx_gpt_timer_regs *regs, u32 rate) +{ + u32 prescaler = (rate / CONFIG_SYS_HZ_CLOCK) - 1; + + /* Reset the timer */ + setbits_le32(®s->cr, GPT_CR_SWR); + + /* Wait for timer to finish reset */ + while (readl(®s->cr) & GPT_CR_SWR) + ; + + if (rate == 24000000UL) { + /* Set timer frequency if using 24M clock source */ + if (prescaler > GPT_PR_PRESCALER24M_MAX) + return -EINVAL; + + /* Set 24M prescaler */ + writel((prescaler << GPT_PR_PRESCALER24M_SHIFT), ®s->pr); + /* Set Oscillator as clock source, enable 24M input and set gpt + * in free-running mode + */ + writel(GPT_CLKSRC_IPG_CLK_24M | GPT_CR_EN_24M | GPT_CR_FRR, ®s->cr); + } else { + if (prescaler > GPT_PR_PRESCALER_MAX) + return -EINVAL; + + /* Set prescaler */ + writel((prescaler << GPT_PR_PRESCALER_SHIFT), ®s->pr); + /* Set Peripheral as clock source and set gpt in free-running + * mode + */ + writel(GPT_CLKSRC_IPG_CLK | GPT_CR_FRR, ®s->cr); + } + + /* Start timer */ + setbits_le32(®s->cr, GPT_CR_EN); + + return 0; +} + +static int imx_gpt_timer_probe(struct udevice *dev) +{ + struct timer_dev_priv *uc_priv = dev_get_uclass_priv(dev); + struct imx_gpt_timer_priv *priv = dev_get_priv(dev); + struct imx_gpt_timer_regs *regs; + struct clk clk; + fdt_addr_t addr; + u32 clk_rate; + int ret; + + addr = dev_read_addr(dev); + if (addr == FDT_ADDR_T_NONE) + return -EINVAL; + + priv->base = (struct imx_gpt_timer_regs *)addr; + regs = priv->base; + + ret = clk_get_by_index(dev, 0, &clk); + if (ret < 0) + return ret; + + ret = clk_enable(&clk); + if (ret) { + dev_err(dev, "Failed to enable clock\n"); + return ret; + } + + /* Get timer clock rate */ + clk_rate = clk_get_rate(&clk); + if (clk_rate <= 0) { + dev_err(dev, "Could not get clock rate...\n"); + return -EINVAL; + } + + ret = imx_gpt_setup(regs, clk_rate); + if (ret) { + dev_err(dev, "Could not setup timer\n"); + return ret; + } + + uc_priv->clock_rate = CONFIG_SYS_HZ_CLOCK; + + return 0; +} + +static const struct timer_ops imx_gpt_timer_ops = { + .get_count = imx_gpt_timer_get_count, +}; + +static const struct udevice_id imx_gpt_timer_ids[] = { + { .compatible = "fsl,imxrt-gpt" }, + {} +}; + +U_BOOT_DRIVER(imx_gpt_timer) = { + .name = "imx_gpt_timer", + .id = UCLASS_TIMER, + .of_match = imx_gpt_timer_ids, + .priv_auto = sizeof(struct imx_gpt_timer_priv), + .probe = imx_gpt_timer_probe, + .ops = &imx_gpt_timer_ops, +}; From patchwork Thu May 13 10:18:32 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giulio Benetti X-Patchwork-Id: 1478011 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=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=aruba.it header.i=@aruba.it header.a=rsa-sha256 header.s=a1 header.b=Gr4abpW+; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (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 4FgnkD5l9Yz9sWD for ; Thu, 13 May 2021 20:21:08 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4F9E082B48; Thu, 13 May 2021 12:20:41 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=benettiengineering.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=aruba.it header.i=@aruba.it header.b="Gr4abpW+"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 558EB81D1B; Thu, 13 May 2021 12:19:13 +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=-1.9 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from smtpcmd12131.aruba.it (smtpcmd12131.aruba.it [62.149.156.131]) by phobos.denx.de (Postfix) with ESMTP id 42B7981D48 for ; Thu, 13 May 2021 12:18:57 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=benettiengineering.com Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=giulio.benetti@benettiengineering.com Received: from ubuntu.localdomain ([146.241.190.106]) by Aruba Outgoing Smtp with ESMTPSA id h8QelewxePQJJh8QilLfiQ; Thu, 13 May 2021 12:18:57 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aruba.it; s=a1; t=1620901137; bh=8faMZ5gv4EcjP5HoEJHbXLZRF6npFI1SrrhXxxQlVGY=; h=From:To:Subject:Date:MIME-Version; b=Gr4abpW+rKmJTdaCWvILop4ZPuB/zxGi1toAoYukkpkVJJV+PjzXJL65m4grXefwM IVw5pmhYOaVIl8k7AmPTa9xjAI5bpep0S5fKudQ4bQkqQiu5s5q2L1V7qLi/nrcUAg e/HSWvsF3FNBfaO8GP67CVpDJ9yXrdo9jYYSmzszA+TYAEUCLD+TlH8Ih3V0IFnDLd GF+DQtYLSEs0kn14XKufsPKVeGAZE0fEnQpwFyz7Vu5gFWVtlUO7yFHmVEzGWC/lps eMamlkQm4uN9szfDfvve/ynaChlJH9b1RAHWVYaYrgwl7AyrqMwFcSGxD9pL76V9cF tv4Y1SkgCguCQ== From: Giulio Benetti To: Stefano Babic Cc: Fabio Estevam , "NXP i.MX U-Boot Team" , Lukasz Majewski , Anatolij Gustschin , Simon Glass , Sean Anderson , Rick Chen , Bin Meng , Claudiu Beznea , Jesse Taube , u-boot@lists.denx.de, Giulio Benetti Subject: [PATCH v3 03/22] ARM: dts: imxrt1020: add node label to osc Date: Thu, 13 May 2021 12:18:32 +0200 Message-Id: <20210513101851.11223-4-giulio.benetti@benettiengineering.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210513101851.11223-1-giulio.benetti@benettiengineering.com> References: <20210513101851.11223-1-giulio.benetti@benettiengineering.com> MIME-Version: 1.0 X-CMAE-Envelope: MS4wfI84qX9Ywge0TODIej3vkGG+Qr9KCe6GWEWwwxpN9n3tC7VOkQaApvzB/YQxNb3yZwKgWpGvj1YxXHiLjd+7epFgfU34OFnSx/xnkGhfTp3eEVnAQxr0 Ce9Wm7nEQBrTRqORBVKz0ngz6yJTRIQoD3T2xMJiHZnSCWVaKZ+f7f7oDG9/oxYnXB0KnE4t+KBtKksvwV2aXr1w5zRIBhzjV+kzeZFiRjgLVRRCaUTz79wi WqKrJ+IywNBLoF/gTSqh76JAx4lCmjEXv9AcNlt6sNQQ7MNlY2+bg+QkyA0eQRFmY15EidjJwliRUqvPUpGK7fgJBGN9DAfR7NHz3HY1bVQoEPo5erjpUod8 er1pcH2sgiVFW28V7zsqp0HM5/15QmuSsNKJqVyASVQtZUTQ3sO/eOQdmGupChApdtpYbCith8s234dKcsXQGIjjmWVLhYFvzaQjU+fcjQu+xFeg7ULuE3eQ HnRbmOIzQ9TnsW6QJdyFgR4mmWWmCXvhRJOE2AFxnPqm7FPSuOOC6M0IZx4Q+8/GzCrk+rBQBhFjTfV2hiMALQtIBhnNu3bid7hPtuZZnsb6PwCzidVKslke 5ks= 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 Let's add node label to osc to be used as clock source for other nodes. Signed-off-by: Giulio Benetti --- arch/arm/dts/imxrt1020.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/dts/imxrt1020.dtsi b/arch/arm/dts/imxrt1020.dtsi index 97f3cec9f3..0a3a3b451a 100644 --- a/arch/arm/dts/imxrt1020.dtsi +++ b/arch/arm/dts/imxrt1020.dtsi @@ -36,7 +36,7 @@ clock-frequency = <0>; }; - osc { + osc: osc { u-boot,dm-spl; compatible = "fsl,imx-osc", "fixed-clock"; #clock-cells = <0>; From patchwork Thu May 13 10:18:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giulio Benetti X-Patchwork-Id: 1478004 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=pass (2048-bit key; unprotected) header.d=aruba.it header.i=@aruba.it header.a=rsa-sha256 header.s=a1 header.b=W4z7HD2C; 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 4Fgnhs1CTRz9sWD for ; Thu, 13 May 2021 20:19:57 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C977F82E3A; Thu, 13 May 2021 12:19:53 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=benettiengineering.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=aruba.it header.i=@aruba.it header.b="W4z7HD2C"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6EF1781D1B; Thu, 13 May 2021 12:19:16 +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=-1.9 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from smtpcmd12131.aruba.it (smtpcmd12131.aruba.it [62.149.156.131]) by phobos.denx.de (Postfix) with ESMTP id C9A7D81E77 for ; Thu, 13 May 2021 12:18:57 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=benettiengineering.com Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=giulio.benetti@benettiengineering.com Received: from ubuntu.localdomain ([146.241.190.106]) by Aruba Outgoing Smtp with ESMTPSA id h8QelewxePQJJh8QjlLfiv; Thu, 13 May 2021 12:18:57 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aruba.it; s=a1; t=1620901137; bh=j6/WIp+0TD51lc3dvolT3SdT8KrKcuWGbRKykDOJlAw=; h=From:To:Subject:Date:MIME-Version; b=W4z7HD2CrcboZdcXQaO3IxbYV9EQOyTCqzGI5EgoJ08V+E1pO6NzKUM4MWGC0zx+U j38V6SEy6XLROmmMm+5zMU/l4OyTQtSeCZ9VNK1PiW1cGUbpjfUQ4YaVrGLs7FOwVi ZFwtnBHIQxA5dzz12EjLuzuHJPURe7VOm+9yr+HNyqktuUR5klIZcSgJrKv+Hd8T9r oIpBET6mHoCk0sWydjV2OYgFX+4bZ+e6Dua0lFEPKpRruFfiX41alfi9SLv6pnDbiF BUjKuIOTASCko6lgfSCoQ23iKnj8BjaQjS0BBpyigENW3ibK9sXNQXArQyHxOSUvum 05tWFOuzzd0lg== From: Giulio Benetti To: Stefano Babic Cc: Fabio Estevam , "NXP i.MX U-Boot Team" , Lukasz Majewski , Anatolij Gustschin , Simon Glass , Sean Anderson , Rick Chen , Bin Meng , Claudiu Beznea , Jesse Taube , u-boot@lists.denx.de, Giulio Benetti Subject: [PATCH v3 04/22] ARM: dts: imxrt1020: add gpt1 node Date: Thu, 13 May 2021 12:18:33 +0200 Message-Id: <20210513101851.11223-5-giulio.benetti@benettiengineering.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210513101851.11223-1-giulio.benetti@benettiengineering.com> References: <20210513101851.11223-1-giulio.benetti@benettiengineering.com> MIME-Version: 1.0 X-CMAE-Envelope: MS4wfI84qX9Ywge0TODIej3vkGG+Qr9KCe6GWEWwwxpN9n3tC7VOkQaApvzB/YQxNb3yZwKgWpGvj1YxXHiLjd+7epFgfU34OFnSx/xnkGhfTp3eEVnAQxr0 Ce9Wm7nEQBrTRqORBVKz0ngz6yJTRIQoD3T2xMJiHZnSCWVaKZ+f7f7oDG9/oxYnXB0KnE4t+KBtKksvwV2aXr1w5zRIBhzjV+kzeZFiRjgLVRRCaUTz79wi WqKrJ+IywNBLoF/gTSqh76JAx4lCmjEXv9AcNlt6sNQQ7MNlY2+bg+QkyA0eQRFmY15EidjJwliRUqvPUpGK7fgJBGN9DAfR7NHz3HY1bVQoEPo5erjpUod8 er1pcH2sgiVFW28V7zsqp0HM5/15QmuSsNKJqVyASVQtZUTQ3sO/eOQdmGupChApdtpYbCith8s234dKcsXQGIjjmWVLhYFvzaQjU+fcjQu+xFeg7ULuE3eQ HnRbmOIzQ9TnsW6QJdyFgR4mmWWmCXvhRJOE2AFxnPqm7FPSuOOC6M0IZx4Q+8/GzCrk+rBQBhFjTfV2hiMALQtIBhnNu3bid7hPtuZZnsb6PwCzidVKslke 5ks= 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 Add gpt1 node for using it as timer. Signed-off-by: Giulio Benetti --- arch/arm/dts/imxrt1020.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm/dts/imxrt1020.dtsi b/arch/arm/dts/imxrt1020.dtsi index 0a3a3b451a..cab608c644 100644 --- a/arch/arm/dts/imxrt1020.dtsi +++ b/arch/arm/dts/imxrt1020.dtsi @@ -129,5 +129,13 @@ interrupt-controller; #interrupt-cells = <2>; }; + + gpt1: gpt1@401ec000 { + compatible = "fsl,imxrt-gpt"; + reg = <0x401ec000 0x4000>; + interrupts = <100>; + clocks = <&osc>; + status = "disabled"; + }; }; }; From patchwork Thu May 13 10:18:34 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giulio Benetti X-Patchwork-Id: 1478006 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=pass (2048-bit key; unprotected) header.d=aruba.it header.i=@aruba.it header.a=rsa-sha256 header.s=a1 header.b=Z5V/WVp2; 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 4FgnjM09zNz9sTD for ; Thu, 13 May 2021 20:20:22 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D6C6E81D1B; Thu, 13 May 2021 12:20:19 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=benettiengineering.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=aruba.it header.i=@aruba.it header.b="Z5V/WVp2"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2382281D0B; Thu, 13 May 2021 12:19:25 +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=-1.9 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from smtpcmd12131.aruba.it (smtpcmd12131.aruba.it [62.149.156.131]) by phobos.denx.de (Postfix) with ESMTP id 6384D81EB0 for ; Thu, 13 May 2021 12:18:58 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=benettiengineering.com Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=giulio.benetti@benettiengineering.com Received: from ubuntu.localdomain ([146.241.190.106]) by Aruba Outgoing Smtp with ESMTPSA id h8QelewxePQJJh8QjlLfjU; Thu, 13 May 2021 12:18:58 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aruba.it; s=a1; t=1620901138; bh=gCapXUL9wck3KvxHo5nieMW8+faSWDMmom9cyN3OIao=; h=From:To:Subject:Date:MIME-Version; b=Z5V/WVp2adBXF/GOD+N8XM4mBvxTz65VqqOYTH5dcoVUdabbfAEPy2dc48tcNYJN4 hRgmYea5L6kYWP9S0bzZBFtYbGB9AuTdrhmEOgBqTfZ6NS+PNv+9sjAQ651DEb8Xos roVNViNOddco7bCOzHXZnzVxX7eWmrYb4l0ODcUDUHu/SpCgbUI41IWQT4rd9ihxU0 SmG9CfslbhklVh0grrI9J4Q8mKvM8FEvjPMO5fHTPZWCG+yTDRL7iAYy9GmSPjX/L8 RXofR0+KRqUIvoPjZnAW4mVDNRqwTw6SVQnOvydTHSMH/5cif0nGAcqjm0mTwMYyVp LdUqTeLz0Z6Fg== From: Giulio Benetti To: Stefano Babic Cc: Fabio Estevam , "NXP i.MX U-Boot Team" , Lukasz Majewski , Anatolij Gustschin , Simon Glass , Sean Anderson , Rick Chen , Bin Meng , Claudiu Beznea , Jesse Taube , u-boot@lists.denx.de, Giulio Benetti Subject: [PATCH v3 05/22] ARM: dts: imxrt1020-evk: enable gpt1 timer Date: Thu, 13 May 2021 12:18:34 +0200 Message-Id: <20210513101851.11223-6-giulio.benetti@benettiengineering.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210513101851.11223-1-giulio.benetti@benettiengineering.com> References: <20210513101851.11223-1-giulio.benetti@benettiengineering.com> MIME-Version: 1.0 X-CMAE-Envelope: MS4wfMoRzAfu0p2WXPQB6BED7e9PzPwKU71KvwOtN2dKp4BXoAQKzI9mXO3FXkU66ujteCwBDRXWIR9X2URlT0UkNTgkQn9IrCCX5PoTUi/TrE8/EQLvT8Lp nlGlIK9XqcFm9dOCtiXmxJfxhTwN/Z12TcM2WLQ4K67E9kskqfnOb2Et4VMSslSHMnMadzOEHkvfZ24EiOXltKGTXOtweF0Ys05GBvqi/1eSuiEUFy0VDVz1 6epOzffZaWewSJ2MNiTJYuO+zaHQVks5JilIwp4f6hNJM+TNs/+H9hh1TRfZqWAHyap4hikGlIJa4OTFXT3Uj/+8Ivi/L+74Ihp9g0iwqeg2ycSFg8n4UbP4 qnsq24jVdU6AYT25F4tZ6J83Ip/NwWdDY4cMbToFF2PtSy3ZnVBskq1l8DJmXXuM1X+x1jVpgrCurCaCseel340I8h4GYqD34d2XtpCO+0ANAFr9qQvD3E/d KY5dx4ZfSR7Hgw9EKbIEyfzIOhYfIZXNaeWKH4D+zP8aWxVFw2iR1c5u3BchStl9ASd2G3DBeCYN/aNyptCnkV23eQdD856qiUPh3zKkEWxXMGGjxeVfXd+k 7y4= 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 Enable gpt1 timer. Signed-off-by: Giulio Benetti --- arch/arm/dts/imxrt1020-evk.dts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/dts/imxrt1020-evk.dts b/arch/arm/dts/imxrt1020-evk.dts index ece13601bd..a471ff3838 100644 --- a/arch/arm/dts/imxrt1020-evk.dts +++ b/arch/arm/dts/imxrt1020-evk.dts @@ -186,6 +186,10 @@ }; }; +&gpt1 { + status = "okay"; +}; + &usdhc1 { pinctrl-names = "default", "state_100mhz", "state_200mhz", "sleep"; pinctrl-0 = <&pinctrl_usdhc0>; From patchwork Thu May 13 10:18:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giulio Benetti X-Patchwork-Id: 1478007 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=pass (2048-bit key; unprotected) header.d=aruba.it header.i=@aruba.it header.a=rsa-sha256 header.s=a1 header.b=WeZ4nSNr; 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 4Fgnjb0Pg3z9sTD for ; Thu, 13 May 2021 20:20:34 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2D34A81E18; Thu, 13 May 2021 12:20:25 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=benettiengineering.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=aruba.it header.i=@aruba.it header.b="WeZ4nSNr"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2E68D81D82; Thu, 13 May 2021 12:19:26 +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=-1.9 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from smtpcmd12131.aruba.it (smtpcmd12131.aruba.it [62.149.156.131]) by phobos.denx.de (Postfix) with ESMTP id E6EF381F9B for ; Thu, 13 May 2021 12:18:59 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=benettiengineering.com Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=giulio.benetti@benettiengineering.com Received: from ubuntu.localdomain ([146.241.190.106]) by Aruba Outgoing Smtp with ESMTPSA id h8QelewxePQJJh8QklLfk6; Thu, 13 May 2021 12:18:59 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aruba.it; s=a1; t=1620901139; bh=95pv7UV1JL5Y/qB4IjwomIs1Up98O1kSPwIPcpZzxZU=; h=From:To:Subject:Date:MIME-Version; b=WeZ4nSNrr2uKW1Bv9QgjaYoZ0D8x8AfsrcN2wW9GHkIquVxh6w6D1giRkjKbICCEm Jsp86q8zHX+1eyLeXafxMMf4C4X5SrFFW+Ucv1ujVjA2QUcvbTHFn5n2jDrVJQ0cr3 STQAsMRknpwEcn4J19L03UgyeVnmqwWdGQvoY7T/GCwvmAPMNPqwFgS4ih7kfiBEBo Psf6xzP7c4tNYCbqy2vVf8ncBMsbpbGy+1D/L3gm8HH6gvP2H4FzgGGCuHHGssqM/d NAviA6CyIJabV46LJoegUUKBaB0H61zzpZWSVNMq9W+ZdU2x2TwrkyEo+PESliERsH vHctuUZxGedAA== From: Giulio Benetti To: Stefano Babic Cc: Fabio Estevam , "NXP i.MX U-Boot Team" , Lukasz Majewski , Anatolij Gustschin , Simon Glass , Sean Anderson , Rick Chen , Bin Meng , Claudiu Beznea , Jesse Taube , u-boot@lists.denx.de, Giulio Benetti Subject: [PATCH v3 06/22] ARM: dts: imxrt1020-evk: set gpt1 as tick-timer for u-boot Date: Thu, 13 May 2021 12:18:35 +0200 Message-Id: <20210513101851.11223-7-giulio.benetti@benettiengineering.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210513101851.11223-1-giulio.benetti@benettiengineering.com> References: <20210513101851.11223-1-giulio.benetti@benettiengineering.com> MIME-Version: 1.0 X-CMAE-Envelope: MS4wfHHrdNaQqvx8/9eIt8YKBU6s7lTvSE3FMesS5rkmCmXnFZu9p1HoWetzJ/R9SZOuuchkRAIvKAg+PLABQyfonxVov/m0HZjxUdkEX8dTHzc/+crenK1P CYE2q7txOOAywPDRVy50xaDF0PREh863SbcAnlKFfwOFZLGDENPX4bgFVad50H/7YtCvrbVaq+KbXSlP6DfASMVWZ5J56gNzMMwpfe4eiYEZdVSD8525EbFy vsOpcklX0Lb9AgLMJmg5+QDyMZykmik9YwMq1J6q3j4rhMDZCmYTGCoPF4XICESxAmErWn8KKxJGM1tEfqFkCvhevHQvkOsEKTik4agbjg2AbQ+DXWAcq2kT Tt8ZBmY61xmj8FhGoEqI3mRmAcscU1fvMQX/4Kci2HdKHtPlX1VaQKZ+Qk5qYeVaUBPawnfxKrXsz4ZU4L0y4/6biY3LRbGejfk+zaie28n7BF4flYtXsPhR R0yXiaPrnEUKYEh5uYNQCvGfCX6MPsuOX/yBeDZcYMWdMOeav/I0VQFCNAx4580iv3LjY3TYvLbODK/1hMduNfXE9v853gJhqC7O7J0rtKqba3I5GSoS0OA/ AvM= 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 Let's set gpt1 as u-boot timer. Signed-off-by: Giulio Benetti --- arch/arm/dts/imxrt1020-evk.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/dts/imxrt1020-evk.dts b/arch/arm/dts/imxrt1020-evk.dts index a471ff3838..b527206fcf 100644 --- a/arch/arm/dts/imxrt1020-evk.dts +++ b/arch/arm/dts/imxrt1020-evk.dts @@ -16,6 +16,7 @@ chosen { bootargs = "root=/dev/ram"; stdout-path = "serial0:115200n8"; + tick-timer = &gpt1; }; memory { From patchwork Thu May 13 10:18:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giulio Benetti X-Patchwork-Id: 1478027 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=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=aruba.it header.i=@aruba.it header.a=rsa-sha256 header.s=a1 header.b=bg6s+2N3; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (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 4FgnsX6yyNz9sRf for ; Thu, 13 May 2021 20:27:28 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A8CE782F08; Thu, 13 May 2021 12:26:59 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=benettiengineering.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=aruba.it header.i=@aruba.it header.b="bg6s+2N3"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id CC9C782E4D; Thu, 13 May 2021 12:26: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=-1.9 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=3.4.2 Received: from smtpcmd12131.aruba.it (smtpcmd12131.aruba.it [62.149.156.131]) by phobos.denx.de (Postfix) with ESMTP id CB282818C7 for ; Thu, 13 May 2021 12:19:00 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=benettiengineering.com Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=giulio.benetti@benettiengineering.com Received: from ubuntu.localdomain ([146.241.190.106]) by Aruba Outgoing Smtp with ESMTPSA id h8QelewxePQJJh8QllLfl8; Thu, 13 May 2021 12:19:00 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aruba.it; s=a1; t=1620901140; bh=SwCNdDAtIYS7p8dV2zMrTuWn452PkssFr/hyHrd4Z/4=; h=From:To:Subject:Date:MIME-Version; b=bg6s+2N3WfjK2Qai5B+xIjP/TtOx9KzufBceyfzSpCISl8FO85417UJ081mLW7QZS rFNpWOtTRK+SzCzxS3pUxcQvKGqKmoZbrjcospn2b+QK/onrRBFPu/oUpkCutp1iMY F+TcAMZyvQedkw48K5rYj4FIqJIeFbe3aY9mO4x4r0tRF0QPNZLnhadqAQCSlC6xdP K4pOZbwDWhVgxvs+PkJ34whE9bKrDsBBYxTEjkw+EOvuQMLUE2/NTw+P6t7sYUCNXz Hqy9z2YrQv/5T3Pl/rWMCP30P0fUv8U8KoJ8IQw7jrdgVjn3boJ428Oj68nd+x/+uB YACY2Zum7epQw== From: Giulio Benetti To: Stefano Babic Cc: Fabio Estevam , "NXP i.MX U-Boot Team" , Lukasz Majewski , Anatolij Gustschin , Simon Glass , Sean Anderson , Rick Chen , Bin Meng , Claudiu Beznea , Jesse Taube , u-boot@lists.denx.de, Giulio Benetti Subject: [PATCH v3 07/22] ARM: dts: imxrt1020-evk-u-boot: make gpt1 present for SPL Date: Thu, 13 May 2021 12:18:36 +0200 Message-Id: <20210513101851.11223-8-giulio.benetti@benettiengineering.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210513101851.11223-1-giulio.benetti@benettiengineering.com> References: <20210513101851.11223-1-giulio.benetti@benettiengineering.com> MIME-Version: 1.0 X-CMAE-Envelope: MS4wfGKkkNukfgJVT9/d8Btl59H4g66vKKzq67tJrFCtiPd7Ln0UirbYKg6+6cxaAhwcH4+8lmXa3jIY3K79J247oSCeJBj25TwysQsr6puSt+lkbAJwowBm o2R2+zseCvbN4OT/cNqr93aq6C0NmrvpjQipMzlYK4r5jMLAHCFVwYS35o5a83J/Qd4xVRpS8cVoZJPhuVNuP4sd3C0kz2mCELarI4SE6TWzwqQCWwWk9BY5 nHZ9GladbLY6h/9n0x0olEYMPnDGSjHr63TQxdyjF+xwyTroDIJ6nDHD7GPfmFiqDE6VdmGli2wQimwOSFFk/dapsSbyaQLlwru/coyMna1O9olwSTiFboy8 6Ir/u3VCP4d/c4jkP+C41X70s9/Ih6M8FfZwgPQxfUItSmGypRYiB9Sux33SjJ8T4DJiMOK7ymZyOuL0l/4gTbdMv/7cX0CjgAha6ouME8TH78ga02oekDtN M19UpkgY7jNMOPWvwhpXpHoUZ9PI4iAU4Gm27q7pvXO6TOLSKBRtnFKVQn5FkABWQKhG+a75G32YEAT1eLZ1ktEv2NfYm1tsHA7CbYo6IJXd75S0N1HrMVMi gRk= 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 Timer needs to be already enabled in spl, so let's add its node to spl dtb. Signed-off-by: Giulio Benetti --- arch/arm/dts/imxrt1020-evk-u-boot.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/dts/imxrt1020-evk-u-boot.dtsi b/arch/arm/dts/imxrt1020-evk-u-boot.dtsi index d32c98de9c..34d19e06c5 100644 --- a/arch/arm/dts/imxrt1020-evk-u-boot.dtsi +++ b/arch/arm/dts/imxrt1020-evk-u-boot.dtsi @@ -10,6 +10,10 @@ }; }; +&gpt1 { + u-boot,dm-spl; +}; + &lpuart1 { /* console */ u-boot,dm-spl; }; From patchwork Thu May 13 10:18:37 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giulio Benetti X-Patchwork-Id: 1478009 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=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=aruba.it header.i=@aruba.it header.a=rsa-sha256 header.s=a1 header.b=ZMKK+fkr; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (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 4Fgnjn5vbvz9sTD for ; Thu, 13 May 2021 20:20:45 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D31FB82B0E; Thu, 13 May 2021 12:20:29 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=benettiengineering.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=aruba.it header.i=@aruba.it header.b="ZMKK+fkr"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D5A3D81F9B; Thu, 13 May 2021 12:19:30 +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=-1.9 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from smtpcmd12131.aruba.it (smtpcmd12131.aruba.it [62.149.156.131]) by phobos.denx.de (Postfix) with ESMTP id 5651781FD5 for ; Thu, 13 May 2021 12:19:01 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=benettiengineering.com Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=giulio.benetti@benettiengineering.com Received: from ubuntu.localdomain ([146.241.190.106]) by Aruba Outgoing Smtp with ESMTPSA id h8QelewxePQJJh8QmlLfm3; Thu, 13 May 2021 12:19:01 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aruba.it; s=a1; t=1620901141; bh=NZR1z503lDuhagV8RsWWpu7zJ6WcV2lyeGwH4P8OKVw=; h=From:To:Subject:Date:MIME-Version; b=ZMKK+fkroUXo6XoKs4is7m3y5y9jCK0aIVQHhFmbfLxd5e423WukfgyRdJpBQ0Qhq r7W0hUK8jD6vOg5bVUV27KI2CCaskPKIchz/s4Oa8U5T69axGJ/zidI/M6MJI+YkjA WE1fdKguZtvqDfkJBQHkUuGTVJK2e2eY2mgAb14ffLwqNTPmP5m9H4iu828uHZ/LzK xl8ZbvAUoENCa/fZLmyUua2iJ//+aXs5l7gMjb1aBg/cncfw0EvLWOgRmgMj7No7al LCi5Op/yvA60JgNUJJazvFIz2kwkSJdEJ+gzja2iaBvreW28yMSk1pQcHAk9Sk24p7 9FIX5dZ3ypFtw== From: Giulio Benetti To: Stefano Babic Cc: Fabio Estevam , "NXP i.MX U-Boot Team" , Lukasz Majewski , Anatolij Gustschin , Simon Glass , Sean Anderson , Rick Chen , Bin Meng , Claudiu Beznea , Jesse Taube , u-boot@lists.denx.de, Giulio Benetti Subject: [PATCH v3 08/22] ARM: dts: imxrt1020-evk: add device_type = "memory" to memory node Date: Thu, 13 May 2021 12:18:37 +0200 Message-Id: <20210513101851.11223-9-giulio.benetti@benettiengineering.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210513101851.11223-1-giulio.benetti@benettiengineering.com> References: <20210513101851.11223-1-giulio.benetti@benettiengineering.com> MIME-Version: 1.0 X-CMAE-Envelope: MS4wfBan8KRnTzX6noYkq75IPPzDiYlQkeDt2pCXMnumEYojSEHGXNHI9MAMIKJap9BspunoiQi+IBm3xPnS/X7HzJj890/NtUll28guAR3PwSuA9IkeoinK a7nkeuuysbkSOKOJO5L5L39g/s2lTwOCz3bDvvYHlIH877by44zL+Iwf6Phag0Hi5tZkOYHtRCh3Tf+OE/xo58TrUfP81L3ED3BpZEE4RREGU6/H5A9haL5j +N8IwTRDseUiz8mnBd7+Lyl/6ecdAwJO/3uvVLgyYtfOq2p5jDJvXLz+YsWLXmQ7zhEFySmtNFmB1vAiUirx2dFxgdfJ66mcZTLPnFU1pN0dN+SgzlkzatRg 9yIIF7sLqs+OMOOOTs22zsMV93iJQEqAGBhFf1eXHJRcpPAs+hIuD5OTaVHEEyf0BYyM66MPDru0HOUw9rC5C/mINsAARHb/gxiKwJvTl+ghptV/cHwKDHZT rG7SZfl6rgSf7t/RAHwWMRPjEUt+ptbL620hWhvf8LIKfkE/aN0XC24EfEaLcSicSJuePoJHxKTzS2l1W1xkcVXohkNrN4VhYEejVabbcX+dhH82Q60KudVd Olg= 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 Now device_type = "memory" is mandatory to allow u-boot to read memory node, so let's add it to memory node. Signed-off-by: Giulio Benetti --- arch/arm/dts/imxrt1020-evk.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/dts/imxrt1020-evk.dts b/arch/arm/dts/imxrt1020-evk.dts index b527206fcf..2da79e5c20 100644 --- a/arch/arm/dts/imxrt1020-evk.dts +++ b/arch/arm/dts/imxrt1020-evk.dts @@ -20,6 +20,7 @@ }; memory { + device_type = "memory"; reg = <0x80000000 0x2000000>; }; }; From patchwork Thu May 13 10:18:38 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giulio Benetti X-Patchwork-Id: 1478010 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=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=aruba.it header.i=@aruba.it header.a=rsa-sha256 header.s=a1 header.b=iFDIT0u1; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (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 4Fgnk041Lbz9sWD for ; Thu, 13 May 2021 20:20:56 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C0CF082B73; Thu, 13 May 2021 12:20:35 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=benettiengineering.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=aruba.it header.i=@aruba.it header.b="iFDIT0u1"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id AF87E81D0B; Thu, 13 May 2021 12:19:31 +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=-1.9 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from smtpcmd12131.aruba.it (smtpcmd12131.aruba.it [62.149.156.131]) by phobos.denx.de (Postfix) with ESMTP id 0581982AED for ; Thu, 13 May 2021 12:19:01 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=benettiengineering.com Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=giulio.benetti@benettiengineering.com Received: from ubuntu.localdomain ([146.241.190.106]) by Aruba Outgoing Smtp with ESMTPSA id h8QelewxePQJJh8QnlLfmW; Thu, 13 May 2021 12:19:01 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aruba.it; s=a1; t=1620901141; bh=ldAm/bsUp+5U2q+q72Xt26ns/5Zp0AELLZZfzPnTJu8=; h=From:To:Subject:Date:MIME-Version; b=iFDIT0u1GMa9IZ42h2hl7eCQY1j+nPpNjq9AyECt2UpuUW5HEDqFbP9gBlbSUx6hD aGAAPnzpipxlBPNL8THRNehEkghTIkokX0QeMkLIno6qDhid1aEWQEjIjaQBBgV6JK 5wNgBdn3cjCIcrtQMG5tsaefxwHf0AOE2JDcIwdu6r9a2PTjwbREv1qvHZ/pnm93T+ I2sOqZ0sGJTY6aMoTmtTn9+5b/eoGcXIjRgXHCo9dEbXPUdvJjTH/AhwDPUqcZIrtA OF2eXSSxw1jYx8PZW23Pt/0oCPYNKMHpYucEEGkgBOS245yQWZ7prIEQTDizKvfsfe brLKIOZXIdEqA== From: Giulio Benetti To: Stefano Babic Cc: Fabio Estevam , "NXP i.MX U-Boot Team" , Lukasz Majewski , Anatolij Gustschin , Simon Glass , Sean Anderson , Rick Chen , Bin Meng , Claudiu Beznea , Jesse Taube , u-boot@lists.denx.de, Giulio Benetti Subject: [PATCH v3 09/22] configs: imxrt1020-evk: enable imx gpt timer as tick-timer Date: Thu, 13 May 2021 12:18:38 +0200 Message-Id: <20210513101851.11223-10-giulio.benetti@benettiengineering.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210513101851.11223-1-giulio.benetti@benettiengineering.com> References: <20210513101851.11223-1-giulio.benetti@benettiengineering.com> MIME-Version: 1.0 X-CMAE-Envelope: MS4wfBan8KRnTzX6noYkq75IPPzDiYlQkeDt2pCXMnumEYojSEHGXNHI9MAMIKJap9BspunoiQi+IBm3xPnS/X7HzJj890/NtUll28guAR3PwSuA9IkeoinK a7nkeuuysbkSOKOJO5L5L39g/s2lTwOCz3bDvvYHlIH877by44zL+Iwf6Phag0Hi5tZkOYHtRCh3Tf+OE/xo58TrUfP81L3ED3BpZEE4RREGU6/H5A9haL5j +N8IwTRDseUiz8mnBd7+Lyl/6ecdAwJO/3uvVLgyYtfOq2p5jDJvXLz+YsWLXmQ7zhEFySmtNFmB1vAiUirx2dFxgdfJ66mcZTLPnFU1pN0dN+SgzlkzatRg 9yIIF7sLqs+OMOOOTs22zsMV93iJQEqAGBhFf1eXHJRcpPAs+hIuD5OTaVHEEyf0BYyM66MPDru0HOUw9rC5C/mINsAARHb/gxiKwJvTl+ghptV/cHwKDHZT rG7SZfl6rgSf7t/RAHwWMRPjEUt+ptbL620hWhvf8LIKfkE/aN0XC24EfEaLcSicSJuePoJHxKTzS2l1W1xkcVXohkNrN4VhYEejVabbcX+dhH82Q60KudVd Olg= 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 Let's enable imx-gpt-timer in imx1020-evk defconfig. Signed-off-by: Giulio Benetti --- configs/imxrt1020-evk_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/imxrt1020-evk_defconfig b/configs/imxrt1020-evk_defconfig index ad408ebef8..f0b05b7165 100644 --- a/configs/imxrt1020-evk_defconfig +++ b/configs/imxrt1020-evk_defconfig @@ -61,6 +61,7 @@ CONFIG_IMXRT_SDRAM=y CONFIG_FSL_LPUART=y CONFIG_TIMER=y CONFIG_SPL_TIMER=y +CONFIG_IMX_GPT_TIMER=y CONFIG_SHA1=y CONFIG_SHA256=y CONFIG_HEXDUMP=y From patchwork Thu May 13 10:18:39 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giulio Benetti X-Patchwork-Id: 1478016 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=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=aruba.it header.i=@aruba.it header.a=rsa-sha256 header.s=a1 header.b=PcIHln8Z; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (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 4Fgnln6fLrz9sTD for ; Thu, 13 May 2021 20:22:29 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id F2F6A82F2F; Thu, 13 May 2021 12:22:07 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=benettiengineering.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=aruba.it header.i=@aruba.it header.b="PcIHln8Z"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 844F7826AA; Thu, 13 May 2021 12:20:14 +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=-1.9 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from smtpcmd12131.aruba.it (smtpcmd12131.aruba.it [62.149.156.131]) by phobos.denx.de (Postfix) with ESMTP id BB5B082859 for ; Thu, 13 May 2021 12:19:02 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=benettiengineering.com Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=giulio.benetti@benettiengineering.com Received: from ubuntu.localdomain ([146.241.190.106]) by Aruba Outgoing Smtp with ESMTPSA id h8QelewxePQJJh8QnlLfmv; Thu, 13 May 2021 12:19:02 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aruba.it; s=a1; t=1620901142; bh=W4R/kcfojFVOkeGLalCUCUyY5grmzVLkwZ7oPbel1ho=; h=From:To:Subject:Date:MIME-Version; b=PcIHln8ZLoEn7ediN32wz8PJA7JZOfXW4emLk2e69JFWtqCMrjiOvRE625P/qlykd RfalGysSEBP0zO+gNe2FKDLZsRrT8d4/CeVXcp3mMvsQllw0W1b7KUq8bCQIEaKiIs e+FwUqxaUaPYze7AtFovtdx5HJg7sNk5UeB9ljnDuQHAXjFcWZWYF79ciV1sq7U9zn P9OxxYUmbJmwu95Eft4yDpwY/NmkVhYS5NjeKHG64YIdc8i/LB+TgWTaQmstlp+pkD mc5C2AVgFDx4E7NYkTKHyqwoZz0MRYSho+BlKOo/FzO4scjroVGaY58h3MN4X3yrke dUfgH9EE35Ozg== From: Giulio Benetti To: Stefano Babic Cc: Fabio Estevam , "NXP i.MX U-Boot Team" , Lukasz Majewski , Anatolij Gustschin , Simon Glass , Sean Anderson , Rick Chen , Bin Meng , Claudiu Beznea , Jesse Taube , u-boot@lists.denx.de, Giulio Benetti Subject: [PATCH v3 10/22] ARM: dts: imxrt1050: add node label to osc Date: Thu, 13 May 2021 12:18:39 +0200 Message-Id: <20210513101851.11223-11-giulio.benetti@benettiengineering.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210513101851.11223-1-giulio.benetti@benettiengineering.com> References: <20210513101851.11223-1-giulio.benetti@benettiengineering.com> MIME-Version: 1.0 X-CMAE-Envelope: MS4wfB/dUtP4kS2QNELprvbescpXGHDN6M/2EHvAmIEboUCaAK2SHAq3A9JwMN3V7UYgtZ5GlTb1nBwRIBvIEICzVGtqfTGMWMqYxtnWj57Za6ehEZ/DDm2k 27D9KFv41FbGVjE1f4gWs/NMyBzpe+NnUVQx6cBZQHEnAhjffuP9vUV9D08m6SBff/4fkdk62TArf+Yuy4mwUrWIssvF5b04smy+Gh4+iwLUm3h9wEHQMR3L O5VCKPN5VDAeOvNIJzmhPcFWeCl0hL4ONUJfKGv/Yo18kN2l3JVu6ZP8WDMKuR4a69qGlmSh/4yuITIsAWLqyAT+u2mjtJrxxiToCzUW4fT0rvzp+lDwUFVJ ogry61ZJy6ZzNHuyhhZk/vrGJeomS0ta/XLNMuzNViBMYgbW8DUG2MdqqA97fJ4MbArkdipxsTEKNea3GyMp6e9eVTGf92ImQQsOJN01blBX0gEjjlBwJzg0 LyizwdgYu3Hzmcii7l25uPhFmFGCoNe0mkcNNZE0+BAuihHD0G1uig5y3YMLernHVQD/5Kf16vZiqRjjfu7up2/o6z43xPLPKe/SClhGC3JQDeJwdYjRkDwT t+E= 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 Let's add node label to osc to be used as clock source for other nodes. Signed-off-by: Giulio Benetti --- arch/arm/dts/imxrt1050.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/dts/imxrt1050.dtsi b/arch/arm/dts/imxrt1050.dtsi index a9281001e5..b7cc3fbc2a 100644 --- a/arch/arm/dts/imxrt1050.dtsi +++ b/arch/arm/dts/imxrt1050.dtsi @@ -28,7 +28,7 @@ clocks { u-boot,dm-spl; - osc { + osc: osc { u-boot,dm-spl; compatible = "fsl,imx-osc", "fixed-clock"; #clock-cells = <0>; From patchwork Thu May 13 10:18:40 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giulio Benetti X-Patchwork-Id: 1478020 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=pass (2048-bit key; unprotected) header.d=aruba.it header.i=@aruba.it header.a=rsa-sha256 header.s=a1 header.b=DCcAL+G2; 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 4Fgnqm6jxbz9sWD for ; Thu, 13 May 2021 20:25:56 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2BB1B82E48; Thu, 13 May 2021 12:25:50 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=benettiengineering.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=aruba.it header.i=@aruba.it header.b="DCcAL+G2"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 91F9E82E48; Thu, 13 May 2021 12:20:06 +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=-1.9 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from smtpcmd12131.aruba.it (smtpcmd12131.aruba.it [62.149.156.131]) by phobos.denx.de (Postfix) with ESMTP id 778E982B20 for ; Thu, 13 May 2021 12:19:03 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=benettiengineering.com Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=giulio.benetti@benettiengineering.com Received: from ubuntu.localdomain ([146.241.190.106]) by Aruba Outgoing Smtp with ESMTPSA id h8QelewxePQJJh8QolLfno; Thu, 13 May 2021 12:19:03 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aruba.it; s=a1; t=1620901143; bh=Kk92IKYVZ8ZnL62MkwCUohIfSxPNM0Eqq2fGWSPLH4c=; h=From:To:Subject:Date:MIME-Version; b=DCcAL+G2qr8z07g3zWUEVWGJvG6CsuJXcwomA8XcoVEVpuVcDHUFdGGbMtS31OyPP Z1EykS/lQUT6DNd0iYJaOlqO6ycJCfURd/IfmlSVtGO/R+Lx0dHSdQqEvuvmTZnXM9 1dUfTKw6wLPL9mR09b0/a5+NzL39sQOCjczYmD0zlUy3XPvqXr4Omv+C6UXS5XZxgH 41+VSNp9z1+8U46qvu+59hUCaT86T8Qagi9bZLg6yYHOs51b8iFDsnVGqaMxC+dW+E QwO6IdmTwIy9PHJhRwfZcqCt0nqwnKQ0w08ztmVqB064eG+3Xmznq+EPyEn33bU48W Xwa15bx+1AJ2w== From: Giulio Benetti To: Stefano Babic Cc: Fabio Estevam , "NXP i.MX U-Boot Team" , Lukasz Majewski , Anatolij Gustschin , Simon Glass , Sean Anderson , Rick Chen , Bin Meng , Claudiu Beznea , Jesse Taube , u-boot@lists.denx.de, Giulio Benetti Subject: [PATCH v3 11/22] ARM: dts: imxrt1050: add gpt1 node Date: Thu, 13 May 2021 12:18:40 +0200 Message-Id: <20210513101851.11223-12-giulio.benetti@benettiengineering.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210513101851.11223-1-giulio.benetti@benettiengineering.com> References: <20210513101851.11223-1-giulio.benetti@benettiengineering.com> MIME-Version: 1.0 X-CMAE-Envelope: MS4wfN3qe9F6w0HLL+XiC66eyfyRFKn6KHovdsetAh+K5E7Nbs5fIFXUHCsgi/0e5NbtsTlUREzsrFdBolmRBl5UlMGIN3iWq1dlRz0l4C4TZ07JNBHoLqNv tJCEC6pnxSrsSP+GUbL3LZWcE8L8Ig/mN9bPYbs/wGshtBgOSk+ZKxr5pdMVB3UUTmDlRevr1aZhsvdQAVCC49SqA32Ocq1eG5wA26NqDpFvqVfEIYThSJEs bAVBBYj3tZJ8Qw09Pxwfw8mhp5Dk0ghJpC/zBmigbu1/cZ0LHlys1MOGHHrV/Zjzm22m1cP6d+yWoEbFxq/SkVY8xec5rwHgyGl5cdI2oc9y4NIcrv8PTa33 19ELfsLdiJhqFgN70D6+XXS+psL7Weip9bjLvd3oqqYQbuHmD3YsxW9QhYuwehFNqNOQepplavOrI0NXhKZUOrOYeyQEhOEVD9UfpQxtWSW6pYY1U010YZx6 rWQaCgQCzFTql2RQVQQT+j0l/xdaDtyMK7xxEA99skB8P9fMOdVUPKm+zHWDf74dZce/T9p4pdhuswu4pF69PDokJ8/OZ+FtgW2McpvFL/4Ue405VUFYCGru 784= 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 Add gpt1 node for using it as timer. Signed-off-by: Giulio Benetti --- arch/arm/dts/imxrt1050.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm/dts/imxrt1050.dtsi b/arch/arm/dts/imxrt1050.dtsi index b7cc3fbc2a..6f9da3fe8a 100644 --- a/arch/arm/dts/imxrt1050.dtsi +++ b/arch/arm/dts/imxrt1050.dtsi @@ -154,5 +154,13 @@ clock-names = "per"; status = "disabled"; }; + + gpt1: gpt1@401ec000 { + compatible = "fsl,imxrt-gpt"; + reg = <0x401ec000 0x4000>; + interrupts = <100>; + clocks = <&osc>; + status = "disabled"; + }; }; }; From patchwork Thu May 13 10:18:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giulio Benetti X-Patchwork-Id: 1478012 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=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=aruba.it header.i=@aruba.it header.a=rsa-sha256 header.s=a1 header.b=UJ5zxME9; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (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 4Fgnkr3pffz9sWY for ; Thu, 13 May 2021 20:21:40 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7EE8582B7E; Thu, 13 May 2021 12:21:37 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=benettiengineering.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=aruba.it header.i=@aruba.it header.b="UJ5zxME9"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8BAA182D73; Thu, 13 May 2021 12:20:09 +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=-1.9 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from smtpcmd12131.aruba.it (smtpcmd12131.aruba.it [62.149.156.131]) by phobos.denx.de (Postfix) with ESMTP id 6022D82B51 for ; Thu, 13 May 2021 12:19:04 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=benettiengineering.com Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=giulio.benetti@benettiengineering.com Received: from ubuntu.localdomain ([146.241.190.106]) by Aruba Outgoing Smtp with ESMTPSA id h8QelewxePQJJh8QplLfoZ; Thu, 13 May 2021 12:19:04 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aruba.it; s=a1; t=1620901144; bh=+2HF3rkeiMY62Ap/4lbunWvh9J8cXdMfFsJll6KJI3o=; h=From:To:Subject:Date:MIME-Version; b=UJ5zxME93Kp8QF73keWfZvMEcQzEanj0qp7hLUEbpjna0D4k46v+ZsKHj+h5/a1ne bTgkNrhmX+Ld50NlHW5IgkquZPYVt/jnnsJq7ChKpBY9/tJ2R0gX13gg7yw6bK+IH3 0tQux6kWQ3Ko5RAp3LkZePhoXEuDwRJvY4aIxkba98k/saYtFpUFbHEgCAzWOv2XVQ TWnCaw0wRkgVlaX8NI5nV8NbmTZUyqEqd4kHSUCNK5V3tX9QNkUIfcQwjhV4LAaZ/2 5pu413uSY2Mv01Ba3eRvIajHYIIhtP0Xb+TxtOQ/82el92FT+up0stL8N7hzX3u8a/ nW5AcVmobXgXw== From: Giulio Benetti To: Stefano Babic Cc: Fabio Estevam , "NXP i.MX U-Boot Team" , Lukasz Majewski , Anatolij Gustschin , Simon Glass , Sean Anderson , Rick Chen , Bin Meng , Claudiu Beznea , Jesse Taube , u-boot@lists.denx.de, Giulio Benetti Subject: [PATCH v3 12/22] ARM: dts: imxrt1050-evk: enable gpt1 timer Date: Thu, 13 May 2021 12:18:41 +0200 Message-Id: <20210513101851.11223-13-giulio.benetti@benettiengineering.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210513101851.11223-1-giulio.benetti@benettiengineering.com> References: <20210513101851.11223-1-giulio.benetti@benettiengineering.com> MIME-Version: 1.0 X-CMAE-Envelope: MS4wfBBPbjhHTaBszgFogu1bht1X6bWYwv1N7PemnpyoRHcdiDoS+7QrLOXoLDEXBNVctICYnQuEMcKm5mK9bgUw0pWeVFBVta6Cqs6I3dbS3O4QoKRiKiXy xm7aIC1BAad9tTlj5A8v9O0Z7/EAGxTU+9TNjJUttfXWqNArI+5+ByoOh1EDoALVGWc/lXx+h9990XhIZDtiDz7ujOnIyACpuP7GiU59MjpHubHDPYdtKG4e yECIbAq6GE5WeUK21ZHT2aTJIf+qX/0kdWmOrnIfJl+9BbJ/aqfnV1FhuC7cuuA9dF5mExIvl5Rw4a/VJI0fspiPL+wqWqK6tnQZE3nDs4ITyXy9zGJCh70Z q3j62F3OrXptgiDBAQbWp0LQmBKnLK4It37R/P/Hr7IfGuW7a3c62Oyedef1Nolp4WDo+I17638SFJ1mkzqZIWXSs51NP+iBK2DgyZS2hEp4DdwemWu35lUi 7YSFirI6nz9ixlAAsBz3bhBIxa/z3h12EeGMKK7UFdmXXz9FIMslcTWrgqO+HmDuO0wTlJyMvlqWrsjHMly+AbqtLA1rHo6Unohc0Fa2BW+sdOuhxTF/akzd ZHc= 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 Enable gpt1 timer. Signed-off-by: Giulio Benetti --- arch/arm/dts/imxrt1050-evk.dts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/dts/imxrt1050-evk.dts b/arch/arm/dts/imxrt1050-evk.dts index b5e781275e..e592330332 100644 --- a/arch/arm/dts/imxrt1050-evk.dts +++ b/arch/arm/dts/imxrt1050-evk.dts @@ -215,6 +215,10 @@ }; }; +&gpt1 { + status = "okay"; +}; + &usdhc1 { pinctrl-names = "default", "state_100mhz", "state_200mhz", "sleep"; pinctrl-0 = <&pinctrl_usdhc0>; From patchwork Thu May 13 10:18:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giulio Benetti X-Patchwork-Id: 1478026 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=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=aruba.it header.i=@aruba.it header.a=rsa-sha256 header.s=a1 header.b=Fpw0sHO2; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (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 4FgnsL0N4Zz9sRf for ; Thu, 13 May 2021 20:27:17 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3422282F2F; Thu, 13 May 2021 12:26:56 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=benettiengineering.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=aruba.it header.i=@aruba.it header.b="Fpw0sHO2"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0C36E82E48; Thu, 13 May 2021 12:26:26 +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=-1.9 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=3.4.2 Received: from smtpcmd12131.aruba.it (smtpcmd12131.aruba.it [62.149.156.131]) by phobos.denx.de (Postfix) with ESMTP id 1E5B782D42 for ; Thu, 13 May 2021 12:19:05 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=benettiengineering.com Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=giulio.benetti@benettiengineering.com Received: from ubuntu.localdomain ([146.241.190.106]) by Aruba Outgoing Smtp with ESMTPSA id h8QelewxePQJJh8QqlLfpV; Thu, 13 May 2021 12:19:04 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aruba.it; s=a1; t=1620901144; bh=4H1Tn6ARpS3INe4W79y0YGUwJRPSRBVnXfzXqZaWR2s=; h=From:To:Subject:Date:MIME-Version; b=Fpw0sHO2d8n/52keWMiIs0+DujJ8eA/O2/SxEA6j6YsvZKEmTgXHHO5FvXI3FxU6j YtJ9ZzdcDXPnb+xfT9dRsmavzoEoIiuWA2v+BZUCU07mjcV4mmse/E+n07k2Co/b4d SixUwoVU6tcbe+A/+Me91WIud06VhrVE1RVXjTXWL0+ury573YoD9f1vkCeqj/0gtX 5XY8Xy8F/Rq4Ze0+stsNvH67Buyrs/YBHVgWypHipqTti3WcbrDY5ZGg1IRHcQGJ3Z /bETriidE4i3By6EY2iAEDP7i4vdrJBYIY5TOxCcpTNwDE9xUAPXFvv4NjvqFAvi8s T40upSxnCEvVg== From: Giulio Benetti To: Stefano Babic Cc: Fabio Estevam , "NXP i.MX U-Boot Team" , Lukasz Majewski , Anatolij Gustschin , Simon Glass , Sean Anderson , Rick Chen , Bin Meng , Claudiu Beznea , Jesse Taube , u-boot@lists.denx.de, Giulio Benetti Subject: [PATCH v3 13/22] ARM: dts: imxrt1050-evk: set gpt1 as tick-timer for u-boot Date: Thu, 13 May 2021 12:18:42 +0200 Message-Id: <20210513101851.11223-14-giulio.benetti@benettiengineering.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210513101851.11223-1-giulio.benetti@benettiengineering.com> References: <20210513101851.11223-1-giulio.benetti@benettiengineering.com> MIME-Version: 1.0 X-CMAE-Envelope: MS4wfBBPbjhHTaBszgFogu1bht1X6bWYwv1N7PemnpyoRHcdiDoS+7QrLOXoLDEXBNVctICYnQuEMcKm5mK9bgUw0pWeVFBVta6Cqs6I3dbS3O4QoKRiKiXy xm7aIC1BAad9tTlj5A8v9O0Z7/EAGxTU+9TNjJUttfXWqNArI+5+ByoOh1EDoALVGWc/lXx+h9990XhIZDtiDz7ujOnIyACpuP7GiU59MjpHubHDPYdtKG4e yECIbAq6GE5WeUK21ZHT2aTJIf+qX/0kdWmOrnIfJl+9BbJ/aqfnV1FhuC7cuuA9dF5mExIvl5Rw4a/VJI0fspiPL+wqWqK6tnQZE3nDs4ITyXy9zGJCh70Z q3j62F3OrXptgiDBAQbWp0LQmBKnLK4It37R/P/Hr7IfGuW7a3c62Oyedef1Nolp4WDo+I17638SFJ1mkzqZIWXSs51NP+iBK2DgyZS2hEp4DdwemWu35lUi 7YSFirI6nz9ixlAAsBz3bhBIxa/z3h12EeGMKK7UFdmXXz9FIMslcTWrgqO+HmDuO0wTlJyMvlqWrsjHMly+AbqtLA1rHo6Unohc0Fa2BW+sdOuhxTF/akzd ZHc= 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 Let's set gpt1 as u-boot timer. Signed-off-by: Giulio Benetti --- arch/arm/dts/imxrt1050-evk.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/dts/imxrt1050-evk.dts b/arch/arm/dts/imxrt1050-evk.dts index e592330332..6d21f2b738 100644 --- a/arch/arm/dts/imxrt1050-evk.dts +++ b/arch/arm/dts/imxrt1050-evk.dts @@ -16,6 +16,7 @@ chosen { bootargs = "root=/dev/ram"; stdout-path = "serial0:115200n8"; + tick-timer = &gpt1; }; memory { From patchwork Thu May 13 10:18:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giulio Benetti X-Patchwork-Id: 1478025 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=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=aruba.it header.i=@aruba.it header.a=rsa-sha256 header.s=a1 header.b=hyjospfw; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (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 4Fgns71yyYz9sTD for ; Thu, 13 May 2021 20:27:07 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C130C82E1E; Thu, 13 May 2021 12:26:51 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=benettiengineering.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=aruba.it header.i=@aruba.it header.b="hyjospfw"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id E85BC82E21; Thu, 13 May 2021 12:26:18 +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=-1.9 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=3.4.2 Received: from smtpcmd12131.aruba.it (smtpcmd12131.aruba.it [62.149.156.131]) by phobos.denx.de (Postfix) with ESMTP id ACAAB82D47 for ; Thu, 13 May 2021 12:19:05 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=benettiengineering.com Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=giulio.benetti@benettiengineering.com Received: from ubuntu.localdomain ([146.241.190.106]) by Aruba Outgoing Smtp with ESMTPSA id h8QelewxePQJJh8QqlLfqF; Thu, 13 May 2021 12:19:05 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aruba.it; s=a1; t=1620901145; bh=QbGehThWuGLK1Maog6Y1iF6SruBtQ6WTkckeGz9NU9U=; h=From:To:Subject:Date:MIME-Version; b=hyjospfwZmv7gn4y7L+OMLuW5wiVRc4ht1vWiBwRPx0ua7Y53annZq8PfIiFJC6PD kd5r8SPINB8Eri3f0C24IoNGZlgiCFMdp8SaGx3tzvR+XQwxeNwwa5D+hAPO9QKgGh uVndrN6K4viMVCUJe/6yUOb7znqMsCJuf3HggPKRPO7PDp4IlR97he48RtzFQc0PV2 K5W2ACZx3TOaqeyMw4h2lDtABDQ9peKxNnyk2z6wWRvaCpMHyHBjiT2sXMoJ89iaWv 2RyXvrosIG/wnPqg2l/2mFFEGrGDvRSkpi4FRJMKXgDZlGwT53q6EIEOZMIMg7KwaJ FYJMTitG1SL1A== From: Giulio Benetti To: Stefano Babic Cc: Fabio Estevam , "NXP i.MX U-Boot Team" , Lukasz Majewski , Anatolij Gustschin , Simon Glass , Sean Anderson , Rick Chen , Bin Meng , Claudiu Beznea , Jesse Taube , u-boot@lists.denx.de, Giulio Benetti Subject: [PATCH v3 14/22] ARM: dts: imxrt1050-evk-u-boot: make gpt1 present for SPL Date: Thu, 13 May 2021 12:18:43 +0200 Message-Id: <20210513101851.11223-15-giulio.benetti@benettiengineering.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210513101851.11223-1-giulio.benetti@benettiengineering.com> References: <20210513101851.11223-1-giulio.benetti@benettiengineering.com> MIME-Version: 1.0 X-CMAE-Envelope: MS4wfArBZBGcOe1XhtoRRGYI/IUZYTCSbLjTyoDSb1dzd9HL3yiDbfioPrh4ZZKvcMpnvjrTkwzFIAnjmGkMrQBKmLJLqDw3/7cVVrGN6eaeNbmYeAueCjmL cba+w2Kd4OaVtttPM4nxPsSQ1BVx+NS6EQV+a02ULe8ok8LVtB3r4W5RiZ9DzGIV+dhsn/GiTyyagPr9tTKI2j+VvLw/vyaXQz4W9PaIwvYh1Wan0kNaMfQ9 kcRSb79XKciASTcs72xwhWiqte3ip8ys4v223n4Ab2QGotGO7eWfBbN2Jl+6Z12TgtkxyLVgjhLIV3WQS5r6unDX48epHBp0mZzCa2cYDMtMHhJXN+o16hhw OZrG+K55DoizCEnw1ZdX2YQx61DMxhvLYw2TbtLx5FeE3TO3Nd8rBK6WkzhTipctI8nPyZhG/E9NWJs0HNYpLhgTBlNNRQ8GRRYVUCZgMz/OHYd89y09ZrPO vs4eN5DF1SH1kL6SBrHEy21AZu2WamZpeNCGqK1JLGzB7/hTRuosxVng/W3qTpsGSJPJsvUU7pAlGEA4gwMU+c+RSr//XLsH+YIuxL1tPTE7nQcVxrIeL7XO tPM= 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 Timer needs to be already enabled in spl, so let's add its node to spl dtb. Signed-off-by: Giulio Benetti --- arch/arm/dts/imxrt1050-evk-u-boot.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/dts/imxrt1050-evk-u-boot.dtsi b/arch/arm/dts/imxrt1050-evk-u-boot.dtsi index fb4f7f6f9d..a4b50f0bb2 100644 --- a/arch/arm/dts/imxrt1050-evk-u-boot.dtsi +++ b/arch/arm/dts/imxrt1050-evk-u-boot.dtsi @@ -10,6 +10,10 @@ }; }; +&gpt1 { + u-boot,dm-spl; +}; + &lpuart1 { /* console */ u-boot,dm-spl; }; From patchwork Thu May 13 10:18:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giulio Benetti X-Patchwork-Id: 1478028 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=pass (2048-bit key; unprotected) header.d=aruba.it header.i=@aruba.it header.a=rsa-sha256 header.s=a1 header.b=BTozYaPP; 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 4Fgnsk7270z9sRf for ; Thu, 13 May 2021 20:27:38 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9EAA482E44; Thu, 13 May 2021 12:27:05 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=benettiengineering.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=aruba.it header.i=@aruba.it header.b="BTozYaPP"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4A05082D42; Thu, 13 May 2021 12:26:35 +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=-1.9 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=3.4.2 Received: from smtpcmd12136.aruba.it (smtpcmd12136.aruba.it [62.149.156.136]) by phobos.denx.de (Postfix) with ESMTP id 43F4182D61 for ; Thu, 13 May 2021 12:19:06 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=benettiengineering.com Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=giulio.benetti@benettiengineering.com Received: from ubuntu.localdomain ([146.241.190.106]) by Aruba Outgoing Smtp with ESMTPSA id h8QelewxePQJJh8QrlLfqy; Thu, 13 May 2021 12:19:06 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aruba.it; s=a1; t=1620901146; bh=FoGhkiCFYnbQa9s2+wFOZdUAq26/f1znNAZeF1bXI3Y=; h=From:To:Subject:Date:MIME-Version; b=BTozYaPPR/PEmxFDjxW6EyGhFSW7oaVOoVIvUOAVM7GzBLt9H+UlZAuMq5qru0uXh U3+/Jgz71q7rUo8ok8SnD9KePltVXFRXkKJZEjy9ryoXkjJdLvGWrltMUtyZEtUr4n bVHG5ZvBeD1ZWNwaW7lw2jNlaT9GP3gJ86CWQDBFn9rQaC3cwB+8kmtBUrR/agYwHs 7DErflIE0xX025xgZBMzgxlVQ4Wr4QU1NWL300PHKVRkqVTAW7xx9+KxwZXtiobsYu 50EDOmkSKHADlAMyjcxkdGnOUkTot7gk1iN1ElTppdUrP++ks27lvoWt2sMCN1kTzs 7Gq8yWaqBCfhA== From: Giulio Benetti To: Stefano Babic Cc: Fabio Estevam , "NXP i.MX U-Boot Team" , Lukasz Majewski , Anatolij Gustschin , Simon Glass , Sean Anderson , Rick Chen , Bin Meng , Claudiu Beznea , Jesse Taube , u-boot@lists.denx.de, Giulio Benetti Subject: [PATCH v3 15/22] ARM: dts: imxrt1050-evk: add device_type = "memory" to memory node Date: Thu, 13 May 2021 12:18:44 +0200 Message-Id: <20210513101851.11223-16-giulio.benetti@benettiengineering.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210513101851.11223-1-giulio.benetti@benettiengineering.com> References: <20210513101851.11223-1-giulio.benetti@benettiengineering.com> MIME-Version: 1.0 X-CMAE-Envelope: MS4wfDjgh8803s8+ls3VtStS4vUd9RPQvOO0jr3CHpBjzBhOsIXTRnPKDhNRM9g9+1m5ILiy7qOYeasauF14BQCpS/YXH/U/Iiv+M7xxeyVnU7Irbvk9vPyw NKs9YCxHbUPUFORyy/9Vzr6eLcPOQh/Qcc/0s4VnjNw0G/r4Kigq7LIizxtjZkJFa2GujJr7aHbRESSnFl6XvoBuNeSyHHQAnRxA7oiZfRPTcQl2kxYGCxo/ EjEfcGqjSiuJMQMrvgFxhRP6iNSflUgLuxgQ4Oj49gmpvek4MdV0vThRQNIfl1X5OOUG/orLefP8jz8EsDztfHhq0SgBQiO5YSn+t62t7kaNJqCiHD44OzNH qr9TPAipG4+8rYqSno9upJm82gDY3OZhXAlD6WUbWWgje/xDZo9W9cqK/KgmKKoaSW8+rn3KR9wCbbTPx3XSjCeNUqqtNQUv6cVeobkLYC0j9lFnVmtsJMmm aAroQws8LVz1y+clGBRHthD23CAAF/m/arcZhknG2uC2krFMI4nr+KbhUFf9Z2A8Y228V5ZU9/yclGJGTlcmfKG15RaH3HLAkpv4xf/DWinLSNZTN7tm1GCv wNM= 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 Now device_type = "memory" is mandatory to allow u-boot to read memory node, so let's add it to memory node. Signed-off-by: Giulio Benetti --- arch/arm/dts/imxrt1050-evk.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/dts/imxrt1050-evk.dts b/arch/arm/dts/imxrt1050-evk.dts index 6d21f2b738..2052d4eb4e 100644 --- a/arch/arm/dts/imxrt1050-evk.dts +++ b/arch/arm/dts/imxrt1050-evk.dts @@ -20,6 +20,7 @@ }; memory { + device_type = "memory"; reg = <0x80000000 0x2000000>; }; }; From patchwork Thu May 13 10:18:45 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giulio Benetti X-Patchwork-Id: 1478014 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=pass (2048-bit key; unprotected) header.d=aruba.it header.i=@aruba.it header.a=rsa-sha256 header.s=a1 header.b=IMEOPzVm; 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 4FgnlN3XTWz9sTD for ; Thu, 13 May 2021 20:22:08 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 0553982EC6; Thu, 13 May 2021 12:21:49 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=benettiengineering.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=aruba.it header.i=@aruba.it header.b="IMEOPzVm"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0364D82B20; Thu, 13 May 2021 12:20:09 +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=-1.9 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from smtpcmd12136.aruba.it (smtpcmd12136.aruba.it [62.149.156.136]) by phobos.denx.de (Postfix) with ESMTP id 0BF8582D73 for ; Thu, 13 May 2021 12:19:06 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=benettiengineering.com Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=giulio.benetti@benettiengineering.com Received: from ubuntu.localdomain ([146.241.190.106]) by Aruba Outgoing Smtp with ESMTPSA id h8QelewxePQJJh8QslLfrR; Thu, 13 May 2021 12:19:06 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aruba.it; s=a1; t=1620901146; bh=QK1ndgtiwuUSFirrcxzCVxvBiz0d//m/ReJgPgcUqxI=; h=From:To:Subject:Date:MIME-Version; b=IMEOPzVmOjHAMAWIIt5qEIzz1fzZR0wcjs97gZtrhoLQVljhvR88ZJS9HH7/laAQb fGsy8K0xXqYD1mvkv7x1SlqStHp+ORPvwcC7p9kIoXvkREQ6Bpbu6C1ZWDIxLYmwOM qtoeT9ZSj/Gvqyk7DWQ67bokY3ezXmhQmOXUIQub8MAneOr9/Ajfh6IoTSnGTEGOvK IGB3UVyjlu1NRpYWzT9+yRUvn6LnTNkIugXntVKO/726dNY6ayBD7OjKjbTa5yGLIv p0dYX5o59C1UDf/o10kL3WXooPsrFY5dTN4004R+/9CAZ2NHV6jwvAsVIc2493it5h qyCyNthTtWHqg== From: Giulio Benetti To: Stefano Babic Cc: Fabio Estevam , "NXP i.MX U-Boot Team" , Lukasz Majewski , Anatolij Gustschin , Simon Glass , Sean Anderson , Rick Chen , Bin Meng , Claudiu Beznea , Jesse Taube , u-boot@lists.denx.de, Giulio Benetti Subject: [PATCH v3 16/22] configs: imxrt1050-evk: enable imx gpt timer as tick-timer Date: Thu, 13 May 2021 12:18:45 +0200 Message-Id: <20210513101851.11223-17-giulio.benetti@benettiengineering.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210513101851.11223-1-giulio.benetti@benettiengineering.com> References: <20210513101851.11223-1-giulio.benetti@benettiengineering.com> MIME-Version: 1.0 X-CMAE-Envelope: MS4wfDjgh8803s8+ls3VtStS4vUd9RPQvOO0jr3CHpBjzBhOsIXTRnPKDhNRM9g9+1m5ILiy7qOYeasauF14BQCpS/YXH/U/Iiv+M7xxeyVnU7Irbvk9vPyw NKs9YCxHbUPUFORyy/9Vzr6eLcPOQh/Qcc/0s4VnjNw0G/r4Kigq7LIizxtjZkJFa2GujJr7aHbRESSnFl6XvoBuNeSyHHQAnRxA7oiZfRPTcQl2kxYGCxo/ EjEfcGqjSiuJMQMrvgFxhRP6iNSflUgLuxgQ4Oj49gmpvek4MdV0vThRQNIfl1X5OOUG/orLefP8jz8EsDztfHhq0SgBQiO5YSn+t62t7kaNJqCiHD44OzNH qr9TPAipG4+8rYqSno9upJm82gDY3OZhXAlD6WUbWWgje/xDZo9W9cqK/KgmKKoaSW8+rn3KR9wCbbTPx3XSjCeNUqqtNQUv6cVeobkLYC0j9lFnVmtsJMmm aAroQws8LVz1y+clGBRHthD23CAAF/m/arcZhknG2uC2krFMI4nr+KbhUFf9Z2A8Y228V5ZU9/yclGJGTlcmfKG15RaH3HLAkpv4xf/DWinLSNZTN7tm1GCv wNM= 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 Let's enable imx-gpt-timer in imx1050-evk defconfig. Signed-off-by: Giulio Benetti --- configs/imxrt1050-evk_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/imxrt1050-evk_defconfig b/configs/imxrt1050-evk_defconfig index d03572e7db..9c8bdb07dc 100644 --- a/configs/imxrt1050-evk_defconfig +++ b/configs/imxrt1050-evk_defconfig @@ -64,6 +64,7 @@ CONFIG_IMXRT_SDRAM=y CONFIG_FSL_LPUART=y CONFIG_TIMER=y CONFIG_SPL_TIMER=y +CONFIG_IMX_GPT_TIMER=y CONFIG_DM_VIDEO=y CONFIG_BACKLIGHT_GPIO=y CONFIG_SYS_WHITE_ON_BLACK=y From patchwork Thu May 13 10:18:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giulio Benetti X-Patchwork-Id: 1478015 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=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=aruba.it header.i=@aruba.it header.a=rsa-sha256 header.s=a1 header.b=I4mueezQ; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (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 4Fgnlb4542z9sTD for ; Thu, 13 May 2021 20:22:19 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C69F882F18; Thu, 13 May 2021 12:21:53 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=benettiengineering.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=aruba.it header.i=@aruba.it header.b="I4mueezQ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B64A381E77; Thu, 13 May 2021 12:20:14 +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=-1.9 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from smtpcmd12136.aruba.it (smtpcmd12136.aruba.it [62.149.156.136]) by phobos.denx.de (Postfix) with ESMTP id A308C82E21 for ; Thu, 13 May 2021 12:19:07 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=benettiengineering.com Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=giulio.benetti@benettiengineering.com Received: from ubuntu.localdomain ([146.241.190.106]) by Aruba Outgoing Smtp with ESMTPSA id h8QelewxePQJJh8QslLfsB; Thu, 13 May 2021 12:19:07 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aruba.it; s=a1; t=1620901147; bh=osD5OohJ3jVqGelGwifdU8O5elMzA+1nHfow7759nhA=; h=From:To:Subject:Date:MIME-Version; b=I4mueezQKD4/XjuCphkWk+dWYbTZT/oY6uHQv3d9XazY6oN412Ucx5IStu2Dbp1Vg SC9qnq5pX4xd7QYYiiNfkujWPKMXbb9WegwzBTr7LKHKnuSCwe8u7NW4XBGXPt6BqC gYxfZAQq5NCQFgd4uXXOPUqprqvUnmx4Rvw7OT9mxfCsZNrqqN8YBpudtPNg4FzaI7 2RipEqBvba0Q1a1rnI7mn9YOF3ofqXxBMmpeo1X4Num9+EQRwOllNO1g9y4JnHxflQ Uk3PpMqvQ1XzmoGFziWAQA9Vo3uaEnnlrc1zKXVrCv42YHNaOhAPLQpY451GFrvWEQ p3uOrzp3/uYFg== From: Giulio Benetti To: Stefano Babic Cc: Fabio Estevam , "NXP i.MX U-Boot Team" , Lukasz Majewski , Anatolij Gustschin , Simon Glass , Sean Anderson , Rick Chen , Bin Meng , Claudiu Beznea , Jesse Taube , u-boot@lists.denx.de, Giulio Benetti Subject: [PATCH v3 17/22] video: mxsfb: add enabling of "axi" clock other than "per" clock Date: Thu, 13 May 2021 12:18:46 +0200 Message-Id: <20210513101851.11223-18-giulio.benetti@benettiengineering.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210513101851.11223-1-giulio.benetti@benettiengineering.com> References: <20210513101851.11223-1-giulio.benetti@benettiengineering.com> MIME-Version: 1.0 X-CMAE-Envelope: MS4wfACVsRPitZQaSSj9K/KkTapnGaisT19y0jgmcPM1E7ce3MiwHgJssP6EL1m3kn7gtCyYZfaeOdojSEtsBJf1sOr+kUdGTCYpoYqzd8m0G5wuq84rP7Tx dfS15YGKCh69ivQdL73NMySIQWOoGzfUBUSYXggDHon0g8SI+nccSqwLT3dXppeH+3iTlcRZD6reORG5ibJIsmZzBvVDwjap8Fd7cgQ/GBOEje4EOEvgzAUX PyaPH6Oz/QetziEUX0AIjS47EIE+2wZ1O/IYtJuRv1aHAymxIy1LnfwWjc0DbZHJ8/4CX0kr9vX0EbzN9w/C6r4CCiYfEgoUqSDce1ldcxITWnhJ69nKUgCn V//OARwSrPG13dmHUzf+iPKrLTpadV/ejakPa4dAptGMELizQXJwVX61o4CKU/Hi66sQinyKbdqVXMVJplBTa5G9htCoAbT/fxzCkQpFXkGukz670uQfYywo l5kGj8L+edjpOB+40plIuGTGN2RLJ1/Z/e+U3jq0jgw15ty+mUNcagYramP+UD9qz1bw8BWM+1i9zTSoRKlBLQielgf0d1EmVNBaJU3n0cxupOEj/iO23dQY w3s= 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 On some SoC mxsfb needs more than one clock gate(actual "per" clock). So let's introduce "axi" clock that can be provided but it's not mandatory. This is inspired from linux mxsfb driver. Also let's rename "per" clock to "pix" clock for compatibility with already existing .dts lcdif nodes implementation. Signed-off-by: Giulio Benetti --- drivers/video/mxsfb.c | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/drivers/video/mxsfb.c b/drivers/video/mxsfb.c index e1fd36a62d..147bd668fe 100644 --- a/drivers/video/mxsfb.c +++ b/drivers/video/mxsfb.c @@ -67,26 +67,37 @@ static void mxs_lcd_init(struct udevice *dev, u32 fb_addr, uint32_t vdctrl0; #if CONFIG_IS_ENABLED(CLK) - struct clk per_clk; + struct clk clk; int ret; - ret = clk_get_by_name(dev, "per", &per_clk); + ret = clk_get_by_name(dev, "pix", &clk); if (ret) { - dev_err(dev, "Failed to get mxs clk: %d\n", ret); + dev_err(dev, "Failed to get mxs pix clk: %d\n", ret); return; } - ret = clk_set_rate(&per_clk, timings->pixelclock.typ); + ret = clk_set_rate(&clk, timings->pixelclock.typ); if (ret < 0) { - dev_err(dev, "Failed to set mxs clk: %d\n", ret); + dev_err(dev, "Failed to set mxs pix clk: %d\n", ret); return; } - ret = clk_enable(&per_clk); + ret = clk_enable(&clk); if (ret < 0) { - dev_err(dev, "Failed to enable mxs clk: %d\n", ret); + dev_err(dev, "Failed to enable mxs pix clk: %d\n", ret); return; } + + ret = clk_get_by_name(dev, "axi", &clk); + if (!ret) { + debug("%s: Failed to get mxs axi clk: %d\n", __func__, ret); + } else { + ret = clk_enable(&clk); + if (ret < 0) { + dev_err(dev, "Failed to enable mxs axi clk: %d\n", ret); + return; + } + } #else /* Kick in the LCDIF clock */ mxs_set_lcdclk(MXS_LCDIF_BASE, timings->pixelclock.typ / 1000); From patchwork Thu May 13 10:18:47 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giulio Benetti X-Patchwork-Id: 1478021 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=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=aruba.it header.i=@aruba.it header.a=rsa-sha256 header.s=a1 header.b=MwLAP6Yn; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (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 4Fgnr451zjz9sTD for ; Thu, 13 May 2021 20:26:12 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 769C082E4B; Thu, 13 May 2021 12:26:09 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=benettiengineering.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=aruba.it header.i=@aruba.it header.b="MwLAP6Yn"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 878F682F23; Thu, 13 May 2021 12:25:51 +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=-1.9 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=3.4.2 Received: from smtpcmd12136.aruba.it (smtpcmd12136.aruba.it [62.149.156.136]) by phobos.denx.de (Postfix) with ESMTP id 67F6782E2B for ; Thu, 13 May 2021 12:19:08 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=benettiengineering.com Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=giulio.benetti@benettiengineering.com Received: from ubuntu.localdomain ([146.241.190.106]) by Aruba Outgoing Smtp with ESMTPSA id h8QelewxePQJJh8QtlLfsq; Thu, 13 May 2021 12:19:08 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aruba.it; s=a1; t=1620901148; bh=/TxuRpUn4rRRfOuDHCodJZicrYC531aOJXIYK2IbTBw=; h=From:To:Subject:Date:MIME-Version; b=MwLAP6Ynq0OJheV7gP9ChYNv35r07P1g9sNzcvzoKS1qORj4HqLeIQ0Z8O27uCbAc 1zOqP2p7sR7jJZLR+Jbzkgs0gt/AjYPQr9eHeo2NFRytjYHrhwgvl46g79BYdVThh5 qoxOjLwzRD/Bgql8ov8Pq3cpWRPz/2nZTwX022ld4PebMlXnBOpkJqaZG10MzuJBTx c56sE7soCBdVmkODyX40txM0PHOLjRQ8W5huzykdgBgM3kD1LUGu5V+HaIPBBhwCEO BJDk2WWoo/W81ce+KvcLaroEyh1mvoJntWDplhhEfqbuQHiGGcFl8Ve2ZslVN8+5R2 TEGw1f7FRprCA== From: Giulio Benetti To: Stefano Babic Cc: Fabio Estevam , "NXP i.MX U-Boot Team" , Lukasz Majewski , Anatolij Gustschin , Simon Glass , Sean Anderson , Rick Chen , Bin Meng , Claudiu Beznea , Jesse Taube , u-boot@lists.denx.de, Giulio Benetti Subject: [PATCH v3 18/22] video: mxsfb: add enabling of "disp_axi" clock Date: Thu, 13 May 2021 12:18:47 +0200 Message-Id: <20210513101851.11223-19-giulio.benetti@benettiengineering.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210513101851.11223-1-giulio.benetti@benettiengineering.com> References: <20210513101851.11223-1-giulio.benetti@benettiengineering.com> MIME-Version: 1.0 X-CMAE-Envelope: MS4wfI8vtS9HWgEml7ur97sXHCTZKlDsl6/PMfxdfRQUHBfcWmMiaLYphznjJdePb9NB8LAuXilA+Apafa6LmgWiqpl8pAspRDMpeVglX5uXRp9Piss3U/Ii d7vm/dO6eX8xTmWElwkckT0roDqxfOvuMscUeYjmHZZo+5OeUSpaQqol+haxK6RdN96L9y/aJoT7vrAMn30t1YeQ2xSJOKHrllRhDQi1zDlUef585g/RzqAQ /guH432VVim4hYGbEORNhueEIPMCV2iWbgnHnS7vS3xQxGKpdBAxoKEuNDPyTvh8lzg7K5AkpO1Q015nouWqOFm5KPaguVO5tGEkRYnUZ+UBtMUbkZ3OFJLg x/C1oGbaD7C20eZSuOMsxazsAcGgH6cE7ya98zXmYr6lBY9B37IYEaCTy9TXLtEWWXkIxVn1UeZfG2Rh8O0HErjoS9dJNRBpCCpkP8yhbTJPe47DOuEoc5m/ ZG42SwsABNncQTuz1lYNJjgvKWcK6MsXnpImxzumr2Wgm4vBjm+KcPB4VALjqW7cc9bop1QmXX/Dc+sCQNN0N1G19rnflxAyzy4/Sp+wJRoWaQF/8+dzjmZ1 qS4= 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 Some SoC needs "disp_axi" clock to be enabled, so let's try to retrieve it and enabling. If it fails it gives only a debug(), but this clock as well as "axi" clock is not mandatory. Signed-off-by: Giulio Benetti --- drivers/video/mxsfb.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/video/mxsfb.c b/drivers/video/mxsfb.c index 147bd668fe..523d8a8d98 100644 --- a/drivers/video/mxsfb.c +++ b/drivers/video/mxsfb.c @@ -98,6 +98,17 @@ static void mxs_lcd_init(struct udevice *dev, u32 fb_addr, return; } } + + ret = clk_get_by_name(dev, "disp_axi", &clk); + if (!ret) { + debug("%s: Failed to get mxs disp_axi clk: %d\n", __func__, ret); + } else { + ret = clk_enable(&clk); + if (ret < 0) { + dev_err(dev, "Failed to enable mxs disp_axi clk: %d\n", ret); + return; + } + } #else /* Kick in the LCDIF clock */ mxs_set_lcdclk(MXS_LCDIF_BASE, timings->pixelclock.typ / 1000); From patchwork Thu May 13 10:19:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giulio Benetti X-Patchwork-Id: 1478022 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=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=aruba.it header.i=@aruba.it header.a=rsa-sha256 header.s=a1 header.b=IB+apOGc; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (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 4FgnrG0JXkz9sTD for ; Thu, 13 May 2021 20:26:21 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4833F82E50; Thu, 13 May 2021 12:26:14 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=benettiengineering.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=aruba.it header.i=@aruba.it header.b="IB+apOGc"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4A9A582F23; Thu, 13 May 2021 12:25:56 +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=-1.9 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=3.4.2 Received: from smtpcmd11116.aruba.it (smtpcmd11116.aruba.it [62.149.156.116]) by phobos.denx.de (Postfix) with ESMTP id 9C6B482D69 for ; Thu, 13 May 2021 12:20:46 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=benettiengineering.com Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=giulio.benetti@benettiengineering.com Received: from ubuntu.localdomain ([146.241.190.106]) by Aruba Outgoing Smtp with ESMTPSA id h8RNlzmEqhNX8h8RVltzkQ; Thu, 13 May 2021 12:19:48 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aruba.it; s=a1; t=1620901188; bh=GvOi0N27mmD2T37SNcUqkrypP/S5cZmVGzQUZlnpHPw=; h=From:To:Subject:Date:MIME-Version; b=IB+apOGcjqfGynABF2s7G2XLEsBLZ+ctlYYxYDe8TYOpagPPKBEmtz1BAfziUvaNK Gmd94UioMTyQV6SWI1LFhbbqJbpkxJ/7ULf/xNMEhh6IxePdkRTh+pcpYDyd3O5I6S IaP0LAlpU2ulNn1+Yk2LMWGciWFcpGGtrxJmGbJ47anV7FRXsQ8UzzXZSLsRIMJWll 1DyXMokDjqzNTSQLwnZLklcupdbScR/dXK0ib+38qhcQMVadm4wK0x/5ag6C5IojjO UCf1brf/F9K4LGAe7pRyjr8JolgMjzBt3EucfBlbRrbNz7OJDLijcpHHqbc9SRaqak pJJzViESy1KFA== From: Giulio Benetti To: Stefano Babic Cc: Fabio Estevam , "NXP i.MX U-Boot Team" , Lukasz Majewski , Anatolij Gustschin , Simon Glass , Sean Anderson , Rick Chen , Bin Meng , Claudiu Beznea , Jesse Taube , u-boot@lists.denx.de, Giulio Benetti Subject: [PATCH v3 19/22] clk: imx: clk-imxrt1050: introduce LCDIF_PIX and rename LCDIF to LCDIF_APB Date: Thu, 13 May 2021 12:19:33 +0200 Message-Id: <20210513101936.11318-2-giulio.benetti@benettiengineering.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210513101936.11318-1-giulio.benetti@benettiengineering.com> References: <20210513101936.11318-1-giulio.benetti@benettiengineering.com> MIME-Version: 1.0 X-CMAE-Envelope: MS4wfHtaKzDgg6KW6v9g/vkKrfF4yBtAEZtFxshtXukysEecqomgiVNTUeLQD7M7nOQ7/Yo3En+vx2y5XSvWidEJziPmAFjg+Z9VIwPSzQwFHERaz9paRpCW e3A+jpLDsiHxLJZs3pVkrZedVyMFIcP77aEDEgEAlbJ3iqgoMKwvctH3qgIlXmK4wkM45UPwzSUSjUcU3Rgv+1XHnZti56KRCPzFqj3dubt6r9vOCxl4LVK7 MIEtnwopTHj3BYJjkSEhJ3UC8cam2cTtBR0qNxJDgRP5C/SUFFKR3MiKl1gdMu11mgzduIBR5Z/Ll/HDxv5LJ0n/s+dQW9jG1yBM1AgWp201MeM0XN8y2+mp Joi6PoH8S161ET2N5FkRYZjqX4NDIVBTZEupCK2F/8LW/9OwU5FbsHmBjv8Jhbenb38jOsk8FxR3Ctd1rHqB98Gc9fEKRBKHOGtNcdb3WbJBnppFnYH0DMn/ oJKWJvvfzqw/QEO1ZsReSFRLdmmoguOpK1ta1EmxnU8As3ImHlhCOBAnjV/dftNzajf2j0YlCUSoaTF9kPReO4/G4TCvY5uRWBUiEGNFK68iTt9N2xlmUBDv OAQ= 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 Lcd peripheral needs 2 different gates to be enable to work, so let's introduce the missing one(LCDIF_PIX) and rename the existing one (LCDIF_APB). Signed-off-by: Giulio Benetti --- drivers/clk/imx/clk-imxrt1050.c | 6 ++++-- include/dt-bindings/clock/imxrt1050-clock.h | 5 +++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/drivers/clk/imx/clk-imxrt1050.c b/drivers/clk/imx/clk-imxrt1050.c index 594093ee5f..eb6847f865 100644 --- a/drivers/clk/imx/clk-imxrt1050.c +++ b/drivers/clk/imx/clk-imxrt1050.c @@ -255,8 +255,10 @@ static int imxrt1050_clk_probe(struct udevice *dev) imx_clk_gate2("lpuart1", "lpuart_podf", base + 0x7c, 24)); clk_dm(IMXRT1050_CLK_SEMC, imx_clk_gate2("semc", "semc_podf", base + 0x74, 4)); - clk_dm(IMXRT1050_CLK_LCDIF, - imx_clk_gate2("lcdif", "lcdif_podf", base + 0x74, 10)); + clk_dm(IMXRT1050_CLK_LCDIF_APB, + imx_clk_gate2("lcdif", "lcdif_podf", base + 0x70, 28)); + clk_dm(IMXRT1050_CLK_LCDIF_PIX, + imx_clk_gate2("lcdif_pix", "lcdif", base + 0x74, 10)); struct clk *clk, *clk1; diff --git a/include/dt-bindings/clock/imxrt1050-clock.h b/include/dt-bindings/clock/imxrt1050-clock.h index c174f90c1a..09b65e5df2 100644 --- a/include/dt-bindings/clock/imxrt1050-clock.h +++ b/include/dt-bindings/clock/imxrt1050-clock.h @@ -52,7 +52,7 @@ #define IMXRT1050_CLK_USDHC2 43 #define IMXRT1050_CLK_LPUART1 44 #define IMXRT1050_CLK_SEMC 45 -#define IMXRT1050_CLK_LCDIF 46 +#define IMXRT1050_CLK_LCDIF_APB 46 #define IMXRT1050_CLK_PLL1_ARM 47 #define IMXRT1050_CLK_PLL2_SYS 48 #define IMXRT1050_CLK_PLL3_USB_OTG 49 @@ -60,6 +60,7 @@ #define IMXRT1050_CLK_PLL5_VIDEO 51 #define IMXRT1050_CLK_PLL6_ENET 52 #define IMXRT1050_CLK_PLL7_USB_HOST 53 -#define IMXRT1050_CLK_END 54 +#define IMXRT1050_CLK_LCDIF_PIX 54 +#define IMXRT1050_CLK_END 55 #endif /* __DT_BINDINGS_CLOCK_IMXRT1050_H */ From patchwork Thu May 13 10:19:34 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giulio Benetti X-Patchwork-Id: 1478018 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=pass (2048-bit key; unprotected) header.d=aruba.it header.i=@aruba.it header.a=rsa-sha256 header.s=a1 header.b=Wh1roo1H; 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 4FgnmD23J5z9sTD for ; Thu, 13 May 2021 20:22:52 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5E19982F42; Thu, 13 May 2021 12:22:21 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=benettiengineering.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=aruba.it header.i=@aruba.it header.b="Wh1roo1H"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5AAE882E6A; Thu, 13 May 2021 12:21:07 +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=-1.9 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from smtpcmd11116.aruba.it (smtpcmd11116.aruba.it [62.149.156.116]) by phobos.denx.de (Postfix) with ESMTP id 985BC82E1E for ; Thu, 13 May 2021 12:20:47 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=benettiengineering.com Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=giulio.benetti@benettiengineering.com Received: from ubuntu.localdomain ([146.241.190.106]) by Aruba Outgoing Smtp with ESMTPSA id h8RNlzmEqhNX8h8RYltzo7; Thu, 13 May 2021 12:19:50 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aruba.it; s=a1; t=1620901190; bh=jem8H4U+FIiJzSgEmkRNOlHbr6CB84ZfC5T5hs4sZEo=; h=From:To:Subject:Date:MIME-Version; b=Wh1roo1Hhos+IPv9YPkvR6+wHozvzzREabvBlLdXrulZ8IoKZBqb4hGeX6DhLX9JW YbwfQPM8znZd9K+3tZV9/CaNiOXTvV4VcoedR8/5DN3qpig8T87hAe4zhkVaOBEb2W 6y6VY+f5wK2/T2vs9p/k5KIvKI+ZyZw/GuVHREUJyWkGNEY8Lwxzp7pE4BbaSOwx9B GHVatgJYvQyY9uxfunUV1dwoynMSkWOUUKg8CsAaFfbaFTYwFYLx7qMOa7n9k/uIVp UvBchZTGPeIK0J5pIF6UAJApkc2NKTqRSQeKcMFh42zyOJNFHzHXIVP8AL++7KvjOX 5e5AX8IzaitYg== From: Giulio Benetti To: Stefano Babic Cc: Fabio Estevam , "NXP i.MX U-Boot Team" , Lukasz Majewski , Anatolij Gustschin , Simon Glass , Sean Anderson , Rick Chen , Bin Meng , Claudiu Beznea , Jesse Taube , u-boot@lists.denx.de, Giulio Benetti Subject: [PATCH v3 20/22] ARM: dts: imxrt1050: move lcdif assigned clock to dtsi Date: Thu, 13 May 2021 12:19:34 +0200 Message-Id: <20210513101936.11318-3-giulio.benetti@benettiengineering.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210513101936.11318-1-giulio.benetti@benettiengineering.com> References: <20210513101936.11318-1-giulio.benetti@benettiengineering.com> MIME-Version: 1.0 X-CMAE-Envelope: MS4wfCpN2Dcl9fubFOx/SOeicBK/FybP2Yb1y/ZLpTY7HXQSww66ggAaRUQJ73EOxX7XmMxcAYOVjwJlM4NeBvHE6FCJhSNUu6BNRyVv/vVCn0p2xEyS9sOW fzO/zzj6yNNequd1eFb4RrWxkitrnCYvK4w7B4RskWbxRL8AqTg8lmLRBtzZ+iyexMj0YPP759OuoXf0A1Rte408pPkhd2qhrgmJQaIV2yENcbJ9lynxiM14 KeJPFPnlf4u9xWsdjBcrgamcYcZFQTN3K2oUQcWxa712d0oE15Prqbgf3ejTYbQ5GwegCCnMlAVa1+FDkL+wbzX+TbQbLARpnoQ/M6SS2bLlcQNEtScmsmn6 kVZ54Jkokvz9EbpLa1oLePfHFC+MBJobfEILmETF+9r7nd5WTNu3V8CXhDyem2Fk4Qdo0F22yHOwosw70IYkC1EtjT3RQM2H7MKNwkb4O8SPUHDGt84J5HSZ JpLBlL0SKPm2C/qolzlGsAxkB18jQtkz1bIkBWXZRE+TJVc3Y6yUQL1EQGeP3adathIivn4a4l1/eCzH1mPv7KeuH5jr6Jkly02Cq4qf5fAz3i921xE2hU6b PbI= 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 Since we assume pll5 is the default lcdif clock source let's move assigned-clocks(-parents) properties to .dtsi file. Signed-off-by: Giulio Benetti --- arch/arm/dts/imxrt1050-evk.dts | 3 --- arch/arm/dts/imxrt1050.dtsi | 2 ++ 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/arm/dts/imxrt1050-evk.dts b/arch/arm/dts/imxrt1050-evk.dts index 2052d4eb4e..dc66fc9c37 100644 --- a/arch/arm/dts/imxrt1050-evk.dts +++ b/arch/arm/dts/imxrt1050-evk.dts @@ -238,9 +238,6 @@ display = <&display0>; status = "okay"; - assigned-clocks = <&clks IMXRT1050_CLK_LCDIF_SEL>; - assigned-clock-parents = <&clks IMXRT1050_CLK_PLL5_VIDEO>; - display0: display0 { bits-per-pixel = <16>; bus-width = <16>; diff --git a/arch/arm/dts/imxrt1050.dtsi b/arch/arm/dts/imxrt1050.dtsi index 6f9da3fe8a..eb5e09e971 100644 --- a/arch/arm/dts/imxrt1050.dtsi +++ b/arch/arm/dts/imxrt1050.dtsi @@ -152,6 +152,8 @@ interrupts = ; clocks = <&clks IMXRT1050_CLK_LCDIF>; clock-names = "per"; + assigned-clocks = <&clks IMXRT1050_CLK_LCDIF_SEL>; + assigned-clock-parents = <&clks IMXRT1050_CLK_PLL5_VIDEO>; status = "disabled"; }; From patchwork Thu May 13 10:19:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giulio Benetti X-Patchwork-Id: 1478023 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=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=aruba.it header.i=@aruba.it header.a=rsa-sha256 header.s=a1 header.b=XZ8wI6q+; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (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 4Fgnrj5k0cz9sTD for ; Thu, 13 May 2021 20:26:45 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id BED8482AED; Thu, 13 May 2021 12:26:41 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=benettiengineering.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=aruba.it header.i=@aruba.it header.b="XZ8wI6q+"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id CC85282E2B; Thu, 13 May 2021 12:26:07 +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=-1.9 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=3.4.2 Received: from smtpcmd11116.aruba.it (smtpcmd11116.aruba.it [62.149.156.116]) by phobos.denx.de (Postfix) with ESMTP id 98FBA82E21 for ; Thu, 13 May 2021 12:20:47 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=benettiengineering.com Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=giulio.benetti@benettiengineering.com Received: from ubuntu.localdomain ([146.241.190.106]) by Aruba Outgoing Smtp with ESMTPSA id h8RNlzmEqhNX8h8RaltzqN; Thu, 13 May 2021 12:19:51 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aruba.it; s=a1; t=1620901191; bh=3WX4Iug8WMUSHYlxgAQ0gzw18sDjuaqF2AfLhmMw0uo=; h=From:To:Subject:Date:MIME-Version; b=XZ8wI6q+VEb3ntS1wKEqk9ER8KDSHRFdueQFjfdYOiF1SWavn9HbDoTQWZfEczmOR N6peY5VRfZbKcp5R0fVrYiWM22M+4QjLYw4vrD97nq8cpehVwHWCZtAfFXofjzL23a CWFU+Q6jp11i4DDHvYeYgfrqYyKP2tgaOK8spiUw1BzWNpuE5vM8DKInO/Ef6dGYfL yBVGTye7inZXljcIVRKXTdg18f++JnKLCgBF6Nkrmoj9b5LJTpHx/xBMxMh+myf0rT TTatx00pk1sGWCLhV9hB047sMU3f2p0aO8hFxim7OkvWxrGTUB7eyiMMUHEDS5lgn4 AfQTY5y0sFLIg== From: Giulio Benetti To: Stefano Babic Cc: Fabio Estevam , "NXP i.MX U-Boot Team" , Lukasz Majewski , Anatolij Gustschin , Simon Glass , Sean Anderson , Rick Chen , Bin Meng , Claudiu Beznea , Jesse Taube , u-boot@lists.denx.de, Giulio Benetti Subject: [PATCH v3 21/22] ARM: dts: imxrt1050: set lcdif clocks according to mxsfb driver Date: Thu, 13 May 2021 12:19:35 +0200 Message-Id: <20210513101936.11318-4-giulio.benetti@benettiengineering.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210513101936.11318-1-giulio.benetti@benettiengineering.com> References: <20210513101936.11318-1-giulio.benetti@benettiengineering.com> MIME-Version: 1.0 X-CMAE-Envelope: MS4wfOS05c03iDIOxBSD4O6JubcpZOnIcPGSGXs3v7OlW3kWvSiFU6DbJJJuM6vCI/5xra5FjGK/B1jAbUAJKcgubDsWX+z6o7Mq7ZqyEsQF+YUHQ/xIjPxj qS225dxV3lqP/tb7tnz304zKvWGcwsW37JdgswQxbiKoC2WZyeVhJU9G1D0GXgVPPrTftC+sM8tMeIEENIwN42tB9YFUGoQWbS7xqg37K2RTPKLNSlNzyDc6 AC/cb9jvbhfHxp5bQUXKKbQnrw2zLVSjawE45sS9MQnt7NQuROpGDhqBivSYw5T/jodC9cyt/bU1Vo+PXgrLaGVEY8y75766wmx5GKZFTEUUefFDpAylC5Qe 6BIf0Eyg5xNAwT3rI/SdIHTURz6mWPtd9oJc2/5Hh5AfnWWXCxDGcoS5t9aMI4f0aQEC/PWt5zxDVwtSYFbhpyQeSRf04+SE4NwpdzGkETeDJxWSw7rtG0MB 4rNzfVIpXJaE+OVmk0GsKSipHou1uw2V57T0IhQTHzXi1tuyWVRVyt7F3eHZRvboFoW7DJGXZbnX93TJ5/cAADzdDAe9uJRUH0hfXRJJEW/mlNfQw6KNFgGC qUc= 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 Lcdif needs both "pix" and "axi" clocks to be enabled so let's add them to lcdif node. Signed-off-by: Giulio Benetti --- arch/arm/dts/imxrt1050.dtsi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm/dts/imxrt1050.dtsi b/arch/arm/dts/imxrt1050.dtsi index eb5e09e971..ec1eb88e45 100644 --- a/arch/arm/dts/imxrt1050.dtsi +++ b/arch/arm/dts/imxrt1050.dtsi @@ -150,8 +150,9 @@ compatible = "fsl,imxrt-lcdif"; reg = <0x402b8000 0x4000>; interrupts = ; - clocks = <&clks IMXRT1050_CLK_LCDIF>; - clock-names = "per"; + clocks = <&clks IMXRT1050_CLK_LCDIF_PIX>, + <&clks IMXRT1050_CLK_LCDIF_APB>; + clock-names = "pix", "axi"; assigned-clocks = <&clks IMXRT1050_CLK_LCDIF_SEL>; assigned-clock-parents = <&clks IMXRT1050_CLK_PLL5_VIDEO>; status = "disabled"; From patchwork Thu May 13 10:19:36 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giulio Benetti X-Patchwork-Id: 1478017 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=pass (2048-bit key; unprotected) header.d=aruba.it header.i=@aruba.it header.a=rsa-sha256 header.s=a1 header.b=cUgXjFep; 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 4Fgnm06YVLz9sWD for ; Thu, 13 May 2021 20:22:40 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C14DD82F41; Thu, 13 May 2021 12:22:12 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=benettiengineering.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=aruba.it header.i=@aruba.it header.b="cUgXjFep"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0EEF282E40; Thu, 13 May 2021 12:21:05 +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=-1.9 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=3.4.2 Received: from smtpcmd11116.aruba.it (smtpcmd11116.aruba.it [62.149.156.116]) by phobos.denx.de (Postfix) with ESMTP id DE78982E33 for ; Thu, 13 May 2021 12:20:47 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=benettiengineering.com Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=giulio.benetti@benettiengineering.com Received: from ubuntu.localdomain ([146.241.190.106]) by Aruba Outgoing Smtp with ESMTPSA id h8RNlzmEqhNX8h8Rcltzs9; Thu, 13 May 2021 12:19:53 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aruba.it; s=a1; t=1620901193; bh=Oxmt9I0DqZ5FxOhsfGy6vDSqSbjt7i1IJDAglJTlqyg=; h=From:To:Subject:Date:MIME-Version; b=cUgXjFep5IfVTTE5/XTe0hMugI3UoE2J95K5NgebyEg3/XCeFaNLTaopejFcypbgz 95wYSlziaq7mpBSEeqpFQzuopcKbQ/Cpr3UPFnx1pSqmUCsK2ivsC26DNC7cYc6b+0 23qDOP5CWEHgRg63xRDzOGQMV3upRWpQwJ1Mr22AuwLx9issN7/OJ7AJltdVV9s+KF TD27F4GMMPMrWsNHYUwbcP+pSz64Zmm8OhqbgkVe2lE3QO9ni0ZSL9sZKiHQzL9uHh aFZwhQ3aOHeZPI27ZLXKeKYLILCalQUhJmHz+uXnujb4dKRMIIERviU16iVzWlJafu +W3jN/wunyC5A== From: Giulio Benetti To: Stefano Babic Cc: Fabio Estevam , "NXP i.MX U-Boot Team" , Lukasz Majewski , Anatolij Gustschin , Simon Glass , Sean Anderson , Rick Chen , Bin Meng , Claudiu Beznea , Jesse Taube , u-boot@lists.denx.de, Giulio Benetti Subject: [PATCH v3 22/22] ARM: dts: imxrt1050-evk: remove u-boot,dm-spl Date: Thu, 13 May 2021 12:19:36 +0200 Message-Id: <20210513101936.11318-5-giulio.benetti@benettiengineering.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210513101936.11318-1-giulio.benetti@benettiengineering.com> References: <20210513101936.11318-1-giulio.benetti@benettiengineering.com> MIME-Version: 1.0 X-CMAE-Envelope: MS4wfAOASSi1emjG8p0R3dt45YCYm4KsIse76YxWQUJOmrIlbCbi2dgeWa9sB7xqt05pzWzNB9DCOtmN2U5T6YcLcSD3rCFipKkVv5dBfmIGiKbZawOpJ9SM +Bsx9T0pwNFuer/JRUD4GOBfwEBbaIkh2/m7mkbqMOUa0JJC1gmepHszedQh0FHCLjf1boBitb6XSTjDrxLJiGzJHJLe42ga2tecBKRLBURVT/PVcqrfKWt4 4IJtgdVc0Jr0hEt5c1z8FLjen9QiUtmj2C4JjLMQmttWG8ofat2UHQ0jtYcUIgeqo3D3FE2NmPDFKbBdJi0u9q8e9RVJezaoDi8bWjQPjyiXv6fs1Znt57Vt chxSUjdTp3Tw8cNcbP4Y/v+xyOaUYJJ3blKRdQ8kIpVZmxvKhy7PaHu0ERJnKKDt/n26J9UJmvDmbUwXKiKA6aG0rebtYvgw7sHolqImQhTly4ZGJL1hcYxc 0dkClQAGtvNiwrOiSz84QUl516JZZqHaNSw2fU1ZyCC6MAyZ1QHotNR/bYfIJKDGODD34vb3FX7DJBh+ABk+P8XWoGIA3ZMs5/6vNb/w4FDOSSNDwXOHVjbV Pkw= 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 We don't need lcdif to be enable in SPL, so let's remove u-boot,dm-spl. Signed-off-by: Giulio Benetti --- arch/arm/dts/imxrt1050-evk.dts | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/dts/imxrt1050-evk.dts b/arch/arm/dts/imxrt1050-evk.dts index dc66fc9c37..81db1a446d 100644 --- a/arch/arm/dts/imxrt1050-evk.dts +++ b/arch/arm/dts/imxrt1050-evk.dts @@ -189,7 +189,6 @@ }; pinctrl_lcdif: lcdifgrp { - u-boot,dm-spl; fsl,pins = < MXRT1050_IOMUXC_GPIO_B0_00_LCD_CLK 0x1b0b1 MXRT1050_IOMUXC_GPIO_B0_01_LCD_ENABLE 0x1b0b1