Commit graph

75314 commits

Author SHA1 Message Date
Hal Feng
0bd685d280 Support the new JH7110 chip A gmac configuration in linux v6.6+
If gmac_conf_new = 1, apply the new gmac configuration in linux v6.6+.
If gmac_conf_new = 0, apply the old gmac configuration.

Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2024-03-13 16:19:59 +08:00
andy.hu
223ac8b1e9 Merge branch 'CR_9215_debian_support_specifying_dtb_hal.feng' into 'jh7110-master'
CR_9215_debian_support_specifying_dtb_hal.feng

See merge request sdk/u-boot!80
2024-02-23 11:39:44 +00:00
Hal Feng
66d87abc45 Support specifying dtb in ${boot_syslinux_conf}
With this patch, you can specify dtb to bootup kernel,
using fdtdir in ${boot_syslinux_conf}.

Generally boot_syslinux_conf=extlinux/extlinux.conf

Signed-off-by: Yingpeng Liu <yingpeng.liu@starfivetech.com>
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2024-02-23 16:49:49 +08:00
andy.hu
f1b1c9ad3e Merge branch 'CR_9208_DEVKITS_EEPROM_ziv.xu' into 'jh7110-master'
CR_9208_DEVKITS_EEPROM_ziv.xu

See merge request sdk/u-boot!79
2024-02-23 07:15:21 +00:00
andy.hu
91e61488a6 Merge branch 'CR_9208_VF2_EEPROM_ziv.xu' into 'jh7110-master'
CR_9208_VF2_EEPROM_ziv.xu

See merge request sdk/u-boot!77
2024-02-23 07:14:26 +00:00
andy.hu
c25f1ddd87 Merge branch 'CR_6516_CPU_vol_fix_mason.huo' into 'jh7110-master'
CR#6516 board: starfive: Add the default cpu max voltage

See merge request sdk/u-boot!78
2024-02-23 07:10:38 +00:00
Ziv Xu
fa958b6efb include: configs: devkits: change eeprom write page size
change eeprom write page size

Signed-off-by: Ziv Xu <ziv.xu@starfivetech.com>
2024-02-18 17:27:43 +08:00
Ziv Xu
03ae7601a0 riscv: dts: change eeprom model for devkits
change eeprom model for devkits

Signed-off-by: Ziv Xu <ziv.xu@starfivetech.com>
2024-02-18 17:26:24 +08:00
Mason Huo
f0e66d4fd3 board: starfive: Add the default cpu max voltage
The system will read cpu info from OTP, but if
the OTP read fails or OTP driver is not enabled,
then the cpu voltage script will fail to delete
cpu frequencies node in dts file.
Add the default cpu max voltage to avoid these
corner cases.

Signed-off-by: Mason Huo <mason.huo@starfivetech.com>
2024-02-07 10:55:20 +08:00
Ziv Xu
e91aaecb55 riscv: dts: change eeprom model for visionfive
change eeprom model for visionfive

Signed-off-by: Ziv Xu <ziv.xu@starfivetech.com>
2024-02-06 17:10:20 +08:00
Ziv Xu
c402e73ac4 board: starfive: visionfive: change eeprom write pagesize
change eeprom write pagesize

Signed-off-by: Ziv Xu <ziv.xu@starfivetech.com>
2024-02-06 17:09:23 +08:00
andy.hu
7277a07103 Merge branch 'CR_9038_uboot_32Mflash_ziv.xu' into 'jh7110-master'
CR_9038_uboot_32Mflash_ziv.xu

See merge request sdk/u-boot!76
2024-01-19 10:44:46 +00:00
Ziv Xu
3340ac044a configs: disable SPL_SPI_FLASH_TINY in defconfig
disable SPL_SPI_FLASH_TINY in defconfig

Signed-off-by: Ziv Xu <ziv.xu@starfivetech.com>
2024-01-19 18:01:03 +08:00
andy.hu
8c7b3f31fb Merge branch 'CR_8638_dts_i2c5_hal.feng' into 'jh7110-master'
CR_8638_dts_i2c5_hal.feng

