1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-10-15 23:11:36 +02:00
Commit Graph

91394 Commits

Author SHA1 Message Date
Ondrej Jirman
ce55fe0cae [HACK] spl: Speedup SPL FIT loading a bit
Don't record loadables into DT. It's useless and slow.

Signed-off-by: Ondrej Jirman <megi@xff.cz>
2024-02-14 00:22:33 +01:00
Ondrej Jirman
b39b0dd3b2 pinephone-pro: Enable DMC node when booting from U-Boot using RK blobs
Signed-off-by: Ondrej Jirman <megi@xff.cz>
2024-02-14 00:22:33 +01:00
Ondrej Jirman
1146956100 mtd: spi-nor: Add device info for gd25lq128e
This is used on Pinephone Pro.

Signed-off-by: Ondrej Jirman <megi@xff.cz>
2024-02-14 00:22:33 +01:00
Ondrej Jirman
c9104dda84 mtd: Print jedec id of unrecognized flashes
Hell to debug otherwise.

Signed-off-by: Ondrej Jirman <megi@xff.cz>
2024-02-14 00:22:33 +01:00
Ondrej Jirman
45643debf6 power: Allow to enable RK8XX regulator in SPL 2024-02-14 00:22:33 +01:00
Ondrej Jirman
c7d7c0a3be regulator: rk8xx: Fix USB voltage limit setting function
Value to be set into the register needs to be shifted to match
the mask.

Signed-off-by: Ondrej Jirman <megi@xff.cz>
2024-02-14 00:22:33 +01:00
Ziyuan Xu
f4a8889ab8 mmc: dw_mmc: reset controller after data error
Per dw_mmc databook, it's recommended to reset the host controller if
some data-related error occurred.
Implement a reset mechanism.

Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
Co-developed-by: Jason Zhu <jason.zhu@rock-chips.com>
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
[eugen.hristev@collabora.com: modified a bit the variables initialization]
Signed-off-by: Eugen Hristev <eugen.hristev@collabora.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
2024-02-14 00:22:33 +01:00
Ondrej Jirman
61fb2fa5f7 cmd: tmenu: Add support for UMS
Signed-off-by: Ondrej Jirman <megi@xff.cz>
2024-02-14 00:22:33 +01:00
Ondrej Jirman
026f2883e7 cmd: tmenu: Add bootflow+extlinux support
Automatically generate menu from bootflow and extlinux data.

Signed-off-by: Ondrej Jirman <megi@xff.cz>
2024-02-14 00:22:33 +01:00
Ondrej Jirman
1c000d75cf cmd: tmenu: Add tmenu command for touch menu user interface
Shows a menu of items that can be controlled using touch panel.
This is useful for touch based devices like tablets to select
alternative boot options (multi-boot).

Signed-off-by: Ondrej Jirman <megous@megous.com>
2024-02-14 00:22:33 +01:00
Ondrej Jirman
b5dca54e1d input: goodix: Add support for Goodix touchscreens
As the title says. :)

Signed-off-by: Ondrej Jirman <megi@xff.cz>
2024-02-14 00:22:33 +01:00
Ondrej Jirman
5710a67d25 input: Add support for edt,edt-ft5x06 touchpanel controller
This is a direct port of the Linux driver from Linux v4.18.

Signed-off-by: Ondrej Jirman <megous@megous.com>
2024-02-14 00:22:33 +01:00
Ondrej Jirman
ad06b9d83b cmd: Add 'touch' command to enumerate touchpanel devices
This command can be used to list and access devices with uclass
UCLASS_TOUCHPANEL.

Signed-off-by: Ondrej Jirman <megous@megous.com>
2024-02-14 00:22:33 +01:00
Ondrej Jirman
700a8067f2 input: Implemented touchpanel uclass for touchpanel devices
Touchapnel devices are useful in u-boot for implementation of boot
menu user interfaces on tablets and other touch based devices.

This uclass implements start, stop and get_touches interface methods.

Signed-off-by: Ondrej Jirman <megous@megous.com>
2024-02-14 00:22:33 +01:00
Ondrej Jirman
07bed1ed80 video: dw-mipi-dsi: Sync-up with Linux driver
Add changes made to the Linux driver in the last few years.

Signed-off-by: Ondrej Jirman <megi@xff.cz>
2024-02-14 00:22:33 +01:00
Ondrej Jirman
cfd2f81e73 video: rockchip: dw-mipi-dsi: Align clock rate calculations with Linux
Just to be on the same page

