AM625: AM625 Uboot下GPIO配置

Part Number: AM625


需要在uboot中配置默认GPIO,但不成功

1、设备树修改:

    main_gpio0_pins_default:main-gpio0-default-pins {
        bootph-all;
        pinctrl-single,pins = <
            AM62X_IOPAD(0x0118, PIN_OUTPUT_PULLUP, 7) /* GPIO0_69 GPIO_PHY_RSTn */
            AM62X_IOPAD(0x0124, PIN_INPUT, 7)  /* GPIO0_71 CPU_TMP_ALERT */
            AM62X_IOPAD(0x0128, PIN_OUTPUT_PULLDOWN, 7) /* GPIO0_72 FEEDDOG */
            AM62X_IOPAD(0x0030, PIN_OUTPUT_PULLUP, 7) /* GPIO0_12 GPIO_OSPI_RSTn */
            AM62X_IOPAD(0x0038, PIN_OUTPUT_PULLDOWN, 7)  /* GPIO0_14 SOC_FEEDEN */
        >;
    };

    main_gpio1_pins_default:main-gpio1-default-pins {
        bootph-all;
        pinctrl-single,pins = <
            AM62X_IOPAD(0x023C, PIN_INPUT, 7)  /* GPIO1_47 PWR_MON_INT_1 */
            AM62X_IOPAD(0x0240, PIN_INPUT, 7)  /* GPIO1_48 PWR_MON_INT_2 */
            AM62X_IOPAD(0x0244, PIN_OUTPUT_PULLUP, 7) /* GPIO1_49 VCC_3V3_RUN */
            AM62X_IOPAD(0x01F0, PIN_OUTPUT_PULLUP, 7) /* GPIO1_30 GPIO_eMMC_RSTn */
        >;
    };
};

&main_gpio0 {
    status = "okay";
    bootph-all;
    pinctrl-names = "default";
    pinctrl-0 = <&main_gpio0_pins_default>; 
};

&main_gpio1 {
    status = "okay";
    bootph-all;
    pinctrl-names = "default";
    pinctrl-0 = <&main_gpio1_pins_default>;
};

 

2、在uboot中,通过gpio status -a看,所有gpio引脚都是input,并没有变成output。

 

问题:我还需要配置什么,才能让gpio有默认输出状态呢