mbox series

[V5,0/6] ARM: imx: add imx7ulp support

Message ID 1541862478-7839-1-git-send-email-aisheng.dong@nxp.com
Headers show
Series ARM: imx: add imx7ulp support | expand

Message

Aisheng Dong Nov. 10, 2018, 3:12 p.m. UTC
The i.MX 7ULP family of processors represents NXP’s latest achievement
in ultra-low-power processing for use cases demanding long battery life.
Targeted towards the growing market of portable devices, the i.MX 7ULP
family of processors features NXP's advanced implementation of the Arm®
Cortex-A7 core, the Arm Cortex-M4 core, as well as a 3D and 2D Graphics
Processing Units (GPUs). The i.MX 7ULP family provides up to 32-bit
LPDDR2/LPDDR3 memory interface and a number of other interfaces for
connecting peripherals, such as WLAN, Bluetooth, GPS, displays, and
camera sensors.

This patch series adds the basic support for imx7ulp. It includes machine
level support code and device tree.
Note: it depends on clk driver which is still under review.

v4->v5:
 * dts add input clocks for PCC module
 * update pad setting due to missing pull up enabled
   (formerly auto done by driver generic pinconfg)
 * gpio and pinctrl patches were merged by Linus W, so dropped in this series
  dt-bindings: gpio: vf610: add optional clocks property
  gpio: vf610: add optional clock support
  dt-bindings: pinctrl: imx7ulp: back to imx legacy binding for
    consistency
  pinctrl: fsl: imx7ulp: change to use imx legacy binding

v3->v4:
 * add comments about fixed soc version
 * add iounmap
v2->v3:
 * back to old pinctrl binding according to SoC maintainer's suggestions
 * use generic node name
 * error checking updated according to Russell's suggestion:
   ptr == ERR_PTR(-EPROBE_DEFER)

v1->v2:
 * switch to SPDX license
 * rebase to latest tree
 * pad name update
 * add gpio clk support
 * minor fix



Dong Aisheng (6):
  dt-bindings: fsl: add compatible for imx7ulp evk
  dt-bindings: fsl: add imx7ulp pm related components bindings
  ARM: imx: add initial support for imx7ulp
  dts: imx: add common imx7ulp dtsi support
  dts: fsl: add imx7ulp evk support
  ARM: imx_v6_v7_defconfig: add imx7ulp support

 .../bindings/arm/freescale/fsl,imx7ulp-pm.txt      |  23 ++
 Documentation/devicetree/bindings/arm/fsl.txt      |   8 +
 arch/arm/boot/dts/Makefile                         |   2 +
 arch/arm/boot/dts/imx7ulp-evk.dts                  |  77 +++++
 arch/arm/boot/dts/imx7ulp.dtsi                     | 346 +++++++++++++++++++++
 arch/arm/configs/imx_v6_v7_defconfig               |   1 +
 arch/arm/mach-imx/Kconfig                          |   9 +
 arch/arm/mach-imx/Makefile                         |   1 +
 arch/arm/mach-imx/common.h                         |   1 +
 arch/arm/mach-imx/cpu.c                            |   3 +
 arch/arm/mach-imx/mach-imx7ulp.c                   |  33 ++
 arch/arm/mach-imx/mxc.h                            |   1 +
 arch/arm/mach-imx/pm-imx7ulp.c                     |  29 ++
 13 files changed, 534 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/arm/freescale/fsl,imx7ulp-pm.txt
 create mode 100644 arch/arm/boot/dts/imx7ulp-evk.dts
 create mode 100644 arch/arm/boot/dts/imx7ulp.dtsi
 create mode 100644 arch/arm/mach-imx/mach-imx7ulp.c
 create mode 100644 arch/arm/mach-imx/pm-imx7ulp.c

Comments

Fabio Estevam Nov. 10, 2018, 3:50 p.m. UTC | #1
On Sat, Nov 10, 2018 at 1:13 PM A.s. Dong <aisheng.dong@nxp.com> wrote:

Even a single line commit log would be better here.

> Cc: devicetree@vger.kernel.org
> Cc: Shawn Guo <shawnguo@kernel.org>
> Acked-by: Rob Herring <robh@kernel.org>
> Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>

Reviewed-by: Fabio Estevam <festevam@gmail.com>
Fabio Estevam Nov. 10, 2018, 3:50 p.m. UTC | #2
On Sat, Nov 10, 2018 at 1:13 PM A.s. Dong <aisheng.dong@nxp.com> wrote:
>
> Add imx7ulp pm related components bindings
>
> Cc: Shawn Guo <shawnguo@kernel.org>
> Cc: devicetree@vger.kernel.org
> Reviewed-by: Rob Herring <robh@kernel.org>
> Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>

