summaryrefslogtreecommitdiff
path: root/drivers
AgeCommit message (Collapse)AuthorFilesLines
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-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-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-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>
2023-01-09input: touchscreen: tinker_ft5406: Enable multipoint functionChanghuang Liang1-1/+1
Enable multipoint function. Signed-off-by: Changhuang Liang <changhuang.liang@starfivetech.com>
2023-01-09input: touchscreen: tinker_ft5406: Delete unused code.Changhuang Liang1-2/+0
Delete unused code avoid warning. Signed-off-by: Changhuang Liang <changhuang.liang@starfivetech.com>
2023-01-09pinctrl: starfive: Move pm ops to pinctrl-starfive-jh7110.cHal Feng3-20/+19
Because different SoCs have their own registers. We want to save all registers in the pm suspend function and restore them in the pm resume function. Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
2023-01-07Merge tag 'JH7110_515_SDK_v4.0.0-rc1' into vf2-515-develAndy Hu9-43/+1601
version JH7110_515_SDK_v4.0.0-rc1 for JH7110 EVB board 1. #2828 support linux perf tool 2. #3049 merge hibernation branch to SDK 3. #2708 uboot support vout clk driver 4. #3006 uboot handle OTP return value 5. #2969, #3039 venc jpu fix futex issue
2023-01-06Merge branch 'CR_3049_Hibernation_mason.huo' into 'jh7110-5.15.y-devel'andy.hu4-43/+247
CR_3049 Add hibernation feature See merge request sdk/linux!658
2023-01-06Hibernation: canfd: Add system PM API for can/canfdWilliam Qiu1-3/+43
Add system PM API for can/canfd. Signed-off-by: William Qiu <william.qiu@starfivetech.com>
2023-01-06input: touchscreen: Add gt9xx driver supportChanghuang Liang3-0/+1974
Add gt9xx touchscreen driver support in jh7110 platform. Signed-off-by: Changhuang Liang <changhuang.liang@starfivetech.com>
2023-01-05irqchip/irq-sifive-plic: Add syscore callbacks for hibernationmason.huo1-2/+91
The priority and enable registers of plic will be reset during hibernation power cycle in poweroff mode, add the syscore callbacks to save/restore those registers. Signed-off-by: mason.huo <mason.huo@starfivetech.com>
2023-01-05timer-starfive:add pm ops for timerziv.xu2-38/+113
add system pm ops for timer Signed-off-by: ziv.xu <ziv.xu@starfive.com>
2023-01-03RISC-V: Support CPUID for risc-v in perfJoão Mário Domingos1-0/+18
This patch creates the header.c file for the risc-v architecture and introduces support for PMU identification through sysfs. It is now possible to configure pmu-events in risc-v. Depends on patch [1], that introduces the id sysfs file. Signed-off-by: João Mário Domingos <joao.mario@tecnico.ulisboa.pt> Signed-off-by: minda.chen <minda.chen@starfivetech.com>
2023-01-03RISC-V: Create unique identification for SoC PMUJoão Mário Domingos1-0/+47
The SBI PMU platform driver did not provide any identification for perf events matching. This patch introduces a new sysfs file inside the platform device (soc:pmu/id) for pmu identification. The identification is a 64-bit value generated as: [63-32]: mvendorid; [31]: marchid[MSB]; [30-16]: marchid[15-0]; [15-0]: mimpid[15MSBs]; The CSRs are detailed in the RISC-V privileged spec [1]. The marchid is split in MSB + 15LSBs, due to the MSB being used for open-source architecture identification. [1] https://github.com/riscv/riscv-isa-manual Signed-off-by: João Mário Domingos <joao.mario@tecnico.ulisboa.pt>
2023-01-03RISC-V: Add sscofpmf extension supportAtish Patra1-5/+217
The sscofpmf extension allows counter overflow and filtering for programmable counters. Enable the perf driver to handle the overflow interrupt. The overflow interrupt is a hart local interrupt. Thus, per cpu overflow interrupts are setup as a child under the root INTC irq domain. Signed-off-by: Atish Patra <atish.patra@wdc.com> Signed-off-by: Atish Patra <atishp@rivosinc.com>
2023-01-03RISC-V: Add perf platform driver based on SBI PMU extensionAtish Patra4-0/+591
RISC-V SBI specification added a PMU extension that allows to configure start/stop any pmu counter. The RISC-V perf can use most of the generic perf features except interrupt overflow and event filtering based on privilege mode which will be added in future. It also allows to monitor a handful of firmware counters that can provide insights into firmware activity during a performance analysis. Signed-off-by: Atish Patra <atish.patra@wdc.com> Signed-off-by: Atish Patra <atishp@rivosinc.com>
2023-01-03RISC-V: Add a simple platform driver for RISC-V legacy perfAtish Patra3-0/+153
The old RISC-V perf implementation allowed counting of only cycle/instruction counters using perf. Restore that feature by implementing a simple platform driver under a separate config to provide backward compatibility. Any existing software stack will continue to work as it is. However, it provides an easy way out in future where we can remove the legacy driver. Reviewed-by: Anup Patel <anup@brainfault.org> Signed-off-by: Atish Patra <atish.patra@wdc.com> Signed-off-by: Atish Patra <atishp@rivosinc.com>
2023-01-03RISC-V: Add a perf core library for pmu driversAtish Patra3-0/+333
Implement a perf core library that can support all the essential perf features in future. It can also accommodate any type of PMU implementation in future. Currently, both SBI based perf driver and legacy driver implemented uses the library. Most of the common perf functionalities are kept in this core library wile PMU specific driver can implement PMU specific features. For example, the SBI specific functionality will be implemented in the SBI specific driver. Reviewed-by: Anup Patel <anup@brainfault.org> Signed-off-by: Atish Patra <atish.patra@wdc.com> Signed-off-by: Atish Patra <atishp@rivosinc.com>
2022-12-30Merge tag 'JH7110_515_SDK_v3.6.0' into vf2-515-develAndy Hu3-0/+420
version JH7110_515_SDK_v3.6.0 for JH7110 EVB board
2022-12-30Merge branch 'CR_2506_515_usb_wifi_jianlong' into 'vf2-515-devel'andy.hu109-0/+52820
CR_2506_515 net:wireless:Support eswin usb wifi ECR6600U See merge request sbc/linux!45
2022-12-30net:wireless:Support eswin usb wifi ECR6600UJianlong Huang109-0/+52820
Add usb wifi ECR6600U driver Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
2022-12-29Merge branch 'CR_2861_ts_515_changhuang.liang' into 'jh7110-5.15.y-devel'andy.hu3-0/+420
CR_2861_ts_515_changhuang.liang input: touchscreen: Add tinker_ft5406 driver support See merge request sdk/linux!654
2022-12-23input: touchscreen: tinker_ft5406: Fixed show more error log bugChanghuang Liang1-17/+12
Fixed show more error log bug when not attach the touchscreen. Signed-off-by: Changhuang Liang <changhuang.liang@starfivetech.com>
2022-12-22input: touchscreen: tinker_ft5406: Add open&close ioctlChanghuang Liang1-18/+14
Add open&close ioctl. Signed-off-by: Changhuang Liang <changhuang.liang@starfivetech.com>
2022-12-21input: touchscreen: Add tinker_ft5406 driver supportChanghuang Liang3-0/+429
Add tinker_ft5406 driver support Signed-off-by: Changhuang Liang <changhuang.liang@starfivetech.com>
2022-12-21mmc: starfive: resolving warning logsWilliam Qiu1-29/+1
delete switch_voltage interface to resolving warning logs Signed-off-by: William Qiu <william.qiu@starfivetech.com>
2022-12-19Merge tag 'JH7110_515_SDK_v3.5.1' from sdk into vf2-515-develVF2_v2.5.0Andy Hu8-464/+273
version JH7110_515_SDK_v3.5.1 for JH7110 EVB board
2022-12-19Merge branch 'CR_2868_515_evb_rgb2hdmi_shengyang.chen' into ↵andy.hu1-1/+0
'jh7110-5.15.y-devel' CR_2868: riscv: linux: vout: fix rgb2hdmi display problem See merge request sdk/linux!639
2022-12-19Merge branch 'CR_2069_515_evb_cusor_keith.zhao' into 'jh7110-5.15.y-devel'andy.hu1-0/+2
CR_2069: riscv: linux: vout: fix cusor problem See merge request sdk/linux!647
2022-12-19Merge branch 'CR_2888_515_clocktree_pll0_Xingyu.Wu' into 'jh7110-5.15.y-devel'andy.hu2-24/+4
CR_2888_515_clocktree_pll0_Xingyu.Wu See merge request sdk/linux!644
2022-12-16riscv: linux: vout: fix cusor problemshengyang.chen1-0/+2
fix cusor bluring problem of debian Signed-off-by: keith <keith.zhao@starfivetech.com>
2022-12-15clk: starfive: pll: Remove high frequency of PLL0Xingyu Wu1-23/+3
Remove high frequency of PLL0 and make sure PLL0 max frequency is 1.5GHz. Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
2022-12-15clk: starfive: Change divider value of cpu_core clockXingyu Wu1-1/+1
Change divider value to make sure the frequency is half of PLL0. Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
2022-12-14CR_2865: hwrng: Reworked driver for speed performance and efficiencyJia Jie Ho4-439/+267
Changes: 1. Reseed during init only, not for every read. 2. Completion struct for irqreturn for better efficiency. 3. Add module_param for reseed operations based on request counter and/or timer countdown. 4. Removed unused macros and steps. Signed-off-by: Jia Jie Ho <jiajie.ho@starfivetech.com>
2022-12-14riscv: linux: vout: fix rgb2hdmi display problemshengyang.chen1-1/+0
fix problem of rgb2hdmi without display in first test Signed-off-by: shengyang.chen<shengyang.chen@starfivetech.com>
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