imx27: pinctrl: GPIO set output value failed

Chris Ruehl chris.ruehl at gtsys.com.hk
Tue Jan 21 23:21:12 EST 2014


Hi,

after fix the imx_read_2bit() the registers show the expected values.
Ergo the problem must be in the gpiolib, my guess

pin 9 (MX27_PAD_LD3) GPIO 1, function 0, direction 1, oconf 3, iconfa 0, iconfb 0
pin 10 (MX27_PAD_LD4) GPIO 1, function 0, direction 1, oconf 3, iconfa 0, iconfb 0
pin 11 (MX27_PAD_LD5) GPIO 1, function 0, direction 0, oconf 3, iconfa 0, iconfb 0
pin 12 (MX27_PAD_LD6) GPIO 1, function 0, direction 1, oconf 3, iconfa 0, iconfb 0

gain, gpio9 works gpio10,12 not response on the /sys/class/gpio/gpio10/value 
changes.

Any Idea?


On Tuesday, January 14, 2014 12:13 PM, Chris Ruehl wrote:
> Hi,
>
> some kind of weired problem:
> Some GPIO's can modified via /sysfs  others cannot
> in my case gpio9 works, and gpio10,12 not.
> The pinctrl debug out looks good to me.
>
> running kernel 3.13-rc
>
> Working OK
> [    1.553601] imx27-pinctrl 10015000.iomuxc: imx1_pmx_enable, pin 0x9, function
> 0, gpio 1, direction 1, oconf 3, iconfa 0, iconfb 0
> [    1.553657] imx27-pinctrl 10015000.iomuxc: write: register 0xf4415004 offset
> 18 value 0x3
> [    1.553712] imx27-pinctrl 10015000.iomuxc: write: register 0xf441500c offset
> 18 value 0x0
> [    1.553766] imx27-pinctrl 10015000.iomuxc: write: register 0xf4415010 offset
> 18 value 0x0
> NOT Working
> [    1.553833] imx27-pinctrl 10015000.iomuxc: imx1_pmx_enable, pin 0xa, function
> 0, gpio 1, direction 1, oconf 3, iconfa 0, iconfb 0
> [    1.553889] imx27-pinctrl 10015000.iomuxc: write: register 0xf4415004 offset
> 20 value 0x3
> [    1.553944] imx27-pinctrl 10015000.iomuxc: write: register 0xf441500c offset
> 20 value 0x0
> [    1.553997] imx27-pinctrl 10015000.iomuxc: write: register 0xf4415010 offset
> 20 value 0x0
>
>
> GPIOs 0-31, platform/10015000.gpio, 10015000.gpio:
>   gpio-9   (sysfs               ) out hi
>   gpio-10  (sysfs               ) out lo
>   gpio-12  (sysfs               ) out lo
>   gpio-14  (sysfs               ) in  hi
>   gpio-16  (sysfs               ) in  hi
>   gpio-24  (green               ) out hi
>   gpio-26  (red                 ) out lo
>   gpio-30  (yellow              ) out lo
>   gpio-31  (10024170.usbphy     ) out hi
>
> root at gtsir20:~# echo 1 > /sys/class/gpio/gpio10/value
> root at gtsir20:~# cat /sys/kernel/debug/gpio
> GPIOs 0-31, platform/10015000.gpio, 10015000.gpio:
>   gpio-9   (sysfs               ) out hi
>   gpio-10  (sysfs               ) out lo
>   gpio-12  (sysfs               ) out lo
>   gpio-14  (sysfs               ) in  hi
>   gpio-16  (sysfs               ) in  hi
>   gpio-24  (green               ) out hi
>   gpio-26  (red                 ) out lo
>   gpio-30  (yellow              ) out lo
>   gpio-31  (10024170.usbphy     ) out hi
>
>           pinctrl_userio1: userio1-1 {
>                          fsl,pins = <
>                                  /* 2x GPIO in */
>                                  /* MX27_PAD_LD8__GPIO1_14 (in) */
>                                  /* MX27_PAD_LD10__GPIO1_16 (in) */
>                                  0x0e 0x032 0x0
>                                  0x10 0x032 0x0
>                                  /* 3x GPIO out */
>                                  /* UHF Enable */
>                                  MX27_PAD_LD3__GPIO1_9 0x0
>                                  MX27_PAD_LD4__GPIO1_10 0x0
>                                  MX27_PAD_LD6__GPIO1_12 0x0
>                                  /*
>                                  LED 1,2,3
>                                  */
>                                  MX27_PAD_PS__GPIO1_26 0x0
>                                  MX27_PAD_CONTRAST__GPIO1_30 0x0
>                                  MX27_PAD_REV__GPIO1_24 0x0
> ...
>
> I reviewed the pinctrl source but cannot find the problem.
>
> Help needed.
>
> Thanks
> Chris
>
> _______________________________________________
> linux-arm mailing list
> linux-arm at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm

-- 
GTSYS Limited RFID Technology
A01 24/F Gold King Industrial Bld
35-41 Tai Lin Pai Road, Kwai Chung, Hong Kong
Fax (852) 8167 4060 - Tel (852) 3598 9488

Disclaimer: http://www.gtsys.com.hk/email/classified.html



More information about the linux-arm mailing list