https://github.com/sdtelectronics/sun7i-std-dvr
Information and mainline related sources of a CDR board based on AllWinner's A20(sun7i) SoC.
https://github.com/sdtelectronics/sun7i-std-dvr
Last synced: over 1 year ago
JSON representation
Information and mainline related sources of a CDR board based on AllWinner's A20(sun7i) SoC.
- Host: GitHub
- URL: https://github.com/sdtelectronics/sun7i-std-dvr
- Owner: SdtElectronics
- Created: 2020-10-31T03:52:10.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-05-05T12:51:55.000Z (about 5 years ago)
- Last Synced: 2025-04-12T21:51:46.462Z (over 1 year ago)
- Size: 63.2 MB
- Stars: 11
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# sun7i-std-dvr
This repository contains information and mainline related sources of a CDR board based on AllWinner's A20(sun7i) SoC.

## Repository Layout
* [doc/](https://github.com/SdtElectronics/sun7i-std-dvr/tree/master/doc) Documentation and datasheet
* [img/](https://github.com/SdtElectronics/sun7i-std-dvr/tree/master/img) Images
* [src/](https://github.com/SdtElectronics/sun7i-std-dvr/tree/master/src) Source codes
## Board Information
### Hardware Configuration
* SoC: AllWinner A20(sun7i) Dual-core Arm Cortex-A7
* RAM: 128MB 16bit@480MHz [H5TQ1G63DFR-11C](https://html.alldatasheet.com/html-pdf/534215/HYNIX/H5TQ1G63DFR-11C/650/4/H5TQ1G63DFR-11C.html)
* ROM: 8M SPI flash w25q64
* PMU: AXP209
* Accelerometer: [lis3dh](https://www.st.com/en/mems-and-sensors/lis3dh.html?icmp=pf250725_pron_pr_feb2014&sc=lis3dh-pr)
### Pinout
(WIP)

Currently explored available peripherals:
* 1xlcd/lvds port (lcd0)
* 1xcsi port, with 1xi2c embedded (csi0, i2c1)
* 1xusb otg (usb0)
* 1xi2c (i2c2)
* 1xnand (nand0)
* 4xUART (uart0, uart1, uart3, uart7)
### Schematic
There is no actual schematic for this board found yet. However, there is a schematic for another CDR solution designed by AllWinner available at [doc/A20-CDR-V0-2-20150312.pdf](doc/A20-CDR-V0-2-20150312.pdf). Nevertheless that board shares many similarities with this one, some significant differences are already observed. Take that as a reference at your own risk.
## Mainline Build Instructions
(WIP)
## Peripherals Instructions
### LCD
There is a standard 40pin parallel RGB lcd port on board, connected to panel controller lcd0 on chip. For instructions about driving lcds, please refer to [LCD](doc/lcd.md).
### HDMI
There is a mini-HDMI port on board. HDMI support is enabled in both u-boot and kernel by default with configurations provided by this repository.
### USB Gadget (Peripheral Mode)
USB0 in A20 SoC features a dual-role controller thus can be operated in both host and peripheral mode. However, the mini-USB port on board attached to USB0 did not wire cd pin to the chip, so the otg functionality is not supported. You have to specify the role of USB0 manually in the device-tree file or switch it in procfs. All of the device-tree files in this repository set USB0 to peripheral mode by default.
With the USB gadget support in kernel, this board can be emulated as a variety of devices, which enables fast and convenient communication between this board and a PC. Guides on emulating this board as some devices via configfs are listed below:
* #### [Ethernet Gadget (RNDIS Net Adapter)](doc/RNDIS.md)
Board can be recognized as a net adapter and share network with PC
* #### Serial Gadget
(WIP)
* #### Mass Storage
(WIP)
For more about configfs USB gadget, please refer to [kernel documentation](https://www.kernel.org/doc/Documentation/usb/gadget_configfs.txt).
### Accelerometer
There is a [lis3dh](https://www.st.com/en/mems-and-sensors/lis3dh.html?icmp=pf250725_pron_pr_feb2014&sc=lis3dh-pr) accelerometer from STMicroelectronics on board, connected to i2c1 bus at address 0x19. For detailed instructions, please refer to [Accelerometer](doc/Accelerometer.md).
## DVP Camera
Compared with cheap USB cameras, DVP cameras are kinda obsolete these days thus they may never be tested on this board. This is just a reminder for someone who attempts to adapt a DVP camera for this board that, the IOs and AVDD for the camera are powered by `LDO3` and `LDO4` of `axp209`, the PMU on this board. The default output voltage of `LDO3` and `LDO4` is set to 3.3V to use `PE` port as general purpose IOs, but you have to set it to the proper level for your sensor in the device tree source.