Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3693195pxb; Sun, 24 Oct 2021 08:42:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwIKraKECUY+ugIiwC5nsaMtlZpgLj53foPzYTibNUI6SPWc4F1oc8TdlDWH3b4DZ7+IYe2 X-Received: by 2002:a17:90a:4598:: with SMTP id v24mr14206723pjg.5.1635090160837; Sun, 24 Oct 2021 08:42:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635090160; cv=none; d=google.com; s=arc-20160816; b=qYXX1peNtRENZsJhv6FgA8LvxV+B8enXSOvmRKBWGpNLs3KSa2lcI9KGKMhkpEBYQs UrxzIyU+L45HSCmkO2pm3sQuzNG33UR7PhBf8Z5Tk8xaCRIDnNzxQhVhvRXaz4ajUYf/ VqRmg4V5ZDw/LyqoVPDeGn+RP+Q6hXkyMXZOLjG5ecRlu3xOGr5UOJf2kFc6gvEKjgXH bWT3/axqi+4dzFOXPJxwvhw9BiMTNrHY6Cyncp2/vILfN3sxeg4bPnZ19BTETLGLsJ3p UVd7WPBZtP8zWOEH0lbp9AOs84WdyiAkXt5sZopDYBAqhmgSBCXyhdNv51PL8cZYqTfn PDmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=LIEq5WFYWlVHRg5jQfKDO8H8SVF/ng+FulfmYxIiEeM=; b=r5CI8cKRdH01vttGSonrnTFkl8IWByzPwOxa292XjGTBhozwNkLr5AwEKcMXiVnM0I Zr49PReeXR1NHprrRox3jFZhHb9NSZVX3CFbOB0/qj3MRC4+bj22gSOc1bd2bX9j42wy ByNg/ALUsYrWOpnTjP3IvyxNKGhh9GfrDUJTjTktF1worC8ROM9Df31yuSt9J9rk28JV M9rkpXV+Qi9YXmRCxabcdcVdeBy3sifIT26k5B+Xi/vHiHcBZZCpKPCis5/DJE2w8GDG NPJkPeewSdgl6/KXVsaXJY8455jDlVX0+sgX2dlEr+FoTOMEXCsQhIBc7F5lEXgT4kUy 7fbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=fxvDkIWQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v21si17673524pjg.65.2021.10.24.08.42.28; Sun, 24 Oct 2021 08:42:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=fxvDkIWQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232470AbhJXPnW (ORCPT + 99 others); Sun, 24 Oct 2021 11:43:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232193AbhJXPmz (ORCPT ); Sun, 24 Oct 2021 11:42:55 -0400 Received: from mail-qk1-x72f.google.com (mail-qk1-x72f.google.com [IPv6:2607:f8b0:4864:20::72f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9CC25C061228; Sun, 24 Oct 2021 08:40:34 -0700 (PDT) Received: by mail-qk1-x72f.google.com with SMTP id d205so9624445qke.3; Sun, 24 Oct 2021 08:40:34 -0700 (PDT) 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=LIEq5WFYWlVHRg5jQfKDO8H8SVF/ng+FulfmYxIiEeM=; b=fxvDkIWQSPpOWDyxm35z+5uaq1Xscsol9mtVYvE06ytjwj7WpF3ohvK1hRNoLmDitc ED7ys95utlmjebr1nDo8nHPQydIL37M3gW63TjpC8IMwsrLlEr3UbrSdjxDsymgcAMMI T47oghcvqhrBk47ZjibgK70s+XTWTGzw3NsCfqKxik12F3DN8T859CvlbDchPysTHvBF 59JNmkb6UtaT00kOA0X+GIwSP3durBaLISTINIdAMhDzjJvH/c9lav0L3Qb4Fb3NpHUk vivoSZmUS5LisEZerHj3L6Uo2vDttjyZI8ZSNvKaFqOPeYBcSsi4hSsQ0vvTn4aHnW29 iA+g== 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=LIEq5WFYWlVHRg5jQfKDO8H8SVF/ng+FulfmYxIiEeM=; b=FkzMpD5K2d9wY0PXUho2eAymG5AbZcaI+4m21C53zzgg1xOC/eauO/kQpcADXAmu9N /0LMn2lRff7xFlEMRf9zl5URmJyDdGAR5caL4LmOeHcETqr3xgpf1wx2ZkiTzoKKxW2S e62C2RnGYB5Te1kvyJHtGhyTqDuP66dReZoO6QfyIvTNqlGymSvEo8dJywjoUmsuzXFZ Bqkra0hKT7AZp3vdHSd+nDCbCOAk3lOpl1ocoza75fm7cA1B4pupQZH++XcYlMgshOxV UvmZ+dj6AxaCdQXhns5nLm74oNGtp+ndg9/KClqaYLd6zDsULbBKUAGJuyZ6VuJL/PCZ q03w== X-Gm-Message-State: AOAM5327crhtREj7BPLbEiKNNkJ0xglMcYVbVPG4b/w8XGbmiC5zaO2m YfzUw+yB8F7PwpUOWmy+i4I= X-Received: by 2002:a37:6556:: with SMTP id z83mr9335530qkb.211.1635090033848; Sun, 24 Oct 2021 08:40:33 -0700 (PDT) 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 x9sm7291731qtw.84.2021.10.24.08.40.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Oct 2021 08:40:33 -0700 (PDT) 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, leonard.crestez@nxp.com, b20788@freescale.com, Mr.Bossman075@gmail.com, fugang.duan@nxp.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 01/13] ARM: imx: add initial support for i.MXRT10xx family Date: Sun, 24 Oct 2021 11:40:15 -0400 Message-Id: <20211024154027.1479261-2-Mr.Bossman075@gmail.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211024154027.1479261-1-Mr.Bossman075@gmail.com> References: <20211024154027.1479261-1-Mr.Bossman075@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 --- arch/arm/mach-imx/Kconfig | 9 +++++++++ arch/arm/mach-imx/Makefile | 2 ++ arch/arm/mach-imx/mach-imxrt.c | 19 +++++++++++++++++++ 3 files changed, 30 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..fd190c8e0c99 100644 --- a/arch/arm/mach-imx/Kconfig +++ b/arch/arm/mach-imx/Kconfig @@ -239,6 +239,15 @@ 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 || ARCH_MULTI_V7 + select ARMV7M_SYSTICK if ARM_SINGLE_ARMV7M + select ARM_GIC if ARCH_MULTI_V7 + select PINCTRL_IMXRT + 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 -- 2.33.0