This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM335x GPIO error in Linux



Hi all

I have one question about the gpio control.

I used am335x-evm board.

My SDK version is ti-processor-sdk-linux-am335x-evm-02.00.02.11.

error message is  omap_gpio gpio0: can't get irq resource ret=-6

am335x-evm.dts settig is under code:

 gpio0 {
  pinctrl-names = "default";
  pinctrl-0 = <&sg_gpio0_pins_default>;
  compatible = "ti,omap4-gpio";
 };

 sg_gpio0_pins_default: sg_gpio0_pins_default {
        pinctrl-single,pins = <
        0x164 ( PIN_INPUT_PULLDOWN | MUX_MODE7 )  /* (C18) eCAP0_in_PWM0_out.gpio0[7] */
        0x158 ( PIN_INPUT_PULLDOWN | MUX_MODE7 )  /* (B16) spi0_d1.gpio0[4] */ 
        0x144 ( PIN_OUTPUT_PULLUP | MUX_MODE7 )   /* (H18) rmii1_refclk.gpio0[29] */
  >;
  };

but this code is ok in previous version SDK(ti-sdk-am335x-evm-08.00.00.00.00)

there is no problem.

error occurred after update to New SDK(ti-processor-sdk-linux-am335x-evm-02.00.02.11.)

How to solve this problem?

thank you for your reply.