Since RK356x, the USB PHY GRF adds new registers to select
bvalid from USB PHY or GRF. And in RK356x Maskrom USB driver,
it selects the bvalid from GRF and sets the bvalid value to 1,
it aims to improve the compatibility of various USB circuits
for Maskrom USB. However, the charger detection and USB PHY
power consumption control depends on the bvalid of USB PHY.
So this patch selects bvalid from USB PHY for otg port.
Change-Id: I3fc9faf06f30e0a3390bc4fd40c732fb856131f8
Signed-off-by: William Wu <william.wu@rock-chips.com>
According to test: Cluster can work with >, But
Esmart must enable gt2 when src_h = 2 * dst_h;
Change-Id: I3347eb4e340df093f7ab29afcb3a80ae5e03b0cc
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
1) Increase uart number to 10
2) Enable digital codec interface
3) Add wacom_9013 and cyttsp5 touch drivers
4) enable es7202 & es7243e
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Change-Id: Ifd78e2d021a829f868017837a0e5916aba95b070
GVI only can use VOP sclk as combtxphy reference clock.
Change-Id: I919bdceaac6d7bb97658d958fecb52971117c82b
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
If dwc3 failed to init ep0 in __dwc3_gadget_start(), the ep0state will
be uninitialized, aka, ep0state is EP0_UNCONNECTED, in this case, we
don't need to wait for control transfer completion when stop gadget
because no usb control transfer in process. This patch can help to avoid
the following warning in RK356x Boards during shutdown process.
[ 30.735323] usb ffs open D 0 309 1 0x0400002d
[ 30.735330] Call trace:
[ 30.735336] __switch_to+0xe4/0x138
[ 30.735348] __schedule+0x2f4/0x930
[ 30.735358] schedule+0x38/0xa0
[ 30.735368] schedule_timeout+0x194/0x478
[ 30.735378] wait_for_common+0x130/0x1e8
[ 30.735388] wait_for_completion_timeout+0x10/0x18
[ 30.735399] dwc3_gadget_pullup+0x68/0xc8
[ 30.735411] usb_gadget_disconnect+0xf0/0x110
[ 30.735422] usb_gadget_remove_driver+0x24/0x70
[ 30.735431] usb_gadget_unregister_driver+0xd0/0x120
[ 30.735441] unregister_gadget+0x20/0x50
[ 30.735450] unregister_gadget_item+0x24/0x38
[ 30.735461] ffs_data_clear+0x120/0x130
[ 30.735471] ffs_data_reset+0x14/0x58
[ 30.735480] ffs_data_closed+0x88/0xd8
[ 30.735490] ffs_ep0_release+0x10/0x20
[ 30.735501] __fput+0x88/0x1b8
[ 30.735510] ____fput+0xc/0x18
[ 30.735521] task_work_run+0x94/0xb0
[ 30.735531] do_exit+0x334/0xa28
[ 30.735540] do_group_exit+0x34/0x98
[ 30.735550] get_signal+0xe4/0x828
[ 30.735557] do_signal+0x1c0/0x298
[ 30.735563] do_notify_resume+0xd0/0x118
[ 30.735568] work_pending+0x8/0x10
[ 30.735602] sysrq: Kill All Tasks
Change-Id: I3534b710804e099d857149b0b0b58a7a7236b8fc
Signed-off-by: William Wu <william.wu@rock-chips.com>
Test:
CtsIncrementalInstallHostTestCases
android.incrementalinstall.cts.IncrementalFeatureTest
This config will enable the Incremental File System, which allows
Android OS to receive streamed APKs over adb.
Signed-off-by: Bian Jin chen <kenjc.bian@rock-chips.com>
Change-Id: I4237fdeb1f5edf0e5f662236e6c97a6d7aae19e3
It seem we lose struct dw_pcie definition on the way of
rebasing the orinial commit. Fix it.
Change-Id: I0f97b20960f5647251257cf65e862aeaa39f2b7d
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
The original waiting time is too long for setting up a link, so
let's decrease it to 10s which is enough for real usecase.
Change-Id: Ifb1eb0d7784e9afeef165f084bc3bda49b41618e
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
1. Support colorkey.
2. Support blend mode to restore real color.
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: I8eb6e60d4b9d3c5b6cc280e33edb9f0f3f08f2e2
This patch adds a new vbus_detect helper function to control
the vbus voltage level detection for rk3568 otg port. And
fix the issue that the bvalid irq status and id irq status
are not handled in the rockchip_usb2phy_irq() for otg host
mode when force mode via the sys interface "otg_mode".
Change-Id: I75a102034e8dd3ad47de67da4e5120e28564368e
Signed-off-by: William Wu <william.wu@rock-chips.com>
The pin2dts tool has fixed some bugs, do generate the rv1126-pinctrl
codes with new tool.
Change-Id: Ie932397064bc8f0022cbdf9a6e8e4242cd4d8ad8
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
ov8858 checked unexpected sensor id, while ret may be 0;
thus it will continue register, but ov8858_global_regs
& supported_modes are still null pointer.
This results crash in ov8858_s_power function, when ov8858_global_regs
& supported_modes are called; so fix it.
Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
Change-Id: Idb65a593f526572f4a4423464a1daf0299a3aa5c
Reset the previous DLL settings left out from loader in case
of running initial booting with mismatch DLL settings.
Change-Id: Icba9ddcafc3969f7869a6ba31a017db6be0c885e
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
This patch fixes the bug of RV1126 USB crash when configed as
UVC + UAC + RNDIS + ADB. If we resize txfifo before opening
UAC stream, the maxpacket of epin will be the default value
1024 and txfifo will exceed the maximum limit.
Fixes: e658b2131e ("usb: dwc3: gadget: fix tx fifos resize for disabled eps")
Signed-off-by: Ren Jianing <jianing.ren@rock-chips.com>
Change-Id: I1e892b11a0bdda2877d3e17148867d21cb68238c