Again problem switching GPIOs... This time GPIO13 and GPIO 192 stay low

  • Hello F&S Team...

    I have trouble switching GPIO192 and GPIO13 using a PCOMA9X-V3I-LIN. I'm not able to control the pin via direct programming or with using the console. Maybe you have an idea what keeps me from using GPIO192 and GPIO 13... Both Ethernet, all RTS/DTS, Audio etc. are switched off in the Devicetree...


    Also is there a reliable way to check the value-state of a given the GPIO Pin... For instance i can switch GPIO196 perfectly, but if I try to read the state via the console, the result does not represent the actual state of the pin...


    Thanks in advance...

  • I have trouble switching GPIO192 and GPIO13 using a PCOMA9X-V3I-LIN. I'm not able to control the pin via direct programming or with using the console. Maybe you have an idea what keeps me from using GPIO192 and GPIO 13... Both Ethernet, all RTS/DTS, Audio etc. are switched off in the Devicetree...

    GPIO13 is not available if you have two Ethernet ports equipped (which is the case on PCOMA9X-V3I-LIN). Then it is an LED signal that is directly coming from the Ethernet PHY.


    GPIO192 however should work. Have you added a pin configuration for this pin as GPIO, for example in the hoggrp node?

    Quote

    Also is there a reliable way to check the value-state of a given the GPIO Pin... For instance i can switch GPIO196 perfectly, but if I try to read the state via the console, the result does not represent the actual state of the pin...

    You should activate the SION bit ni this case. This is done by adding 0x40000000 to the pin configuration value on those pins that are used as GPIO. Then the CPU can read back the value that is output on the pin.


    Your F&S Support Team

    F&S Elektronik Systeme GmbH
    As this is an international forum, please try to post in English.
    Da dies ein internationales Forum ist, bitten wir darum, Beiträge möglichst in Englisch zu verfassen.

  • so, I changed the .dts to



    #ifdef CONFIG_PICOCOMA9X_UART_A

    pinctrl_uart4_1: uart4grp-1 {

    fsl,pins = <

    MX6SX_PAD_SD3_CMD__UART4_TX 0x1b0b1

    MX6SX_PAD_SD3_DATA3__UART4_RX 0x1b0b1

    #ifdef CONFIG_PICOCOMA9X_UART_A_RTSCTS

    MX6SX_PAD_SD3_CLK__UART4_RTS_B 0x1b0b1

    MX6SX_PAD_SD3_DATA2__UART4_CTS_B 0x1b0b1

    #endif

    >;

    };

    #endif


    and added GPIO192 in the hoggrp node...


    /* GPIO 192 */

    MX6SX_PAD_SD3_CLK__GPIO7_IO_0 0x0b0b0 //(Pull Up)


    /* GPIO 196 */

    MX6SX_PAD_SD3_DATA2__GPIO7_IO_4 0x030b0 //(Pull Down)


    but still no sucsess... ;(

  • Hi,


    normally it should it work. What problem occurs? Can you export the gpio?


    Your F&S Support Team

    F&S Elektronik Systeme GmbH
    As this is an international forum, please try to post in English.
    Da dies ein internationales Forum ist, bitten wir darum, Beiträge möglichst in Englisch zu verfassen.

  • Hello PJ...

    The change in the .dts file was sufficient... Had a little bug, which prevented it from working, after everything was set up in the hoggrp node...;)


    Thanks alot