Signed-off-by: Ondrej Jirman <megi@xff.cz>
2024-02-14 00:22:33 +01:00
Ondrej Jirman
c842a731f7 clk: rockchip: Add clocks used by mipi-dsi on rk3399
Signed-off-by: Ondrej Jirman <megi@xff.cz>
2024-02-14 00:22:33 +01:00
Ondrej Jirman
82a5b2de5e video: rockchip: rk3399-vop: Don't enable hardcoded regulator 2024-02-14 00:22:33 +01:00
Ondrej Jirman
d300da4d1c video: rockchip: Add video bridge support to VOP driver
This is used for video output using video bridge implementation of
MIPI-DSI, like with the recently added dw_mipi_dsi_rockchip.c
driver.

The original code path when the UCLASS_DISPLAY device is found is
untouched. The video bridge branch is taken only when the
UCLASS_VIDEO_BRIDGE device is found at the remote endpoint's parent.

This was tested to work on Pinephone Pro.

Signed-off-by: Ondrej Jirman <megi@xff.cz>
Cc: Anatolij Gustschin <agust@denx.de>
Cc: Simon Glass <sjg@chromium.org>
Cc: Philipp Tomsich <philipp.tomsich@vrull.eu>
Cc: Kever Yang <kever.yang@rock-chips.com>
Cc: Chris Morgan <macromorgan@hotmail.com>
2024-02-14 00:22:33 +01:00
Ondrej Jirman
b4f5590d60 clk: rk3399: Static clock settings for VOPs
cpll in U-Boot runs at 384 MHz, set various VOP related clocks to produce
roughly 400 and 100 MHz just like in Linux.

Signed-off-by: Ondrej Jirman <megi@xff.cz>
2024-02-14 00:22:33 +01:00
Ondrej Jirman
015d210654 dt-bindings: Add missing rockchip clock ids
These are needed for updated upstream rk3399 dtsi.

Signed-off-by: Ondrej Jirman <megi@xff.cz>
2024-02-14 00:22:33 +01:00
Ondrej Jirman
554dfef1d6 pinephone-pro: Fix pmugrf io voltage
On poweron this register is 0 (as opposed to what TRM says, that it
should be 0x300). Make it 0x300.
2024-02-14 00:22:33 +01:00
Ondrej Jirman
ecfa6ca857 video: rockchip: dw_mipi_dsi: Sync calculations with Linux
This was all weird and broken.

Signed-off-by: Ondrej Jirman <megi@xff.cz>
2024-02-14 00:22:33 +01:00
Ondrej Jirman
1578cd4700 rk3588: Disable JTAG on SD card pins
Signed-off-by: Ondrej Jirman <megi@xff.cz>
2024-02-14 00:22:33 +01:00
Jonas Karlman
216d3e0f2d bootstd: efi: Initialize PCI to discover network controllers
Boards like Radxa ROCK 5 Model B and NanoPi R5C require PCI to be
initialized in order to discover their onboard network controllers.

During standard boot, PCI gets initialized after faster boot media have
been evaluated. However when an EFI bootflow is run from a fast boot
media, PCI initialization may not have happended and as a result no
network device is exposed to EFI.

Fix this by initializing PCI during EFI bootflow when no ethernet device
can be found.

This allows chainloading e.g. iPXE on ROCK 5B and NanoPi R5C without
having to enable PCI_INIT_R. Enabling of PCI_INIT_R has the side affect
of slowing down booting from faster boot media, by adding ~1 second off
boot delay for each unocupied M.2 slot.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
2024-02-07 22:49:20 +00:00
Jonas Karlman
0d5631ec3c rockchip: rk3588-turing-rk1: Update defconfig
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
2024-02-07 22:49:20 +00:00
Jonas Karlman
ed827c5586 rockchip: rk3588-rock-5a: Enable PCIe and AHCI
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
2024-02-07 22:49:20 +00:00
Jonas Karlman
2c59aa587f rockchip: rk3588-rock-5a: Enable USB3
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
2024-02-07 22:49:20 +00:00
Dongjin Kim
b129ab2fee board: rockchip: Add Hardkernel ODROID-M1S
Hardkernel ODROID-M1S is a single board computer with a RK3566 SoC,
a slightly modified version of the RK3566 SoC.

