Re: Add support for Lichee Pi Zero

Rui-Xiang Guo <[email protected]>
Newsgroups gmane.os.netbsd.ports.arm
Message-ID <ZueuRDz_eRrIshUn@picohive>
On Sun, Sep 15, 2024 at 08:57:46AM +0100, Nick Hudson wrote:
> On 02/09/2024 13:32, Rui-Xiang Guo wrote:
> > Hi,
> > I am testing the RGB panel with it, DE2 and PWM supports are added:
> > https://github.com/picohive/netbsd-licheepi-zero/blob/main/boot.log
> > 
> > The patches for 10.0 and -current:
> > https://github.com/picohive/netbsd-licheepi-zero/
> 
> The changes to sunxi_{drm,mixer}.c can't be committed as they need to be
> run time and not compile time. Can you fix this please?

Do you mean the patch for GENERIC?
===================================================================
RCS file: /cvsroot/src/sys/arch/evbarm/conf/GENERIC,v
retrieving revision 1.115.2.1
diff -u -p -r1.115.2.1 GENERIC
--- sys/arch/evbarm/conf/GENERIC        28 May 2023 10:14:36 -0000      1.115.2.1
+++ sys/arch/evbarm/conf/GENERIC        16 Sep 2024 03:43:08 -0000
@@ -151,6 +151,7 @@ sun8ih3ccu*         at fdt? pass 2          # Allwinner
 sun8ih3rccu*   at fdt? pass 2          # Allwinner H3 CCU (PRCM)
 sun8iv3sccu*   at fdt? pass 2          # Allwinner V3s CCU
 sun9ia80ccu*   at fdt? pass 2          # Allwinner A80 CCU
+sunxide2ccu*   at fdt? pass 3          # Allwinner DE2 clock controller
 sunxiresets*   at fdt? pass 1          # Allwinner Misc. clock resets
 sunxigates*    at fdt? pass 1          # Allwinner Misc. clock gates
 sunxigmacclk*  at fdt? pass 2          # Allwinner GMAC MII/RGMII clock mux
@@ -510,8 +511,15 @@ tegracec0  at fdt?                 # NVIDIA Tegra HDMI
 hdmicec*       at hdmicecbus?

 # Display
+sunxide2bus*   at fdt? pass 4          # Allwinner DE2 bus
+sunxidrm*      at fdt? pass 5          # Allwinner Display Pipeline
+sunxifb*       at sunxidrm?            # Allwinner DRM framebuffer
+sunxihdmiphy*  at fdt? pass 9          # Allwinner HDMI TX PHY
+sunxilcdc*     at fdt?                 # Allwinner DE2 timing controller
+sunximixer*    at fdt?                 # Allwinner DE2 mixer
 #tegradrm*     at fdt?                 # NVIDIA Tegra Display
 #tegrafb*      at tegrafbbus?
+dispcon*       at fdt?                 # Display connector devices
 dwhdmi*        at fdt?                 # Designware HDMI TX
 genfb*                 at fdt?                 # Simple Framebuffer
 mesonfb*       at fdt?                 # Amlogic Meson Framebuffer

Because its SoC only has bultin 64MB RAM, the minimal kernel is recommended:
https://github.com/picohive/netbsd-licheepi-zero/blob/main/LICHEEPI_ZERO

-rxg
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.