{"id":18409290,"url":"https://github.com/sdtelectronics/sun7i-std-dvr","last_synced_at":"2025-04-12T21:52:00.086Z","repository":{"id":105561347,"uuid":"308798726","full_name":"SdtElectronics/sun7i-std-dvr","owner":"SdtElectronics","description":"Information and mainline related sources of a CDR board based on AllWinner's A20(sun7i) SoC.","archived":false,"fork":false,"pushed_at":"2021-05-05T12:51:55.000Z","size":66301,"stargazers_count":11,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-12T21:51:46.462Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SdtElectronics.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-10-31T03:52:10.000Z","updated_at":"2024-10-23T23:05:53.000Z","dependencies_parsed_at":"2024-03-25T07:32:11.753Z","dependency_job_id":null,"html_url":"https://github.com/SdtElectronics/sun7i-std-dvr","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SdtElectronics%2Fsun7i-std-dvr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SdtElectronics%2Fsun7i-std-dvr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SdtElectronics%2Fsun7i-std-dvr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SdtElectronics%2Fsun7i-std-dvr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SdtElectronics","download_url":"https://codeload.github.com/SdtElectronics/sun7i-std-dvr/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248637833,"owners_count":21137538,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T03:24:29.467Z","updated_at":"2025-04-12T21:52:00.065Z","avatar_url":"https://github.com/SdtElectronics.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# sun7i-std-dvr\r\n\r\nThis repository contains information and mainline related sources of a CDR board based on AllWinner's A20(sun7i) SoC.\r\n\r\n![front](img/dual.png)\r\n\r\n## Repository Layout\r\n* [doc/](https://github.com/SdtElectronics/sun7i-std-dvr/tree/master/doc)  Documentation and datasheet\r\n* [img/](https://github.com/SdtElectronics/sun7i-std-dvr/tree/master/img)  Images\r\n* [src/](https://github.com/SdtElectronics/sun7i-std-dvr/tree/master/src)  Source codes\r\n\r\n## Board Information\r\n### Hardware Configuration\r\n* SoC: AllWinner A20(sun7i) Dual-core Arm Cortex-A7\r\n* RAM: 128MB 16bit@480MHz [H5TQ1G63DFR-11C](https://html.alldatasheet.com/html-pdf/534215/HYNIX/H5TQ1G63DFR-11C/650/4/H5TQ1G63DFR-11C.html)\r\n* ROM: 8M SPI flash w25q64\r\n* PMU: AXP209\r\n* Accelerometer: [lis3dh](https://www.st.com/en/mems-and-sensors/lis3dh.html?icmp=pf250725_pron_pr_feb2014\u0026sc=lis3dh-pr)\r\n\r\n### Pinout\r\n(WIP)\r\n![front](img/pinout.png)\r\nCurrently explored available peripherals:\r\n* 1xlcd/lvds port (lcd0)\r\n* 1xcsi port, with 1xi2c embedded (csi0, i2c1)\r\n* 1xusb otg (usb0)\r\n* 1xi2c (i2c2)\r\n* 1xnand (nand0)\r\n* 4xUART (uart0, uart1, uart3, uart7)\r\n\r\n### Schematic\r\nThere 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.\r\n\r\n## Mainline Build Instructions\r\n(WIP)\r\n\r\n## Peripherals Instructions\r\n### LCD\r\nThere 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).\r\n\r\n### HDMI\r\nThere 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. \r\n\r\n### USB Gadget (Peripheral Mode)\r\nUSB0 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.\r\n\r\nWith 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:\r\n\r\n* #### [Ethernet Gadget (RNDIS Net Adapter)](doc/RNDIS.md)\r\n    Board can be recognized as a net adapter and share network with PC\r\n* #### Serial Gadget\r\n    (WIP)\r\n* #### Mass Storage\r\n    (WIP)\r\n\r\nFor more about configfs USB gadget, please refer to [kernel documentation](https://www.kernel.org/doc/Documentation/usb/gadget_configfs.txt).\r\n\r\n### Accelerometer\r\nThere is a [lis3dh](https://www.st.com/en/mems-and-sensors/lis3dh.html?icmp=pf250725_pron_pr_feb2014\u0026sc=lis3dh-pr) accelerometer from STMicroelectronics on board, connected to i2c1 bus at address 0x19. For detailed instructions, please refer to [Accelerometer](doc/Accelerometer.md).\r\n\r\n## DVP Camera\r\nCompared 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. ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsdtelectronics%2Fsun7i-std-dvr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsdtelectronics%2Fsun7i-std-dvr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsdtelectronics%2Fsun7i-std-dvr/lists"}