summaryrefslogtreecommitdiff
path: root/drivers
AgeCommit message (Collapse)AuthorFilesLines
2023-11-29video: starfive: Add StarFive JH7110 Devkits board supportHal Feng4-28/+199
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-29video: Rename raydium-rm68200-starfive.c to starfive_seeed_panel.cHal Feng2-10/+25
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-29video: Add StarFive MIPI2EDP supportHal Feng3-0/+1312
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-29pci: Add external gpio control for sideband signalMason Huo1-9/+25
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-29net: phy: motorcomm: Move ytphy_of_config function call to startup functionYanhong Wang1-4/+8
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-29pinctrl: starfive: Set up usb overcurrent signalMason Huo1-1/+14
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-29pinctrl: starfive: jh7110: Added suppport for pinctrl in SPLYanhong Wang2-7/+15
Added support for pinctrl driver in SPL. Signed-off-by: Yanhong Wang <yanhong.wang@starfivetech.com>
2023-11-29clk: starfive: jh7110: Add full i2c clocksHal Feng1-18/+52
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-29video: starfive: Add StarFive VisionFive 2 board supportHal Feng3-2/+14
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-29pci: starfive: Add StarFive VisionFive 2 board supportHal Feng1-0/+9
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-29net: dwc_eth_qos: Add StarFive VisionFive 2 board supportHal Feng1-0/+13
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-29mmc: dw_mmc: Add StarFive VisionFive 2 board supportHal Feng1-0/+4
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-29i2c: 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>
2023-10-18usb: fix TRB_TRANSFER return null pointer issueMinda Chen1-0/+2
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-09-13Merge branch 'CR_7124_PCIe_Kevin.xie' into 'jh7110-master'andy.hu1-4/+45
CR 7124 PCIe dts & driver: Modified reset & link wait timing for better compatbility. See merge request sdk/u-boot!71
2023-09-11drivers: pci: Update reset & link wait timing as spec required.Kevin.xie1-4/+45
1. Modified reset assert duration to 100ms. 2. Wait 10-100 ms for link training. 3. If link is up, delay 100ms before doing any configuration space access. Reference spec: PCIe Base Spec r6.0 & CEM 2.0. Signed-off-by: Kevin.xie <kevin.xie@starfivetech.com>
2023-09-08vout: logo: emmc log show many timesKeith Zhao1-3/+0
the vout clocks on enable status, when no connecters (hdmi or mipi) this will cause emmc init many times need to closed the vout clocks Signed-off-by: Keith Zhao <keith.zhao@starfivetech.com>
2023-09-07drivers: fastboot: Fix the error of writing sparse file with fastbootXingyu Wu2-0/+7
Add config for max block size to write in MMC with sparse file. Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
2023-09-07drivers: fastboot: Add logical-block-size in getvar commandXingyu Wu1-0/+18
Add a new parameter to get "logical-block-size" in getvar command. Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
2023-09-07driver: fastboot: Add new flag to load image file without partitionXingyu Wu1-0/+47
Add new flag to load image file to preset address without partition. Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
2023-08-31usb: cdns: Add USB device supportMinda Chen2-2/+61
Add USB device support. Add dr_num_mode for changing the dr mode number, For changing the strings cause issues. For devkits, If using device, need to changed starfive,usb2-only to 1 and dr_num_mode to 2. Signed-off-by: Minda Chen <minda.chen@starfivetech.com>
2023-08-30Merge branch 'CR_7199_add_usb_host_minda' into 'jh7110-master'andy.hu1-9/+223
CR_7199 usb: cdns3: starfive: Add usb driver to support for JH7110 See merge request sdk/u-boot!66
2023-08-25usb: cdns3: starfive: Add usb driver to support for JH7110Yanhong Wang1-9/+223
Add usb driver to support for jh7110. Signed-off-by: Yanhong Wang <yanhong.wang@starfivetech.com> Signed-off-by: Minda Chen <minda.chen@starfivetech.com>
2023-08-23usb: cdns3: Set the SS EP config bit by usb SS speedMinda Chen1-4/+6
Set SS EP config bit by USB SS speed. Avoid transfer timeout. Signed-off-by: Minda Chen <minda.chen@starfivetech.com>
2023-07-26Merge branch 'CR_6570_SDBOOT_u-boot_william.qiu' into 'jh7110-master'andy.hu1-1/+78
CR_6570: mmc: starfive: add HS200 support See merge request sdk/u-boot!62
2023-07-26mmc: starfive: fix mmc device power-up sequenceWilliam Qiu1-0/+18
fix mmc device power-up sequence. Signed-off-by: William Qiu <william.qiu@starfivetech.com>
2023-07-26mmc: starfive: add HS200 supportWilliam Qiu1-1/+60
Add tuning and other related code to the driver to support HS200 mode. Signed-off-by: William Qiu <william.qiu@starfivetech.com>
2023-07-26pci: Getw correct config addr to support multi PCIMinda Chen1-8/+8
subtract the root bus number to get the correct config addr. Signed-off-by: Minda Chen <minda.chen@starfivetech.com>
2023-07-20board: starfive: evb: use dram_init in splSamin Guo1-2/+0
dram_init call fdtdec_setup_mem_size_base, so starfive_ddr.c do not need it. Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
2023-07-20Merge branch 'CR_6604_1G_DDR_SYNC_samin.guo' into 'jh7110-master'andy.hu6-68/+2706
CR6604:dram: jh7110: sync from devkits/vf2 See merge request sdk/u-boot!59
2023-07-19dram: starfive: jh7110: Add ddr4 supportSamin Guo6-68/+2706
Add ddr4 tuning support (sync from devkits) Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
2023-07-18uboot: hdmi logo causes kernel hdmi unstableKeith Zhao4-8/+172
The hdmi display is unstable after repeated reset blank panel or write panel Signed-off-by: Keith Zhao <keith.zhao@starfivetech.com>
2023-07-10dram: starfive: jh7110: Add 1G supportSamin Guo4-29/+46
add 1G DDR tuning cfg Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
2023-05-10Merge branch 'CR_5042_gmac_phy_delay_ds_samin.guo' into 'jh7110-master'andy.hu1-2/+20
CR5042: net: phy: motorcomm: add Pad Drive Strength Cfg See merge request sdk/u-boot!52
2023-04-23board: starfive: copyright: Standardize the copyright formatYanhong Wang13-14/+13
Unify the content format of the copyright section Signed-off-by: Yanhong Wang <yanhong.wang@starfivetech.com>
2023-04-20net: phy: motorcomm: add Pad Drive Strength CfgSamin Guo1-2/+20
YT8531 supports Pad Drive Strength configuration. Including rx_data/rx_clk, etc. Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
2023-04-04cache: sifive: Configure the l2 prefetcher parameterSamin Guo1-0/+93
The default configuration of the SIFIVE L2 Prefetcher may not be the best combination on the JH7110, and some parameters need to be modified to achieve the best performance. Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
2023-03-28pinctrl: starfive: Add .get_function ops for the gpio driverHal Feng1-0/+16
Support getting direction of gpio. Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2023-03-28pinctrl: starfive: Fix the crash problem when using gpio cmdHal Feng1-2/+2
starfive_pinctrl_priv struct is a priv of the parent device (pinctrl device), not the gpio device. Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2023-03-08hdmi: add hdmi driver in ubootkeith.zhao5-117/+690
hdmi can show a bitmap logo while uboot start and the default resolution is 1920x1080@60fps Signed-off-by: keith.zhao<keith.zhao@statfivetech.com>
2023-02-22i2c: designware_i2c: Add ACPI configure limitationMason Huo1-0/+2
As the i2c_designware_pci.c uses ACPI APIs, add the ACPI table generation configuration for its compilation. Signed-off-by: Mason Huo <mason.huo@starfivetech.com>
2023-02-22net: rtl8169: Add one more device IDMason Huo1-0/+3
Add the NIC device ID and adjust the bar regions. Signed-off-by: Mason Huo <mason.huo@starfivetech.com>
2023-02-22clk: starfive: Add PCIe clocks for PCIe controllerMason Huo1-0/+43
Add the stg clocks for PCIe controller. Signed-off-by: Mason Huo <mason.huo@starfivetech.com>
2023-02-22pci: Add Starfive JH7110 pcie driverMason Huo3-0/+520
Port the JH7110 pcie host driver from linux kernel. Signed-off-by: Mason Huo <mason.huo@starfivetech.com>
2023-02-17vout:dc8200: add vout mipi driverkeith.zhao17-2/+3479
add vout mipi pipeline driver in uboot Signed-off-by:keith.zhao<keith.zhao@statfivetech.com>
2023-02-17i2c:desigware-snps: add i2c clock configkeith.zhao3-5/+28
add clock config for i2c2 and i2c5 update the i2c driver clock config Signed-off-by:keith.zhao<keith.zhao@statfivetech.com>
2023-02-17power: add power subsystem driver in ubootkeith.zhao9-0/+459
add power subsystem in driver,include pmu pmic and regulator pmu : dc8200 power pmic : mipi power regulator : entend power Signed-off-by:keith.zhao<keith.zhao@statfivetech.com>
2023-02-02sysreset: provide SBI based sysreset driverHeinrich Schuchardt3-0/+64
Provide sysreset driver using the SBI system reset extension. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-by: Sean Anderson <seanga2@gmail.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Tested-by: Samuel Holland <samuel@sholland.org>
2023-01-06Merge branch 'CR_3006_OTP_yanhong.wang' into 'jh7110-master'andy.hu1-3/+12
CR_3006 misc: OTP: Starfive-jh7110: update the return value of starfive_otp_read See merge request sdk/u-boot!21
2023-01-05clk:starfive: Add vout clock driver for StarFive JH7110Yanhong Wang1-198/+433
Add vout clock driver for StarFive JH7110 Signed-off-by: Yanhong Wang <yanhong.wang@starfivetech.com>