Skip to contentSkip to conversation

ARM: dts: vf: Iris carrier board for the Colibri VF50 and VF61

PATCH Applied Mehmet Fide 2 participants 6 messages Aug 14 – Aug 25

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

v5 cover ARM: dts: vf: Iris carrier board for the Colibri VF50 and VF61

From: Mehmet Fide <[email protected]>

This adds a device tree for the Toradex Iris carrier board carrying the Vybrid Colibri modules, plus two small preparatory patches for the module-level dtsi that the i.MX Colibri variants already had.

Tested on a Colibri VF50 on an Iris V1.1, most recently on 7.2-rc7 plus this series.

Changes in v5:
- drop the kernel version from the test description in patch 4 (Krzysztof)
- collect the Reviewed-by tags

Changes in v4:
- gpio-line-names packed four per line (Frank Li)
- keep the EXT_IO pin group applied next to the carrier hog group instead of overwriting pinctrl-0 in the Iris dtsi, verified in pinmux-pins on hardware (Sashiko review)
- enable pwm0/pwm1 like the evaluation board does; both chips register on hardware (Sashiko review)
- the compatibles keep their hyphens; Krzysztof asked for hyphens in every newly introduced compatible in the v2 review

Changes in v3, following Krzysztof's review:
- fold the Iris compatibles into the existing -on-eval enum entries
- use hyphens in the newly introduced compatibles
- drop the fixed 5V regulator that only fed the VBUS regulator
- sent as a fresh thread instead of in reply to v2

Changes in v2:
- add the dt-bindings patch for the new compatibles
- describe the USB host VBUS regulator instead of hogging USBH_PEN

Good old times indeed. You did this job before me and pulled me into Linux in the first place, so having these patches reviewed by you closes a nice circle. I seem to be following your path in every detail by now, the hairline included. The tiny board is still out there measuring every day. Thanks for the reviews!

Mehmet Fide (4):
ARM: dts: vf-colibri: apply the EXT_IO pin group
ARM: dts: vf-colibri: name the SODIMM gpio lines
dt-bindings: arm: fsl: add the Colibri VF50 and VF61 on Iris
ARM: dts: vf: add Iris carrier board support for Colibri VF50 and VF61

 .../devicetree/bindings/arm/fsl.yaml          |  12 +-
 arch/arm/boot/dts/nxp/vf/Makefile             |   2 +
 arch/arm/boot/dts/nxp/vf/vf-colibri-iris.dtsi | 126 ++++++++++++++++++
 arch/arm/boot/dts/nxp/vf/vf-colibri.dtsi      |  56 ++++++++
 .../boot/dts/nxp/vf/vf500-colibri-iris.dts    |  14 ++
 .../boot/dts/nxp/vf/vf610-colibri-iris.dts    |  14 ++
 6 files changed, 220 insertions(+), 4 deletions(-)
 create mode 100644 arch/arm/boot/dts/nxp/vf/vf-colibri-iris.dtsi
 create mode 100644 arch/arm/boot/dts/nxp/vf/vf500-colibri-iris.dts
 create mode 100644 arch/arm/boot/dts/nxp/vf/vf610-colibri-iris.dts

base-commit: 3d6d817622b0a9721e3cc404df3469171582be13

Signature · 1 line
2.54.0
#1 lore raw

PATCH v5 1/4 ARM: dts: vf-colibri: apply the EXT_IO pin group

From: Mehmet Fide <[email protected]>

pinctrl_gpio_ext describes the three Colibri EXT_IO pins, but no node references it, so the pin controller never applies it and the pads keep whatever mux and bias they came up with. It is the only pin group in the Vybrid Colibri device trees that is defined and never used.

The three pins are GPIOs on gpio2 and belong to no device, so hog the group on that controller. Referencing it from &iomuxc would work too, but the pin controller would then depend on one of its own children, which fw_devlink reports as a dependency cycle.

---
 arch/arm/boot/dts/nxp/vf/vf-colibri.dtsi | 9 +++++++++
 1 file changed, 9 insertions(+)
