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 51018C433F5 for ; Thu, 16 Dec 2021 08:26:44 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232324AbhLPI0n (ORCPT ); Thu, 16 Dec 2021 03:26:43 -0500 Received: from mout.kundenserver.de ([212.227.17.24]:55689 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229471AbhLPI0i (ORCPT ); Thu, 16 Dec 2021 03:26:38 -0500 Received: from mail-wr1-f47.google.com ([209.85.221.47]) by mrelayeu.kundenserver.de (mreue106 [213.165.67.113]) with ESMTPSA (Nemesis) id 1MfZ9C-1mHoZA3V96-00fwe0; Thu, 16 Dec 2021 09:26:36 +0100 Received: by mail-wr1-f47.google.com with SMTP id a18so42699166wrn.6; Thu, 16 Dec 2021 00:26:36 -0800 (PST) X-Gm-Message-State: AOAM531KJO7e/MqIUf6Wc+wrAxyUbtDlXDyIap8iZbApYqoovSFKGyR5 77oCibEiPKGT9Na7CxNhjUJUd6+yuFj2aaPBq+o= X-Google-Smtp-Source: ABdhPJyiLKlnSiH9vlPQZqdh0l7qGixC2KbAXZ0E4zRdJ5+BDdSdAxMn6Pdgjctlm5ImC6il7N2keNj/IR12pl1ESbs= X-Received: by 2002:a05:6000:1aca:: with SMTP id i10mr8136773wry.407.1639643196246; Thu, 16 Dec 2021 00:26:36 -0800 (PST) MIME-Version: 1.0 References: <20211215220538.4180616-1-Mr.Bossman075@gmail.com> In-Reply-To: <20211215220538.4180616-1-Mr.Bossman075@gmail.com> From: Arnd Bergmann Date: Thu, 16 Dec 2021 09:26:20 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v5 0/9] Add initial support for the i.MXRTxxxx SoC family starting from i.IMXRT1050 SoC. To: Jesse Taube Cc: NXP Linux Team , Michael Turquette , Stephen Boyd , Rob Herring , Shawn Guo , Sascha Hauer , Sascha Hauer , Fabio Estevam , Ulf Hansson , Dong Aisheng , Stefan Agner , Linus Walleij , gregkh , Arnd Bergmann , Olof Johansson , SoC Team , Russell King - ARM Linux , Abel Vesa , Adrian Hunter , Jiri Slaby , giulio.benetti@benettiengineering.com, Nobuhiro Iwamatsu , linux-clk , DTML , Linux ARM , Linux Kernel Mailing List , linux-mmc , "open list:GPIO SUBSYSTEM" , "open list:SERIAL DRIVERS" Content-Type: text/plain; charset="UTF-8" X-Provags-ID: V03:K1:QBDvdpVZRYwgd33nAN4CfoFwm1HFf7vJzA/alTSuDVcCc5W5Xdy sXLy96U3PRgf0dNF5j3wsdSblEN3Od4AAef0+nhTy6emfOFXR6u6OewrIZ5zYjEOCjNQOzX bHnouCRB0tF+FCUztiK40xzdTrzWomWcOcnxWuvTA+04zSlD9kyqFeQ/GYUrCW0FbkHxOHW Bhqd6UsSL7O4C73UcBwcg== X-UI-Out-Filterresults: notjunk:1;V03:K0:Md8i5SUA8FA=:Z6Q7AYFIbM7m6Rx5PHAXS9 KLFz/MCcZ5cvtc3JPWV907nRyLz4alSzd4rfBlLe1+jCi4ijLNTMpP9vUxRzvYnLZplgMs+9k 7831wmEe4/65YyJUXKEOw+q/XPgCbS3kH9ao3wqju6aHmatw9UqRCFwLOg7cBl7rp5sWbvxuP ng2/26cRM/Dxzf56vTIOQL1IR41RRyiTx6Ql2tr8vFuuYE66fQBlRfRSeBmb944vkWXs5NBIH JKGmkqvIPmxrTHKbk29j0i/dv5QZloGFZG4xvdwZXMOMtADYlHMOc5mwiKSk/IIyMqIwMzmvl 8dVxV5OAAJnkVX7aL4gKN/Y6eQ2TJlJ0q4uM1/Eu3NZrWbHU+mlOJEZy3lRpiOqq5ttTxKFI7 0GXzqsCMzc8ymEF8m2uvSZ+DAvBbChq/pS+HK24JkAWDk6CKU1EarD5VyweIVbY/bf9pqg8YT U/bXSava4bI6H8OMaofLJ9UFaN4nCv9A34QeuH0Pw8GQUd9w7swoZ6/tKmnQNatIohlsrLlVq 4z4i3NVrkd/Mw1gPvPYtHtzhMHvweTeZk+epfDgIb1nAKlm5jaMKKWqyFFZ/K0/VD3PNNjEMM 9QIzzwcnh3sBTWTXOQQssAU7R615k6bcFAUYcxfVRWUIF+gCNomBc1mioOTLG10EXxpzKmGfN 5oYSgPPeW7TeyDuke07ox8UHgQqBuQIpeqPhwTqsBzWcy1qhQcmV0kYiIUevUYbquYCUsm4ZQ L/fq0FAZIJjtO8oTAbaMqQGpEaPBeRi5V4XvjLloX65y6mYKRzi/pC2rQWK1gHlmurniccfM5 LuUZ05vW9FhsPNQFSOeKb3OqgpH3Yv7wavSXXv5DprNZ98fyaE= Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 15, 2021 at 11:05 PM Jesse Taube wrote: > > 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. This looks all good to me now, but the drivers need to be reviewed by the respective subsystem maintainers before we can merge it into the soc tree. As with other new SoCs, I'm happy to merge the support as a combined pull request that includes the drivers provided that the driver subsystem maintainers have reviewed them. Ideally the i.MX maintainers would pick up your series into a separate branch and send that to soc@kernel.org the same way as the other topic branches that are usually split out between DT, drivers, soc code etc. With the Christmas break coming up, the timing may not be sufficient before I'm off next week, so it may end up too late for 5.17 but should be fine for 5.18. As a more general comment, it's always nice to see newly added SoC platforms, especially when they are this well implemented and done by hobbyists. However, I do think you are being overly optimistic as to how useful this is going to be to other people: interest in NOMMU ARM platforms has dropped a lot over the past 5 years, and as far as I can tell, it is only being kept alive for existing stm32 customers as the economics do not favor Linux on Cortex-M for new products compare to Linux on Cortex-A or some RTOS on Cortex-M. The existing users will inevitably stop updating their kernels at some point, and then it's most likely just you and Vladimir Murzin that care. Arnd