Overview
The aim of this document is to explain how to setup pins of SP7350 in device-tree source. SP7350 has 106 general purpose IO (GPIO) pins which are multiplexed with other special functions, like eMMC device, SPI-NOR flash, SPI-NAND flash, Ethernet PHY (RGMII or RMII interface), UART, I2C pins, and etc.
...
The pins to apply the properties to. See section "Pins" below.
groups
The group groups to apply the properties to. See section "Groups" below.
...
SP7350 has 106 GPIO pins. ID is from 0 to 105. Name is in form of GPIO(id), like GPIO0, GPIO1, GPIO2, GPIO99, GPIO105, and etc. There are two kinds of GPIO pins. One is 1.8V GPIO pins, and the other is 1.8V/3.0V Dual Voltage IO (DVIO) pins. Beside configure 1.8V or 3.0V power to power supply of a DVIO group in your circuit boards (hardware), you need to setup Voltage Mode Select (MS control) in device-tree source. Refer to groups of GPIO and DVIO in appendix GPIO Table below in details.
...
Code Block | ||
---|---|---|
| ||
pinmux_example { function = "UART0"; groupgroups = "UART0_X1"; }; |
pinconf
Info |
---|
Here we only list the generic pin configuration parameters supported by SP7350. |
...
Properties | Descriptions |
bias-disable | Disable pull-up, pull-down and strong pull-up |
bias-high-impedance | |
bias-pull-up | |
bias-pull-down | |
drive-open-drain | |
drive-strength-microamp | |
function | |
groupgroups | |
input-disable | |
input-enable | |
input-schmitt-disable | |
input-schmitt-enable | |
output-disable | |
output-enable | |
output-high | |
output-low | |
pins | |
sunplus,bias-strong-pull-up | For GPIO only, excluding DVIO |
sunplus,input-invert-disable | |
sunplus,input-invert-enable | |
sunplus,ms-dvio-group-0 | For G_MX21 - G_MX27 |
sunplus,ms-dvio-group-1 | For G_MX20, G_MX28 - G_MX37 |
sunplus,ms-dvio-ao-group-0 | For AO_MX0 - AO_MX9 |
sunplus,ms-dvio-ao-group-1 | For AO_MX10 - AO_MX19 |
sunplus,ms-dvio-ao-group-2 | For AO_MX20 - AO_MX29 |
sunplus,output-invert-disable | |
sunplus,output-invert-enable |
...