Reviewed-by: Fabio Estevam <festevam@gmail.com>
Fabio Estevam Nov. 10, 2018, 3:52 p.m. UTC | #3
On Sat, Nov 10, 2018 at 1:13 PM A.s. Dong <aisheng.dong@nxp.com> wrote:
>
> The i.MX 7ULP family of processors features NXP's advanced implementation
> of the Arm Cortex-A7 core, the Arm Cortex-M4 core, as well as a 3D and 2D
> Graphics Processing Units (GPUs).
>
> This patch aims to add the initial support including:
> 1) CLK
> 2) GPIO PTC, PTD, PTE, PTF
> 3) uSDHC 1/2
> 4) LPUART 4/5/6/7
> 5) LPI2C 6/7
>
> Cc: Rob Herring <robh+dt@kernel.org>
> Cc: Shawn Guo <shawnguo@kernel.org>
> Cc: devicetree@vger.kernel.org
> Cc: Sascha Hauer <kernel@pengutronix.de>
> Cc: Fabio Estevam <fabio.estevam@nxp.com>
> Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>

Reviewed-by: Fabio Estevam <festevam@gmail.com>
Aisheng Dong Dec. 5, 2018, 6:41 a.m. UTC | #4
Hi Shawn,

Can you help pick up imx7ulp support series?
The clk patch set is already in clk tree now.
https://git.kernel.org/pub/scm/linux/kernel/git/clk/linux.git/log/?h=clk-imx7ulp

Please let me know if you need me to resend.

Regards
Dong Aisheng

> -----Original Message-----
> From: A.s. Dong
> Sent: Saturday, November 10, 2018 11:13 PM
> To: linux-arm-kernel@lists.infradead.org
> Cc: dongas86@gmail.com; kernel@pengutronix.de; shawnguo@kernel.org;
> Fabio Estevam <fabio.estevam@nxp.com>; robh+dt@kernel.org; dl-linux-imx
> <linux-imx@nxp.com>; linux@armlinux.org.uk; A.s. Dong
> <aisheng.dong@nxp.com>
> Subject: [PATCH V5 0/6] ARM: imx: add imx7ulp support
> 
> The i.MX 7ULP family of processors represents NXP’s latest achievement in
> ultra-low-power processing for use cases demanding long battery life.
> Targeted towards the growing market of portable devices, the i.MX 7ULP
> family of processors features NXP's advanced implementation of the Arm®
> Cortex-A7 core, the Arm Cortex-M4 core, as well as a 3D and 2D Graphics
> Processing Units (GPUs). The i.MX 7ULP family provides up to 32-bit
> LPDDR2/LPDDR3 memory interface and a number of other interfaces for
> connecting peripherals, such as WLAN, Bluetooth, GPS, displays, and camera
> sensors.
> 
> This patch series adds the basic support for imx7ulp. It includes machine level
> support code and device tree.
> Note: it depends on clk driver which is still under review.
> 
> v4->v5:
>  * dts add input clocks for PCC module
>  * update pad setting due to missing pull up enabled
>    (formerly auto done by driver generic pinconfg)
>  * gpio and pinctrl patches were merged by Linus W, so dropped in this series
>   dt-bindings: gpio: vf610: add optional clocks property
>   gpio: vf610: add optional clock support
>   dt-bindings: pinctrl: imx7ulp: back to imx legacy binding for
>     consistency
>   pinctrl: fsl: imx7ulp: change to use imx legacy binding
> 
> v3->v4:
>  * add comments about fixed soc version
>  * add iounmap
> v2->v3:
>  * back to old pinctrl binding according to SoC maintainer's suggestions
>  * use generic node name
>  * error checking updated according to Russell's suggestion:
>    ptr == ERR_PTR(-EPROBE_DEFER)
> 
> v1->v2:
>  * switch to SPDX license
>  * rebase to latest tree
>  * pad name update
>  * add gpio clk support
>  * minor fix
> 
> 
> 
> Dong Aisheng (6):
>   dt-bindings: fsl: add compatible for imx7ulp evk
>   dt-bindings: fsl: add imx7ulp pm related components bindings
>   ARM: imx: add initial support for imx7ulp
>   dts: imx: add common imx7ulp dtsi support
>   dts: fsl: add imx7ulp evk support
>   ARM: imx_v6_v7_defconfig: add imx7ulp support
> 
>  .../bindings/arm/freescale/fsl,imx7ulp-pm.txt      |  23 ++
>  Documentation/devicetree/bindings/arm/fsl.txt      |   8 +
>  arch/arm/boot/dts/Makefile                         |   2 +
>  arch/arm/boot/dts/imx7ulp-evk.dts                  |  77 +++++
>  arch/arm/boot/dts/imx7ulp.dtsi                     | 346
> +++++++++++++++++++++
>  arch/arm/configs/imx_v6_v7_defconfig               |   1 +
>  arch/arm/mach-imx/Kconfig                          |   9 +
>  arch/arm/mach-imx/Makefile                         |   1 +
>  arch/arm/mach-imx/common.h                         |   1 +
>  arch/arm/mach-imx/cpu.c                            |   3 +
>  arch/arm/mach-imx/mach-imx7ulp.c                   |  33 ++
>  arch/arm/mach-imx/mxc.h                            |   1 +
>  arch/arm/mach-imx/pm-imx7ulp.c                     |  29 ++
>  13 files changed, 534 insertions(+)
>  create mode 100644
> Documentation/devicetree/bindings/arm/freescale/fsl,imx7ulp-pm.txt
>  create mode 100644 arch/arm/boot/dts/imx7ulp-evk.dts  create mode
> 100644 arch/arm/boot/dts/imx7ulp.dtsi  create mode 100644
> arch/arm/mach-imx/mach-imx7ulp.c  create mode 100644
> arch/arm/mach-imx/pm-imx7ulp.c
> 
> --
> 2.7.4
Shawn Guo Dec. 6, 2018, 2:45 p.m. UTC | #5
On Sat, Nov 10, 2018 at 01:50:13PM -0200, Fabio Estevam wrote:
> On Sat, Nov 10, 2018 at 1:13 PM A.s. Dong <aisheng.dong@nxp.com> wrote:
> 
> Even a single line commit log would be better here.

