Age | Commit message (Collapse) | Author | Files | Lines |
|
[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>
|
|
CR_2956: gpu:driver: fix up hibernation resume problem
See merge request sdk/linux!672
|
|
To fix dynamic naming issue, disable CONFIG_ECRNX_P2P for wifi ECR6600U
Signed-off-by: MichaelZhuxx <michael.zhu@starfivetech.com>
|
|
CR 3027 pinctrl hal.feng
See merge request sdk/linux!671
|
|
Modify support imx219 compile to module.
Signed-off-by: Changhuang Liang <changhuang.liang@starfivetech.com>
|
|
fix up hibernation resume problem
Signed-off-by: shanlong.li <shanlong.li@starfivetech.com>
|
|
when resuming
Restore the other registers besides irq registers when resuming.
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
|
|
Fixed UART3-5 error after hibernation by adjusting register shift.
Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
|
|
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
|
|
CR_2862_gt9xx_ts_515_changhuang.liang input: touchscreen: Add gt9xx driver support
See merge request sbc/linux!56
|
|
CR 3027 pinctrl hal.feng
See merge request sdk/linux!669
|
|
CR_3122 usb: phy: init phy in resume function
See merge request sdk/linux!667
|
|
CR_3051_ts_515_changhuang.liang input: touchscreen: tinker_ft5406: Delete unused code.
See merge request sdk/linux!661
|
|
CR_3054_vin_system_pm_changhuang.liang media: starfive: Delete unused USE_MEDIA_PIPELINE macro code
See merge request sdk/linux!665
|
|
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>
|
|
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>
|
|
Update VIN system PM operation, fixed multi open the same video node
cause resume fail.
Signed-off-by: Changhuang Liang <changhuang.liang@starfivetech.com>
|
|
Multi open the same video node only set power one time.
Signed-off-by: Changhuang Liang <changhuang.liang@starfivetech.com>
|
|
Delete unused USE_MEDIA_PIPELINE macro code.
Signed-off-by: Changhuang Liang <changhuang.liang@starfivetech.com>
|
|
when resuming
Restore the register configuration after resuming.
Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
|
|
Update log show.
Signed-off-by: Changhuang Liang <changhuang.liang@starfivetech.com>
|
|
Enable multipoint function.
Signed-off-by: Changhuang Liang <changhuang.liang@starfivetech.com>
|
|
Delete unused code avoid warning.
Signed-off-by: Changhuang Liang <changhuang.liang@starfivetech.com>
|
|
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>
|
|
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
|
|
CR_3049 Add hibernation feature
See merge request sdk/linux!658
|
|
Add system PM API for can/canfd.
Signed-off-by: William Qiu <william.qiu@starfivetech.com>
|
|
Add gt9xx touchscreen driver support in jh7110 platform.
Signed-off-by: Changhuang Liang <changhuang.liang@starfivetech.com>
|
|
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>
|
|
add system pm ops for timer
Signed-off-by: ziv.xu <ziv.xu@starfive.com>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
version JH7110_515_SDK_v3.6.0 for JH7110 EVB board
|
|
CR_2506_515 net:wireless:Support eswin usb wifi ECR6600U
See merge request sbc/linux!45
|
|
Add usb wifi ECR6600U driver
Signed-off-by: Jianlong Huang <jianlong.huang@starfivetech.com>
|
|
CR_2861_ts_515_changhuang.liang input: touchscreen: Add tinker_ft5406 driver support
See merge request sdk/linux!654
|
|
Fixed show more error log bug when not attach the touchscreen.
Signed-off-by: Changhuang Liang <changhuang.liang@starfivetech.com>
|
|
Add open&close ioctl.
Signed-off-by: Changhuang Liang <changhuang.liang@starfivetech.com>
|
|
Add tinker_ft5406 driver support
Signed-off-by: Changhuang Liang <changhuang.liang@starfivetech.com>
|
|
delete switch_voltage interface to resolving
warning logs
Signed-off-by: William Qiu <william.qiu@starfivetech.com>
|
|
version JH7110_515_SDK_v3.5.1 for JH7110 EVB board
|
|
'jh7110-5.15.y-devel'
CR_2868: riscv: linux: vout: fix rgb2hdmi display problem
See merge request sdk/linux!639
|
|
CR_2069: riscv: linux: vout: fix cusor problem
See merge request sdk/linux!647
|
|
CR_2888_515_clocktree_pll0_Xingyu.Wu
See merge request sdk/linux!644
|
|
fix cusor bluring problem of debian
Signed-off-by: keith <keith.zhao@starfivetech.com>
|
|
Remove high frequency of PLL0 and make sure PLL0 max frequency is 1.5GHz.
Signed-off-by: Xingyu Wu <xingyu.wu@starfivetech.com>
|