See merge request sdk/u-boot!75
2023-12-06 09:54:47 +00:00
Hal Feng
f9d4424a16 riscv: dts: jh7110: Change the node name "i2c@12050000" to "i2c5@12050000"
So the I2C adapter can be recognized in OpenSBI.

Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2023-12-05 11:47:55 +08:00
andy.hu
918eb904cf Merge branch 'CR_6790_MergeUboot_hal.feng' into 'jh7110-master'
CR_6790_MergeUboot_hal.feng

See merge request sdk/u-boot!74
2023-11-29 09:13:51 +00:00
Hal Feng
4bf24b4717 video: starfive: Add StarFive JH7110 Devkits board support
Make the code be compatible with the StarFive Devkits board.
The code is ported from tag JH7110_DVK_515_v3.9.3 of Devkits repo.

Signed-off-by: Keith Zhao <keith.zhao@starfivetech.com>
Signed-off-by: Shengyang Chen <shengyang.chen@starfivetech.com>
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2023-11-29 10:55:16 +08:00
Hal Feng
b5cb74c260 riscv: dts: Change compatible "raydium,rm68200" to "starfive,seeed"
As drivers/video/raydium-rm68200-starfive.c is renamed to
drivers/video/starfive_seeed_panel.c, change the dts accordingly.

Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2023-11-29 10:55:10 +08:00
Hal Feng
9338dd6190 video: Rename raydium-rm68200-starfive.c to starfive_seeed_panel.c
The code is ported from tag JH7110_DVK_515_v3.9.3 of Devkits repo.

Signed-off-by: Keith Zhao <keith.zhao@starfivetech.com>
Signed-off-by: Shengyang Chen <shengyang.chen@starfivetech.com>
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2023-11-29 10:54:59 +08:00
Hal Feng
493ae680a3 video: Add StarFive MIPI2EDP support
The code is ported from tag JH7110_DVK_515_v3.9.3 of Devkits repo.

Signed-off-by: Keith Zhao <keith.zhao@starfivetech.com>
Signed-off-by: Shengyang Chen <shengyang.chen@starfivetech.com>
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2023-11-29 10:54:46 +08:00
Mason Huo
10e12b9065 pci: Add external gpio control for sideband signal
For the devkit board, PCIe sideband signals
are controled by external gpios, use gpio
direct control instead of pinctrl.

Signed-off-by: Mason Huo <mason.huo@starfivetech.com>
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2023-11-29 10:54:38 +08:00
Yanhong Wang
4542b17102 net: phy: motorcomm: Move ytphy_of_config function call to startup function
In order to dynamically adjust the phy clock delay configuration, so
move ytphy_of_config function call to startup function.

Signed-off-by: Yanhong Wang <yanhong.wang@starfivetech.com>
2023-11-29 10:54:34 +08:00
Mason Huo
9572aaa976 pinctrl: starfive: Set up usb overcurrent signal
For devkit HW design, there is not GPIO specific
for the usb controller overcurrent signal.
Config the sys iomux register to hardwire this
signal, so that the usb controller can work normally.

Signed-off-by: Mason Huo <mason.huo@starfivetech.com>
2023-11-29 10:54:31 +08:00
Yanhong Wang
da983c661a pinctrl: starfive: jh7110: Added suppport for pinctrl in SPL
Added support for pinctrl driver in SPL.

Signed-off-by: Yanhong Wang <yanhong.wang@starfivetech.com>
2023-11-29 10:54:26 +08:00
Hal Feng
96ee0021ad clk: starfive: jh7110: Add full i2c clocks
Correct the parent of i2c clocks and add full i2c clocks.
The code mainly is ported from tag JH7110_DVK_515_v3.9.3 of Devkits repo.

Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2023-11-29 10:54:11 +08:00
Hal Feng
65a9e044bd common: board_r: Enable set_pmic()
The code is ported from tag JH7110_DVK_515_v3.9.3 of Devkits repo.