Features tested on a ODROID-M1S 8GB v1.0 2023-08-10:
    - SD-card boot
    - eMMC boot
    - PCIe/NVMe

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
2024-02-07 22:49:20 +00:00
Ricardo Pardini
b3e7465b97 board: rockchip: Add Xunlong Orange Pi 3B
Based on the ROCK 3 Model C / Pine64 Quartz64-B and Jianfeng Liu's kernel DT.

Tested with a OrangePi 3B 4GB v1.1:
- SD-card boot
- eMMC boot
- SPI Flash boot
  - chip is XMC XM25QU128CWIQ, not W25Q256JWEIQ listed in schematics
- PCIe/NVMe
- USB is untested

Signed-off-by: Ricardo Pardini <ricardo@pardini.net>
2024-02-07 22:49:20 +00:00
Jonas Karlman
72c9f89fda HACK: board: rockchip: Add Radxa ROCK 3 Model C
This uses device tree for Pine64 Quartz64-B.

Device tree for Quartz64-B is not fully compatible with ROCK 3C, e.g.
one USB 2.0 host port will not work on ROCK 3C using this DT.

Tested with a ROCK 3C 8GB v1.31:
- SD-card boot
- eMMC boot
- SPI Flash boot
- PCIe/NVMe
- USB host

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
2024-02-07 22:49:20 +00:00
Jonas Karlman
4f07cdf3da fixup: rockchip: rk3568: Add support for PINE64 PineNote 2024-02-07 22:49:20 +00:00
Arnaud Ferraris
2d15cd0aa6 rockchip: rk3568: Add support for PINE64 PineNote
The PineNote is an e-ink tablet by PINE64. It is built around a Rockchip
RK3566 SoC and has the following specifications:
- 4GB LPDDR4
- 128GB eMMC
- 10.3" 1404x1872 e-ink display

This board is very similar to other RK356x-based boards, with the
exception that its download-mode "key" (actually a Hall sensor) is on
ADC channel 0 instead of 1.

As such, this patch is heavily based on the evb_3568 board
implementation with the addition of a simple board setup code, meant to
account for the above difference.

Signed-off-by: Arnaud Ferraris <arnaud.ferraris@collabora.com>
2024-02-07 22:49:20 +00:00
Jonas Karlman
de38d9855e RFC: rockchip: Reset to bootrom download mode on hang
Add support to reset to bootrom download mode on hang in U-Boot SPL and
proper. ROCKCHIP_HANG_TO_BROM can be used to enable this feature.

Example when SPL cannot load FIT:

  U-Boot SPL 2024.04-rc1 (Feb 01 2024 - 23:01:12 +0000)
  Trying to boot from MMC1
  mmc_load_image_raw_sector: mmc block read error
  Trying to boot from MMC2
  Card did not respond to voltage select! : -110
  spl: mmc init failed with error: -95
  Trying to boot from MMC1
  mmc_load_image_raw_sector: mmc block read error
  SPL: failed to boot from all boot devices
  ### ERROR ### Please RESET the board ###
  entering download mode ...
  resetting ...

Procedure to start bootrom download mode:
- U-Boot SPL or proper write 0xEF08A53C to BOOT_MODE_REG and then reset
- Bootrom loads and run boot code (TPL) from e.g. SPI > eMMC > SD-card
- TPL check for 0xEF08A53C in BOOT_MODE_REG very early, i.e. Rockchip
  TPL blobs check for this value directly at start
- TPL return to bootrom with a return value != 0
- Bootrom enter download mode

This also fixes an issue where the BOOT_MODE_REG is reset to 0 when
board is reset on RK35xx after TF-A has been loaded. To fix this the
SOC_CON1 reg value is reset prior to issuing a global reset.

The RK356x TF-A blobs will clear SOC_CON1 as part of a PSCI reset,
however the RK3588 TF-A blobs does not seem to clear SOC_CON1.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
---
- Is reset to bootrom download mode on hang a feature of intereset to
  anyone else?
- How can we best handle the issue with BOOT_MODE_REG being reset?
- Should we instead enable SYSRESET_PSCI and relay on TF-A to properly
  reset without loosing value in BOOT_MODE_REG? Currently works on
  RK356x bl31 blobs but not on the RK3588 bl31 blobs.

Link to RFC: https://patchwork.ozlabs.org/patch/1894244/
2024-02-07 22:33:28 +00:00
Jonas Karlman
fdc53424fe RFC: v2: rockchip: spl: Support reading FIT from eMMC boot partition
Enable support for loading FIT from eMMC boot partition when
SUPPORT_EMMC_BOOT Kconfig option is enabled.

