summaryrefslogtreecommitdiff
path: root/drivers
AgeCommit message (Collapse)AuthorFilesLines
2022-12-07Merge remote-tracking branch 'sdk/jh7110-5.15.y-devel' into vf2-515-develVF2_v2.4.4Andy Hu2-6/+0
2022-12-06e24: xrp: remove from Kconfig and MakefileAndy Hu2-6/+0
since run git filter-repo, then need to remove from Kconfig and Makefile Signed-off-by: Andy Hu <andy.hu@starfivetech.com>
2022-12-02Merge tag 'JH7110_515_SDK_v3.3.0' into vf2-515-develJianlong Huang4-43/+138
version JH7110_515_SDK_v3.3.0 for JH7110 EVB board
2022-12-01Merge branch 'CR_2650_PWM_hal.feng' into 'jh7110-5.15.y-devel'andy.hu1-2/+1
CR 2650 PWM hal.feng See merge request sdk/linux!626
2022-12-01Merge branch 'CR_2653_QSPI_5.15_ziv.xu' into 'jh7110-5.15.y-devel'andy.hu3-41/+137
CR 2653 QSPI 5.15 ziv.xu See merge request sdk/linux!612
2022-11-30pwm: starfive: Use pm_runtime functions to disable clock when the device ↵Hal Feng1-2/+1
being removed So this can avoid disabling the pwm clock again when the pwm device is suspended and being removed. Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2022-11-26Merge tag 'JH7110_515_SDK_v3.2.0' into vf2-515-develJianlong Huang2-86/+195
version JH7110_515_SDK_v3.2.0 for JH7110 EVB board
2022-11-25Merge branch 'CR_2651_spi_dtbo_reload_faild_5.15_ziv.xu' into ↵andy.hu1-86/+185
'jh7110-5.15.y-devel' CR_2651_spi_dtbo_reload_faild_5.15_ziv.xu See merge request sdk/linux!619
2022-11-24drivers: nvme: Add precheck and delay for CQE pending status.Kevin.xie1-0/+10
To workaroud the NVMe I/O timeout problem in bootup S10udev case which caused by the CQE update lantancy. Signed-off-by: Kevin.xie <kevin.xie@starfivetech.com>
2022-11-24spi-pl022-starfive:fix the problem of spi overlay reloadziv.xu1-86/+185
fix the problem of spi overlay reload Signed-off-by: ziv.xu <ziv.xu@starfive.com>
2022-11-19Merge tag 'JH7110_515_SDK_v3.1.0' into vf2-515-develJianlong Huang19-293/+609
version JH7110_515_SDK_v3.1.0 for JH7110 EVB board
2022-11-18driver:spi-cadence-quadspi: enable qspiziv.xu3-41/+137
enable qspi Signed-off-by: ziv.xu <ziv.xu@starfive.com>
2022-11-17Merge branch 'CR_2429_spi_error_of_freq-5.15_ziv.xu' into 'jh7110-5.15.y-devel'andy.hu1-1/+7
CR 2429 spi error of freq 5.15 ziv.xu See merge request sdk/linux!603
2022-11-17Merge branch 'CR_2661_V4L2_Kevin.xie' into 'jh7110-5.15.y-devel'andy.hu1-2/+25
CR 2661 v4l2_driver: vin: Add skip frames for isp control. See merge request sdk/linux!610
2022-11-17Merge branch 'CR_2434_imx219_515_changhuang.liang' into 'jh7110-5.15.y-devel'andy.hu1-2/+4
CR_2434_imx219_515_changhuang.liang media: v4l2_driver: Supplement the missing runtime pm get ops on more than once stream_on cases. See merge request sdk/linux!595
2022-11-17Merge branch 'CR_2642_PCIe_Kevin.xie' into 'jh7110-5.15.y-devel'andy.hu1-0/+9
CR 2642 drivers: pci: Set PCIe PCI standard configuration ID. See merge request sdk/linux!613
2022-11-17Merge branch 'CR_2583_fix_usb_resume_hub_minda' into 'jh7110-5.15.y-devel'andy.hu1-1/+1
CR_2583 USB: core: Fix bug in resuming hub's handling of wakeup requests See merge request sdk/linux!600
2022-11-17Merge branch 'CR_2588_515_watchdog_timeleft_Xingyu.Wu' into ↵andy.hu1-27/+31
'jh7110-5.15.y-devel' CR_2588_515_watchdog_timeleft_Xingyu.Wu See merge request sdk/linux!597
2022-11-15drivers: pci: Set PCIe PCI standard configuration ID.Kevin.xie1-0/+9
Class - PCI-to-PCI bridge. Revision - 2. Signed-off-by: Kevin.xie <kevin.xie@starfivetech.com>
2022-11-15v4l2_driver: vin: Add skip frames for isp control.Kevin.xie1-2/+25
The duration of extra isp control skip frames are fixed to 1 second. Signed-off-by: Kevin.xie <kevin.xie@starfivetech.com>
2022-11-14drm:verisilicon:hdmi-audio:Adjust when to configure registersXingyu Wu1-21/+21
Adjust when to configure registers before HDMI suspend. Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
2022-11-14dma:dw:Add stg_axi clock and reset of noc_busXingyu Wu2-0/+18
Add 'JH7110_NOC_BUS_CLK_STG_AXI' clock and 'RSTN_U0_NOC_BUS_STG_AXI_N' reset. Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
2022-11-14riscv:linux:drm : fix vout pm bugshengyang.chen3-187/+123
fix display problem of hdmi sys pm Signed-off-by: shengyang.chen<shengyang.chen@starfivetech.com>
2022-11-14riscv:linux:drm: fix double display bugshengyang.chen2-30/+44
fix double display bug Signed-off-by: shengyang.chen<shengyang.chen@starfivetech.com>
2022-11-14riscv:linux:drm: Add basic runtime and system pm support for voutshengyang.chen8-242/+426
Add basic runtime and system pm support for vout remove some useless clk/rst function and calling in vs_dc.c improve vout driver structure Signed-off-by: shengyang.chen<shengyang.chen@starfivetech.com>
2022-11-14clk:starfive:vout:Add parent about disp_apb clkXingyu Wu1-2/+2
Clock "u0_pclk_mux_func_pclk" is the parent of "disp_apb" clock. Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
2022-11-14clk:starfive:vout:Add runtime and system pmXingyu Wu2-38/+111
Add runtime and system pm in vout clock tree driver. Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
2022-11-11spi-pl022-starfive.c: prompt warning when frequency does not surpportziv.xu1-1/+7
prompt warning when frequency does not surpport Signed-off-by: ziv.xu <ziv.xu@starfive.com>
2022-11-10USB: core: Fix bug in resuming hub's handling of wakeup requestsAlan Stern1-1/+1
Bugzilla #213839 reports a 7-port hub that doesn't work properly when devices are plugged into some of the ports; the kernel goes into an unending disconnect/reinitialize loop as shown in the bug report. This "7-port hub" comprises two four-port hubs with one plugged into the other; the failures occur when a device is plugged into one of the downstream hub's ports. (These hubs have other problems too. For example, they bill themselves as USB-2.0 compliant but they only run at full speed.) It turns out that the failures are caused by bugs in both the kernel and the hub. The hub's bug is that it reports a different bmAttributes value in its configuration descriptor following a remote wakeup (0xe0 before, 0xc0 after -- the wakeup-support bit has changed). The kernel's bug is inside the hub driver's resume handler. When hub_activate() sees that one of the hub's downstream ports got a wakeup request from a child device, it notes this fact by setting the corresponding bit in the hub->change_bits variable. But this variable is meant for connection changes, not wakeup events; setting it causes the driver to believe the downstream port has been disconnected and then connected again (in addition to having received a wakeup request). Because of this, the hub driver then tries to check whether the device currently plugged into the downstream port is the same as the device that had been attached there before. Normally this check succeeds and wakeup handling continues with no harm done (which is why the bug remained undetected until now). But with these dodgy hubs, the check fails because the config descriptor has changed. This causes the hub driver to reinitialize the child device, leading to the disconnect/reinitialize loop described in the bug report. The proper way to note reception of a downstream wakeup request is to set a bit in the hub->event_bits variable instead of hub->change_bits. That way the hub driver will realize that something has happened to the port but will not think the port and child device have been disconnected. This patch makes that change. Cc: <stable@vger.kernel.org> Tested-by: Jonathan McDowell <noodles@earth.li> Signed-off-by: Alan Stern <stern@rowland.harvard.edu> Link: https://lore.kernel.org/r/YdCw7nSfWYPKWQoD@rowland.harvard.edu Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: minda.chen <minda.chen@starfivetech.com>
2022-11-10watchdog: starfive: Get timeleft correctlyXingyu Wu1-27/+31
Use flag to count timeleft and the flag is base on reading register instead of interrupt handler function. Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
2022-11-10Merge tag 'JH7110_515_SDK_v3.0.0-rc3' into vf2-515-develJianlong Huang1-18/+8
version JH7110_515_SDK_v3.0.0-rc3 for JH7110 EVB board
2022-11-09net:phy:motorcomm: Fix the problem that phytool cannot be used by YT8531Samin Guo1-18/+8
phy_read_status should not judge the auto negotiation speed, which will cause 0x1e to be frequently modified. JH7110B In different speed modes, the tx_inverted needs to be dynamically updated to match the timming. known issue: Function yt8521_read_status, it will be executed once per second. Can read and write ext reg (0xa001/a002/a003). This may causes the ext value read by the phytool always is 0. $ phytool write eth0/0/0x1e 0xa001 $ phytool read eth0/0/0x1f 0000 To avoid this problem, you can read 0x1f as fast as possible after writing 0x1e. $ phytool write eth0/0/0x1e 0xa001; phytool read eth0/0/0x1f 0x8160 Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
2022-11-09riscv:linux:vout:mipikeith.zhao1-1/+55
add 800*1280 I2C read to detect the status of connection Signed-off-by: keith <keith.zhao@starfivetech.com>
2022-11-09media: v4l2_driver: Supplement the missing runtime pm get ops on more than ↵Kevin.xie1-2/+4
once stream_on cases. For example, if we run stf_isp_ctrl & v4l2test at the same time, s_stream for sensor will be called twice, so that rpm should be got twice too. Signed-off-by: Kevin.xie <kevin.xie@starfivetech.com>
2022-11-03riscv:linux:vout:mipikeith.zhao13-462/+882
mipi dsi driver add 800*1280 panel : update panel driver code Signed-off-by: keith <keith.zhao@starfivetech.com>
2022-11-03net:stmmac:dwc-qos: add support for external rmii_rtx clocksSamin Guo1-0/+11
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-03regulator:axp15060:Remove sdio vdd regulatorJianlong Huang1-5/+0
Visionfive2 emmc is default 1.8V, there is no need to controll the voltage. Remove sdio_vdd node and code. Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2022-11-03dts: starfive: enhance SD card io Output Drive StrengthJianlong Huang1-2/+2
SD card gpio is generic gpio on visionfive2, the default output drive strength may be not enough, some sd card do not work. So enhance the gpio output drive strength to max. But on visionfive2, the sd card gpio is fixed 3.3V, there is no need to switch_voltage and not support uhs mode. Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2022-11-03Revert "v4l2: imx219 use pinctrl"Jianlong Huang1-66/+4
This patch just for evb This reverts commit 8d7c702d7bc0fef9ee5882db660390801bbccaa7.
2022-11-03dts: starfive: Modified PCIe pin setting for bring up PCIe USB hub.Kevin.xie1-25/+0
Based on VisionFive V2 SCH. Signed-off-by: Kevin.xie <kevin.xie@starfivetech.com>
2022-11-03riscv:linux:drm:mipidsishengyang.chen1-5/+5
update dphy reg config for visionfive2 board Signed-off-by:shengyang.chen<shengyang.chen@starfivetech.com>
2022-11-03v4l2: add imx219 supportchanghuang.liang6-33/+11
dts: add imx219 configure Signed-off-by: changhuang.liang <changhuang.liang@starfivetech.com>
2022-11-03net: phy: motorcomm: Support the YT8531 gigabit PHYJianlong Huang1-1/+1
Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2022-11-02Merge branch 'CR_2517_sec_jiajie.ho' into 'jh7110-5.15.y-devel'andy.hu1-1/+3
CR_2517_515:crypto:starfive: Fix "Unbalanced pm_runtime_enable!" warning See merge request sdk/linux!583
2022-11-02Merge branch 'CR_2522_ECO_EVB_515_samin.guo' into 'jh7110-5.15.y-devel'andy.hu1-11/+112
CR_2522:support gmac with jh7110B-evb See merge request sdk/linux!585
2022-11-02Merge branch 'CR_2395_I2C_hal.feng' into 'jh7110-5.15.y-devel'andy.hu2-2/+2
CR_2395_I2C_hal.feng See merge request sdk/linux!581
2022-11-01net:phy:motorcomm: support yt8521 invertedSamin Guo1-26/+36
jh7110B need yt8521 inverted. Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
2022-11-01net:phy:motorcomm: support modifying RGMII_TX_CLK delay train from dtsSamin Guo1-11/+102
support use original or inverted RGMII_TX_CLK delay train. 10M/100M/1000M can be configured independently. tx_inverted_xx = val; for example: &gmac0 { #address-cells = <1>; #size-cells = <0>; phy0: ethernet-phy@0 { tx_inverted_10 = <0>; tx_inverted_100 = <1>; tx_inverted_1000 = <1>; }; }; 0: original (default) 1: inverted Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
2022-11-01CR_2517:crypto:starfive: Fix "Unbalanced pm_runtime_enable!" warningJia Jie Ho1-1/+3
Crypto driver will probe multiple times waiting for DMA to be ready, each time calling pm_runtime_enable(). Only call pm_runtime_enable() when it's not already enabled. Signed-off-by: Jia Jie Ho <jiajie.ho@starfivetech.com>
2022-11-01spi-pl022-starfive.c: make spi work without dmaziv.xu2-3/+5
make spi work without dma Signed-off-by: ziv.xu <ziv.xu@starfive.com>