From patchwork Thu Nov 25 21:14:31 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jesse Taube X-Patchwork-Id: 12693694 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C5653C433EF for ; Thu, 25 Nov 2021 21:16:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=PFe9A9KoQNJKOeIJlIq1v1GS6ozdSViPXBEIBG+Texc=; b=yMVsKzxizXGgg0 l5Qarxy1DjHZ8K5yF5vdR/NAcmZ5oyb3y+WoGcIdkBX9yAHaM/TrwTFLm+bhwYxJ2IV79Qb7RcWe2 djf0tMPawLm7OI50GmBgQr+zZqCTqawz1o2Kqe+QrvGRtBCqfWuNfA22G4FvwLxTRoiR8Zl8RS68n DgyRrEjNmWjY33VpurcAcjE2WKj/VMilD8N/kZNPj1ukS9cujZmxbnRZXoqt8DJbLMtaSxYTEnOm+ 7LOperlOgNqnCxua+Rm1PSz7rKoKuUKk0IEMQENDeR2NsnhM9zTBseRSLFDXkYxfJVCLIdiADvxg5 6JuZ5c/Qx49ri4Uw5vhA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mqM5C-008fKU-1D; Thu, 25 Nov 2021 21:15:06 +0000 Received: from mail-qk1-x72b.google.com ([2607:f8b0:4864:20::72b]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mqM4w-008fGO-Kw for linux-arm-kernel@lists.infradead.org; Thu, 25 Nov 2021 21:14:51 +0000 Received: by mail-qk1-x72b.google.com with SMTP id 193so12907060qkh.10 for ; Thu, 25 Nov 2021 13:14:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=zsAw5pZ+jMxfTJ62lYSqycflH5OJI1YnlfPg7kPKfks=; b=FDhUC9+fe3bHNB/4n1/I8D0b1dqCuMNL7cYGULy8gRMT+EMI7DHds9y0REPsly9WbR TSXL42nT5O4wCFdbUUBVqqGCbQaifLL2tuLDq+P43jYKcLV9hPvpelmGo8XKVZb8W6Gw 3uARexlO1GQVKkpPIsClV8dCnmLWoxuhj2xEsypDamqeHfU5ZoG4pi0H6+ECbk/0f6x+ fse/UdcXeDUSJLKPQAzLpOwaNo1MW9R9kSPFt41wV3kiLu4eXn027J0mv1KJNAsvTktB vJeSXTyVuxL2VPCysABhsbR0yo+fB7T3fHMbxsZ3HAi/ZWZR69ddTrdLRJelkzurth/l TLkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=zsAw5pZ+jMxfTJ62lYSqycflH5OJI1YnlfPg7kPKfks=; b=NOWPTy8GT26Wp6Qy5OTylzk5Rqt7I0sZMt0vlsKrBZsPPDBUhOlsCiwcHxVaIn6RXt PCTiGzZKyZotuO65/+4GNY2ixC6vwKB8nwDu/v+6lTDBY4lZwW7Mr1SJ6IWmmdw8h2vs 8PaUWoxlziUIZIOusUjTs5SP2yf3WYQJS+8hH5bqeoKxA7nDOhpxXvT1Y9tiRkhYkHsQ A66J8+clIscnrmEr8lEHk4LlmhowtR/YrTKPnQbGRWEhsFRAuvWFc3ueJnmKqAdCu9U+ wl0aOqiu3EoVXPv5UNP1qtfzcHiqD++0R0GZvbXXGgW3uuE9nqzUTE0A0Bqfv6ol/+v2 ARbg== X-Gm-Message-State: AOAM530b94SkXBSFIXG3+qiG1QW0dyH39XinNWMP0xCSyK4P2c1CjXsO G7SBeQP5hfJa7PzJ/T6hlS8= X-Google-Smtp-Source: ABdhPJw9i4o2IYBcgIyM2hWeqt59W+2e7ciV8zOTsYDwT3S1ubJs4wje53gJ9hG4Vfaxrgi5MAn7QA== X-Received: by 2002:a05:620a:199f:: with SMTP id bm31mr17702417qkb.450.1637874887641; Thu, 25 Nov 2021 13:14:47 -0800 (PST) Received: from jesse-desktop.jtp-bos.lab (146-115-144-188.s4282.c3-0.nwt-cbr1.sbo-nwt.ma.cable.rcncustomer.com. [146.115.144.188]) by smtp.gmail.com with ESMTPSA id j22sm2068175qko.68.2021.11.25.13.14.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Nov 2021 13:14:47 -0800 (PST) From: Jesse Taube X-Google-Original-From: Jesse Taube To: linux-imx@nxp.com Cc: mturquette@baylibre.com, sboyd@kernel.org, robh+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, ulf.hansson@linaro.org, aisheng.dong@nxp.com, stefan@agner.ch, linus.walleij@linaro.org, gregkh@linuxfoundation.org, arnd@arndb.de, olof@lixom.net, soc@kernel.org, linux@armlinux.org.uk, abel.vesa@nxp.com, adrian.hunter@intel.com, jirislaby@kernel.org, giulio.benetti@benettiengineering.com, nobuhiro1.iwamatsu@toshiba.co.jp, Mr.Bossman075@gmail.com, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org, linux-gpio@vger.kernel.org, linux-serial@vger.kernel.org Subject: [PATCH v3 01/13] ARM: imx: add initial support for i.MXRT10xx family Date: Thu, 25 Nov 2021 16:14:31 -0500 Message-Id: <20211125211443.1150135-2-Mr.Bossman075@gmail.com> X-Mailer: git-send-email 2.34.0 In-Reply-To: <20211125211443.1150135-1-Mr.Bossman075@gmail.com> References: <20211125211443.1150135-1-Mr.Bossman075@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211125_131450_710925_879CDFD4 X-CRM114-Status: GOOD ( 17.22 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Giulio Benetti The i.MXRT10xx family of processors features NXP's implementation of the Arm Cortex-M7 core and in some case the Arm Cortex-M4 core too. This patch aims to add an initial support for imxrt. Signed-off-by: Giulio Benetti Signed-off-by: Jesse Taube [Jesse: removed SOC_IMXRT's 'depends on ARCH_MULTI_V7' and 'select ARM_GIC if ARCH_MULTI_V7'] --- V1->V2: * Remove depends ARCH_MULTI_V7 * Remove select PINCTRL_IMXRT * Change commit description V2->V3: * Nothing done --- arch/arm/mach-imx/Kconfig | 7 +++++++ arch/arm/mach-imx/Makefile | 2 ++ arch/arm/mach-imx/mach-imxrt.c | 19 +++++++++++++++++++ 3 files changed, 28 insertions(+) create mode 100644 arch/arm/mach-imx/mach-imxrt.c diff --git a/arch/arm/mach-imx/Kconfig b/arch/arm/mach-imx/Kconfig index b407b024dde3..5ad3a8b9b4b6 100644 --- a/arch/arm/mach-imx/Kconfig +++ b/arch/arm/mach-imx/Kconfig @@ -239,6 +239,13 @@ config SOC_IMX7ULP help This enables support for Freescale i.MX7 Ultra Low Power processor. +config SOC_IMXRT + bool "i.MXRT support" + depends on ARM_SINGLE_ARMV7M + select ARMV7M_SYSTICK if ARM_SINGLE_ARMV7M + help + This enables support for Freescale i.MXRT Crossover processor. + config SOC_VF610 bool "Vybrid Family VF610 support" select ARM_GIC if ARCH_MULTI_V7 diff --git a/arch/arm/mach-imx/Makefile b/arch/arm/mach-imx/Makefile index d1506ef7a537..3b1145722a44 100644 --- a/arch/arm/mach-imx/Makefile +++ b/arch/arm/mach-imx/Makefile @@ -65,6 +65,8 @@ obj-$(CONFIG_SOC_IMX50) += mach-imx50.o obj-$(CONFIG_SOC_IMX51) += mach-imx51.o obj-$(CONFIG_SOC_IMX53) += mach-imx53.o +obj-$(CONFIG_SOC_IMXRT) += mach-imxrt.o + obj-$(CONFIG_SOC_VF610) += mach-vf610.o obj-$(CONFIG_SOC_LS1021A) += mach-ls1021a.o diff --git a/arch/arm/mach-imx/mach-imxrt.c b/arch/arm/mach-imx/mach-imxrt.c new file mode 100644 index 000000000000..2063a3059c84 --- /dev/null +++ b/arch/arm/mach-imx/mach-imxrt.c @@ -0,0 +1,19 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (C) 2019 + * Author(s): Giulio Benetti + */ + +#include +#include +#include + +static const char *const imxrt_compat[] __initconst = { + "fsl,imxrt1050", + NULL +}; + +DT_MACHINE_START(IMXRTDT, "IMXRT (Device Tree Support)") + .dt_compat = imxrt_compat, + .restart = armv7m_restart, +MACHINE_END