FIT is only loaded from boot partition when the boot partition is set to
boot0 (1) or boo1 (2) in the extcsd partition config. FIT is read from
sector 1024 (512 KiB) of the configured boot partition.

Following can be used to write U-Boot to boot partition 1 of eMMC:

  # Load TPL+SPL from SD-card
  => load mmc 1:1 20000000 idbloader.img

  => mmc dev 0
  # Access eMMC user partition
  => mmc partconf 0 0 0 0
  # Write TPL+SPL to eMMC user partition (512 KiB @ 32 KiB)
  => mmc write 20000000 40 400

  # Load FIT from SD-card
  => load mmc 1:1 20000000 u-boot.itb

  => mmc dev 0
  # Access eMMC boot partition 1
  => mmc partconf 0 0 0 1
  # Write FIT to eMMC boot partition 1 (2 MiB @ 512 KiB)
  => mmc write 20000000 400 1000

  # Configure to use boot partition 1
  => mmc partconf 0 0 1 0
  # Show partition config
  => mmc partconf 0

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
---
- Is loading FIT from emmc boot partition a feature of intereset to
  anyone else?
- I used a @ 512 KiB offset for FIT, should leave enough space for e.g.
  TPL/SPL, vendor storage or environment before FIT.
- Is @ 512 KiB offset a good default option? Or would e.g. @ 0 or
  @ 32KiB a more apropriate offset?
- This does not add kind of fallback to use the normal @ 8 MiB offset in
  user partition. Is that something that would be needed?

Link to RFC: https://patchwork.ozlabs.org/patch/1894243/
2024-02-07 22:33:28 +00:00
Jonas Karlman
9138de36e9 v2: rockchip: board: Add minimal generic RK3588S/RK3588 board
Add a minimal generic RK3588S/RK3588 board that only have eMMC and SDMMC
enabled. This defconfig can be used to boot from eMMC or SD-card on most
RK3588S/RK3588 boards that follow reference board design.

Also fix the alphabetical order of RK3588 boards listed in Makefile and
documentation.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
---
Link to v1: https://patchwork.ozlabs.org/patch/1893667/
2024-02-07 22:33:28 +00:00
Jonas Karlman
58792117e7 rockchip: rk3328-orangepi-r1-plus: Enable boot from SPI NOR flash
Add Kconfig options to enable support for booting from SPI NOR flash on
Orange Pi R1 Plus boards.

The generated bootable u-boot-rockchip-spi.bin that can be written to
0x0 of SPI NOR flash. The FIT image is loaded from 0x60000, same as on
RK35xx boards.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Tianling Shen <cnsztl@gmail.com>
2024-02-07 22:33:28 +00:00
Jonas Karlman
734a6a0627 rockchip: rk3328-rock64: Enable boot from SPI NOR flash
Add Kconfig options to enable support for booting from SPI NOR flash on
Pine64 Rock64.

The generated bootable u-boot-rockchip-spi.bin that can be written to
0x0 of SPI NOR flash. The FIT image is loaded from 0x60000, same as on
RK35xx boards.

  => sf probe
  SF: Detected gd25q128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB

  => load mmc 1:1 10000000 u-boot-rockchip-spi.bin
  1359872 bytes read in 65 ms (20 MiB/s)

  => sf update $fileaddr 0 $filesize
  device 0 offset 0x0, size 0x14c000
  1118208 bytes written, 241664 bytes skipped in 8.516s, speed 163516 B/s

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
2024-02-07 22:33:28 +00:00
Jonas Karlman
38dd93e338 rockchip: rk3328: Add support to build bootable SPI image
Similar to RK35xx the BootRom in RK3328 can read all data and look for
idbloader at 0x8000, same as on SD and eMMC.

Use the rksd format and modify the mkimage offset to generate a bootable
u-boot-rockchip-spi.bin that can be written to 0x0 of SPI NOR flash.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
2024-02-07 22:33:27 +00:00
Jonas Karlman
ba65c6f7f3 Revert "rockchip: Allow booting from SPI"
This reverts commit 3523c07867.

