Changes between Version 3 and Version 4 of venice/DigitalIO


Ignore:
Timestamp:
12/15/2021 09:43:02 PM (3 years ago)
Author:
Tim Harvey
Comment:

updated digital I/O table to show U-Boot names vs Linux names

Legend:

Unmodified
Added
Removed
Modified
  • venice/DigitalIO

    v3 v4  
    1414
    1515Venice DIO Mapping:
    16 ||= Board =||= Connector =||= Primary Function =||= IMX8MM_PAD =||= GPIO =||= Notes ||
    17 || GW730x  || J9.1 || DIO0 || GPIO1_IO07 || gpio7 ||  ||
    18 ||         || J9.2 || DIO1 || GPIO1_IO09 || gpio9 || can be ENET1_1588_EVENT0_OUT^^^3^^^ ||
    19 ||         || J9.3 || UART1_RX || GPIO5_IO24 || gpio152 || shared with GPS RX ||
    20 ||         || J9.4 || UART1_TX || GPIO5_IO23 || gpio151 || shared with GPS TX ||
    21 ||         || J9.5 || I2C3_SCL || I2C3_SCL   || gpio145 (GPIO5_IO17) || shared with MIPI connector ||
    22 ||         || J9.6 || I2C3_SDA || I2C3_SDA   || gpio147 (GPIO5_IO19) || shared with MIPI connector ||
    23 ||         || J9.7 || GSC_ADC1 || - || - || Can measure 0 to 5V ||
    24 ||         || J9.8 || GSC_ADC2 || - || - || Can measure 0 to 5V ||
    25 ||         || J9.9 || VDD_3P3  || - || - || ||
    26 ||         || J9.10 || GND || - || - || ||
     16||= Board =||= Connector^^^1^^^ =||= Primary Function^^^2^^^ =||= IMX8MM_PAD =||= U-Boot^^^3^^^ =||= Linux^^^4^^^ =||= Notes ||
     17|| GW730x  || J9.1 || DIO0 || GPIO1_IO07 || GPIO1_7 || dio0 ||  ||
     18||         || J9.2 || DIO1 || GPIO1_IO09 || GPIO1_9 || dio1 || can be ENET1_1588_EVENT0_OUT^^^5^^^ ||
     19||         || J9.3 || UART1_RX || GPIO5_IO24 || GPIO5_24 || managed by UART driver || shared with GPS RX ||
     20||         || J9.4 || UART1_TX || GPIO5_IO23 || GPIO5_23 || managed by UART driver || shared with GPS TX ||
     21||         || J9.5 / J17.34 || I2C3_SCL || I2C3_SCL   || GPIO5_17 || managed by I2C driver || shared with MIPI connector ||
     22||         || J9.6 / J17.36 || I2C3_SDA || I2C3_SDA   || GPIO5_19 || managed by I2C driver || shared with MIPI connector ||
     23||         || J9.7 || GSC_ADC1 || - || vdd_adc1 || vdd_adc1 || Can measure 0 to 5V ||
     24||         || J9.8 || GSC_ADC2 || - || vdd_adc2 || vdd_adc2 || Can measure 0 to 5V ||
     25||         || J9.9 || VDD_3P3  || - || - || - || ||
     26||         || J9.10 || GND || - || - || - || ||
    2727|| ||
    28 ||  GW720x || J5.1 || DIO0 || GPIO1_IO07 || gpio7 ||  ||
    29 ||        || J5.2 || DIO1 || GPIO1_IO09 || gpio9 || can be ENET1_1588_EVENT0_OUT^^^3^^^ ||
    30 ||        || J5.3 || UART1_RX || GPIO5_IO24 || gpio152 || shared with GPS RX ||
    31 ||        || J5.4 || UART1_TX || GPIO5_IO23 || gpio151 || shared with GPS TX ||
    32 ||        || J5.5 || I2C3_SCL || I2C3_SCL   || gpio145 (GPIO5_IO17) || shared with MIPI connector ||
    33 ||        || J5.6 || I2C3_SDA || I2C3_SDA   || gpio147 (GPIO5_IO19) || shared with MIPI connector ||
    34 ||        || J5.7 || GSC_ADC1 || - || - || Can measure 0 to 5V ||
    35 ||        || J5.8 || GSC_ADC2 || - || - || Can measure 0 to 5V ||
    36 ||        || J5.9 || VDD_3P3  || - || - || ||
    37 ||        || J5.10 || GND || - || - || ||
     28||         || J17.43 || MIPI_GPIO1 || GPIO4_IO04 || GPIO4_4 || mipi_gpio1 || ||
     29||         || J17.45 || MIPI_GPIO2 || GPIO4_IO03 || GPIO4_3 || mipi_gpio2 || ||
     30||         || J17.47 || MIPI_GPIO3 || GPIO4_IO01 || GPIO4_1 || mipi_gpio3 || ||
     31||         || J17.48 || MIPI_GPIO4 || GPIO1_IO01 || GPIO1_1 || mipi_gpio4 || ||
    3832|| ||
    39 || GW710x || J25.1  || VDD_5P0 || - || - || ||
    40 ||        || J25.2  || GND     || - || - || ||
    41 ||        || J25.3  || VDD_5P0 || - || - || ||
    42 ||        || J25.4  || GND     || - || - || ||
    43 ||        || J25.5  || VDD_3P3 || - || - || ||
    44 ||        || J25.6  || GND     || - || - || ||
    45 ||        || J25.7  || SPI_MOSI || ECSPI2_MOSI || gpio139 (GPIO5_IO11) || can be UART4_TX^^^3^^^ ||
    46 ||        || J25.8  || SPI_MISO || ECSPI2_MISO || gpio140 (GPIO5_IO12) ||  ||
    47 ||        || J25.9  || SPI_SCLK || ECSPI2_SCLK || gpio138 (GPIO5_IO10) || can be UART4_RX^^^3^^^ ||
    48 ||        || J25.10 || SPI_SS0  || ECSPI2_SS0  || gpio141 (GPIO5_IO13) || ||
    49 ||        || J25.11 || I2C3_SCL || I2C3_SCL    || gpio146 (GPIO5_IO18) || can be PWM4_OUT^^^3^^^ ||
    50 ||        || J25.12 || I2C3_SDA || I2C3_SDA    || gpio147 (GPIO5_IO19) || can be PWM3_OUT^^^3^^^ ||
    51 ||        || J25.13 || UART3_RX || UART3_RXD || gpio154 (GPIO5_IO26) || ||
    52 ||        || J25.14 || UART3_TX || UART3_TXD || gpio155 (GPIO5_IO27) || ||
    53 ||        || J25.15 || GSC_PB#  || - || - || Connect pushbutton to GND ||
    54 ||        || J25.16 || GSC_ADC1 || - || - || Can measure 0 to 5V ||
    55 ||        || J25.17 || DIO0 || GPIO1_IO07 || gpio7   || ||
    56 ||        || J25.18 || DIO1 || GPIO1_IO09 || gpio9   || can be ENET1_1588_EVENT0_OUT^^^3^^^ ||
    57 ||        || J25.19 || DIO2 || SAI1_RXD1  || gpio99 (GPIO4_IO3) || ||
    58 ||        || J25.20 || DIO3 || SAI1_RXD2  || gpio100 (GPIO4_IO4) || ||
    59 1. This is the signal name from the [http://www.gateworks.com/usermanuals ​Venice hardware manuals]
    60 2. This is the connector pinout.
    61 3. requires modifying the device-tree to change the pinmux
     33||         || J14.22 / J12.22 || PCI_WDIS# || SAI1_RXD5 || GPIO4_7 || pci_wdis# || set in U-Boot / Linux ||
     34||         || J14.20 / J12/20 || PCI_RST#  || SAI1_RXD4 || GPIO4_6  || managed by PCI driver ||  ||
     35|| ||
     36||  GW720x || J5.1 || DIO0 || GPIO1_IO07 || GPIO1_7 || dio0 ||
     37||        || J5.2 || DIO1 || GPIO1_IO09 || GPIO1_9 || dio1 || can be ENET1_1588_EVENT0_OUT^^^5^^^ ||
     38||        || J5.3 || UART1_RX || GPIO5_IO24 || GPIO5_24 || managed by UART driver || shared with GPS RX ||
     39||        || J5.4 || UART1_TX || GPIO5_IO23 || GPIO5_23 || managed by UART driver || shared with GPS TX ||
     40||        || J5.5 / J4.34 || I2C3_SCL || I2C3_SCL   || GPIO5_17 || managed by I2C driver || shared with MIPI connector ||
     41||        || J5.6 / J4.36 || I2C3_SDA || I2C3_SDA   || GPIO5_19 || managed by I2C driver || shared with MIPI connector ||
     42||        || J5.7 || GSC_ADC1 || - || vdd_adc1 || vdd_adc1 || Can measure 0 to 5V ||
     43||        || J5.8 || GSC_ADC2 || - || vdd_adc2 || vdd_adc2 || Can measure 0 to 5V ||
     44||        || J5.9 || VDD_3P3  || - || - || - || ||
     45||        || J5.10 || GND || - || - || - || ||
     46|| ||
     47||         || J4.43 || MIPI_GPIO1 || GPIO4_IO04 || GPIO4_4 || mipi_gpio1 || ||
     48||         || J4.45 || MIPI_GPIO2 || GPIO4_IO03 || GPIO4_3 || mipi_gpio2 || ||
     49||         || J4.47 || MIPI_GPIO3 || GPIO4_IO01 || GPIO4_1 || mipi_gpio3 || ||
     50||         || J4.48 || MIPI_GPIO4 || GPIO1_IO01 || GPIO1_1 || mipi_gpio4 || ||
     51|| ||
     52||         || J8.22 / J10.22 || PCI_WDIS# || SAI1_RXD5 || GPIO4_7 || pci_wdis# || set in U-Boot / Linux ||
     53||         || J8.20 / J10/20 || PCI_RST#  || SAI1_RXD4 || GPIO4_6  || managed by PCI driver ||  ||
     54|| ||
     55|| GW710x || J25.1  || VDD_5P0 || - || - || - || ||
     56||        || J25.2  || GND     || - || - || - || ||
     57||        || J25.3  || VDD_5P0 || - || - || - || ||
     58||        || J25.4  || GND     || - || - || - || ||
     59||        || J25.5  || VDD_3P3 || - || - || - || ||
     60||        || J25.6  || GND     || - || - || - || ||
     61||        || J25.7  || SPI_MOSI || ECSPI2_MOSI || GPIO5_11 || managed by SPI driver || can be UART4_TX^^^5^^^ ||
     62||        || J25.8  || SPI_MISO || ECSPI2_MISO || GPIO5_12 || managed by SPI driver ||  ||
     63||        || J25.9  || SPI_SCLK || ECSPI2_SCLK || GPIO5_10 || managed by SPI driver || can be UART4_RX^^^5^^^ ||
     64||        || J25.10 || SPI_SS0  || ECSPI2_SS0  || GPIO5_13 || managed by SPI driver || ||
     65||        || J25.11 || I2C3_SCL || I2C3_SCL    || GPIO5_18 || managed by I2C driver || can be PWM4_OUT^^^5^^^ ||
     66||        || J25.12 || I2C3_SDA || I2C3_SDA    || GPIO5_19 || managed by I2C driver || can be PWM3_OUT^^^5^^^ ||
     67||        || J25.13 || UART3_RX || UART3_RXD || GPIO5_26 || managed by UART driver || ||
     68||        || J25.14 || UART3_TX || UART3_TXD || GPIO5_27 || managed by UART driver || ||
     69||        || J25.15 || GSC_PB#  || - || - || user_pb || Connect pushbutton to GND ||
     70||        || J25.16 || GSC_ADC1 || - || vdd_adc2 || vdd_adc1 || Can measure 0 to 5V ||
     71||        || J25.17 || DIO0 || GPIO1_IO07 || GPIO1_7 || dio0   || ||
     72||        || J25.18 || DIO1 || GPIO1_IO09 || GPIO1_9 || dio1   || can be ENET1_1588_EVENT0_OUT^^^5^^^ ||
     73||        || J25.19 || DIO2 || SAI1_RXD1  || GPIO4_3 || dio2 || ||
     74||        || J25.20 || DIO3 || SAI1_RXD2  || GPIO4_4 || dio3 || ||
     751. This is the connector pinout.
     762. This is the signal name from the [http://www.gateworks.com/usermanuals ​Venice hardware manuals]
     773. This is the bank_pin name that can be used in U-Boot (see [wiki:gpio#uboot here])
     784. This is the name provided to Linux via gpio-line-names in the device-tree (see [wiki:gpio#gpiolib here])
     795. Any of the above pin function assignments can be altered by changing the device-tree to change the pinmux which is also where you can specify drive strength, pull-up, pull-down etc.
    6280
    6381Note that all signals (unless noted in notes) are 3.3V tolerant.
     
    7290= Useful links
    7391 * [wiki:gpio Linux GPIO and GPIO basics]
     92  - [wiki:gpio#gpiolib Linux GPIO usage]
     93  - [wiki:gpio#uboot U-Boot GPIO usage]
    7494 * [wiki:linux/pwm Configuring PWM Hardware]
    7595 * [wiki:I2C Linux I2C]