AM67: How to use gpio command in the u-boot?

Part Number: AM67

Tool/software:

Hi all,

    I used am67 evm, in the u-boot used gpio command. how to confirm <pin>?

same as EXP_GPIO0_38(MCU_UART0_CTSN B5), what is this <pin>?

Usage:
gpio <input|set|clear|toggle> <pin>
- input/set/clear/toggle the specified pin

Thanks

  • Hello,

    => gpio status -a
    Bank gpio@4201000_:
    gpio@4201000_0: input: 0 [ ]
    gpio@4201000_1: input: 0 [ ]
    gpio@4201000_2: input: 0 [ ]
    gpio@4201000_3: input: 0 [ ]
    gpio@4201000_4: input: 0 [ ]
    gpio@4201000_5: input: 0 [ ]
    gpio@4201000_6: input: 0 [ ]
    gpio@4201000_7: input: 0 [ ]
    gpio@4201000_8: input: 0 [ ]
    gpio@4201000_9: input: 1 [ ]
    gpio@4201000_10: input: 0 [ ]
    gpio@4201000_11: input: 1 [ ]
    gpio@4201000_12: input: 0 [ ]
    gpio@4201000_13: input: 0 [ ]
    gpio@4201000_14: input: 0 [ ]
    gpio@4201000_15: input: 0 [ ]
    gpio@4201000_16: input: 0 [ ]
    gpio@4201000_17: input: 1 [ ]
    gpio@4201000_18: input: 1 [ ]
    gpio@4201000_19: input: 1 [ ]
    gpio@4201000_20: input: 1 [ ]
    gpio@4201000_21: input: 0 [ ]
    gpio@4201000_22: input: 0 [ ]
    gpio@4201000_23: input: 0 [ ]
    
    Bank gpio@23_:
    gpio@23_0: input: 1 [ ]
    gpio@23_1: input: 1 [ ]
    gpio@23_2: input: 0 [ ]
    gpio@23_3: input: 0 [ ]
    gpio@23_4: input: 0 [ ]
    gpio@23_5: input: 0 [ ]
    gpio@23_6: input: 0 [ ]
    gpio@23_7: input: 0 [ ]
    gpio@23_8: input: 0 [ ]
    gpio@23_9: input: 0 [ ]
    gpio@23_10: input: 0 [ ]
    gpio@23_11: input: 0 [ ]
    gpio@23_12: input: 1 [ ]
    gpio@23_13: input: 0 [ ]
    gpio@23_14: input: 1 [ ]
    gpio@23_15: output: 1 [ ]
    gpio@23_16: input: 1 [ ]
    gpio@23_17: input: 1 [ ]
    gpio@23_18: input: 0 [ ]
    gpio@23_19: input: 1 [ ]
    gpio@23_20: input: 0 [ ]
    gpio@23_21: input: 1 [ ]
    gpio@23_22: input: 0 [ ]
    gpio@23_23: input: 0 [ ]
    
    Bank gpio@600000_:
    gpio@600000_0: input: 0 [ ]
    gpio@600000_1: input: 0 [ ]
    gpio@600000_2: input: 0 [ ]
    gpio@600000_3: input: 0 [ ]
    gpio@600000_4: input: 0 [ ]
    gpio@600000_5: input: 0 [ ]
    gpio@600000_6: input: 0 [ ]
    gpio@600000_7: input: 0 [ ]
    gpio@600000_8: input: 0 [ ]
    gpio@600000_9: input: 0 [ ]
    gpio@600000_10: input: 0 [ ]
    gpio@600000_11: input: 0 [ ]
    gpio@600000_12: input: 0 [ ]
    gpio@600000_13: input: 0 [ ]
    gpio@600000_14: input: 0 [ ]
    gpio@600000_15: input: 1 [ ]
    gpio@600000_16: input: 1 [ ]
    gpio@600000_17: input: 1 [ ]
    gpio@600000_18: input: 1 [ ]
    gpio@600000_19: input: 1 [ ]
    gpio@600000_20: input: 1 [ ]
    gpio@600000_21: input: 1 [ ]
    gpio@600000_22: input: 1 [ ]
    gpio@600000_23: input: 0 [ ]
    gpio@600000_24: input: 0 [ ]
    gpio@600000_25: input: 0 [ ]
    gpio@600000_26: input: 0 [ ]
    gpio@600000_27: input: 0 [ ]
    gpio@600000_28: input: 0 [ ]
    gpio@600000_29: input: 0 [ ]
    gpio@600000_30: input: 0 [ ]
    gpio@600000_31: input: 0 [ ]
    gpio@600000_32: input: 0 [ ]
    gpio@600000_33: input: 0 [ ]
    gpio@600000_34: input: 0 [ ]
    gpio@600000_35: input: 0 [ ]
    gpio@600000_36: input: 0 [ ]
    gpio@600000_37: input: 0 [ ]
    gpio@600000_38: input: 0 [ ]
    gpio@600000_39: input: 0 [ ]
    gpio@600000_40: input: 0 [ ]
    gpio@600000_41: input: 0 [ ]
    gpio@600000_42: input: 0 [ ]
    gpio@600000_43: input: 0 [ ]
    gpio@600000_44: input: 0 [ ]
    gpio@600000_45: input: 0 [ ]
    gpio@600000_46: input: 0 [ ]
    gpio@600000_47: input: 0 [ ]
    gpio@600000_48: input: 0 [ ]
    gpio@600000_49: input: 0 [ ]
    gpio@600000_50: input: 0 [ ]
    gpio@600000_51: input: 0 [ ]
    gpio@600000_52: input: 0 [ ]
    gpio@600000_53: input: 0 [ ]
    gpio@600000_54: input: 0 [ ]
    gpio@600000_55: input: 0 [ ]
    gpio@600000_56: input: 0 [ ]
    gpio@600000_57: input: 0 [ ]
    gpio@600000_58: input: 0 [ ]
    gpio@600000_59: input: 0 [ ]
    gpio@600000_60: input: 0 [ ]
    gpio@600000_61: input: 0 [ ]
    gpio@600000_62: input: 0 [ ]
    gpio@600000_63: input: 0 [ ]
    gpio@600000_64: input: 0 [ ]
    gpio@600000_65: input: 0 [ ]
    gpio@600000_66: input: 0 [ ]
    gpio@600000_67: input: 0 [ ]
    gpio@600000_68: input: 0 [ ]
    gpio@600000_69: input: 0 [ ]
    gpio@600000_70: input: 0 [ ]
    gpio@600000_71: input: 0 [ ]
    gpio@600000_72: input: 0 [ ]
    gpio@600000_73: input: 0 [ ]
    gpio@600000_74: input: 0 [ ]
    gpio@600000_75: input: 0 [ ]
    gpio@600000_76: input: 0 [ ]
    gpio@600000_77: input: 0 [ ]
    gpio@600000_78: input: 0 [ ]
    gpio@600000_79: input: 0 [ ]
    gpio@600000_80: input: 1 [ ]
    gpio@600000_81: input: 0 [ ]
    gpio@600000_82: input: 0 [ ]
    gpio@600000_83: input: 0 [ ]
    gpio@600000_84: input: 0 [ ]
    gpio@600000_85: input: 1 [ ]
    gpio@600000_86: input: 0 [ ]
    gpio@600000_87: input: 0 [ ]
    gpio@600000_88: input: 0 [ ]
    gpio@600000_89: input: 0 [ ]
    gpio@600000_90: input: 0 [ ]
    gpio@600000_91: input: 0 [ ]
    
    Bank gpio@601000_:
    gpio@601000_0: input: 0 [ ]
    gpio@601000_1: input: 0 [ ]
    gpio@601000_2: input: 0 [ ]
    gpio@601000_3: input: 0 [ ]
    gpio@601000_4: input: 0 [ ]
    gpio@601000_5: input: 0 [ ]
    gpio@601000_6: input: 0 [ ]
    gpio@601000_7: input: 0 [ ]
    gpio@601000_8: input: 0 [ ]
    gpio@601000_9: input: 0 [ ]
    gpio@601000_10: input: 0 [ ]
    gpio@601000_11: input: 0 [ ]
    gpio@601000_12: input: 0 [ ]
    gpio@601000_13: input: 0 [ ]
    gpio@601000_14: input: 0 [ ]
    gpio@601000_15: input: 0 [ ]
    gpio@601000_16: input: 0 [ ]
    gpio@601000_17: input: 0 [ ]
    gpio@601000_18: input: 0 [ ]
    gpio@601000_19: input: 0 [ ]
    gpio@601000_20: input: 1 [ ]
    gpio@601000_21: input: 0 [ ]
    gpio@601000_22: input: 0 [ ]
    gpio@601000_23: input: 0 [ ]
    gpio@601000_24: input: 0 [ ]
    gpio@601000_25: input: 0 [ ]
    gpio@601000_26: input: 1 [ ]
    gpio@601000_27: input: 1 [ ]
    gpio@601000_28: input: 0 [ ]
    gpio@601000_29: input: 0 [ ]
    gpio@601000_30: input: 0 [ ]
    gpio@601000_31: input: 0 [ ]
    gpio@601000_32: input: 0 [ ]
    gpio@601000_33: input: 0 [ ]
    gpio@601000_34: input: 0 [ ]
    gpio@601000_35: input: 0 [ ]
    gpio@601000_36: input: 0 [ ]
    gpio@601000_37: input: 0 [ ]
    gpio@601000_38: input: 0 [ ]
    gpio@601000_39: input: 0 [ ]
    gpio@601000_40: input: 0 [ ]
    gpio@601000_41: input: 0 [ ]
    gpio@601000_42: input: 1 [ ]
    gpio@601000_43: input: 1 [ ]
    gpio@601000_44: input: 1 [ ]
    gpio@601000_45: input: 1 [ ]
    gpio@601000_46: input: 0 [ ]
    gpio@601000_47: input: 1 [ ]
    gpio@601000_48: input: 0 [ ]
    gpio@601000_49: input: 0 [ ]
    gpio@601000_50: input: 0 [ ]
    gpio@601000_51: input: 0 [ ]
    

    Those are the GPIOs enabled in U-Boot. Which one are you looking for?

    - Keerthy

  • Hi Keerthy,

    I want set EXP_GPIO0_38(MCU_UART0_CTSN B5) to 1, what is this <pin>?

  • Hi,

    Are you looking to toggle MCU_UART0_CTSn?

    The corresponding GPIO Number is MCU_GPIO0_7.

    gpio@4201000_7: input: 0 [ ]

    This is the one.

    - Keerthy