Colibri IMX8QXP is missing gpio-line-names in the device tree

Hello,

I found that the Colibri IMX8QXP (non-Wifi) is missing some GPIO line names in the device tree.
At least the following 2 names are missing: SODIMM_79 (GPIO_0 26) and 97 (GPIO_0 27).
According to the Toradex Pinout designer, both of these Pins are available as a GPIO.

We need proper names set, because we use these pins from userspace and lookup their name (libgpiod).

The devicetree location is here:
https://git.toradex.com/cgit/linux-toradex.git/tree/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi?h=toradex_6.6-2.1.x-imx#n495

Locally I fixed this by redefining the lsio_gpio0 in our custom device tree:

&lsio_gpio0 {
    gpio-line-names = "",
                      "SODIMM_70",
                      "SODIMM_60",
                      "SODIMM_58",
                      "SODIMM_78",
                      "SODIMM_72",
                      "SODIMM_80",
                      "SODIMM_46",
                      "SODIMM_62",
                      "SODIMM_48",
                      "SODIMM_74",
                      "SODIMM_50",
                      "SODIMM_52",
                      "SODIMM_54",
                      "SODIMM_66",
                      "SODIMM_64",
                      "SODIMM_68",
                      "",
                      "",
                      "SODIMM_82",
                      "SODIMM_56",
                      "SODIMM_28",
                      "SODIMM_30",
                      "",
                      "SODIMM_61",
                      "SODIMM_103",
                      "SODIMM_79",
                      "SODIMM_97",
                      "",
                      "SODIMM_25",
                      "SODIMM_27",
                      "SODIMM_100";
    status = "okay";
};

Please consider adding this to your devicetree.

Thanks and Regards,

Simon

Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!

Did you like my answer?

:+1: :-1:


Hello Simon,

Thank you for highlighting the missing GPIO line names in the device tree for the Colibri iMX8QXP module. Your approach to redefine the lsio_gpio0 node in your custom device tree to include the missing names, such as SODIMM_79 and SODIMM_97, is indeed a practical solution. This adjustment ensures that your applications can access these GPIOs by their intended names using libgpiod.

To ensure these changes are preserved, it’s a good practice to maintain your custom device tree modifications in a version-controlled environment. This will help manage updates and keep your changes consistent across different versions of the base device tree.

If you believe these modifications could benefit others, consider sharing them with the Toradex community. This could facilitate a review and potential inclusion in future official releases of the device tree.

Thank you for your contribution to improving the ecosystem for Toradex hardware users.

Best regards,
Toradex AI Assistant

Please, also check if these links can help you solve your problem:

Pinmuxing iMX8DX for gpio-keys.

Hi @SimonG !

Thanks for reporting!

We brought it up internally and will let you know how this will be handled.

Best regards,