Please enable javascript, or click here to visit my ecommerce web site powered by Shopify.
Jump to: navigation, search

Difference between revisions of "Rockpi4/hardware"

(Peripherals)
(42 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 +
{{rockpi4_header}}
 +
{{Languages|rockpi4/hardware}}
  
 
__NOTOC__
 
__NOTOC__
  
{{rockpi4_header}}
+
    [[rockpi4 | ROCK Pi 4]] > [[rockpi4/hardware | Hardware]]
 
+
The ROCK Pi 4 is the lasted SBC released by radxa.
+
 
+
== Processor ==
+
The Rockchip RK3399 Soc used in ROCK Pi 4 includes 64bits hexa core processor with dual 1.8GHz Cortex-72 and qual 1.4GHz Cortex-A53, Mali T860MP4 graphics processing unit (GPU) and Internal SRAM. It has a level 1 (L1) cache and a level 2 (L2). For level 1 cache, 48KB Icache and 32KB Dcache is for each A72. 32KB Icache and 32KB Dcache is for each A53. For level 2 cache, 1024KB cache is for big cluster and 512KB cache is for little cluster.
+
 
+
== Networking ==
+
On the ROCK Pi 4 Model A, B board, the Giga Bit Ethernet port is provided. From the test result, we know that the bandwidth is at least 939Mbits/sec. If you are interested in POE (Power Over Ethernet), you should try it on the Pi 4 board.
+
<br />The ROCK Pi 4 Model B is equipped with 2.4GHz 802.11 b/g/n and 5G ac/a WIFI. The Pi 4B also features Bluetooth 5.0.
+
 
+
== Peripherals ==
+
The ROCK Pi 4 Model A and B have four USB-A connectors. One is for USB 3.0 OTG. One  is for 3.0 HOST. And the others are for USB 2.0 HOST. The hardware switch for host/device switch may be useful when you use the USB 3.0 OTG connector. The ROCK Pi 4 may be operated with any generic USB computer keyboard and mouse. It may also be used with USB storage, USB to MIDI converters, and virtually any other device/component with USB capabilities.
+
<br />(need USB hub picture)
+
<br /><br />
+
The ROCK Pi 4 Model A and B are equipped with a standard 3.5mm jack. An audio lead is necessary to produce sound when there is not an HDMI cable. Audio can be played through speakers or headphones using jack. This requires you to use the Desktop volume control for configuration.
+
 
+
==== MIPI Camera Interface ====
+
 
+
There is a wide range of camera applications in our lives. MIPI CSI 2 lane on board support 800 MP camera via FPC connector.
+
 
+
The MIPI CSI interface pin specification shows below.
+
+
{| class="wikitable"
+
|-
+
! Pin# || Name     
+
|-
+
| 1 || VCC_CAM
+
|-
+
| 2 || I2C4_SDA
+
|-
+
| 3 || I2C4_SCL
+
|-
+
| 4 || CAM_MCLK
+
|-
+
| 5 || CAM_GPIO1
+
|-
+
| 6 || GND
+
|-
+
| 7 || MIPI_RX0_CLKP
+
|-
+
| 8 || MIPI_RX0_CLKN
+
|-
+
| 9 || GND
+
|-
+
| 10 || MIPI_RX0_D1P
+
|-
+
| 11 || MIPI_RX0_D1N
+
|-
+
| 12 || GND
+
|-
+
| 13 || MIPI_RX0_D0P
+
|-
+
| 14 || MIPI_RX0_D0P 
+
|}
+
 
+
==== MIPI Display Interface ====
+
 
+
The ROCK Pi 4 Model A and B are equipped with one HDMI connector and one MIPI DSI. As for HDMI, the maximum resolution is 4k@60Hz. Any HDMI monitor should work as a display for the Pi 4. As for MIPI DSI, it is designed for raw LCD pannel. HDMI and MIPI DSI can work at the same time.
+
 
+
The MIPI DSI interface pin specification shows below.
+
{| class="wikitable"
+
|-
+
! Pin# || Name     
+
|-
+
| 1 || VCC_MIPI
+
|-
+
| 2 || VCC_MIPI
+
|-
+
| 3 || GND
+
|-
+
| 4 || I2C_SDA_AUDIO
+
|-
+
| 5 || I2C_SCL_AUDIO
+
|-
+
| 6 || GND
+
|-
+
| 7 || MIPI_TX/RX_D0P
+
|-
+
| 8 || MIPI_TX_RX_D0N
+
|-
+
| 9 || GND
+
|-
+
| 10 || MIPI_TX/RX_CLKP
+
|-
+
| 11 || MIPI_TX_RX_CLKN
+
|-
+
| 12 || GND
+
|-
+
| 13 || MIPI_TX/RX_D1P
+
|-
+
| 14 || MIPI_TX/RX_D1N
+
|-
+
| 15 || GND
+
|}
+
 
+
==== TF Card Interface ====
+
 
+
The TF card can be used as a system storage or an external storage. When it's used as a system storage, you had better choose the ones with storage space larger than 8GB. When it's used as an external storage, you can choose the ones  with storage space up to 128GB.
+
 
+
The TF card interface pin specification shows below.
+
 
+
{| class="wikitable"
+
|-
+
! Pin# || Name     
+
|-
+
| 1 || SDMMC0_D2
+
|-
+
| 2 || SDMMC0_D3
+
|-
+
| 3 || SDMMC0_CMD
+
|-
+
| 4 || VCC3V3_SYS
+
|-
+
| 5 || SDMMC0_CLK
+
|-
+
| 6 || GND
+
|-
+
| 7 || SDMMC0_D0
+
|-
+
| 8 || SDMMC0_D1
+
|-
+
| 9 || SDMMC0_DET_L
+
|-
+
| 10 || GND
+
|-
+
| 11 || GND
+
|-
+
| 12 || GND
+
|-
+
| 13 || GND
+
|}
+
 
+
==== eMMC Socket on Board Interface Feature ====
+
 
+
The high performance eMMC module is the best choice as the system storage for ROCK Pi 4. The eMMC module with 8GB/16GB/32GB/64GB/128GB is available.
+
 
+
The eMMC Socket pin specification shows below.
+
 
+
{| class="wikitable"
+
|-
+
! Name || Pin# || || Pin# || Name     
+
|-
+
| GND || 1 || || 34 || GND
+
|-
+
| EMMC_D5 || 2 || || 33 || EMMC_D6
+
|-
+
| GND || 3 || || 32 || GND
+
|-
+
| EMMC_D4 || 4 || || 31 || EMMC_D7
+
|-
+
| GND || 5 || || 30 || GND
+
|-
+
| EMMC_D0 || 6 || || 29 || EMMC_D1
+
|-
+
| GND || 7 || || 28 || GND
+
|-
+
| EMMC_CLK || 8 || || 27 || EMMC_D2
+
|-
+
| GND || 9 || || 26 || GND
+
|-
+
| EMMC_D3 || 10 || || 25 || EMMC_CMD
+
|-
+
| GND || 11 || || 24 || GND
+
|-
+
| EMMC_RSTN || 12 || || 23 || VCC3V3_SYS
+
|-
+
| GND || 13 || || 22 || VCC3V3_SYS
+
|-
+
| GND || 14 || || 21 || VCC_1V8
+
|-
+
| EMMC_RCLK || 15 || || 20 ||  VCC_1V8
+
|-
+
| GND || 16 || || 19 || GND
+
|-
+
| GND || 17 || || 18 || GND
+
|}
+
 
+
==== PCIE M.2 MGFF M-KEY SOCKET Interface ====
+
  
On ROCK Pi 4 Model A and B board, M.2 connector supports up to 2T M2 NVME SSD.
+
Here are the technical information about the ROCK Pi 4 hardware, including add-ons.
 +
* [[Rockpi4/hardware/rockpi4 | ROCK Pi 4]] - Introduction of the ROCK Pi 4 hardware
 +
** [https://dl.radxa.com/rockpi4/docs/hw/rockpi4/rockpi4_v13_sch_20181112.pdf v1.3 schematic pdf] - Download Schematic of ROCK Pi 4
 +
** [https://dl.radxa.com/rockpi4/docs/hw/rockpi4/ROCK-Pi-4B-3D.stp.gz 3D drawing STP] - Download 3D model of ROCK Pi 4
 +
** [https://dl.radxa.com/rockpi4/docs/hw/rockpi4/rockpi4_v14_2d_201811122_bottom.dxf 2D Bottom dxf], [https://dl.radxa.com/rockpi4/docs/hw/rockpi4/rockpi4_v14_2d_201811122_top.dxf 2D Top dxf] - Download 2D CAD of ROCK Pi 4
 +
** [https://dl.radxa.com/rockpi4/docs/hw/rockpi4/rockpi4_v14_components_reference_201811122.pdf v1.4 CAM pdf] - Download components Position Reference of ROCK Pi 4
 +
** [[Rockpi4/hardware/revision | Hardware Revision]] - Difference between each hardware revisions.
  
The PCIE M.2 interface pin specification shows below.
 
  
{| class="wikitable"
+
* Datasheet
|-
+
** [http://rockchip.fr/RK3399%20datasheet%20V1.8.pdf RK3399 datasheet] - The SoC of ROCK Pi 4
! Name || Pin# || || Pin# || Name     
+
** RK3399 TRM(Technical Reference Manual) [http://rockchip.fr/Rockchip%20RK3399%20TRM%20V1.3%20Part1.pdf Part] [http://rockchip.fr/Rockchip%20RK3399%20TRM%20V1.3%20Part2.pdf Part2] - The detail about RK3399
|-
+
** [http://rockchip.fr/RK808%20datasheet%20V1.4.pdf RK808] - The PMIC
| GND || 1 || || 2 || +3.3V
+
** [https://dl.radxa.com/rockpi4/docs/hw/datasheets/AP6256%20datasheet_V1.3_12202017.pdf AP6256] - The wifi/bt combo
|-
+
** [https://dl.radxa.com/rockpi4/docs/hw/datasheets/LDR6015T%20Spec%20EN%20V1.0.pdf LDR6015] - The USB PD protocol IC
| GND || 3 || || 4 || +3.3V
+
** [https://dl.radxa.com/rockpi4/docs/hw/datasheets/ES8316%20PB.pdf ES8316] - The audio codec
|-
+
** [https://dl.radxa.com/rockpi4/docs/hw/datasheets/FORESEE_LPDDR4_200ball_NCLD4CXMAXXXM32_10x14.5_VFBGA_Spec_B1_20170802.pdf Foresee LPDDR4] - The DRAM chip
| PERn3 || 5 || || 6 || NC
+
** [https://dl.radxa.com/rockpi4/docs/hw/datasheets/RTL8211E(G)-VB(VL)-CG-DataSheet-1.7.pdf RTL8211E] - The ethernet phy
|-
+
| PERp3 || 7 || || 8 || NC
+
|-
+
| GND || 9 || || 10 || DAS/DSS#
+
|-
+
| PETn3 || 11 || || 12 || +3.3V
+
|-
+
| PETp3 || 13 || || 14 || +3.3V
+
|-
+
| GND || 15 || || 16 || +3.3V
+
|-
+
| PERn2 || 17 || || 18 || +3.3V
+
|-
+
| PERp2 || 19 || || 20 || EMMC_CMD
+
|-
+
| GND || 21 || || 22 || NC
+
|-
+
| PETn2 || 23 || || 24 || NC
+
|-
+
| PETp2 || 25 || || 26 || NC
+
|-
+
| GND || 27 || || 28 || NC
+
|-
+
| PERn1 || 29 || || 30 ||  NC
+
|-
+
| PERp1 || 31 || || 32 || NC
+
|-
+
| GND || 33 || || 34 || NC
+
|-
+
| PETn1 || 35 || || 36 || NC
+
|-
+
| PETp1  || 37 || || 38 || DEVSLP
+
|-
+
| GND || 39 || || 40 ||  NC
+
|-
+
| PERn0/SATA-B- || 41 || || 42 || NC
+
|-
+
| PERp0/SATA-B+ || 43 || || 44 || NC
+
|-
+
| GND || 45 || || 46 || NC
+
|-
+
| PETn0/SATA-A- || 47 || || 48 || NC
+
|-
+
| PETp0/SATA-A+ || 49 || || 50 ||  PERST#
+
|-
+
| GND || 51 || || 52 || CLKREQ#
+
|-
+
| REFCLKN || 53 || || 54 || PEWake#
+
|-
+
| REFCLKP || 55 || || 56 || NC
+
|-
+
| GND || 57 || || 58 || NC
+
|-
+
|  ||  ||  ||  ||
+
|-
+
| NC || 67 || || 68 ||  SUSCLK
+
|-
+
| PEDET || 69 || || 70 || +3.3V
+
|-
+
| GND || 71 || || 72 || +3.3V
+
|-
+
| GND || 73 || || 74  || +3.3V
+
|-
+
| GND || 75 || ||  ||
+
|}
+
  
==== HDMI Interface ====
+
-------
  
The ROCK Pi 4 Model A and B are equipped with one HDMI connector and one MIPI DSI. As for HDMI, the maximum resolution is 4k@60Hz. Any HDMI monitor should work as a display for the Pi 4. As for MIPI DSI, it is designed for raw LCD pannel. HDMI and MIPI DSI can work at the same time.
+
* [[rockpi4/hardware/gpio | GPIO]]
 +
* [[rockpi4/hardware/emmc | eMMC module]]
 +
*[[Rockpi4/hardware/usb3_eMMC_reader | USB3 eMMC Reader]]
 +
* [[rockpi4/hardware/rtc | RTC battery]]
  
The HDMI interface pin specification shows below.
+
* Official heatsink
 +
** [https://dl.radxa.com/rockpi4/docs/hw/heatsink-1225-al-1.stp 3D drawing] - 3D model of official heatsink
 +
* [[Rockpi4/hardware/display | Display]]
 +
* [[Rockpi4/hardware/camera/ | Camera module]]
 +
* [[Rockpi4/hardware/PoE | PoE module]]
 +
* [[Rockpi4/hardware/HATs | HATs]]
 +
* [[Rockpi4/hardware/M2_extend | M.2 extend board]]
 +
** 2D file for M.2 extend board - [https://dl.radxa.com/rockpi4/docs/hw/m2_extend/PCIE_to_FPC_V1.4.dxf Connector to FPC board], [https://dl.radxa.com/rockpi4/docs/hw/m2_extend/FPC_to_M2_V1.4.dxf SSD mount board]
 +
** Schematic of M.2 extend board - [https://dl.radxa.com/rockpi4/docs/hw/m2_extend/rockpi4-m2-extend-sch_pcie_to_fpc_V1.4.pdf Connector to FPC board], [https://dl.radxa.com/rockpi4/docs/hw/m2_extend/rockpi4-m2-extend-sch_fpc_to_m2_V1.4.pdf SSD mount board]
 +
* [[Rockpi4/hardware/spi_flash |  SPI Flash]]
  
{| class="wikitable"
 
|-
 
! Pin# || Name     
 
|-
 
| 1 || HDMI_TX2P
 
|-
 
| 2 || GND
 
|-
 
| 3 || HDMI_TX2N
 
|-
 
| 4 || HDMI_TX1P
 
|-
 
| 5 || GND
 
|-
 
| 6 || HDMI_TX1N
 
|-
 
| 7 || HDMI_TX0P
 
|-
 
| 8 || GND
 
|-
 
| 9 || HDMI_TX0N
 
|-
 
| 10 || HDMI_TXCP
 
|-
 
| 11 || GND
 
|-
 
| 12 || HDMI_TXCN
 
|-
 
| 13 || PORT_CEC
 
|-
 
| 14 || NC
 
|-
 
| 15 || DDC_SCL
 
|-
 
| 16 || DDC_SDA
 
|-
 
| 17 || GND
 
|-
 
| 18 || VCC5V0_HDMI
 
|-
 
| 19 || HDMI_HPD
 
|}
 
  
== General purpose input-output (GPIO) connector ==
 
  
ROCK Pi 4 has a 40-pin expansion header. Each pin is distinguished by color.
+
* [[Rockpi4/hardware/devtree_overlays |  Device Tree Overlays]]
  
{| class="wikitable"
 
! Function3 || Function2 || Function1 ||  GPIO ||  Pin# || || Pin# || GPIO || Function1 || Function2 || Function3
 
|-
 
| || || +3.3V ||  || style="background:yellow"| 1 ||  ||style="background:red"| 2 ||  || +5.0V ||  ||
 
|-
 
| CIF_D7 || VOP_D7 || style="background:orange"| I2C7_SDA || GPIO2_A7 || style="background:green; color:white"| 3 || ||  style="background:red"| 4 || || +5.0V ||  ||
 
|-
 
| CIF_VSYNC || VOP_CLK || style="background:orange"| I2C7_SCL || GPIO2_B0 || style="background:green; color:white"| 5 || || style="background:black; color:white"| 6 ||  || GND ||  ||
 
|-
 
| CIF_CLKOUT || VPO_DEN || SPI2_CLK || GPIO2_B3 || style="background:green; color:white"| 7 || || style="background:green; color:white"| 8 || GPIO4_C4 || style="background:orange"|DEBUG_TXD ||  ||
 
|-
 
| || ||  GND ||  || style="background:black; color:white"| 9 || || style="background:green; color:white"|10 || GPIO4_C3 || style="background:orange"|DEBUG_RXD ||  ||
 
|-
 
|VOP1_PWM  || VPO0_PWM ||  PWM0 || GPIO4_C2 || style="background:green; color:white"|11 || || style="background:green; color:white"|12 || GPIO4_A3 || I2S1_SCLK ||  ||
 
|-
 
| || || PWM1 || GPIO4_C6 || style="background:green; color:white"|13 ||  || style="background:black; color:white"|14 || || GND ||  ||
 
|-
 
| || || SPDIF_TX ||  GPIO4_C5 || style="background:green; color:white"|15 || || style="background:green; color:white"|16 || GPIO4_D2 || ||  ||
 
|-
 
| || ||  +3.3V || || style="background:yellow"|17 || || style="background:green; color:white"|18 || GPIO4_D4 || ||  ||
 
|-
 
| || UART4_RX ||  SPI1_TXD || GPIO1_B0 || style="background:green; color:white"|19 ||  ||style="background:black; color:white"|20 || || GND ||  ||
 
|-
 
| || UART4_TX || SPI1_RXD || GPIO1_A7  || style="background:green; color:white"|21  ||  || style="background:green; color:white"|22  || GPIO4_D5  ||  ||
 
|-
 
| || PMCU_JTAG_TCK ||  SPI1_CLK || GPIO1_B1 || style="background:green; color:white"|23 ||  || style="background:green; color:white"|24 || GPIO1_B2  || SPI1_CSn  || PMCU_JTAG_TMS  ||
 
|-
 
| || ||  GND  ||  || style="background:black; color:white"|25  ||  || style="background:green; color:white"|26 ||  || ADC_IN0 ||  ||
 
|-
 
| CIF_D0 || VOP_D0 ||  I2C2_SDA  || GPIO2_A0 || style="background:blue; color:white"|27  ||  || style="background:blue; color:white"|28 || GPIO2_A1 || I2C2_CLK ||  VOP_D1 || CIF_D1
 
|-
 
| CIF_CLKIN || I2C6_SCL ||  SPI2_TXD  || GPIO2_B2 || style="background:green; color:white"|29  ||  || style="background:black; color:white"|30 ||  || GND ||  ||
 
|-
 
| CIF_HREF || I2C6_SDA ||  SPI2_RXD  || GPIO2_B1 || style="background:green; color:white"|31  ||  || style="background:green; color:white"|32 || GPIO3_C0 || SPDIF_TX || MAC_COL || UART3_CTSn
 
|-
 
| || ||  SPI2_CSn || GPIO2_B4 || style="background:green; color:white"|33  ||  || style="background:black; color:white"|34 ||  || GND ||  ||
 
|-
 
| || ||  I2S1_LRCK_TX || GPIO4_A5 || style="background:green; color:white"|35  ||  || style="background:green; color:white"|36 || GPIO4_A4 || I2S1_LRCK_RX ||  ||
 
|-
 
|  || ||  || GPIO4_D6 || style="background:green; color:white"|37  ||  || style="background:green; color:white"|38 || GPIO4_A6 || I2S1_SDI ||  ||
 
|-
 
| || ||  GND ||  || style="background:black; color:white"|39  ||  ||style="background:green; color:white"|40  || GPIO4_A7 || I2S1_SDO ||  ||
 
|}
 
  
==== Sweet tips about ROCK Pi 4 Board ====
+
* Compliance
* Function marked with color orange is the default function of this pin.
+
** [https://dl.radxa.com/rockpi4/docs/hw/compliance/BCTC-FY190200673C_ROCK_PI_4_RED_certification.pdf CE RED] - EU
* Except Pins for power supply, all pins are laid out directly to Soc RK3399.
+
* For pin 3, 5, 27, 28, 29 and 31, each pin is connected to the 3.3V supply through a 4.7K pull-up resistor.
+
* Pin 19, 21, 23, 24 are laid out directly to the pins of SPI device on board.
+
* Pin 7 is laid out directly to the pin of MIPI CSI on board.
+

Revision as of 02:42, 19 August 2019


    ROCK Pi 4 >  Hardware

Here are the technical information about the ROCK Pi 4 hardware, including add-ons.