From patchwork Wed Dec 15 22:05:29 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jesse Taube X-Patchwork-Id: 12679579 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 smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 8DA30C433F5 for ; Wed, 15 Dec 2021 22:05:43 +0000 (UTC) Received: by smtp.kernel.org (Postfix) id 4882DC36AE4; Wed, 15 Dec 2021 22:05:43 +0000 (UTC) Received: from mail-qk1-f181.google.com (mail-qk1-f181.google.com [209.85.222.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.kernel.org (Postfix) with ESMTPS id 7757FC36AE3; Wed, 15 Dec 2021 22:05:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 smtp.kernel.org 7757FC36AE3 Authentication-Results: smtp.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-qk1-f181.google.com with SMTP id t6so21584198qkg.1; Wed, 15 Dec 2021 14:05:42 -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=82TjwUfk9T2/ds3Ciyj/zGT4kaKZHzrrPS0KAqF4ALY=; b=Vw4Ln5z5bJ1z4j37TQH8Minz9tGBBCeVuWNd1Zp92mp05MfCGPJyyfL9T2gzSFrVuA L5I/AE2EXSJ7/+1dwo2uE/6OeXAfmOlCKXAQUoaw3GGQXJHgE9trosGjCuj0XIhYVgDM vVdmAsbqu+MYJkM1Nn3Nof6BeNvrOfLUPUDxYY83n+YeJyJXukMZPPivAnsSQDGwWYH2 k3cDEkw6XaLun4Oa+uCzy/U8TxzJYd8pVqi3Xzz35P/kNXrXFbC85WWeShHcHorfrgqo zgBWO+yUUyBLJ6uV2MV2XzIVwZAXev3QfxK4zlMIz0Cx9ktR3kHUM1VOjI9hhcgfBNfz 16Lw== 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=82TjwUfk9T2/ds3Ciyj/zGT4kaKZHzrrPS0KAqF4ALY=; b=bj3pFLH5SPk5XScfr6CIvdZsAD06oGGVDE/RINlA9UWJzQDc0EN6SJGuz+WxLQc7+S pWlJDQRe+KtZDDCj0mP/w6WiBPDQv1Ai17d/Dvh3/Yo9dVcb2hJvPv6Jb5DA8rXdwgOX EFVUiP35P2uZcUHCOgLggLszcpUCFAcTuaDJA+UoYNINXTfjk+A2Pe8TM8CE1roC1kVn QNFE7ka/eF06oW5mjuNa7l8Wa8s5loMYKOr7m03p6my5s68FYTo9Rmq6wNjqp6WzXdaT pjlzfky/iJu6mlElpdmlUcwBOyuXtlEyPnNGkgsdmgmzb/vc3R5Nqd2v6xROMi+Y5M6B yveA== X-Gm-Message-State: AOAM530/MgIqRKctvmcYQeOL6i6vFxQeQ32zG6g+3Go50IDHbVG9cADg OGN7bZ8qpWoTqJEmW6gy9Xk= X-Google-Smtp-Source: ABdhPJy6zw4A2uEDI0uCUlM5KpQmgZDOHGlxjcoHCdvjCKDQYGLWVUUcTm5W6ciyxP6apXSAQr1dJQ== X-Received: by 2002:a37:9ed5:: with SMTP id h204mr10494788qke.35.1639605941389; Wed, 15 Dec 2021 14:05:41 -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 s20sm2471592qtc.75.2021.12.15.14.05.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Dec 2021 14:05:40 -0800 (PST) From: Jesse Taube X-Google-Original-From: Jesse Taube To: linux-imx@nxp.com List-Id: 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 v5 0/9] Add initial support for the i.MXRTxxxx SoC family starting from i.IMXRT1050 SoC. Date: Wed, 15 Dec 2021 17:05:29 -0500 Message-Id: <20211215220538.4180616-1-Mr.Bossman075@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 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 (4): ARM: imx: Add initial support for i.MXRT10xx family 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 (5): ARM: dts: imxrt1050-pinfunc: Add pinctrl binding header dt-bindings: clock: imx: Add documentation for i.MXRT1050 clock clk: imx: Add initial support for i.MXRT1050 clock driver dt-bindings: serial: fsl-lpuart: add i.MXRT1050 compatible tty: serial: fsl_lpuart: Add i.MXRT1050 support .../bindings/clock/imxrt1050-clock.yaml | 66 ++ .../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 | 154 +++ arch/arm/configs/imxrt_defconfig | 35 + arch/arm/mach-imx/Kconfig | 7 + arch/arm/mach-imx/Makefile | 2 + arch/arm/mach-imx/mach-imxrt.c | 19 + drivers/clk/imx/Kconfig | 5 + drivers/clk/imx/Makefile | 1 + drivers/clk/imx/clk-imxrt1050.c | 181 ++++ drivers/tty/serial/fsl_lpuart.c | 8 + include/dt-bindings/clock/imxrt1050-clock.h | 73 ++ 15 files changed, 1619 insertions(+) create mode 100644 Documentation/devicetree/bindings/clock/imxrt1050-clock.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-imxrt1050.c create mode 100644 include/dt-bindings/clock/imxrt1050-clock.h