OpenWrt Forum Archive

Topic: help!!!HOW RT3052 add gpio50 for suport

The content of this topic has been archived on 22 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

hi anyone can help I want RT3052F GPIO 3,4,5, and GPIO 49 50 51  in GPIO_MODE


How can I to edit the code for it!!!!


80         ((RT305X_GPIO_MODE_GPIO << RT305X_GPIO_MODE_UART0_SHIFT) | \
81          RT305X_GPIO_MODE_MDIO)


85         rt305x_gpio_init(HW550_3G_GPIO_MODE);

I think, RT305X_GPIO_MODE_RGMII - gpio 40-51 or rgmii mode.

yes it's rmii but I just want to use GPIO49/50/51 the gpl support it..

80         ((RT305X_GPIO_MODE_GPIO << RT305X_GPIO_MODE_UART0_SHIFT) | \
81          RT305X_GPIO_MODE_MDIO | RT305X_GPIO_MODE_RGMII )

85         rt305x_gpio_init(HW550_3G_GPIO_MODE);

so much thanks to you -_-  can you explain me the function theory

rt305x_gpio_init ?
Simply switch corresponding pin group (i2c, spi, uartf, urtlite,jatg,mdio etc) to GPIO mode.

The discussion might have continued from here.