Booting from SPI was already allowed before this commit was first
introduced. A few lines further down the exact same code already existed
and still does.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
2024-02-07 22:33:27 +00:00
Jonas Karlman
22b707642c rockchip: rk3328: Sync device tree from linux v6.8-rc1
Sync rk3328 device tree from linux v6.8-rc1.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
2024-02-07 22:33:27 +00:00
Jonas Karlman
d89c9ec6b8 rng: rockchip: Use same compatible as linux
Replace the rockchip,cryptov1-rng compatible with compatibles used in
the linux device tree for RK3288, RK3328 and RK3399 to ease sync of SoC
device tree from linux.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
2024-02-07 22:33:27 +00:00
Jonas Karlman
1e6426f6d5 gpio: rockchip: Use gpio alias id as gpio bank id
The U-Boot driver try to base the gpio bank id on the gpio-ranges prop
and fall back to base the bank id on the node name. However, the linux
driver try to base the bank id on the gpio alias id and fall back on
node order.

This can cause issues when SoC DT is synced from linux and gpioX@ nodes
has been renamed to gpio@ and gpio-ranges or a SoC specific alias has
not been assigned.

Try to use the gpio alias id as first fallback when a gpio-ranges prop
is missing to ease sync of updated SoC DT. Keep the current fallback on
node name as a third fallback to not affect any existing unsynced DT.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
2024-02-07 22:33:27 +00:00
Jonas Karlman
2b12419be1 rockchip: rk3328: Fix loading FIT from SD-card when booting from eMMC
When RK3328 boards run SPL from eMMC and fail to load FIT from eMMC due
to it being missing or checksum validation fails there is a fallback to
read FIT from SD-card. However, without proper pinctrl configuration
reading FIT from SD-card will fail:

  U-Boot SPL 2024.04-rc1 (Feb 05 2024 - 22:18:22 +0000)
  Trying to boot from MMC1
  mmc_load_image_raw_sector: mmc block read error
  Trying to boot from MMC2
  Card did not respond to voltage select! : -110
  spl: mmc init failed with error: -95
  Trying to boot from MMC1
  mmc_load_image_raw_sector: mmc block read error
  SPL: failed to boot from all boot devices
  ### ERROR ### Please RESET the board ###

Fix this by tagging related emmc and sdmmc pinctrl nodes with bootph
props. Also sort and move common nodes shared by all boards to the SoC
u-boot.dtsi.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
2024-02-07 22:33:27 +00:00
Jonas Karlman
a50774b582 rockchip: rk3328-orangepi-r1-plus: Update defconfig
Update defconfig for rk3328-orangepi-r1-plus boards with new defaults.

Remove the SPL_DRIVERS_MISC=y option, no misc driver is used in SPL.

Add CONFIG_SPL_FIT_SIGNATURE=y to let SPL verify an auto generated hash
of FIT images. This help indicate if there is an issue loading any of
the images to DRAM or SRAM. Also add LEGACY_IMAGE_FORMAT=y to keep
support for scripts.

Add ROCKCHIP_EFUSE=y and remove NET_RANDOM_ETHADDR=y, ethaddr and
eth1addr is set based on cpuid read from eFUSE.

Add SPL_DM_SEQ_ALIAS=y option to use alias sequence number in SPL.

Add DM_ETH_PHY=y, PHY_MOTORCOMM=y, PHY_REALTEK=y and remove &gmac2io to
support reset of onboard ethernet PHYs.

Add PHY_ROCKCHIP_INNO_USB2=y option to support the onboard USB PHY.

Add RNG_ROCKCHIP=y and DM_RNG=y options to support the onboard random
generator.

Also add missing device tree files to MAINTAINERS file.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Tianling Shen <cnsztl@gmail.com>
2024-02-07 22:33:27 +00:00
Jonas Karlman
712eebd17c rockchip: rk3328-nanopi-r2: Update defconfig
Update defconfig for rk3328-nanopi-r2* boards with new defaults.

Remove the SPL_DRIVERS_MISC=y option, no misc driver is used in SPL.

Add CONFIG_SPL_FIT_SIGNATURE=y to let SPL verify an auto generated hash
of FIT images. This help indicate if there is an issue loading any of
the images to DRAM or SRAM. Also add LEGACY_IMAGE_FORMAT=y to keep
support for scripts.

Add ROCKCHIP_EFUSE=y and remove NET_RANDOM_ETHADDR=y, ethaddr and
eth1addr is set based on cpuid read from eFUSE.

Add SPL_DM_SEQ_ALIAS=y option to use alias sequence number in SPL.

Add DM_ETH_PHY=y, PHY_MOTORCOMM=y, PHY_REALTEK=y and remove &gmac2io to
support reset of onboard ethernet PHYs.

Add RNG_ROCKCHIP=y and DM_RNG=y options to support the onboard random
generator.

