forked from torvalds/linux
Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
misc: Add iop driver for Sunplus SP7021
IOP (IO Processor) embedded inside SP7021 which is used as Processor for I/O control, RTC wake-up and cooperation with CPU & PMC in power management purpose. The IOP core is DQ8051, so also named IOP8051, it supports dedicated JTAG debug pins which share with SP7021. In standby mode operation, the power spec reach 400uA. Signed-off-by: Tony Huang <tonyhuang.sunplus@gmail.com>
- Loading branch information
1 parent
f1a2a21
commit 916d31a2d28c9f0ad7d7073d7943b9cf656038f5
Showing
5 changed files
with
533 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| What: /sys/devices/platform/soc@B/9c000400.iop/sp_iop_state1 | ||
| Date: December 2021 | ||
| KernelVersion: 5.15 | ||
| Contact: Tony Huang <tonyhuang.sunplus@gmail.com> | ||
| Description: | ||
| SP7021 has three power states:S0, S1 and S3. | ||
| S0:Default domain is on. IOP domain is on. AO domain is on. | ||
| S1:Default domain is off. IOP domain is on. AO domain is on. | ||
| S3:Default domain is off. IOP domain is off. AO domain is on. | ||
| Read sysfs sp_iop_s1mode, system enter S1 mode. | ||
|
|
||
| What: /sys/devices/platform/soc@B/9c000400.iop/sp_iop_mode | ||
| Date: December 2021 | ||
| KernelVersion: 5.15 | ||
| Contact: Tony Huang <tonyhuang.sunplus@gmail.com> | ||
| Description: | ||
| Operation mode of IOP is switched to standby mode by writing | ||
| "1" to sysfs. | ||
| Operation mode of IOP is switched to normal mode by writing | ||
| "0" to sysfs. | ||
|
|
||
|
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.