lupyuen opened a new pull request, #7962: URL: https://github.com/apache/nuttx/pull/7962
## Summary This PR adds the driver for Reduced Serial Bus (RSB) on Allwinner A64 SoC. The RSB Driver will be called by the upcoming Power Mgmt IC Driver for PINE64 PinePhone, to power on the LCD Display. ### Modified Files `arch/arm64/src/a64/Kconfig`: Added the Kconfig option for "A64 Peripheral Selection > RSB" (`CONFIG_A64_RSB`), which enables the RSB Driver `arch/arm64/src/a64/hardware/a64_memorymap.h`: Added the Base Address for RSB `arch/arm64/src/a64/Make.defs`: Added the RSB Driver to the Makefile `arch/arm64/src/a64/a64_de.c`: Increase PLL Timeout for Allwinner A64 Display Engine `boards/arm64/a64/pinephone/configs/nsh/defconfig`: Set PinePhone Board Config `CONFIG_BOARD_LOOPSPERMSEC` to the value computed by `calib_udelay` ### New Files `arch/arm64/src/a64/a64_rsb.c`, `a64_rsb.h`: RSB Driver for Allwinner A64 ### Updated Documentation `platforms/arm/a64/boards/pinephone/index.rst`: Added RSB as supported peripheral for PinePhone ## Impact Our RSB Driver will be built only when we select the Kconfig option for "A64 Peripheral Selection > RSB" (`CONFIG_A64_RSB`). The RSB Driver will be called by the upcoming Power Mgmt IC Driver for PinePhone. Our RSB 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 RSB Driver with a Zig Test Program [as explained here](https://lupyuen.github.io/articles/de3#complete-display-driver). Our Zig Test Program renders the [Test Pattern](https://lupyuen.github.io/images/de3-title.jpg) successfully on PinePhone. Here's the Test Log, with Debug Logging Enabled... - [NuttX Kernel RSB Test Log](https://gist.github.com/lupyuen/bd943bea51c6f90debd05cd4f4a8585d) We also tested with Debug Logging Disabled, to preempt any timing issues... - [NuttX Kernel RSB Test Log (Debug Logging Disabled)](https://gist.github.com/lupyuen/df50aa74b33b39069e89eefda5957423) -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
