add orangepi zero3 to u-boot

Peter Robinson pbrobinson at gmail.com
Wed Nov 22 23:39:32 CET 2023


Hi Stephen,

> I have been able to build a working (tested on my orangepi zero3 1G)
> u-boot for the orangepi zero3 with the following defconfig. Would it be
> possible to add this config to the working boards.  I would test it
> again with an official build. The dtb/dts is in linux 6.6 and in u-boot.
>
> The H618 processor is software compatible with the H616 and the zero3
> board is very similar to the zero2 with the exception of DDR3 replaced
> with LPDDR4 and the Realtek phy with Motorcomm.

You've sent a variantion on this email twice today. The usual process
for sending support upstream is via a git commit with appropriate
pieces. I suggest having a look at the means of git
commit/format-patch/send-email.

Other than just a config file, you'll also need to add the upstream
(from Linux) dts file. The OrangePi Zero2 commit [1] would be a good
example to base you patch on.

Peter

[1] https://source.denx.de/u-boot/u-boot/-/commit/38be6b838780e8ad0ee80e716752c8843cd87e05

> CONFIG_ARM=y
> CONFIG_ARCH_SUNXI=y
> CONFIG_DEFAULT_DEVICE_TREE="sun50i-h618-orangepi-zero3"
> CONFIG_SPL=y
> CONFIG_DRAM_SUN50I_H616_DX_ODT=0x07070707
> CONFIG_DRAM_SUN50I_H616_DX_DRI=0x0e0e0e0e
> CONFIG_DRAM_SUN50I_H616_CA_DRI=0x0e0e
> CONFIG_DRAM_SUN50I_H616_ODT_EN=0xaaaaeeee
> CONFIG_DRAM_SUN50I_H616_TPR0=0x0
> CONFIG_DRAM_SUN50I_H616_TPR6=0x44000000
> CONFIG_DRAM_SUN50I_H616_TPR10=0x402f0663
> CONFIG_DRAM_SUN50I_H616_TPR11=0x24242323
> CONFIG_DRAM_SUN50I_H616_TPR12=0x0e0e0e0e
> CONFIG_MACH_SUN50I_H616=y
> CONFIG_SUNXI_DRAM_H616_LPDDR4=y
> CONFIG_DRAM_CLK=792
> CONFIG_R_I2C_ENABLE=y
> CONFIG_SPL_SPI_SUNXI=y
> # CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
> CONFIG_SPL_I2C=y
> CONFIG_SPL_SYS_I2C_LEGACY=y
> CONFIG_SYS_I2C_MVTWSI=y
> CONFIG_SYS_I2C_SLAVE=0x7f
> CONFIG_SYS_I2C_SPEED=400000
> CONFIG_SPI_FLASH_MACRONIX=y
> CONFIG_PHY_MOTORCOMM=y
> CONFIG_SUN8I_EMAC=y
> CONFIG_SPI=y
> CONFIG_USB_EHCI_HCD=y
> CONFIG_USB_OHCI_HCD=y
> CONFIG_USB_MUSB_GADGET=y
> CONFIG_AXP313_POWER=y
> CONFIG_AXP_DCDC3_VOLT=1100
> CONFIG_CMD_BOOTZ=y
>


More information about the U-Boot mailing list