Also add missing device tree files to MAINTAINERS file.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
2024-02-07 22:33:27 +00:00
Jonas Karlman
bdd66f33bb rockchip: rk3328-rock-pi-e: Update defconfig
Update defconfig for rk3328-rock-pi-e with new defaults.

Remove the xPL_DRIVERS_MISC=y option, no misc driver is used in xPL.

Add CONFIG_SPL_FIT_SIGNATURE=y to let SPL verify an auto generated hash
of FIT images. This help indicate if there is an issue loading any of
the images to DRAM or SRAM. Also add LEGACY_IMAGE_FORMAT=y to keep
support for scripts.

Add ROCKCHIP_EFUSE=y and remove NET_RANDOM_ETHADDR=y, ethaddr and
eth1addr is set based on cpuid read from eFUSE.

Add SPL_DM_SEQ_ALIAS=y option to use alias sequence number in SPL.

Add RNG_ROCKCHIP=y and DM_RNG=y options to support the onboard random
generator.

Also add myself as a reviewer for this board.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
2024-02-07 22:33:27 +00:00
Jonas Karlman
f9b4731d96 rockchip: rk3328-roc-cc: Update defconfig
Update defconfig for rk3328-roc-cc with new defaults.

Remove the SPL_DRIVERS_MISC=y option, no misc driver is used in SPL.

Add CONFIG_SPL_FIT_SIGNATURE=y to let SPL verify an auto generated hash
of FIT images. This help indicate if there is an issue loading any of
the images to DRAM or SRAM. Also add LEGACY_IMAGE_FORMAT=y to keep
support for scripts.

Add ROCKCHIP_EFUSE=y and remove NET_RANDOM_ETHADDR=y, ethaddr and
eth1addr is set based on cpuid read from eFUSE.

Add SPL_DM_SEQ_ALIAS=y option to use alias sequence number in SPL.

Add DM_ETH_PHY=y, PHY_MOTORCOMM=y and PHY_REALTEK=y to support common
ethernet PHYs.

Add RNG_ROCKCHIP=y and DM_RNG=y options to support the onboard random
generator.

Also add missing device tree file to MAINTAINERS and add myself as a
reviewer for this board.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
2024-02-07 22:33:27 +00:00
Jonas Karlman
3c72f32327 rockchip: rk3328-rock64: Update defconfig
Update defconfig for rk3328-rock64 with new defaults.

Remove the SPL_DRIVERS_MISC=y option, no misc driver is used in SPL.

Add CONFIG_SPL_FIT_SIGNATURE=y to let SPL verify an auto generated hash
of FIT images. This help indicate if there is an issue loading any of
the images to DRAM or SRAM. Also add LEGACY_IMAGE_FORMAT=y to keep
support for scripts.

Remove the NET_RANDOM_ETHADDR=y option, ethaddr and eth1addr is set
based on cpuid read from eFUSE.

Add SPL_DM_SEQ_ALIAS=y option to use alias sequence number in SPL.

Add DM_ETH_PHY=y and PHY_REALTEK=y to support onboard ethernet PHY.

Also add missing device tree file to MAINTAINERS and add myself as a
reviewer for this board.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Dragan Simic <dsimic@manjaro.org>
2024-02-07 22:33:27 +00:00
Jonas Karlman
cf4feeac3e rockchip: rk3328-evb: Update defconfig
Update defconfig for rk3328-evb with new defaults.

Remove the xPL_DRIVERS_MISC=y option, no misc driver is used in xPL.

Add CONFIG_SPL_FIT_SIGNATURE=y to let SPL verify an auto generated hash
of FIT images. This help indicate if there is an issue loading any of
the images to DRAM or SRAM. Also add LEGACY_IMAGE_FORMAT=y to keep
support for scripts.

Add MISC_INIT_R=y, ROCKCHIP_EFUSE=y and remove NET_RANDOM_ETHADDR=y,
ethaddr and eth1addr is set based on cpuid read from eFUSE.

Remove pinctrl-0 and pinctrl-names from CONFIG_OF_SPL_REMOVE_PROPS,
SPL need to configure pinctrl for e.g. SD-card.

Add SPL_DM_SEQ_ALIAS=y option to use alias sequence number in SPL.

Add DM_ETH_PHY=y, PHY_MOTORCOMM=y and PHY_REALTEK=y to support common
ethernet PHYs.

Add RNG_ROCKCHIP=y and DM_RNG=y options to support the onboard random
generator.

Also add missing device tree files to MAINTAINERS and remove the
obsolete README file.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
2024-02-07 22:33:27 +00:00