Signed-off-by: ziv.xu <ziv.xu@starfive.com>
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2023-11-29 10:53:53 +08:00
Hal Feng
d006806e64 configs: starfive: Add starfive_devkits_defconfig
Add a defconfig file for StarFive JH7110 Devkits board.
The code is ported from tag JH7110_DVK_515_v3.9.3 of Devkits repo.

Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2023-11-29 10:53:35 +08:00
Hal Feng
8d2695797e riscv: dts: Add StarFive JH7110 Devkits board device tree
Add device tree for StarFive JH7110 Devkits board.
The code is ported from tag JH7110_DVK_515_v3.9.3 of Devkits repo.

Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2023-11-29 10:53:23 +08:00
Hal Feng
55255733cf riscv: dts: jh7110: Sync with Devkits repo
To be compatible with the Devkits board.
The code is ported from tag JH7110_DVK_515_v3.9.3 of Devkits repo.

Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2023-11-29 10:53:10 +08:00
Hal Feng
e4f8517ebf board: starfive: Add TARGET_STARFIVE_DEVKITS to Kconfig
Add board support for StarFive Devkits.
The code is ported from tag JH7110_DVK_515_v3.9.3 of Devkits repo.

Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2023-11-29 10:52:55 +08:00
Hal Feng
4d348e3fb4 board: starfive: Add StarFive Devkits board support
Add board support for StarFive Devkits.
The code is ported from tag JH7110_DVK_515_v3.9.3 of Devkits repo.

Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2023-11-29 10:51:13 +08:00
Hal Feng
60884ca5ec video: starfive: Add StarFive VisionFive 2 board support
Make the code be compatible with the StarFive VisionFive 2 board.
The code is ported from tag JH7110_VF2_515_v3.9.3 of VF2 repo.

Signed-off-by: Keith Zhao <keith.zhao@starfivetech.com>
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2023-11-29 10:48:28 +08:00
Hal Feng
2f2f662785 pci: starfive: Add StarFive VisionFive 2 board support
Make the code be compatible with the StarFive VisionFive 2 board.
The code is ported from tag JH7110_VF2_515_v3.9.3 of VF2 repo.

Signed-off-by: Mason Huo <mason.huo@starfivetech.com>
Signed-off-by: Minda Chen <minda.chen@starfivetech.com>
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2023-11-29 10:48:17 +08:00
Hal Feng
3dec8563ac net: dwc_eth_qos: Add StarFive VisionFive 2 board support
Make the code be compatible with the StarFive VisionFive 2 board.
The code is ported from tag JH7110_VF2_515_v3.9.3 of VF2 repo.

Signed-off-by: Samin Guo <samin.guo@linux.starfivetech.com>
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2023-11-29 10:48:06 +08:00
Hal Feng
7a6dd69c9d mmc: dw_mmc: Add StarFive VisionFive 2 board support
Make the code be compatible with the StarFive VisionFive 2 board.
The code is ported from tag JH7110_VF2_515_v3.9.3 of VF2 repo.

Signed-off-by: William Qiu <william.qiu@starfivetech.com>
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2023-11-29 10:47:53 +08:00
Jianlong Huang
77a08d507b cmd: eeprom: Add StarFive VisionFive 2 board support
Rename CONFIG_SYS_DEF_EEPROM_ADDR to CONFIG_SYS_I2C_EEPROM_ADDR
based on current usage.

Convert CONFIG_SYS_I2C_EEPROM_BUS, CONFIG_SYS_I2C_EEPROM_ADDR_LEN,
CONFIG_SYS_EEPROM_SIZE, CONFIG_SYS_EEPROM_PAGE_WRITE_BITS and
CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS to Kconfig.

Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2023-11-29 10:47:49 +08:00
Jianlong.Huang
295685561e cmd/eeprom: fix data type issue for parse_numeric_param
This patch fixs parse_numeric_param issue on some platfrom which has
different sizes of int and long, like riscv64.

On riscv64, int is 4 bytes, but long is 8 bytes.

on this situation:
ulong addr = parse_numeric_param(argv[index]);

if argv[index] is "0x80000000", this "ulong addr" will be
0xffffffff80000000.

Signed-off-by: Jianlong.Huang <jianlong.huang@starfivetech.com>
Co-developed-by: Wei Fu <wefu@redhat.com>
Signed-off-by: Wei Fu <wefu@redhat.com>
2023-11-29 10:47:43 +08:00
Yanhong Wang
b2edbe9c9e i2c: designware: support SYS_I2C_DW in SPL
Add SYS_I2C_DW driver to support in SPL.

