SPLL has been set in SPL and UBOOT.
Kernel resetting causes mipi display jitter.
Note: If without Uboot, SPLL needs to be set in advance.
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: I59475ce1ea7712069e6c4a445a432d77f19227d5
The default autosuspend delay of runtime pm is 5000ms,
it's too long for the application scenario of hot plug.
If usb plug out and plug in again in 5000ms, it will
fail to do runtime suspend/resume, and also fail to
do usb phy ops. For RK3588 Type-C USB3.1 Gen1, it needs
to do usb3 phy init for normal or flip orientation
during dwc3 runtime process. This patch sets the runtime
autosuspend delay to 100ms for user's normal hotplug
operation.
Given the autosuspend delay 100ms is very short, it may
cause the usb device role fail to connect to usb host
in the following case:
1. Use Type-C to Type-A cable, connenct RK3588 usb to PC.
2. The TCPM set the usb role as PERIPHERAL and call
dwc3_usb_role_switch_set() -> __dwc3_set_mode() ->
dwc3_runtime_resume() -> power on u2/u3 phy ->
delay 100ms -> dwc3_runtime_suspend().
3. In the dwc3_runtime_suspend(), it will check the
dwc->connected which can only be set to true in the
dwc3_gadget_reset_interrupt().
4. If the PC usb host doesn't send reset signal within
100ms, the dwc3 will do dwc3_runtime_suspend() and
power off u2/u3 phy. This cause usb device not to
be detected.
So this patch fix the runtime pm mechanism for usb device
role to forbid dwc3 enter runtime suspend if the desired
role is PERIPHERAL. And allow dwc3 to enter runtime suspend
again after the desired role is not PERIPHERAL. For the usb
host role, the xHCI platform driver has forbidden it to
do autosuspend, so we don't care the usb host role here.
Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: I195a5fd7d8264108dd32f56f5b9bdb7f0e83da90
Some times we want change a overlay plane defined in vop2_reg
to primary plane.
Change-Id: I5f563fb258a66278255be762ebdfca21b51aabd1
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Set the dr_mode to peripheral for rk3588-evb2 and
rk3588s-evb2 which can't support usb mode detection
automatically for the time being.
In the near future, we will support usb device/host
mode switch by software, then we can revert this patch.
Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: I618b7e32eabb2b4106f0f844125fca5c85ce33c8
1. Set the dr_mode to otg for rk3588-evb and rk3588s-evb;
2. Remove the maximum-speed hs limit for rk3588s-evb;
Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: Ia6ab7e259207fc33c2e38bd8ae4864f06b4bf3d8
after this commit, axi id is used as the following rules:
AXI0
Cluster0:
win0: 0x2,0x3
win1: 0x4,0x5
Cluster1:
win0: 0x6,0x7
win1: 0x8,0x9
Esmart0: 0xa, 0xb
Esmart1: 0xc, 0xd
Lut: 0xe[for vp0/2, will be used at different time]
AXI1:
Cluter2:
win0: 0x2,0x3
win1: 0x4,0x5
Cluster3:
win0: 0x6,0x7
win1: 0x8,0x9
Esmart2: 0xa,0xb
Esmart3: 0xc, 0xd
Lut: 0x1[for vp1]
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: Iae865835e49ba8ca0197b0f015d7709cba23e8b3
Organize the code, separate rga_job_assign to rga_policy.c
Signed-off-by: Li Huang <putin.li@rock-chips.com>
Change-Id: Ie84cd14db23fba35db2da7c77edecb5b5bcc621b
addr_vir contains several pages, therefore must to
use free_pages instead of free_page to free memory.
Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
Change-Id: Icb65f569674b31bb2a6c62f693a2968f24d709a6
This patch aims to configure pcie for better compatibility.
1.PLL LPF C1 85pf R1 1.25kohm
2.ck100m_pcie from PLL
Change-Id: I5115cf6ce7341c0891f13639f2c59db86ae9014b
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
Support hdmi frl mode and dsc function.
Support max 8K-60Hz RGB 10bit output.
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: Ibc2d48e2b25bc94e4be7ffa9703c400436bdee36
Don't need to direct callback via rk3308 jack detect, since
the sound component supports to set jack.
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Change-Id: Ibdf86d06f69bd0a8885de753f632236b43b5800c
1. Disable interface clock at initial state.
2. Set the default tx dll tap value to 0xA for hs400.
3. Configure the parameters of enhanced strobe before enable HS400ES.
4. Set the default cmd dll tap value to 0x8.
Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: I82f09c4d5f5f3b79f71b61fbe62eec6e8d6a7230
Because the CAP parameters of AHCI are incorrect, FBS cannot
be started automatically and needs to be configured manually.
This configuration can improve the read-write performance
when connecting multiple SATA hard disks through the PM chip.
Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: I66ff92dce1711e3d189801c8caa3219217a50dda
The sata need pipe clock for the interface and asic clock
for the phy.
Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: I6069bd653a3f22da8ade0cab002c5346c9880cef
This patch adds a driver for the CellWise cw2017 fuel gauge.
Signed-off-by: Shunqing Chen <csq@rock-chips.com>
Change-Id: I29ae790727e0b2b326c46b452b7691f0231c6bfa