summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2023-02-03Merge branch 'CR_3137_usb_hiber_notify_minda' into 'jh7110-5.15.y-devel'andy.hu3-1/+103
CR_3137 usb: cdns3: add hibernation pm notifier to set roothub wakeup See merge request sdk/linux!679
2023-02-03Merge branch 'CR_3170_spi_compiled_as_module_5.15_ziv.xu' into ↵andy.hu1-3/+8
'jh7110-5.15.y-devel' CR_3170: spi-pl022-starfive:Enable spi to be compiled into modules See merge request sdk/linux!677
2023-02-03Merge branch 'CR_3231_515_PWMDAC_module_Xingyu.Wu' into 'jh7110-5.15.y-devel'andy.hu2-2/+9
CR_3231_515_PWMDAC_module_Xingyu.Wu See merge request sdk/linux!680
2023-02-03Merge branch 'CR_3157_imx219_515_changhuang.liang' into 'jh7110-5.15.y-devel'andy.hu1-1/+1
CR_3157_imx219_515_changhuang.liang media: starfive: Modify support imx219 compile to module See merge request sdk/linux!675
2023-02-03Merge branch 'CR_2339_usb_read_using_sysport_minda' into 'jh7110-5.15.y-devel'andy.hu7-3/+145
CR 2339 usb: xhci: To improve performance, using sysport for bulk read. See merge request sdk/linux!590
2023-02-03CR_3151_TDM_Hibernation_walker.chenWalker Chen1-52/+48
Resolved the error of reording and playing simultaneously after performing hibernation resume. Signed-off-by: Walker Chen <walker.chen@starfivetech.com>
2023-02-01usb: cdns3: add hibernation pm notifier to set roothub wakeupminda.chen3-1/+103
In hibernation resume case. usb devices maybe not emulated, roothub is suspended, In this case, usb devices will be resume fail. Set roothub active while hibernation resume. Signed-off-by: minda.chen <minda.chen@starfivetech.com>
2023-02-01sound: starfive: pwmdac: Support module buildingXingyu Wu2-2/+9
Change Makefile and Kconfig to support module building. Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
2023-01-31riscv: defconfig: Enable StarFive hwrngJia Jie Ho1-1/+1
Add StarFive JH7110 hwrng config to VisionFive 2 defconfig Signed-off-by: Jia Jie Ho <jiajie.ho@starfivetech.com>
2023-01-31v4l2_driver: isp: Save & resore context regs during stream on/off.Kevin.xie2-13/+78
Besides, add some log in dump reg function to distinguish different groups. Signed-off-by: Kevin.xie <kevin.xie@starfivetech.com>
2023-01-30riscv: linux: vout: fix hdmi hibernation resume failure cause by pmicshengyang.chen1-1/+24
fix hdmi hibernation resume failure cause by pmic Signed-off-by: shengyang.chen<shengyang.chen@starfivetech.com>
2023-01-29usb:xhci:To improve performance,usb using lowmem for bulk xfer.minda.chen7-3/+145
Generate an usb low memory pool for usb 3.0 host read/write transfer, default size is 8M. Signed-off-by: minda.chen <minda.chen@starfivetech.com>
2023-01-19Merge branch 'CR_3031_disable_wifi_p2p_michael.zhu' into 'vf2-515-devel'andy.hu1-1/+1
CR_3031: net:wireless:eswin:disable p2p function See merge request sbc/linux!61
2023-01-19Merge tag 'JH7110_515_SDK_v4.0.1' into vf2-515-develAndy Hu7-66/+69
version JH7110_515_SDK_v4.0.1 for JH7110 EVB board 1. Fix hibernation issues: clk tree, gpio, gpu, tempsensor 2. Add gpio reset feature in opensbi 3. Fix usb device issue for debian
2023-01-18spi-pl022-starfive:Enable spi to be compiled into modulesziv.xu1-3/+8
Enable spi to be compiled into modules Signed-off-by: ziv.xu <ziv.xu@starfive.com>
2023-01-18Merge branch 'CR_3149_TempSensor_hal.feng' into 'jh7110-5.15.y-devel'andy.hu1-43/+43
CR 3149 TempSensor hal.feng See merge request sdk/linux!676
2023-01-18hwmon: sfctemp: Fix the problem that cannot disable sfctemp after enabling PMSamin Guo1-43/+43
[runtime_pm off] After Linux starts, it will enable clk and put tempsensor in standby state. When 'cat /sys/class/hwmon/hwmon0/temp1_input' is executed, will switch to the run state, and return the value of the sensor after the interrupt is generated. $ cat /sys/kernel/debug/clk/clk_summary | grep "temp_sensor" enable prepare protect duty hardware clock count count count rate accuracy phase cycle enable ------------------------------------------------------------------------------------------- u0_temp_sensor_clk_temp 1 1 0 1000000 0 0 50000 Y u0_temp_sensor_clk_apb0 1 1 0 49500000 0 0 50000 Y $ cat /sys/class/hwmon/hwmon0/temp1_input 46135 $ cat /sys/class/hwmon/hwmon0/temp1_enable 1 You can 'echo 0 >/sys/class/hwmon/hwmon0/temp1_enable' to turn off the tempsensor and clk. $ echo 0 > /sys/class/hwmon/hwmon0/temp1_enable $ cat /sys/kernel/debug/clk/clk_summary | grep "temp_sensor" enable prepare protect duty hardware clock count count count rate accuracy phase cycle enable ------------------------------------------------------------------------------------------- u0_temp_sensor_clk_temp 0 0 0 1000000 0 0 50000 N u0_temp_sensor_clk_apb0 0 0 0 49500000 0 0 50000 N $ cat /sys/class/hwmon/hwmon0/temp1_enable 0 $ cat /sys/class/hwmon/hwmon0/temp1_input cat: read error: No data available [runtime_pm on] When runtime_pm is turned on, sfctemp will automatically enter the suspend state and close clk after the system is started. $ cat /sys/kernel/debug/clk/clk_summary | grep "temp_sensor" enable prepare protect duty hardware clock count count count rate accuracy phase cycle enable ------------------------------------------------------------------------------------------- u0_temp_sensor_clk_temp 0 0 0 1000000 0 0 50000 N u0_temp_sensor_clk_apb0 0 0 0 49500000 0 0 50000 N when 'cat /sys/class/hwmon/hwmon0/temp1_input', it will call starfive_temp_resume, enable clk and put sfctemp into power on state. $ cat /sys/class/hwmon/hwmon0/temp1_input 46235 After the interrupt is generated and the sensor value is obtained, it will enter the suspend state again. so, hardware-enable-stats is always 'N'. Of course, in this mode (runtime_pm on), it also supports the opening and closing of functions (in fact, clk is not directly operated, and the opening and closing of clk are controlled by runtime_pm) $ cat /sys/class/hwmon/hwmon0/temp1_input 46235 $ cat /sys/class/hwmon/hwmon0/temp1_enable 1 $ echo 0 > /sys/class/hwmon/hwmon0/temp1_enable $ cat /sys/class/hwmon/hwmon0/temp1_enable 0 $ cat /sys/class/hwmon/hwmon0/temp1_input cat: read error: No data available Signed-off-by: Samin Guo <samin.guo@starfivetech.com>
2023-01-17Merge branch 'CR_2956_gpu_shanlong.li' into 'jh7110-5.15.y-devel'andy.hu3-2/+2
CR_2956: gpu:driver: fix up hibernation resume problem See merge request sdk/linux!672
2023-01-17net:wireless:eswin:disable p2p functionMichaelZhuxx1-1/+1
To fix dynamic naming issue, disable CONFIG_ECRNX_P2P for wifi ECR6600U Signed-off-by: MichaelZhuxx <michael.zhu@starfivetech.com>
2023-01-17Merge branch 'CR_3027_pinctrl_hal.feng' into 'jh7110-5.15.y-devel'andy.hu2-16/+18
CR 3027 pinctrl hal.feng See merge request sdk/linux!671
2023-01-17Merge branch 'CR_3058_hibernation_clocktree_Xingyu.Wu' into ↵andy.hu1-5/+6
'jh7110-5.15.y-devel' CR_3058_hibernation_clocktree_Xingyu.Wu See merge request sdk/linux!670
2023-01-17media: starfive: Modify support imx219 compile to moduleChanghuang Liang1-1/+1
Modify support imx219 compile to module. Signed-off-by: Changhuang Liang <changhuang.liang@starfivetech.com>
2023-01-16gpu:driver: fix up hibernation resume problemshanlong.li3-2/+2
fix up hibernation resume problem Signed-off-by: shanlong.li <shanlong.li@starfivetech.com>
2023-01-13pinctrl: starfive: Save all register values when suspending and restore them ↵Hal Feng2-16/+18
when resuming Restore the other registers besides irq registers when resuming. Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2023-01-13clk: starfive: Fixed UART3-5 error after resumeXingyu Wu1-5/+6
Fixed UART3-5 error after hibernation by adjusting register shift. Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
2023-01-11Merge tag 'JH7110_515_SDK_v4.0.0-rc2' into vf2-515-develVF2_v2.8.0Andy Hu18-189/+448
version JH7110_515_SDK_v4.0.0-rc2 for JH7110 EVB board 1. Fix hibernation issue: spdif, pwmdac, tdm, pdm, wave511, wave420l, jpu, can, isp, clk tree, gmac, gpio 2. Porting the upstream opensbi and add pm patch for hibernation 3. #3120 omx fix low probability of segment fault when decoding finish
2023-01-11Merge branch 'CR_3121_VF2_Hibernation_mason.huo' into 'vf2-515-devel'andy.hu1-4/+3
CR_3121 Add hibernation support for VF2 See merge request sbc/linux!60
2023-01-11Merge branch 'CR_2862_gt9xx_ts_515_changhuang.liang' into 'vf2-515-devel'andy.hu6-0/+1985
CR_2862_gt9xx_ts_515_changhuang.liang input: touchscreen: Add gt9xx driver support See merge request sbc/linux!56
2023-01-11Merge branch 'CR2876_vf2_make_gpio_reset_priority_low_minda' into ↵andy.hu1-1/+1
'vf2-515-devel' CR_2876 dts: gpio: make gpio reset priority lower than pmic reset See merge request sbc/linux!58
2023-01-11Merge branch 'CR_3027_pinctrl_hal.feng' into 'jh7110-5.15.y-devel'andy.hu3-20/+43
CR 3027 pinctrl hal.feng See merge request sdk/linux!669
2023-01-11Merge branch 'CR_3122_fix_usb_resume_device_minda' into 'jh7110-5.15.y-devel'andy.hu1-19/+30
CR_3122 usb: phy: init phy in resume function See merge request sdk/linux!667
2023-01-11Merge branch 'CR_3051_ts_515_changhuang.liang' into 'jh7110-5.15.y-devel'andy.hu1-23/+20
CR_3051_ts_515_changhuang.liang input: touchscreen: tinker_ft5406: Delete unused code. See merge request sdk/linux!661
2023-01-11Merge branch 'CR_3054_vin_system_pm_changhuang.liang' into 'jh7110-5.15.y-devel'andy.hu4-114/+77
CR_3054_vin_system_pm_changhuang.liang media: starfive: Delete unused USE_MEDIA_PIPELINE macro code See merge request sdk/linux!665
2023-01-11Merge branch 'CR_3025_hibernation_tdm_walker.chen' into 'jh7110-5.15.y-devel'andy.hu2-1/+48
CR_3025_hibernation_tdm_walker.chen See merge request sdk/linux!666
2023-01-11Merge branch 'CR_3058_hibernation_clocktree_Xingyu.Wu' into ↵andy.hu2-0/+185
'jh7110-5.15.y-devel' CR_3058_hibernation_clocktree_Xingyu.Wu See merge request sdk/linux!668
2023-01-11Merge branch 'CR_2964_hibernation_spdif_Xingyu.Wu' into 'jh7110-5.15.y-devel'andy.hu3-4/+29
CR_2964_hibernation_spdif_Xingyu.Wu See merge request sdk/linux!664
2023-01-11Merge branch 'CR_3021_hibernation_pwmdac_Xingyu.Wu' into 'jh7110-5.15.y-devel'andy.hu2-8/+16
CR_3021_hibernation_pwmdac_Xingyu.Wu See merge request sdk/linux!663
2023-01-11clk: starfive: Add funtions of saving and restoring data about SYS, AON and STGXingyu Wu2-0/+185
Add 'save_context' ops to save register value of clock and 'restore_context' ops to restore the value to register. The ops only suitable for SYS, AON and STG clock tree not ISP and VOUT. Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
2023-01-11usb: phy: init phy in resume functionminda.chen1-19/+30
usb phy will be reset in suspend procedure. After resume. Some devices can not work. In usb resume, init phy again. Signed-off-by: minda.chen <minda.chen@starfivetech.com>
2023-01-11CR_3025_Hibernation_TDM_Walker.chenWalker Chen2-1/+48
Fixed playback failed after hibernation by saving and restoring registers' data. Signed-off-by: Walker Chen <walker.chen@starfivetech.com>
2023-01-11media: starfive: Update VIN system PM operationChanghuang Liang2-39/+63
Update VIN system PM operation, fixed multi open the same video node cause resume fail. Signed-off-by: Changhuang Liang <changhuang.liang@starfivetech.com>
2023-01-11media: starfive: stf_video: Multi open only set power one timeChanghuang Liang2-6/+17
Multi open the same video node only set power one time. Signed-off-by: Changhuang Liang <changhuang.liang@starfivetech.com>
2023-01-11media: starfive: Delete unused USE_MEDIA_PIPELINE macro codeChanghuang Liang1-73/+1
Delete unused USE_MEDIA_PIPELINE macro code. Signed-off-by: Changhuang Liang <changhuang.liang@starfivetech.com>
2023-01-11sound: starfive: pwmdac: Fixed playback failed after hibernationXingyu Wu2-8/+16
Fixed playback failed after hibernation by saving and restoring register data. Fixed error when open PWMDAC_PCM. Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
2023-01-11sound: starfive: spdif: Fixed playback failed after hibernationXingyu Wu3-4/+29
Fixed playback failed after hibernation by saving and restoring registers' data. Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
2023-01-10rsicv: deconfig: Add hibernation and swap partitionmason.huo1-0/+2
Enable the hibernation feature, and config the default hibernation swap partition by partition label. Signed-off-by: mason.huo <mason.huo@starfivetech.com>
2023-01-10riscv: deconfig: Enable system suspend and pm testmason.huo1-4/+1
Config the system suspend feature, enable pm test feature. Signed-off-by: mason.huo <mason.huo@starfivetech.com>
2023-01-10dts: gpio: make gpio reset priority lower than pmic resetminda.chen1-1/+1
For sbi pmic reset priority is 192. To make pmic reset work. Make gpio reset priority lower. Signed-off-by: minda.chen <minda.chen@starfivetech.com>
2023-01-09pinctrl: starfive: Save register values when suspending and restore them ↵Hal Feng2-0/+24
when resuming Restore the register configuration after resuming. Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2023-01-09input: touchscreen: tinker_ft5406: Update log showChanghuang Liang1-20/+19
Update log show. Signed-off-by: Changhuang Liang <changhuang.liang@starfivetech.com>