Signed-off-by: Yanhong Wang <yanhong.wang@linux.starfivetech.com>
2023-11-29 10:47:40 +08:00
Sunil V L
f142804408 efi_loader: Enable RISCV_EFI_BOOT_PROTOCOL support
This adds support for new RISCV_EFI_BOOT_PROTOCOL to
communicate the boot hart ID to bootloader/kernel on RISC-V
UEFI platforms.

The specification of the protocol is hosted at:
https://github.com/riscv-non-isa/riscv-uefi

Signed-off-by: Sunil V L <sunilvl@ventanamicro.com>
Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
2023-11-29 10:47:33 +08:00
Hal Feng
3adcafc929 configs: starfive: Add starfive_visionfive2_defconfig
Add a defconfig file for StarFive VisionFive 2 board.
The code is ported from tag JH7110_VF2_515_v3.9.3 of VF2 repo.

Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2023-11-29 10:47:22 +08:00
Hal Feng
580270489b riscv: dts: Add StarFive VisionFive 2 board device tree
Add device tree for StarFive VisionFive 2 board.
The code is ported from tag JH7110_VF2_515_v3.9.3 of VF2 repo.

Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2023-11-29 10:47:10 +08:00
Hal Feng
4b07186e8e riscv: dts: jh7110: Add a new clock input to gmac
To be compatible with the VisionFive 2 board.
The code is ported from tag JH7110_VF2_515_v3.9.3 of VF2 repo.

Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2023-11-29 10:46:57 +08:00
Hal Feng
4f914dd6f7 board: starfive: Add TARGET_STARFIVE_VISIONFIVE2 to Kconfig
Add board support for StarFive VisionFive 2.
The code is ported from tag JH7110_VF2_515_v3.9.3 of VF2 repo.

Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2023-11-29 10:46:47 +08:00
Hal Feng
d5c8e632a1 riscv: cpu: jh7110: Add EEPROM support
Add a header to easily use the EEPROM interface.
The code is ported from tag JH7110_VF2_515_v3.9.3 of VF2 repo.

Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2023-11-29 10:46:35 +08:00
Hal Feng
93cc1e2b6d board: starfive: Add StarFive VisionFive 2 board support
Add board support for StarFive VisionFive 2.
The code is ported from tag JH7110_VF2_515_v3.9.3 of VF2 repo.

Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2023-11-29 10:45:35 +08:00
andy.hu
b9ea242a49 Merge branch 'CR_7842_fix_lenovo_udisk_crash_minda' into 'jh7110-master'
CR_7842 usb: fix TRB_TRANSFER return null pointer issue

See merge request sdk/u-boot!73
2023-10-18 10:53:54 +00:00
Minda Chen
de86bf5edc usb: fix TRB_TRANSFER return null pointer issue
xhci_wait_for_event() wait TRB_TRANSFER may return null
pointer, shoud checkit avoid crash.
Read usb device info maybe failed, should check it and
do not register usb device. uboot should rescan usb
device and register.

Signed-off-by: Minda Chen <minda.chen@starfivetech.com>
2023-10-18 18:53:00 +08:00
andy.hu
6f58ddddaf Merge branch 'usb_fix_duplicate_device_minda' into 'jh7110-master'
CR7345 usb: hub: Do NOT add device if portchanged over current bit is set

See merge request sdk/u-boot!72
2023-10-11 08:31:36 +00:00
Minda Chen
25ce4e7598 usb: hub: Do NOT add device if portchanged over current bit is set
USB hub should not add the usb devices if over current bit
is set in portchange. For later usb_scan_port will still return
with error and rescan and add device again.
it will generate dulplicated device and cause crash issue.

Signed-off-by: Minda Chen <minda.chen@starfivetech.com>
2023-10-10 17:23:31 +08:00
andy.hu
5a6195d028 Merge branch 'CR_7124_PCIe_Kevin.xie' into 'jh7110-master'
CR 7124 PCIe dts & driver: Modified reset & link wait timing for better compatbility.

See merge request sdk/u-boot!71
2023-09-13 09:56:05 +00:00