arch/arm/boot/dts/nxp/vf/vf-colibri.dtsi +9 -0
index 98f9ee1b0030..74afc7b0d74b 100644
@@ -170,6 +170,15 @@ &usbphy1 {
 	status = "okay";
 };
 
+&gpio2 {
+	/*
+	 * EXT_IO_0..2 belong to no device, so hog the pin group here rather
+	 * than on the pin controller, which would depend on its own child.
+	 */
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_gpio_ext>;
+};
+
 &iomuxc {
 	pinctrl_flexcan0: can0grp {
 		fsl,pins = <
Signature · 1 line
2.54.0
#2 lore raw

PATCH v5 2/4 ARM: dts: vf-colibri: name the SODIMM gpio lines

In reply to Mehmet Fide

From: Mehmet Fide <[email protected]>

The Colibri modules expose most of their GPIOs on numbered SODIMM pins, and the i.MX ones already carry those numbers as gpio-line-names, so the gpiod tools print SODIMM_43 rather than a bank and an offset. Do the same for the Vybrid modules.

The 99 names come from the pinout table of the Colibri VFxx datasheet (Toradex 101355). Verified on a Colibri VF50, where gpioinfo now names every pin the datasheet lists.

---
 arch/arm/boot/dts/nxp/vf/vf-colibri.dtsi | 47 ++++++++++++++++++++++++
 1 file changed, 47 insertions(+)
arch/arm/boot/dts/nxp/vf/vf-colibri.dtsi +47 -0
index 74afc7b0d74b..a9269857df2c 100644
@@ -170,6 +170,44 @@ &usbphy1 {
 	status = "okay";
 };
 
+&gpio0 {
+	gpio-line-names = "", "", "SODIMM_89", "",
+			  "", "SODIMM_102", "SODIMM_18", "SODIMM_134",
+			  "SODIMM_16", "SODIMM_14", "SODIMM_23", "",
+			  "", "", "SODIMM_47", "SODIMM_190",
+			  "SODIMM_192", "SODIMM_49", "SODIMM_51", "SODIMM_53",
+			  "SODIMM_37", "SODIMM_29", "", "SODIMM_30",
+			  "SODIMM_20", "SODIMM_24", "SODIMM_21", "SODIMM_19",
+			  "SODIMM_94", "SODIMM_81", "SODIMM_28";
+};
+
+&gpio1 {
+	gpio-line-names = "SODIMM_35", "SODIMM_33", "SODIMM_27", "SODIMM_25",
+			  "SODIMM_196", "SODIMM_194", "SODIMM_63", "SODIMM_55",
+			  "SODIMM_65", "SODIMM_45", "SODIMM_43", "SODIMM_73",
+			  "SODIMM_77", "SODIMM_71", "SODIMM_98", "SODIMM_101",
+			  "SODIMM_103", "SODIMM_79", "SODIMM_97", "",
+			  "", "SODIMM_85", "", "",
+			  "", "", "", "",
+			  "", "", "", "SODIMM_106";
+};
+
+&gpio3 {
+	gpio-line-names = "SODIMM_105", "", "SODIMM_93", "",
+			  "", "", "", "SODIMM_95",
+			  "SODIMM_22", "SODIMM_68", "SODIMM_82", "SODIMM_56",
+			  "SODIMM_131", "SODIMM_44", "SODIMM_144", "SODIMM_146",
+			  "SODIMM_52", "SODIMM_54", "SODIMM_66", "SODIMM_64",
+			  "SODIMM_57", "SODIMM_61", "SODIMM_140", "SODIMM_142",
+			  "SODIMM_80", "SODIMM_46", "SODIMM_62", "SODIMM_48",
+			  "SODIMM_74", "SODIMM_50", "SODIMM_136", "SODIMM_138";
+};
+
+&gpio4 {
+	gpio-line-names = "SODIMM_76", "SODIMM_70", "SODIMM_60", "SODIMM_58",
+			  "SODIMM_78", "SODIMM_72", "SODIMM_96";
+};
+
 &gpio2 {
 	/*
 	 * EXT_IO_0..2 belong to no device, so hog the pin group here rather
@@ -177,6 +215,15 @@ &gpio2 {
 	 */
 	pinctrl-names = "default";
 	pinctrl-0 = <&pinctrl_gpio_ext>;
+
+	gpio-line-names = "SODIMM_69", "SODIMM_99", "SODIMM_104", "SODIMM_107",
+			  "SODIMM_127", "SODIMM_184", "SODIMM_186", "",
+			  "", "", "", "",
+			  "", "", "", "SODIMM_38",
+			  "SODIMM_36", "SODIMM_34", "SODIMM_32", "SODIMM_129",
+			  "SODIMM_86", "SODIMM_90", "SODIMM_92", "SODIMM_88",
+			  "SODIMM_133", "SODIMM_135", "SODIMM_188", "SODIMM_75",
+			  "SODIMM_100";
 };
 
 &iomuxc {
Signature · 1 line
2.54.0
#3 lore raw

PATCH v5 3/4 dt-bindings: arm: fsl: add the Colibri VF50 and VF61 on Iris

In reply to Mehmet Fide

From: Mehmet Fide <[email protected]>

The Iris is a small off-the-shelf carrier board for the Colibri family. Extend the evaluation board entries with the compatibles for a Colibri VF50 or VF61 sitting on it.

---
 Documentation/devicetree/bindings/arm/fsl.yaml | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)
Documentation/devicetree/bindings/arm/fsl.yaml +8 -4
index 86876311ec59..6f95c17b363c 100644
@@ -1705,9 +1705,11 @@ properties:
               - fsl,vf610
               - fsl,vf610m4
 
-      - description: Toradex Colibri VF50 Module on Colibri Evaluation Board
+      - description: Toradex Colibri VF50 Module on a carrier board
         items:
-          - const: toradex,vf500-colibri_vf50-on-eval
+          - enum:
+              - toradex,vf500-colibri_vf50-on-eval
+              - toradex,vf500-colibri-vf50-on-iris
           - const: toradex,vf500-colibri_vf50
           - const: fsl,vf500
 
@@ -1719,9 +1721,11 @@ properties:
               - phytec,vf610-cosmic       # PHYTEC Cosmic/Cosmic+ Board
           - const: fsl,vf610
 
-      - description: Toradex Colibri VF61 Module on Colibri Evaluation Board
+      - description: Toradex Colibri VF61 Module on a carrier board
         items:
-          - const: toradex,vf610-colibri_vf61-on-eval
+          - enum:
+              - toradex,vf610-colibri_vf61-on-eval
+              - toradex,vf610-colibri-vf61-on-iris
           - const: toradex,vf610-colibri_vf61
           - const: fsl,vf610
 
Signature · 1 line
2.54.0
#4 lore raw

PATCH v5 4/4 ARM: dts: vf: add Iris carrier board support for Colibri VF50 and VF61

In reply to Mehmet Fide

From: Mehmet Fide <[email protected]>

The Iris is a small off-the-shelf carrier board for the Colibri family. Describe what the board itself provides: Ethernet, one USB host and one OTG port, the pin header UARTs, i2c with the carrier RTC on it, the PWM pins on the X16 header, SPI and the microSD slot. The host port gets its VBUS through a regulator on SODIMM 129, and the two GPIOs that turn the RS232 transceivers on, SODIMM 102 and 104, are hogged. The touchscreen is an add-on rather than part of the board, so it is left out.

This describes an Iris V1.1. A V2.0 carries the same signals on the same pins; what it adds, and what this does not describe, is the regulator on SODIMM 100 that can cut power to the uSD slot.

Tested on a Colibri VF50 on an Iris V1.1: Ethernet at 100Mbps/Full, a USB dongle enumerating once the VBUS regulator is in place, the RTC read back over i2c0, all three UARTs, the SPI controller registering, both PWM chips registering, the microSD slot, the EXT_IO pin group still applied next to the carrier hog group, and both hogs holding their pins.

---
 arch/arm/boot/dts/nxp/vf/Makefile             |   2 +
 arch/arm/boot/dts/nxp/vf/vf-colibri-iris.dtsi | 126 ++++++++++++++++++
 .../boot/dts/nxp/vf/vf500-colibri-iris.dts    |  14 ++
 .../boot/dts/nxp/vf/vf610-colibri-iris.dts    |  14 ++
 4 files changed, 156 insertions(+)
 create mode 100644 arch/arm/boot/dts/nxp/vf/vf-colibri-iris.dtsi
 create mode 100644 arch/arm/boot/dts/nxp/vf/vf500-colibri-iris.dts
 create mode 100644 arch/arm/boot/dts/nxp/vf/vf610-colibri-iris.dts
arch/arm/boot/dts/nxp/vf/Makefile +2 -0
index 0a4a7f9dd43e..47be8bc318e2 100644
@@ -1,8 +1,10 @@
 # SPDX-License-Identifier: GPL-2.0
 dtb-$(CONFIG_SOC_VF610) += \
 	vf500-colibri-eval-v3.dtb \
+	vf500-colibri-iris.dtb \
 	vf610-bk4.dtb \
 	vf610-colibri-eval-v3.dtb \
+	vf610-colibri-iris.dtb \
 	vf610m4-colibri.dtb \
 	vf610-cosmic.dtb \
 	vf610m4-cosmic.dtb \
arch/arm/boot/dts/nxp/vf/vf-colibri-iris.dtsi new file +126 -0

126 lines not on this page · raw message

arch/arm/boot/dts/nxp/vf/vf500-colibri-iris.dts new file +14 -0
new file mode 100644
index 000000000000..aa91537cab37
@@ -0,0 +1,14 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+/*
+ * Copyright 2026 Mehmet Fide
+ */
+
+/dts-v1/;
+#include "vf500-colibri.dtsi"
+#include "vf-colibri-iris.dtsi"
+
+/ {
+	model = "Toradex Colibri VF50 on Iris Carrier Board";
+	compatible = "toradex,vf500-colibri-vf50-on-iris", "toradex,vf500-colibri_vf50",
+		     "fsl,vf500";
+};
arch/arm/boot/dts/nxp/vf/vf610-colibri-iris.dts new file +14 -0
new file mode 100644
index 000000000000..7db5aa490966
@@ -0,0 +1,14 @@
+// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
+/*
+ * Copyright 2026 Mehmet Fide
+ */
+
+/dts-v1/;
+#include "vf610-colibri.dtsi"
+#include "vf-colibri-iris.dtsi"
+
+/ {
+	model = "Toradex Colibri VF61 on Iris Carrier Board";
+	compatible = "toradex,vf610-colibri-vf61-on-iris", "toradex,vf610-colibri_vf61",
+		     "fsl,vf610";
+};
Signature · 1 line
2.54.0
#5 lore raw
In reply to Mehmet Fide

From: Frank Li <[email protected]>

Quoted 10 lines · Mehmet Fide

From: Mehmet Fide <[email protected]>

This adds a device tree for the Toradex Iris carrier board carrying the Vybrid Colibri modules, plus two small preparatory patches for the module-level dtsi that the i.MX Colibri variants already had.

Tested on a Colibri VF50 on an Iris V1.1, most recently on 7.2-rc7 plus this series.

[...]

Applied to imx/dt-intend, thanks!

[1/4] ARM: dts: vf-colibri: apply the EXT_IO pin group

      commit: aff53f8f5831c55cba94e0588dcf7d1dcde8b75d
[2/4] ARM: dts: vf-colibri: name the SODIMM gpio lines
      commit: 04f9032ad6b65fe527cf4e3e825be3556ba92ad0
[3/4] dt-bindings: arm: fsl: add the Colibri VF50 and VF61 on Iris
      commit: 3d8a67a1fbc8a18b99acfdb7af06d79e4f4ebcb8
[4/4] ARM: dts: vf: add Iris carrier board support for Colibri VF50 and VF61
      commit: 43d4b5153ae513d03b45a5767aa084b676302c72

wrap at 75 and fine turn commit message, cut shorter

Best regards,
--
Frank Li <[email protected]>