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.

GPIO input issue on the DeviceTree

Hi TI,

I am using package am335x-evm-sdk-src-07.00.00.00.tar.gz kernel linux-3.12.10-ti2013.12.01

I create GPIO input in the DeviceTree like the following:

arch/arm/boot/dts/am335x-bone-common.dtsi

    am33xx_pinmux: pinmux@44e10800 {
        pinctrl-names = "default";
        pinctrl-0 = <&clkout2_pin>;
...................

                    user_leds_default: falcon_in_pins {
                        pinctrl-single,pins = <
                                0x1a4 (PIN_INPUT_PULLUP | MUX_MODE7)     /* B_TYPE/mcasp0_fsr/gpio3-19 */
                                0x030 (PIN_INPUT_PULLUP | MUX_MODE7)     /* INT7/gpmc_ad12/gpio1-12 */
                                0x034 (PIN_INPUT_PULLUP | MUX_MODE7)     /* INT6/gpmc_ad13/gpio1-13 */
                                0x038 (PIN_INPUT_PULLUP | MUX_MODE7)     /* INT5/gpmc_ad14/gpio1-14 */
                                0x03c (PIN_INPUT_PULLUP | MUX_MODE7)     /* INT8/gpmc_ad15/gpio1-15 */
                                0x19c (PIN_INPUT_PULLUP | MUX_MODE7)     /* INT4/mcasp0_ahclkr/gpio3-17 */
                                0x064 (PIN_INPUT_PULLUP | MUX_MODE7)     /* IGN/gpmc_a9/gpio1-25 */
                                0x198 (PIN_INPUT_PULLUP | MUX_MODE7)     /* BT_F2/mcasp0_axr0/gpio3-16 */
                                0x0e4 (PIN_INPUT_PULLUP | MUX_MODE7)     /* WF_IRQ/lcd_hsync/gpio2-23 */
                                0x028 (PIN_INPUT_PULLUP | MUX_MODE7)     /* GPS_ANT_DET/gpmc_ad10/gpio0-26 */
                                0x020 (PIN_INPUT_PULLUP | MUX_MODE7)     /* ACC_INT1/gpmc_ad8/gpio0-22 */
                                0x02c (PIN_INPUT_PULLUP | MUX_MODE7)     /* MO_GPIO8/gpmc_ad11/gpio0-27 */
                                0x07c (PIN_INPUT_PULLUP | MUX_MODE7)     /* MO_GPRS_DET/gpmc_csn0/gpio1-29 */
                                0x054 (PIN_INPUT_PULLUP | MUX_MODE7)     /* WD_OUT/mmc2_dat3/gpio1-21 */
                        >;
                };


    ocp {

.................


                falcon {
                        compatible = "gpio-leds";
                        pinctrl-names = "default";
                        pinctrl-0 = <&user_leds_default>;
            status = "okay";
                };

I use the command

pin 105 (44e109a4.0) 00000037 pinctrl-single

echo 105 > /sys/class/gpio/export
cat  /sys/class/gpio/gpio105/direction
in

cat  /sys/class/gpio/gpio105/value     
0

Who can tell what's wrong with DeviceTree for GPIO inputs?

Thank you!

desmond