|
|
Line 97: |
Line 97: |
| ROCK Pi S has two 26-pin expansion header. Each pin is distinguished by color. | | ROCK Pi S has two 26-pin expansion header. Each pin is distinguished by color. |
| | | |
− | | + | For more details, see the [[RockpiS/hardware/gpio | GPIO page]]. |
− | <div class="col-md-12 ">
| + | |
− | <div class="panel panel-midnight-white">
| + | |
− | <div class="panel-heading"><h3>Hardware V10</h3></div>
| + | |
− | <div class="panel-body">
| + | |
− | | + | |
− | ==== 26-pin Header 1 ====
| + | |
− | | + | |
− | {| class="mw-collapsible mw-collapsed wikitable"
| + | |
− | ! GPIO number || Func4 || Func3 || Func2 || Func1 || Pin# || || Pin# || Func1 || Func2 || Func3 || Func4 || GPIO number
| + | |
− | |-
| + | |
− | | || || || +3.3V || || style="background:yellow"| 1 || ||style="background:red"| 2 || +5.0V || || ||| ||
| + | |
− | |-
| + | |
− | | 12 || || || I2C1_SCL || GPIO0_B4 || style="background:green; color:white"| 3 || || style="background:red"| 4 || +5.0V || || || ||
| + | |
− | |-
| + | |
− | | 11 || || || I2C1_SDA || GPIO0_B3 || style="background:green; color:white"| 5 || || style="background:black; color:white"| 6 || GND || || || ||
| + | |
− | |-
| + | |
− | | 69 || || || I2S0_SCLK_TX || GPIO2_A5 || style="background:green; color:white"| 7 || || style="background:green; color:white"| 8 || GPIO4_D3 || SDMMC_D3 || UART2_TX_M1 || PMU_ST3 || 155
| + | |
− | |-
| + | |
− | | 64 || || SPI0_MISO || style="background:orange"| UART0_RX || GPIO2_A0 || style="background:green; color:white"| 9 || || style="background:green; color:white"|10 || GPIO4_D2 || SDMMC_D2 || UART2_RX_M1 || PMU_ST2 || 154
| + | |
− | |-
| + | |
− | | 65 || || SPI0_MOSI || style="background:orange"|UART0_TX || GPIO2_A1 || style="background:green; color:white"|11 || || style="background:green; color:white"|12 || GPIO0_C0 || PWM3 || I2C3_SCL_M0 || || 16
| + | |
− | |-
| + | |
− | | 66 || I2C2_SDA || SPI0_CLK || UART0_CTSN || GPIO2_A2 || style="background:green; color:white"|13 || || style="background:black; color:white"|14 || GND || || || ||
| + | |
− | |-
| + | |
− | | 67 || I2C2_SCL || SPI0_CSN0 || UART0_RTSN || GPIO2_A3 || style="background:green; color:white"|15 || || style="background:green; color:white"|16 || GPIO2_A7 || I2S0_8CH_LRCK_TX || || || 71
| + | |
− | |-
| + | |
− | | || || || || +3.3V || style="background:yellow"|17 || || style="background:green; color:white"|18 || GPIO2_B1 || I2S0_8CH_SDO0 || || || 73
| + | |
− | |-
| + | |
− | | 55 || SPI2_MOSI || UART2_TX_M0 || UART1_RTSN || GPIO1_C7 || style="background:green; color:white"|19 || ||style="background:black; color:white"|20 || GND || || || ||
| + | |
− | |-
| + | |
− | | 54 || SPI2_MISO || UART2_RX_M0 || UART1_CTSN || GPIO1_C6 || style="background:green; color:white"|21 || || style="background:green; color:white"|22 || GPIO0_B6 || PWM1 || || || 14
| + | |
− | |-
| + | |
− | | 56 || SPI2_CLK || I2C0_SDA || UART1_RX || GPIO1_D0 || style="background:green; color:white"|23 || || style="background:green; color:white"|24 || GPIO1_D1 || UART1_TX || I2C0_SCL || SPI2_CSN0 || 57
| + | |
− | |-
| + | |
− | | || || || || GND || style="background:black; color:white"|25 || || style="background:green; color:white"|26 || GPIO0_B7 || PWM2 || I2C3_SDA_M0 || || 15
| + | |
− | |}
| + | |
− | | + | |
− | '''Warning'''
| + | |
− | * Pin#8 and Pin#10 cannot be used as GPIO, UART function pins since they are the data pins of SDMMC.
| + | |
− | | + | |
− | ==== 26-pin Header 2 ====
| + | |
− | | + | |
− | {| class="mw-collapsible mw-collapsed wikitable"
| + | |
− | ! GPIO number || Func3 || Func2 || Func1 || Pin# || || Pin# || Func1 || Func2 || Func3 || GPIO number
| + | |
− | |-
| + | |
− | | || || || GND || style="background:black; color:white"| 1 || ||style="background:black; color:white"| 2 || GPIO2_A6 || I2S0_8CH_SCLK_RX || PDM_CLK_S_M2 ||| 70
| + | |
− | |-
| + | |
− | | || || || ADC_KEY_IN1 || style="background:black; color:white"| 3 || || style="background:black; color:white"| 4 || GPIO2_B5 || I2S0_8CH_SDI0 || PDM_SDI0_M2 || 77
| + | |
− | |-
| + | |
− | | || || || MICBIAS2 || style="background:black; color:white"| 5 || || style="background:black; color:white"| 6 || GPIO2_B6 || I2S0_8CH_SDI1 || PDM_SDI1_M2 || 78
| + | |
− | |-
| + | |
− | | || || || MICBIAS1 || style="background:black; color:white"| 7 || || style="background:black; color:white"| 8 || GPIO2_B7 || I2S0_8CH_SDI2 || PDM_SDI2_M2 || 79
| + | |
− | |-
| + | |
− | | || || || MICN8 || style="background:black; color:white"| 9 || || style="background:black; color:white"|10 || MCIP8 || || ||
| + | |
− | |-
| + | |
− | | || || || MICN7 || style="background:black; color:white"|11 || || style="background:black; color:white"|12 || MCIP7 || || ||
| + | |
− | |-
| + | |
− | | || || || MICN6 || style="background:black; color:white"|13 || || style="background:black; color:white"|14 || MCIP6 || || ||
| + | |
− | |-
| + | |
− | | || || || MICN5 || style="background:black; color:white"|15 || || style="background:black; color:white"|16 || MCIP5 || || ||
| + | |
− | |-
| + | |
− | | || || || MICN4 || style="background:black; color:white"|17 || || style="background:black; color:white"|18 || MCIP4 || || ||
| + | |
− | |-
| + | |
− | | || || || MICN3 || style="background:black; color:white"|19 || ||style="background:black; color:white"|20 || MCIP3 || || ||
| + | |
− | |-
| + | |
− | | || || || MICN2 || style="background:black; color:white"|21 || || style="background:black; color:white"|22 || MCIP2 || || ||
| + | |
− | |-
| + | |
− | | || || || MICN1 || style="background:black; color:white"|23 || || style="background:black; color:white"|24 || MCIP1 || || ||
| + | |
− | |-
| + | |
− | | || || || LINEOUT_R || style="background:black; color:white"|25 || || style="background:black; color:white"|26 || LINEOUT_L || || ||
| + | |
− | |}
| + | |
− | | + | |
− | | + | |
− | </div>
| + | |
− | </div>
| + | |
− | </div>
| + | |
− | | + | |
− | <div class="clearfix"></div>
| + | |
− | | + | |
− | <div class="col-md-12 ">
| + | |
− | <div class="panel panel-midnight-white">
| + | |
− | <div class="panel-heading"><h3>Hardware V11</h3></div>
| + | |
− | <div class="panel-body">
| + | |
− | | + | |
− | ==== 26-pin Header 1 ====
| + | |
− | | + | |
− | {| class="mw-collapsible mw-collapsed wikitable"
| + | |
− | ! GPIO number || Func4 || Func3 || Func2 || Func1 || Pin# || || Pin# || Func1 || Func2 || Func3 || Func4 || GPIO number
| + | |
− | |-
| + | |
− | | || || || +3.3V || || style="background:yellow"| 1 || ||style="background:red"| 2 || +5.0V || || ||| ||
| + | |
− | |-
| + | |
− | | 11 || || || I2C1_SDA || GPIO0_B3 || style="background:green; color:white"| 3 || || style="background:red"| 4 || +5.0V || || || ||
| + | |
− | |-
| + | |
− | | 12 || || || I2C1_SCL || GPIO0_B4 || style="background:green; color:white"| 5 || || style="background:black; color:white"| 6 || GND || || || ||
| + | |
− | |-
| + | |
− | | 69 || || || I2S0_SCLK_TX || GPIO2_A5 || style="background:green; color:white"| 7 || || style="background:green; color:white"| 8 || GPIO2_A1 || style="background:orange"|UART0_TX || SPI0_MOSI || || 65
| + | |
− | |-
| + | |
− | | || || || || GND || style="background:black; color:white"| 9 || || style="background:green; color:white"|10 || GPIO2_A0 || style="background:orange"|UART0_RX || SPI0_MISO || || 64
| + | |
− | |-
| + | |
− | | 15 || || I2C3_SDA_M0 || PWM2 || GPIO0_B7 || style="background:green; color:white"|11 || || style="background:green; color:white"|12 || GPIO2_A2 || UART0_CTSN || SPI0_CLK || I2C2_SDA || 66
| + | |
− | |-
| + | |
− | | 16 || || I2C3_SCL_M0 || PWM3 || GPIO0_C0 || style="background:green; color:white"|13 || || style="background:black; color:white"|14 || GND || || || ||
| + | |
− | |-
| + | |
− | | 17 || || || SPDIF_TX || GPIO0_C1 || style="background:green; color:white"|15 || || style="background:green; color:white"|16 || GPIO2_A3 || UART0_RTSN || SPI0_CSN0 || I2C2_SCL || 67
| + | |
− | |-
| + | |
− | | || || || || +3.3V || style="background:yellow"|17 || || style="background:green; color:white"|18 || GPIO2_B1 || I2S0_8CH_SDO0 || || || 73
| + | |
− | |-
| + | |
− | | 55 || SPI2_MOSI || UART2_TX_M0 || UART1_RTSN || GPIO1_C7 || style="background:green; color:white"|19 || ||style="background:black; color:white"|20 || GND || || || ||
| + | |
− | |-
| + | |
− | | 54 || SPI2_MISO || UART2_RX_M0 || UART1_CTSN || GPIO1_C6 || style="background:green; color:white"|21 || || style="background:green; color:white"|22 || GPIO0_B6 || PWM1 || || || 14
| + | |
− | |-
| + | |
− | | 56 || SPI2_CLK || I2C0_SDA || UART1_RX || GPIO1_D0 || style="background:green; color:white"|23 || || style="background:green; color:white"|24 || GPIO1_D1 || UART1_TX || I2C0_SCL || SPI2_CSN0 || 57
| + | |
− | |-
| + | |
− | | || || || || GND || style="background:black; color:white"|25 || || style="background:green; color:white"|26 || ADC_IN0 || || || ||
| + | |
− | |}
| + | |
− | | + | |
− | ==== 26-pin Header 2 ====
| + | |
− | | + | |
− | {| class="mw-collapsible mw-collapsed wikitable"
| + | |
− | ! GPIO number || Func3 || Func2 || Func1 || Pin# || || Pin# || Func1 || Func2 || Func3 || GPIO number
| + | |
− | |-
| + | |
− | | || || || GND || style="background:black; color:white"| 1 || ||style="background:black; color:white"| 2 || GPIO2_A6 || I2S0_8CH_SCLK_RX || PDM_CLK_S_M2 ||| 70
| + | |
− | |-
| + | |
− | | || || || ADC_KEY_IN1 || style="background:black; color:white"| 3 || || style="background:black; color:white"| 4 || GPIO2_B5 || I2S0_8CH_SDI0 || PDM_SDI0_M2 || 77
| + | |
− | |-
| + | |
− | | || || || MICBIAS2 || style="background:black; color:white"| 5 || || style="background:black; color:white"| 6 || GPIO2_B6 || I2S0_8CH_SDI1 || PDM_SDI1_M2 || 78
| + | |
− | |-
| + | |
− | | || || || MICBIAS1 || style="background:black; color:white"| 7 || || style="background:black; color:white"| 8 || GPIO2_B7 || I2S0_8CH_SDI2 || PDM_SDI2_M2 || 79
| + | |
− | |-
| + | |
− | | || || || MICN8 || style="background:black; color:white"| 9 || || style="background:black; color:white"|10 || MCIP8 || || ||
| + | |
− | |-
| + | |
− | | || || || MICN7 || style="background:black; color:white"|11 || || style="background:black; color:white"|12 || MCIP7 || || ||
| + | |
− | |-
| + | |
− | | || || || MICN6 || style="background:black; color:white"|13 || || style="background:black; color:white"|14 || MCIP6 || || ||
| + | |
− | |-
| + | |
− | | || || || MICN5 || style="background:black; color:white"|15 || || style="background:black; color:white"|16 || MCIP5 || || ||
| + | |
− | |-
| + | |
− | | || || || MICN4 || style="background:black; color:white"|17 || || style="background:black; color:white"|18 || MCIP4 || || ||
| + | |
− | |-
| + | |
− | | || || || MICN3 || style="background:black; color:white"|19 || ||style="background:black; color:white"|20 || MCIP3 || || ||
| + | |
− | |-
| + | |
− | | || || || MICN2 || style="background:black; color:white"|21 || || style="background:black; color:white"|22 || MCIP2 || || ||
| + | |
− | |-
| + | |
− | | || || || MICN1 || style="background:black; color:white"|23 || || style="background:black; color:white"|24 || MCIP1 || || ||
| + | |
− | |-
| + | |
− | | || || || LINEOUT_R || style="background:black; color:white"|25 || || style="background:black; color:white"|26 || LINEOUT_L || || ||
| + | |
− | |}
| + | |
− | | + | |
− | </div>
| + | |
− | </div>
| + | |
− | </div>
| + | |
− | | + | |
− | <div class="clearfix"></div>
| + | |
− | | + | |
− | <div class="col-md-12 ">
| + | |
− | <div class="panel panel-midnight-white">
| + | |
− | <div class="panel-heading"><h3>Hardware V12</h3></div>
| + | |
− | <div class="panel-body">
| + | |
− | | + | |
− | ==== 26-pin Header 1 ====
| + | |
− | | + | |
− | {| class="mw-collapsible wikitable"
| + | |
− | ! GPIO number || Func4 || Func3 || Func2 || Func1 || Pin# || || Pin# || Func1 || Func2 || Func3 || Func4 || GPIO number
| + | |
− | |-
| + | |
− | | || || || || +3.3V || style="background:yellow"| 1 || ||style="background:red"| 2 || +5.0V || || ||| ||
| + | |
− | |-
| + | |
− | | 11 || || || I2C1_SDA || GPIO0_B3 || style="background:green; color:white"| 3 || || style="background:red"| 4 || +5.0V || || || ||
| + | |
− | |-
| + | |
− | | 12 || || || I2C1_SCL || GPIO0_B4 || style="background:green; color:white"| 5 || || style="background:black; color:white"| 6 || GND || || || ||
| + | |
− | |-
| + | |
− | | 68 || || PDM_CLK_M_M2 || I2S0_8CH_MCLK || GPIO2_A4 || style="background:green; color:white"| 7 || || style="background:green; color:white"| 8 || GPIO2_A1 || style="background:orange"|UART0_TX || SPI0_MOSI || || 65
| + | |
− | |-
| + | |
− | | || || || || GND || style="background:black; color:white"| 9 || || style="background:green; color:white"|10 || GPIO2_A0 || style="background:orange"|UART0_RX || SPI0_MISO || || 64
| + | |
− | |-
| + | |
− | | 15 || || I2C3_SDA_M0 || PWM2 || GPIO0_B7 || style="background:green; color:white"|11 || || style="background:green; color:white"|12 || GPIO2_A5 || I2S0_8CH_SCLK_TX || || || 69
| + | |
− | |-
| + | |
− | | 16 || || I2C3_SCL_M0 || PWM3 || GPIO0_C0 || style="background:green; color:white"|13 || || style="background:black; color:white"|14 || GND || || || ||
| + | |
− | |-
| + | |
− | | 17 || || || SPDIF_TX || GPIO0_C1 || style="background:green; color:white"|15 || || style="background:green; color:white"|16 || GPIO2_B2 || I2S0_8CH_SDO1 || || || 74
| + | |
− | |-
| + | |
− | | || || || || +3.3V || style="background:yellow"|17 || || style="background:green; color:white"|18 || GPIO2_B1 || I2S0_8CH_SDO0 || || || 73
| + | |
− | |-
| + | |
− | | 55 || SPI2_MOSI || UART2_TX_M0 || UART1_RTSN || GPIO1_C7 || style="background:green; color:white"|19 || ||style="background:black; color:white"|20 || GND || || || ||
| + | |
− | |-
| + | |
− | | 54 || SPI2_MISO || UART2_RX_M0 || UART1_CTSN || GPIO1_C6 || style="background:green; color:white"|21 || || style="background:green; color:white"|22 || GPIO2_A7 || I2S0_8CH_LRCK_TX || || || 71
| + | |
− | |-
| + | |
− | | 56 || SPI2_CLK || I2C0_SDA || UART1_RX || GPIO1_D0 || style="background:green; color:white"|23 || || style="background:green; color:white"|24 || GPIO1_D1 || UART1_TX || I2C0_SCL || SPI2_CSN0 || 57
| + | |
− | |-
| + | |
− | | || || || || GND || style="background:black; color:white"|25 || || style="background:green; color:white"|26 || ADC_IN0 || || || ||
| + | |
− | |}
| + | |
− | | + | |
− | ==== 26-pin Header 2 ====
| + | |
− | | + | |
− | {| class="mw-collapsible wikitable"
| + | |
− | ! GPIO number || Func3 || Func2 || Func1 || Pin# || || Pin# || Func1 || Func2 || Func3 || GPIO number
| + | |
− | |-
| + | |
− | | || || || GND || style="background:black; color:white"| 1 || ||style="background:black; color:white"|2 || GPIO2_B5 || I2S0_8CH_SDI0 || PDM_SDI0_M2 ||| 77
| + | |
− | |-
| + | |
− | | || || || ADC_KEY_IN1 || style="background:black; color:white"| 3 || || style="background:black; color:white"|4 || GPIO2_B6 || I2S0_8CH_SDI1 || PDM_SDI1_M2 || 78
| + | |
− | |-
| + | |
− | | || || || MICBIAS2 || style="background:black; color:white"| 5 || || style="background:black; color:white"|6 || GPIO2_B7 || I2S0_8CH_SDI2 || PDM_SDI2_M2 || 79
| + | |
− | |-
| + | |
− | | || || || MICBIAS1 || style="background:black; color:white"| 7 || || style="background:black; color:white"|8 || GPIO2_C0 || I2S0_8CH_SDI3 || PDM_SDI3_M2 || 80
| + | |
− | |-
| + | |
− | | || || || MICN8 || style="background:black; color:white"| 9 || || style="background:black; color:white"|10 || MCIP8 || || ||
| + | |
− | |-
| + | |
− | | || || || MICN7 || style="background:black; color:white"|11 || || style="background:black; color:white"|12 || MCIP7 || || ||
| + | |
− | |-
| + | |
− | | || || || MICN6 || style="background:black; color:white"|13 || || style="background:black; color:white"|14 || MCIP6 || || ||
| + | |
− | |-
| + | |
− | | || || || MICN5 || style="background:black; color:white"|15 || || style="background:black; color:white"|16 || MCIP5 || || ||
| + | |
− | |-
| + | |
− | | 76 || || I2S0_8CH_SDO3 || GPIO2_B4 || style="background:black; color:white"|17 || || style="background:black; color:white"|18 || GPIO2_B3 || I2S0_8CH_SDO2 || || 75
| + | |
− | |-
| + | |
− | | 72 || || I2S0_8CH_LRCK_RX || GPIO2_B0 || style="background:black; color:white"|19 || ||style="background:black; color:white"|20 || GPIO2_A6 || I2S0_8CH_SCLK_RX || PDM_CLK_S_M2 || 70
| + | |
− | |-
| + | |
− | | || || || MICN2 || style="background:black; color:white"|21 || || style="background:black; color:white"|22 || MCIP2 || || ||
| + | |
− | |-
| + | |
− | | || || || MICN1 || style="background:black; color:white"|23 || || style="background:black; color:white"|24 || MCIP1 || || ||
| + | |
− | |-
| + | |
− | | || || || LINEOUT_R || style="background:black; color:white"|25 || || style="background:black; color:white"|26 || LINEOUT_L || || ||
| + | |
− | |}
| + | |
− | | + | |
− | </div>
| + | |
− | </div>
| + | |
− | </div>
| + | |
− | | + | |
− | ==== More details about 40-pin Header ====
| + | |
− | * Pins marked with color orange are designed for debug console.
| + | |