Announcement

Collapse
No announcement yet.

GPIO not pulled up in openrex

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • GPIO not pulled up in openrex

    Hi,

    We are using gpios in the openrex board to give inputs to a Qt based GUI application using buttons. From the Qt application, the pins are exported as gpio's with direction as inputs in /sys/class/gpio/
    The pins are high and a button press will pull it down detecting it a press.

    This is working perfectly in the initial set of openrex boards that we purchased.

    But in a later set of boards purchased(same part number with imx6 quad), the pins 19,21 and 23 in the J2 header are not high by default. This causes the button press detection to fail.
    These pins are the CSPI1 MOSI, MISO and clk pins
    We are using the same sd card with the same kernel, dtb and Qt application to test. The SPI1 is disabled in the dts file.

    There are some differences in the u-boot settings between these boards. eg: in the first board it is uboot is looking for the dtb file imx6q-openrex.dtb, but in the second board it is looking for imx6-openrexmax.dtb. Some other settings are also different by default.

    Can someone provide some insight to fix this issue ? is this something related the any settings in u-boot ? The only software thing different while testing these boards are the u-boot and
    the env settings. Or can this be due to any difference in the boot rom ?

    Thanks

  • #2
    Interesting. The first board were probably shipped with our (FEDEVEL Academy) software and later VOIPAC created their own software - so there may be differences. Double check if internal pull ups / downs are setup inside the CPU. You can set them up in Uboot or in Kernel. Let me know if that helped.

    Comment

    Working...
    X