Not able to change gpio value in apalis-imx6 module

Hi,

Module: apalis-imx6

Base board : ixora V1.1A

for default gpio (1-8):

  1. I’m able to change its direction from input to out.
  2. i’m not able to change the value of default gpio (1-8) .

NOTE : For customised yocto image , i didn’t change anything in dtb file yet.

please check the attachment for more information.

link text

regards,

nikunj patel

Hi

How do you know that the GPIO output did not change? Did you actually measure?

Please also have a look here.

Max

Hi @max.tx ,

How can i set default gpio (1-8) as HIGH or LOW from dtb file.

please suggest changes for that .

regards,
nikunj patel

Hi

You cannot change the direction to output (and then set an inital default value of 0 and 1) in the device tree as part of the pinmuxing. There is no generic functionality which you can use for that.

The closest to that is changing the pinmuxing to either be pull-up or pull-down. If the load you connect to the pins does not draw a lot of current that has the effect you’re asking for.

Max