summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2022-11-18driver:spi-cadence-quadspi: enable qspiziv.xu4-43/+158
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-17Merge branch 'CR_2621_CPUIDLE_mason.huo' into 'jh7110-5.15.y-devel'andy.hu1-16/+0
CR_2621 riscv: dts: Remove unsupported cpuidle state See merge request sdk/linux!608
2022-11-17Merge branch 'CR_2435_hibernation-for-main_5.15_vout_shengyang.chen' into ↵andy.hu14-376/+586
'jh7110-5.15.y-devel' CR_2435: clk:starfive:vout:Add runtime and system pm && riscv:linux:drm: Add runtime and system pm See merge request sdk/linux!596
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-15starfive:defconfig: modify defconfig to enable qspiziv.xu1-0/+5
modify defconfig to enable qspi Signed-off-by: ziv.xu <ziv.xu@starfive.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 Wu3-4/+24
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.chen4-193/+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-14linux:dts:starfive: remove some useless port of vout dtsshengyang.chen1-2/+0
fix double display bug remove some useless port of vout dts 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-14linux:dts:starfive: Add pm support for vout dtsshengyang.chen1-40/+31
Add pm support for vout dts remove some useless port of vout dts 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-11riscv: dts: Remove unsupported cpuidle statemason.huo1-16/+0
The cpuidle state1 is also implemented in sbi with WFI C state, but it cause audio play failed. Remove the cpuidle state1. Signed-off-by: mason.huo <mason.huo@starfivetech.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-09Merge branch 'CR_2553_ytphy_515_samin.guo' into 'jh7110-5.15.y-devel'andy.hu1-18/+8
CR_2553: 515: Use ytphy_link_change_notify to detect link changes by yt8521/YT8531. See merge request sdk/linux!592
2022-11-09Merge branch 'CR_2556_vf2_515_DRM_mipi_new_panel_keith.zhao' into ↵jianlong.huang2-3/+57
'vf2-515-devel' 800*1280屏幕 支持开机探测 解决默认状态为 connected 的问题 See merge request sbc/linux!47
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.zhao2-3/+57
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-03Revert "dts:starfive:Disable spi"Jianlong Huang1-1/+1
Have fixed spi issue which lead to crash booting. This reverts commit bb1b47228930974ab386badc2544a2dbd49ddc18.
2022-11-03configs:Sync configs of jh7110Jianlong Huang1-0/+2
+CONFIG_PM_DEBUG=y +CONFIG_PM_ADVANCED_DEBUG=y Signed-off-by: Jianlong Huang <jianlong.huang@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-03riscv:linux:vout:mipikeith.zhao4-17/+61
mipi dsi driver add 800*1280 panel: update dts and config Signed-off-by: keith <keith.zhao@starfivetech.com>
2022-11-03configs:starfive:Default CPUFREQ governor ondemandJianlong Huang1-1/+1
Change Default CPUFREQ governor to ondemand. Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2022-11-03regulator:axp1506:Remove regulator ALDO4Jianlong Huang1-1/+0
Fix bug, remove sdio_vdd and remove ALDO4 enum. Which may cause cpu freq don't work. Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2022-11-03dts:starfive:Disable spiJianlong Huang1-1/+1
System crash when booting due to pl022_runtime_suspend. Next version will fix it. Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2022-11-03configs: enable CPU_FREQJianlong Huang1-0/+8
enable cpu freq function Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2022-11-03net:stmmac:dwc-qos: add support for external rmii_rtx clocksSamin Guo2-4/+19
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 Huang2-13/+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-03configfs: Enable SND_SOC_STARFIVE_I2SJianlong Huang1-0/+1
Support hdmi audio Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2022-11-03arch:dts:starfive:Enable i2stx_4ch0 nodeJianlong Huang1-0/+16
Add mclk_ext pin and enable i2stx_4ch0 Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2022-11-03riscv:dts:jh7110: Modify CMA reserved space to better support 2G DRAMJianlong Huang1-1/+1
When the DDR is 2G (0x40000000-0xc0000000), it may cause address usage problems. Signed-off-by: Samin Guo <samin.guo@starfivetech.com> Signed-off-by: Jianlong Huang <jianlong.huang@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-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. Signed-off-by: Samin Guo <samin.guo@linux.starfivetech.com>
2022-11-03dts: starfive: Add A11 dts for vf2 version 1.1 boardJianlong Huang4-12/+230
Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2022-11-03dts: starfive: Enable gpio restartJianlong Huang2-0/+8
Add gpio restart dts node Enable gpio restart config Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2022-11-03dts: starfive: Enable usb device nodeJianlong Huang1-6/+18
Sync jh7110 usb device node and enable Sync jh7110 imx219 compatible name Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2022-11-03configs: visionfive2: Enable usb device configJianlong Huang1-0/+5
Sync jh7110 usb device config Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>