Skip to content

mx7: add dt support for Colibri iMX7S/iMX7D

Stefan Agner u-boot 3 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest10 patches 0 repliesNew
  2. v210 patches 0 repliesSuperseded
  3. v110 patches 0 repliesSuperseded

Changes in v3 from the cover letter

- Drop CONFIG_CUSTOM_BOARDINFO again
- Add ifdef OF_CONTROL in serial-mxc driver to allow building the driver without OF support

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10dm: imx: serial: support device treedoc/device-tree-bindings/serial/mxc-serial.txt drivers/serial/serial_mxc.c+38 -20 replies
2/10pinctrl: imx: do not announce driver initializationdrivers/pinctrl/nxp/pinctrl-imx.c+1 -10 replies
3/10arm: dts: imx7: add pinctrl definesarch/arm/dts/imx7d-pinfunc.h+1151 -00 replies
4/10arm: dts: imx7: add basic i.MX 7/Colibri iMX7 device treearch/arm/dts/Makefile arch/arm/dts/imx7-colibri.dts arch/arm/dts/imx7.dtsi+288 -00 replies
5/10colibri_imx7: remove legancy I2C supportboard/toradex/colibri_imx7/colibri_imx7.c include/configs/colibri_imx7.h+0 -420 replies
6/10colibri_imx7: remove legancy UART platform databoard/toradex/colibri_imx7/colibri_imx7.c+0 -100 replies
7/10power: pmic: add Ricoh RN5T567 PMIC supportdoc/device-tree-bindings/pmic/rn5t567.txt drivers/power/pmic/Kconfig drivers/power/pmic/Makefile +2 more+203 -00 replies
8/10arm: dts: imx7: add Ricoh RN5T567 PMIC nodearch/arm/dts/imx7-colibri.dts+5 -00 replies
9/10colibri_imx7: use Ricoh RN5T567 to reboot the boardboard/toradex/colibri_imx7/colibri_imx7.c+42 -00 replies
10/10configs: enable device tree for Colibri iMX7configs/colibri_imx7_defconfig+9 -10 replies

Reviews trailers per patch

4 of 10 patches have a Reviewed-by or Acked-by.

PatchSimon Glass
1/10R-b
2/10R-b
3/10
4/10R-b
5/10
6/10
7/10R-b
8/10
9/10
10/10

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [U-Boot] [PATCH v3 00/10] mx7: add dt support for Colibri iMX7S/iMX7D

From: Stefan Agner <[email protected]>

This patchset adds device tree support for Colibri iMX7S/iMX7D. It is the first device tree enabled board for any i.MX 7 SoC hence the patchset adds some common infrastructure:
- Add device tree support for serial_mxc.
- imx7.dtsi - I descided to leave the s/d suffix since the SoCs are very similar and boards will likely use runtime detection to distinguish the two available SoCs.
- The pinmux file imx7d-pinfunc.h is taken from the Kernel and stored in the same place

Otherwise the conversion is quite straightforward and simplified the board code somewhat. Two patches enhance the board support with PMIC support, which has been the driver for this conversion.

Changes since v2:
- Drop CONFIG_CUSTOM_BOARDINFO again
- Add ifdef OF_CONTROL in serial-mxc driver to allow building the driver without OF support

Changes since v1:
- Add Linux kernel commit hash for imx7d-pinfunc.h
- Removed obsolete init declaration in PMIC header file
- Rebased and added Acks

--
Stefan

Stefan Agner (10):
dm: imx: serial: support device tree
pinctrl: imx: do not announce driver initialization
arm: dts: imx7: add pinctrl defines
arm: dts: imx7: add basic i.MX 7/Colibri iMX7 device tree
colibri_imx7: remove legancy I2C support
colibri_imx7: remove legancy UART platform data
power: pmic: add Ricoh RN5T567 PMIC support
arm: dts: imx7: add Ricoh RN5T567 PMIC node
colibri_imx7: use Ricoh RN5T567 to reboot the board
configs: enable device tree for Colibri iMX7

 arch/arm/dts/Makefile                          |    2 +
 arch/arm/dts/imx7-colibri.dts                  |   97 ++
 arch/arm/dts/imx7.dtsi                         |  194 ++++
 arch/arm/dts/imx7d-pinfunc.h                   | 1151 ++++++++++++++++++++++++
 board/toradex/colibri_imx7/colibri_imx7.c      |   92 +-
 configs/colibri_imx7_defconfig                 |   10 +-
 doc/device-tree-bindings/pmic/rn5t567.txt      |   17 +
 doc/device-tree-bindings/serial/mxc-serial.txt |    8 +
 drivers/pinctrl/nxp/pinctrl-imx.c              |    2 +-
 drivers/power/pmic/Kconfig                     |    8 +
 drivers/power/pmic/Makefile                    |    1 +
 drivers/power/pmic/rn5t567.c                   |   64 ++
 drivers/serial/serial_mxc.c                    |   32 +-
 include/configs/colibri_imx7.h                 |    2 -
 include/power/rn5t567_pmic.h                   |  113 +++
 15 files changed, 1737 insertions(+), 56 deletions(-)
 create mode 100644 arch/arm/dts/imx7-colibri.dts
 create mode 100644 arch/arm/dts/imx7.dtsi
 create mode 100644 arch/arm/dts/imx7d-pinfunc.h
 create mode 100644 doc/device-tree-bindings/pmic/rn5t567.txt
 create mode 100644 doc/device-tree-bindings/serial/mxc-serial.txt
 create mode 100644 drivers/power/pmic/rn5t567.c
 create mode 100644 include/power/rn5t567_pmic.h
Signature · 1 line
2.10.0