summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2022-11-27board:starfive:Visionfive2 Remove uart0/sdio0/sdio1VF2_v2.4.4Jianlong Huang1-35/+0
Visionfive2 Remove uart0/sdio0/sdio1 Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2022-11-27dts:starfive:Visionfive2 Add pinctrl configJianlong Huang1-5/+106
Add pinctrl config about sdio0/sdio1/uart0 Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2022-11-26configs: visionfive2 Enable STARFIVE_PINCTRLJianlong Huang1-0/+4
visionfive2 Enable STARFIVE_PINCTRL and PINCTRL_FULL Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2022-11-26Merge tag 'JH7110_515_SDK_v3.2.0' into vf2-develJianlong Huang13-28/+1518
version JH7110_515_SDK_v3.2.0 for JH7110 EVB board
2022-11-25Merge branch 'CR_2709_pinctrl_jianlong' into 'jh7110-master'andy.hu13-28/+1518
CR_2709 dt-bindings: pinctrl: Add StarFive JH7110 pinctrl definitions See merge request sdk/u-boot!18
2022-11-23board:starfive:Remove usb/sdio0/sdio1 gpio initJianlong Huang1-21/+0
Remove usb/sdio0/sdio1 gpio init. Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2022-11-23dts:starfive:Add pinctrl configJianlong Huang2-7/+59
Add pinctrl config about usb/sdio0 Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2022-11-21configs: Enable STARFIVE_PINCTRLJianlong Huang1-0/+4
Enable STARFIVE_PINCTRL and PINCTRL_FULL Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2022-11-21pinctrl: starfive: Add StarFive JH7110 driverKuan Lim Lee8-0/+1028
Add pinctrl driver for StarFive JH7110 SoC. Signed-off-by: Kuan Lim Lee <kuanlim.lee@linux.starfivetech.com> Signed-off-by: Emil Renner Berthing <kernel@esmil.dk> Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2022-11-21dt-bindings: pinctrl: Add StarFive JH7110 pinctrl definitionsJianlong Huang1-0/+427
Add pinctrl definitions for StarFive JH7110 SoC. Signed-off-by: Kuan Lim Lee <kuanlim.lee@linux.starfivetech.com> Signed-off-by: Emil Renner Berthing <kernel@esmil.dk> Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2022-11-20board:starfive:Modify GPIO_SD_SHIFT to GPIO_DS_SHIFTJianlong Huang2-3/+3
Modify GPIO_SD_SHIFT to GPIO_DS_SHIFT. Fix jh7110_gpio_init function. Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2022-11-19Merge branch 'CR_2666_wm8960_jianlong' into 'vf2-devel'jianlong.huang2-2/+28
CR_2666 board:starfive:Add gpio init See merge request sbc/u-boot!19
2022-11-18board:starfive:Add gpio initJianlong Huang2-2/+28
Fixing don't detect wm8960 occasionally Set scl/sda gpio output enable Set drive strength to 12mA Set gpio pull up Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2022-11-10Merge tag 'JH7110_515_SDK_v3.0.0-rc3' into vf2-devel-newJianlong Huang1-4/+4
version JH7110_515_SDK_v3.0.0-rc3 for JH7110 EVB board
2022-11-10Merge branch 'CR_2555_CMA_samin.guo' into 'vf2-devel'jianlong.huang1-4/+4
CR_2555: borad:jh7110:vf2: Modify ramdisk_addr_r/pxefile_addr_r/scriptaddr See merge request sbc/u-boot!18
2022-11-09Merge branch 'CR_2555_CMA_samin.guo' into 'jh7110-master'andy.hu1-4/+4
CR_2555: borad:jh7110:evb: Modify ramdisk_addr_r/pxefile_addr_r/scriptaddr See merge request sdk/u-boot!17
2022-11-09borad:jh7110:evb: Modify ramdisk_addr_r/pxefile_addr_r/scriptaddrSamin Guo1-4/+4
The jh7110 ddr starts from 0x40000000. Using 0x80000000 may cause the CMA space to fail Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
2022-11-09borad:jh7110:vf2: Modify ramdisk_addr_r/pxefile_addr_r/scriptaddrSamin Guo1-4/+4
The jh7110 ddr starts from 0x40000000. Using 0x80000000 may cause the CMA space to fail Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
2022-11-03configs:Enable CONFIG_CMD_NVEDIT_EFI and CONFIG_CMD_EFIDEBUGJianlong Huang1-0/+2
Enable CONFIG_CMD_NVEDIT_EFI, CONFIG_CMD_EFIDEBUG, CONFIG_HEXDUMP and CONFIG_EFI_RISCV_BOOT_PROTOCOL. Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2022-11-03efi_loader: Enable RISCV_EFI_BOOT_PROTOCOL supportSunil V L7-0/+130
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>
2022-11-03qspi: improve qspi speedJianlong Huang2-2/+2
Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2022-11-03riscv:starfive:jh7110: change gmac0 tx delay to 0x9 for 1.2A.Samin Guo1-0/+1
0x9 will better match 1.2A gmac0 tx in 1000M Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
2022-11-03dts: pmic: add axp15060 pmic config in vf2 uboot dtsminda.chen1-0/+5
add axp15060 pmic dts config for opensbi power managment used. Signed-off-by: minda.chen <minda.chen@starfivetech.com>
2022-11-03net:stmmac:dwc-qos: add support for external rmii_rtx clocksSamin Guo2-4/+17
JH7110A use external rmii_rtx clk for tx clk on 100M/10M mode. Signed-off-by: Samin Guo <samin.guo@linux.starfivetech.com>
2022-11-03riscv:starfive:jh7110: change gmac0 tx delay to 0xaSamin Guo1-1/+1
0xa will better match gmac0 tx in 1000M Signed-off-by: Samin Guo <samin.guo@linux.starfivetech.com>
2022-11-03board:starfive:visionfive2: Adaptive mem size in linux.Samin Guo1-0/+7
Visionfive2 has a 2/4/8G version. You need to read eeprom information in uboot to obtain the size of mem, and modify the size of mem in linux dts. Signed-off-by: Samin Guo <samin.guo@linux.starfivetech.com>
2022-11-03board:starfive:visionfive2: Support using env to detect board versionSamin Guo2-1/+34
JH7110A do not need tx_inverted by YT8531 phy, you need to read the chip version to determine whether to use it. Signed-off-by: Samin Guo <samin.guo@linux.starfivetech.com>
2022-11-03board:starfive:visionfive2: setenv uboot_fdt_addrSamin Guo1-0/+11
It is more convenient to dynamically modify uboot dts Signed-off-by: Samin Guo <samin.guo@linux.starfivetech.com>
2022-11-03board:starfive:visionfive2: Modify jh7110_gmac_initSamin Guo1-3/+14
JH7110B(chip_vision B) need switch gmac tx clk to rgmii phy. Signed-off-by: Samin Guo <samin.guo@linux.starfivetech.com>
2022-11-03board:starfive:visionfive2: add get_chip_typeSamin Guo1-0/+38
Read the chip model from the eerpom and setenv "chip_vision" Signed-off-by: Samin Guo <samin.guo@linux.starfivetech.com>
2022-11-03board:starfive:visionfive2: add jh7110_gmac_sel_tx_to_rgmiiSamin Guo1-0/+19
JH7110B needs switch gmac0/1 tx to rgmii phy. Signed-off-by: Samin Guo <samin.guo@linux.starfivetech.com>
2022-11-03dts:starfive:jh7110: set gmac phy tx_inverted for JH7110B+YT8531PHY.Samin Guo1-2/+8
JH7110B requires tx_inverted_10/100/1000 configuration, and different parameters may be required in 10M/100M/1000M mode. This parameter supports JH7110B+YT8531PHY by default. Other boards can modify the parameters of the tx_inverted_10/100/1000 to obtain support. If you do not configure tx_inverted_10/100/1000 in dts, the default is 0. Signed-off-by: Samin Guo <samin.guo@linux.starfivetech.com>
2022-11-03spl:starfive:jh7110: Improved GMAC1 TX I/O PAD capabilitySamin Guo1-0/+7
JH7110B requires a higher IOPAD capability in 1000M mode. Signed-off-by: Samin Guo <samin.guo@linux.starfivetech.com>
2022-11-03spl:starfive:jh7110: Improved GMAC0 TX I/O PAD capabilitySamin Guo1-0/+6
JH7110B requires a higher IOPAD capability in 1000M mode. Signed-off-by: Samin Guo <samin.guo@linux.starfivetech.com>
2022-11-03board: starfive: visionfive2: add memory_addr and memory_size environment ↵Yanhong Wang1-0/+7
variable In order to compatible visionfive2 board with different version,so the memory size information read from eeprom. and save to environment variable. The value which saved in environment variable will be used to update the memory node in dts. Signed-off-by: Yanhong Wang <yanhong.wang@linux.starfivetech.com>
2022-11-03configs: starfive: visionfive2: enable i2c eeprom in SPLYanhong Wang1-1/+4
Enable I2C and EEPROM driver in SPL. Signed-off-by: Yanhong Wang <yanhong.wang@linux.starfivetech.com>
2022-11-03riscv: dts: starfive: add i2c5 node in SPLYanhong Wang2-1/+18
Add i2c5 device configuration to device tree which used by SPL. Signed-off-by: Yanhong Wang <yanhong.wang@linux.starfivetech.com>
2022-11-03ram: starfive: remove fdtdec_setup_mem_size_base callYanhong Wang1-2/+0
Memory information has been obtained elsewhere, so remove fdtdec_setup_mem_size_base call. Signed-off-by: Yanhong Wang <yanhong.wang@linux.starfivetech.com>
2022-11-03SPL: starfive: jh7110: add i2c init in SPLYanhong Wang2-0/+17
Add basic init before used by other modules in SPL. Signed-off-by: Yanhong Wang <yanhong.wang@linux.starfivetech.com>
2022-11-03arch: riscv: jh7110: read ram size from eepromYanhong Wang2-3/+31
Update memory size information, which read from eeprom. Signed-off-by: Yanhong Wang <yanhong.wang@linux.starfivetech.com>
2022-11-03board: starfive: move eeprom macro definitionYanhong Wang2-51/+43
Move eeprom macro definition form h file to c. Signed-off-by: Yanhong Wang <yanhong.wang@linux.starfivetech.com>
2022-11-03i2c: designware: support SYS_I2C_DW in SPLYanhong Wang2-1/+8
Add SYS_I2C_DW driver to support in SPL. Signed-off-by: Yanhong Wang <yanhong.wang@linux.starfivetech.com>
2022-11-03board: starfive: Add interface to get data from eepromJianlong Huang2-0/+31
Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2022-11-03spl: starfive: jh7110: switch pll2 to 1188MJianlong Huang3-165/+29
Switch the pll2 clk to 1188M with the comm pll interface on JH7110. Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2022-11-03board: starfive: Support auto to init gmac base on eeprom dataJianlong Huang4-3/+102
PCB A have two different phy, 1000M yt8531 for gmac0, 100M yt8512 for gmac1. PCB B have two same phy, 1000M yt8531 for gmac0/gmac1. Gmac initialization is different when link different phy. Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2022-11-03Support boot from grubJianlong Huang2-13/+36
Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2022-11-03Support scan to boot from sd card or emmcJianlong Huang4-1/+62
Get bootmode, if bootmode is flash, then default boot from sd card. Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2022-11-03config: jh7110: read uboot by partitionsamin1-2/+2
uboot should be placed in partition-2 Signed-off-by: samin <samin.guo@starfivetech.com>
2022-11-03board: starfive: update gpio index base on visionfive2 A1.1Jianlong Huang2-26/+26
update sdio emmc uart0 gpio index base on visionfive2 new board A1.1 Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2022-11-03configs: starfive_visionfive2_defconfig: Support saveenvJianlong Huang2-3/+5
Add saveenv config to Support saveenv Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>