imx27: pinctrl: GPIO set output value failed

Chris Ruehl chris.ruehl at gtsys.com.hk
Tue Jan 14 00:39:22 EST 2014


Just fall over the Reference manual for the GPIO ports.
Seams the iconfb0 is not addressed right.

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
Table 6.1 of the imx27 reference manual says (Page 6-5,6-6)
> [ 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
PTA_OCR1  1001_5004 OK
>
> [    1.553712] imx27-pinctrl 10015000.iomuxc: write: register 
> 0xf441500c offset 18 value 0x0
PTA_ICONFA1 1001_500C  OK
>
> [    1.553766] imx27-pinctrl 10015000.iomuxc: write: register 
> 0xf4415010 offset 18 value 0x0
PTA_ICONFB1 1001_5014  --->  0xf4415010 seams the wrong address
1001_5010 is the PTA_ICONFA2


> 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




More information about the linux-arm mailing list