Experimenting with #PinePhone LEDs on Apache #NuttX RTOS ... All shall be explained in this article
#PinePhone's LEDs are connected on GPIOs PD18, 19 and 20 ... Let's flip them on with #NuttX RTOS
https://lupyuen.github.io/articles/pio?2#pinephone-schematic
#PinePhone supports 103 GPIOs! This is how we control them with the Allwinner A64 SoC
https://lupyuen.github.io/articles/pio?3#allwinner-a64-port-controller
Controlling #PinePhone's GPIOs ... With the Allwinner A64 Port Controller
https://lupyuen.github.io/articles/pio?4#port-controller-registers
Configuring #PinePhone's LEDs for GPIO Output ... By writing to the Allwinner A64 Port Controller
How we light up #PinePhone's LEDs ... By flipping the GPIOs in the Allwinner A64 Port Controller
Lighting up the #PinePhone LEDs ... With Apache #NuttX RTOS
https://lupyuen.github.io/articles/pio?7#boot-nuttx-on-pinephone
#NuttX RTOS can also control #PinePhone's Backlight
https://lupyuen.github.io/articles/pio?8#pinephone-backlight
"poke"-ing around #PinePhone's LEDs ... Thanks to BASIC on Apache #NuttX RTOS
https://lupyuen.github.io/articles/pio?9#control-leds-with-basic
"peek" and "poke" the #PinePhone LEDs ... Like in the 1980's! 🥲
https://lupyuen.github.io/articles/pio?9#control-leds-with-basic
Here's how we enabled "peek" and "poke" for BASIC on Apache #NuttX RTOS
https://lupyuen.github.io/articles/pio?18#appendix-enable-peek-and-poke-in-basic
Dumping #PinePhone's Linux Device Tree ... And snooping for goodies
https://lupyuen.github.io/articles/pio?12#appendix-pinephone-device-tree
#PinePhone's LCD Display is driven by Allwinner A64's Timing Controller (TCON0) ... Which works like a pixel pump
https://lupyuen.github.io/articles/pio?15#lcd-controller-tcon0
Linux Driver for #PinePhone's Display Controller (TCON0)
https://lupyuen.github.io/articles/pio?15#lcd-controller-tcon0
#PinePhone's LCD Display is controlled via the MIPI Display Serial Interface
https://lupyuen.github.io/articles/pio?16#mipi-dsi-interface
#PinePhone's LCD Panel is Xingbangda XBD599 ... Which has a Sitronix ST7703 LCD Controller inside!
https://lupyuen.github.io/articles/pio?16#mipi-dsi-interface
MIPI D-PHY is the Physical Layer for the MIPI Digital Serial Interface used by #PinePhone's LCD Display
#PinePhone's Registers for MIPI Display (Digital Serial Interface) ... Are in the Allwinner A31 Docs, not A64! So odd 🤔
https://lupyuen.github.io/articles/pio?88#mipi-dsi-interface
#PinePhone has a Goodix GT917S Touch Panel that talks on I2C ... Here's the Linux Driver
Programming the GPIO Hardware on #PinePhone @PINE64 looks complicated ... But it's not that different from microcontrollers! Let's boot Apache #NuttX RTOS and experiment with PinePhone's GPIO Hardware
#PinePhone's Linux Device Tree describes everything about PinePhone Hardware ... Plenty of goodies for building #NuttX Drivers!
https://lupyuen.github.io/articles/pio?11#linux-device-tree