i.MX6 - GPIO Bit Lane Issue

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

i.MX6 - GPIO Bit Lane Issue

764 Views
PaulDeMetrotion
Senior Contributor I


I have four GPIO bits that I have defined as inputs and all have external pull-ups so I would expect to read a one on all bits.

Here is my device tree configuration:

                MX6QDL_PAD_GPIO_3__GPIO1_IO03          0x80000000      // gpio0

                MX6QDL_PAD_GPIO_4__GPIO1_IO04          0x80000000      // gpio1

                MX6QDL_PAD_GPIO_5__GPIO1_IO05          0x80000000      // gpio2

                MX6QDL_PAD_GPIO_6__GPIO1_IO06          0x80000000      // gpio3

When I actaully read the values, the bits are set but they are still in their register bit alignment as shown.

root@imx6soloc421:/sys/class/gpio# echo in > gpio3/direction

root@imx6soloc421:/sys/class/gpio# echo in > gpio4/direction

root@imx6soloc421:/sys/class/gpio# echo in > gpio5/direction

root@imx6soloc421:/sys/class/gpio# echo in > gpio6/direction

root@imx6soloc421:/sys/class/gpio# cat gpio3/value

8

root@imx6soloc421:/sys/class/gpio# cat gpio4/value

16

root@imx6soloc421:/sys/class/gpio# cat gpio5/value

32

root@imx6soloc421:/sys/class/gpio# cat gpio6/value

64

Anybody know why this is happening?

Labels (3)
0 Kudos
3 Replies

516 Views
Carlos_Musich
NXP Employee
NXP Employee

Hi Paul,

It seems to me that you are mixing 2 different BSPs. I find strange that on one side you have in your device tree configuration 'MX6QDL'. However on the other side you have root@imxsoloc, so I wonder what BSP are you using? Is it a BSP provided by NXP?

Regards,

Carlos

0 Kudos

516 Views
PaulDeMetrotion
Senior Contributor I

The device uses an i.MX6 Solo device which uses the i.MX6 DL iomux settings.

0 Kudos

516 Views
Carlos_Musich
NXP Employee
NXP Employee

Is it your own BSP?

0 Kudos