+1

I added a simple commit log and applied the patch.

Shawn

> 
> > Cc: devicetree@vger.kernel.org
> > Cc: Shawn Guo <shawnguo@kernel.org>
> > Acked-by: Rob Herring <robh@kernel.org>
> > Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
> 
> Reviewed-by: Fabio Estevam <festevam@gmail.com>
Shawn Guo Dec. 6, 2018, 2:45 p.m. UTC | #6
On Sat, Nov 10, 2018 at 03:13:00PM +0000, A.s. Dong wrote:
> Add imx7ulp pm related components bindings
> 
> Cc: Shawn Guo <shawnguo@kernel.org>
> Cc: devicetree@vger.kernel.org
> Reviewed-by: Rob Herring <robh@kernel.org>
> Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>

Applied, thanks.
Shawn Guo Dec. 6, 2018, 2:51 p.m. UTC | #7
On Sat, Nov 10, 2018 at 03:13:08PM +0000, A.s. Dong wrote:
> The i.MX 7ULP family of processors features NXP's advanced implementation
> of the Arm Cortex-A7 core, the Arm Cortex-M4 core, as well as a 3D and 2D
> Graphics Processing Units (GPUs).
> 
> This patch aims to add the initial support including:
> 1) CLK
> 2) GPIO PTC, PTD, PTE, PTF
> 3) uSDHC 1/2
> 4) LPUART 4/5/6/7
> 5) LPI2C 6/7
> 
> Cc: Rob Herring <robh+dt@kernel.org>
> Cc: Shawn Guo <shawnguo@kernel.org>
> Cc: devicetree@vger.kernel.org
> Cc: Sascha Hauer <kernel@pengutronix.de>
> Cc: Fabio Estevam <fabio.estevam@nxp.com>
> Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>

Changed the subject prefix like 'ARM: dts: imx: ...', and applied the
patch.

Shawn
Shawn Guo Dec. 6, 2018, 2:54 p.m. UTC | #8
On Sat, Nov 10, 2018 at 03:13:12PM +0000, A.s. Dong wrote:
> The NXP i.MX 7ULP Evaluation Kit (EVK) provides a platform for rapid
> evaluation of the i.MX 7ULP, which features NXP's advanced implementation
> of the Arm Cortex-A7 core, the Arm Cortex-M4 core, as well as a 3D and
> 2D Graphics Processing Units (GPUs).
> 
> The EVK enables HDMI output for simple out-of-the-box to bring up but
> allows reconfiguration for MIPI displays. The EVK is designed as a
> System-On-Module(SOM) board that connects to an associated baseboard.
> The SOM provides 1 GB LPDDR3, 8 MB Quad SPI flash, Micro SD 3.0 card
> socket, WiFi/ Bluetooth capability, USB 2.0 OTG with Type C connector
> and an NXP PF1550 power management IC (PMIC). The baseboard provides
> additional capabilities including a full SD/MMC 3.0 card socket, audio
> codec, multiple sensors, an HDMI connector, and an alternate MIPI display
> connector. Additionally, the EVK facilitates software development with the
> ultimate goal of faster time to market through the support of both
> Linux OS and AndroidTM rich operating systems, as well as FreeRTOS.
> 
> This patch aims to support the preliminary booting up features
> as follows:
> GPIO
> LPUART
> FEC
> SD/MMC
> 
> See more board details:
> https://www.nxp.com/products/processors-and-microcontrollers/
> arm-based-processors-and-mcus/i.mx-applications-processors/
> i.mx-7-processors/evaluation-kit-for-the-i.mx-7ulp-applications
> -processor:MCIMX7ULP-EVK
> 
> Cc: Rob Herring <robh+dt@kernel.org>
> Cc: Shawn Guo <shawnguo@kernel.org>
> Cc: devicetree@vger.kernel.org
> Cc: Sascha Hauer <kernel@pengutronix.de>
> Reviewed-by: Fabio Estevam <festevam@gmail.com>
> Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>

Changed the subject prefix like 'ARM: dts: imx: ...', and applied the
patch.

Shawn