Calling it from rockchip_p3phy_rk3588_init() will cause a timing
problem that PCIe3 enum and PCIe2 accessing combophy at the same
time which would cause problems. Changing PHY mux and enum devices
at the same time doesn't meet design purpose. So we also need to
move phy mode settings to probe as what comphy driver did.
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: I8689ed52db002a6eb0429bf528e2303fbf3cc449
value[3] is the value need to set, but the offset is value[1]
or value[2]. We need offset here.
Fixes: e984bc2a96 ("phy: rockchip: naneng-combphy: Add config option for pcie1ln-sel")
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: Ia5fca2bd4563e9618c52d601a47a28dc44fb48cc
This reverts commit 33d95b67b3.
As the probe of PCIe controller is threaded. So rockchip_combphy_pcie_init
may change PHY mux settings just between another controller's
signal accessing PHY. This doesn't meet design purpose. We should
keep mux settings ready before everything starts.
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: Iba59bd39741b97442b5f7fe91314aea3f1d0c533
V2:
key: remove Non existent key
panel: use simple-panel driver
regulator: correct usb gpio
gpio: add hub_en,camera_en
fix some typo
V3:
WIFI/BT: add support
V4:
remove Makefile for easy rebase
V5:
fixed wifi_pwren issue
support pcie ssd
increase Sdio Driver Strength Selection
V6:
support es8326/es7243e/pdm sound
Supports DP dual display
fixed PINCtrl conflict
V7:
support sc8886
disabled pcie now for some board can not boot
Add the hardware mouse layer
V8:
support cw2017
Signed-off-by: Nickey Yang <nickey.yang@rock-chips.com>
Change-Id: Ia516536751ac645b704b5cae9bb275bd48b5aba8
Call phy_power_off and phy_exit if failed, so phy will
be reset and gated.
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: If82b86704317e3a27217ab0c6a827af30463e7ba
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