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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1C727C4332F for ; Thu, 25 Nov 2021 21:17:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1357202AbhKYVUY (ORCPT ); Thu, 25 Nov 2021 16:20:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35514 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1357161AbhKYVSV (ORCPT ); Thu, 25 Nov 2021 16:18:21 -0500 Received: from mail-qv1-xf2a.google.com (mail-qv1-xf2a.google.com [IPv6:2607:f8b0:4864:20::f2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1CC82C06175A; Thu, 25 Nov 2021 13:14:47 -0800 (PST) Received: by mail-qv1-xf2a.google.com with SMTP id i13so5612363qvm.1; Thu, 25 Nov 2021 13:14:47 -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:mime-version :content-transfer-encoding; bh=rcsEiTi+eHQy+XVMsalejRcUe2GieQgt0POka9myaY8=; b=BGxgmUy0j0r784aRhXWt0laZ0/z2UWQpi8lZ7m7O3B15h3S1HoPUBaBFEhB3ri5fBi h1U5knTqswqqvnFErQhfGPQ8FRUNuRokGxdqRWePvbUpyoAoflq+g4enkzpEd0/K7J2Q Na58k939i1CwOt/WyM+KEvYuvTekNLDX8qq3LM9AthN6A3HQZ744HjXWyot2vkHE/wmS JAwjOT9BysTFzXw9jXvVLsQN0o9w1Cs4Muj8TQWv03xoUTWryrFPb2U6P9ez2p3jPAhn mDRXLo9hqU0krKmon8Pjo78ukOtPpZSNKYhyV9A86osqOASEEnewMVQCt5Ba1sEBMGHp KTzA== 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:mime-version :content-transfer-encoding; bh=rcsEiTi+eHQy+XVMsalejRcUe2GieQgt0POka9myaY8=; b=TsVPSr4DbL/xuLKkSxRx+2rf0FWgXA/bLK7bErAHymyr4N34wG9IiVTFy4LOmPiAHp THn/SMgTJ3wh5KzG0RMDFiPk+0DUsWLOyf8AuAQ4ubRGMofaKdV+o7oxTvPoCBxLI4N9 CospTg+WjCB0tI5DpYlYzxUe0ZVik7iRvS+k0YVH4EgbxFvH7uG2tI4qnsvc1xN40MSN dn7BxVxENQmB4iGeSP74JQQl7ul2+jOL1Uej45R/06WaOK7YJk7lOmBXkJEFQoqdUxTo RAZf1CI9Ads4TKvDo6NjPD0306yNlUm/REuyVwOBoplpijkf0ebqryIG5A3ZgGp3UDNi 7qhA== X-Gm-Message-State: AOAM531lQf7FoixcE7OYH51DXCA2355ONabnZ0pXBWzuqIeocbap4YTU qPQoOjBijLzRLppyqohXIDo= X-Google-Smtp-Source: ABdhPJyNNHdfuxbmU951V6ltW+cUv29LNMHqYTMcxfstL6CSArQIOl5a2C/M3r2n0PeSqDfUUE93UQ== X-Received: by 2002:ad4:4765:: with SMTP id d5mr8802008qvx.121.1637874886230; Thu, 25 Nov 2021 13:14:46 -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.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Nov 2021 13:14:45 -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 00/13] add initial support for the i.MXRTxxxx SoC family starting from i.IMXRT1050 SoC. Date: Thu, 25 Nov 2021 16:14:30 -0500 Message-Id: <20211125211443.1150135-1-Mr.Bossman075@gmail.com> X-Mailer: git-send-email 2.34.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset contains: - i.MXRT10xx family infrastructure - i.MXRT1050 pinctrl driver adaption - i.MXRT1050 clock driver adaption - i.MXRT1050 sd-card driver adaption - i.MXRT1050 uart driver adaption - i.MXRT1050-evk basic support The i.MXRTxxxx family that could have support by Linux actually spreads from i.MXRT1020 to i.MXRT1170 with the first one supporting 1 USB OTG & 100M ethernet with a cortex-M7@500Mhz up to the latter with i.MXRT1170 with cortex-M7@1Ghz and cortex-M4@400Mhz, 2MB of internal SRAM, 2D GPU, 2x 1Gb and 1x 100Mb ENET. The i.MXRT family is NXP's answer to STM32F7XX, as it uses only simple SDRAM, it gives the chance of a 4 or less layer PCBs. Seeing that these chips are comparable to the STM32F7XXs which have linux ported to them it seems reasonable to add support for them. Giving Linux support to this family should ease the development process, instead of using a RTOS they could use Embedded Linux allowing for more portability, ease of design and will broaden the scope of people using embedded linux. The EVK has very little SDRAM, generally 32MB starting from i.MXRT1020(the lowest P/N), although the i.MXRT1160/70 provide instead 64MB of SDRAM for more functionality. At the moment we do not support XIP for either u-boot or Linux but it should be done in the future. XIP will also save SDRAM. Another interesting fact is the amount of internal SRAM, as the P/N increases the SRAM will reach up to 2MB(some could be for cache and some would be for video). Also, some parts have embed flash of 4MB that can be used for u-boot/Linux, if both correctly sized it will leave the SDRAM free. External flash can be Quad SPI and HyperFlash, so throughput would be decent. The i.MXRT11xx series supports MIPI interface too. The family in general provide CAN bus, audio I/O, 1 or more USB(otg/host), 1 or more 100Mb/1Gb ethernet, camera interface, sd-card. All this can be used for simple GUIs, web-servers, point-of-sale stations, etc. Giulio Benetti (5): ARM: imx: add initial support for i.MXRT10xx family pinctrl: freescale: Add i.MXRT1050 pinctrl driver support dt-bindings: imx: Add clock binding for i.MXRT1050 ARM: dts: imx: add i.MXRT1050-EVK support ARM: imxrt_defconfig: add i.MXRT family defconfig Jesse Taube (8): dt-bindings: pinctrl: add i.MXRT1050 pinctrl binding doc ARM: dts: imxrt1050-pinfunc: Add pinctrl binding header dt-bindings: clock: imx: Add documentation for i.MXRT clock clk: imx: Add initial support for i.MXRT clock driver dt-bindings: serial: fsl-lpuart: add i.MXRT compatible tty: serial: fsl_lpuart: add i.MXRT support dt-bindings: mmc: fsl-imx-esdhc: add i.MXRT compatible string mmc: sdhci-esdhc-imx: Add sdhc support for i.MXRT series .../bindings/clock/imxrt-clock.yaml | 67 ++ .../bindings/mmc/fsl-imx-esdhc.yaml | 1 + .../bindings/pinctrl/fsl,imxrt1050.yaml | 79 ++ .../bindings/serial/fsl-lpuart.yaml | 1 + arch/arm/boot/dts/Makefile | 2 + arch/arm/boot/dts/imxrt1050-evk.dts | 72 ++ arch/arm/boot/dts/imxrt1050-pinfunc.h | 993 ++++++++++++++++++ arch/arm/boot/dts/imxrt1050.dtsi | 165 +++ arch/arm/configs/imxrt_defconfig | 157 +++ arch/arm/mach-imx/Kconfig | 7 + arch/arm/mach-imx/Makefile | 2 + arch/arm/mach-imx/mach-imxrt.c | 19 + drivers/clk/imx/Kconfig | 4 + drivers/clk/imx/Makefile | 1 + drivers/clk/imx/clk-imxrt.c | 156 +++ drivers/mmc/host/sdhci-esdhc-imx.c | 4 + drivers/pinctrl/freescale/Kconfig | 7 + drivers/pinctrl/freescale/Makefile | 1 + drivers/pinctrl/freescale/pinctrl-imxrt1050.c | 349 ++++++ drivers/tty/serial/fsl_lpuart.c | 8 + include/dt-bindings/clock/imxrt1050-clock.h | 73 ++ 21 files changed, 2168 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/imxrt-clock.yaml create mode 100644 Documentation/devicetree/bindings/pinctrl/fsl,imxrt1050.yaml create mode 100644 arch/arm/boot/dts/imxrt1050-evk.dts create mode 100644 arch/arm/boot/dts/imxrt1050-pinfunc.h create mode 100644 arch/arm/boot/dts/imxrt1050.dtsi create mode 100644 arch/arm/configs/imxrt_defconfig create mode 100644 arch/arm/mach-imx/mach-imxrt.c create mode 100644 drivers/clk/imx/clk-imxrt.c create mode 100644 drivers/pinctrl/freescale/pinctrl-imxrt1050.c create mode 100644 include/dt-bindings/clock/imxrt1050-clock.h -- 2.34.0