lupyuen opened a new pull request, #7919:
URL: https://github.com/apache/nuttx/pull/7919

   ## Summary
   
   This PR adds the driver for TCON0 (Timing Controller) on Allwinner A64 SoC. 
The TCON0 Driver will be used by the upcoming Display Driver for PINE64 
PinePhone.
   
   ### Modified Files
   
   `arch/arm64/src/a64/Kconfig`: Added the Kconfig option for "A64 Peripheral 
Selection > TCON0" (`CONFIG_A64_TCON0`), which enables the TCON0 Driver
   
   `arch/arm64/src/a64/hardware/a64_memorymap.h`: Added the Base Address for 
TCON0
   
   `arch/arm64/src/a64/Make.defs`: Added the TCON0 Driver to the Makefile
   
   ### New Files
   
   `arch/arm64/src/a64/a64_tcon0.c`, `a64_tcon0.h`: TCON0 Driver for Allwinner 
A64
   
   ### Updated Documentation
   
   `platforms/arm/a64/boards/pinephone/index.rst`: Added TCON0 as supported 
peripheral for PinePhone
   
   ## Impact
   
   Our TCON0 Driver will be built only when we select the Kconfig option for 
"A64 Peripheral Selection > TCON0" (`CONFIG_A64_TCON0`).
   
   The TCON0 Driver will be called by the upcoming driver for A64 Display 
Engine.
   
   Our TCON0 Driver has no impact on existing code because it's not called yet 
by the existing code.
   
   The Driver Code is derived from my Reverse-Engineering of the PinePhone 
Display Driver, based on the logs captured from the PinePhone p-boot Bootloader:
   
   -   ["Rendering PinePhone's Display (DE and 
TCON0)"](https://lupyuen.github.io/articles/de)
   
   -   ["NuttX RTOS for PinePhone: Render Graphics in 
Zig"](https://lupyuen.github.io/articles/de2)
   
   ## Testing
   
   We tested the TCON0 Driver with a Zig Test Program [as explained 
here](https://github.com/lupyuen/pinephone-nuttx#test-timing-controller-tcon0-driver-for-nuttx-kernel).
   
   Our Zig Test Program renders the [Test 
Pattern](https://lupyuen.github.io/images/dsi3-title.jpg) successfully on 
PinePhone.
   
   Here's the Test Log, with Graphics Logging Enabled...
   
   -   [NuttX Kernel TCON0 Test 
Log](https://gist.github.com/lupyuen/33d7cc006e841a9e5fdff264b4c759c4)
   
   We also tested with Graphics Logging Disabled, to preempt any timing 
issues...
   
   -   [NuttX Kernel TCON0 Test Log (Graphics Logging 
Disabled)](https://gist.github.com/lupyuen/61a1374c9ea6a1b7826488da688e8c6c)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to