According to eMMC specification v5.1 section A6.1, the R3 response
value should be 0x00FF8080, 0x40FF8080, 0x80FF8080 or 0xC0FF8080.
The EMMC device may be abnormal if a wrong OCR data is configured.
Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: I5b19c0a937b55dc75e9d1abf7f9c8cf9a5d083b5
Playing mpeg2 video will get stuck at the last position.
The reason is that qos will be saved when vdpu2 is reset.
However, the pd-related clock has been turned off, causing
the read and write registers to be stuck.
However, when pd is switched on and off, the qos will be
saved and restored by itself, and for the 3588 platform,
there is no need to save qos before making an idle request.
Change-Id: I048ed648a97515976f6029a9498080a1ceaa9a2e
Signed-off-by: Hongjin Li <vic.hong@rock-chips.com>
Add lt7911d type-c/DP to MIPI CSI-2 bridge dts configuration as an example
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: I54c20593358f2632ae9a5006d822664a5972676a
The Escape clock ranges from 1MHz to 20MHz.
Change-Id: I89f8118a4c194cc18f2728968564676e60e4e629
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
for initial deskew calibration will be send successfully after
phy_power_on when operating above 1.5 Gbps or changing to any
rate above 1.5 Gbps, clk needs to be set to no continuous.
Change-Id: Ia3563f68d3144f05b5095668e0311c61daaea20d
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
As the ITS should always on during operation.
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I7c8c14c7823c1fcb8d4acc2ac996f984b5103a5c
We kick probe to a kthread so giving a more generous timing would
not be a problem. But given that it's the same routine for resume,
we need more limited timing.
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: I382bb07ffa389caf854d725c955220c65366cd36
Add dts for imx415 sensor on rk3588 evb2 board.
Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
Change-Id: I71ce4dd5f1fa990abf832d9ed0fa5eb0cc70f5bb
If SCDC communication is performed on a TV that does not
support SCDC, the I2C bus may become stuck.
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: I1c1cf926394746dcc198b427a61ffa486ecc99f3
Since the ARGB format was added without processing the address offset
during rotation, the address offset of mmu was calculated incorrectly.
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: I6bddd21b50bf60cadf493e73cff10c18210c375c
In addition, fix a bug of calling KBASE_KTRACE_ADD() too early.
Change-Id: I843f340526275b50ae7d1ec6a7a68963e081e219
Signed-off-by: Zhen Chen <chenzhen@rock-chips.com>
On some Rockchip platforms (e.g RK3588 EVB2), the USB
interface is Type-A USB 3.0 with vbus always on. In
this case, the USB PHY may fail to send extcon notifier
to dwc3, and the desired_role_sw_mode is uninitialized.
So we need to initialize the desired_role_sw_mode which
depends on the id status during dwc3 probe.
Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: I79074d11773486250cd9ab286eb450826649bfcb
Should use REG_19H instead of REG_DH.
Fixes: e6ae079436 ("phy: rockchip: naneng-combphy: Force detect Rx for RK356X and RK3588 SoCs")
Change-Id: Ifc9484e850955e6a36c30755a7ba1aee65070d0f
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
The interrupt status bit of the previous error data transmition will
affect the next operation and cause continuous SPI transmission failure.
Change-Id: Ib215d63d8572e3fc8d843652687e1ebfb7ff531e
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
We have the same LAYER_SEL&PORT_SEL register conflicts
issue as rk356x.
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Change-Id: I68bf32499b04bba5b0089df2bb473673d9804b90
We notice there are many POST_BUF_EMPTY irq when user space
enable a video port but without any attached plane.
Setup dly in this situation can avoid the POST_BUF_EMPTY
irq storm.
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Change-Id: I907eb1737ac134dda8b2d237584c9d2f2b917b5e
Since the ARGB format was added without processing the address offset
during rotation, the address offset of mmu was calculated incorrectly.
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: I602ebd3bcc9c60fd90103ef50e29e6b9f2a11727
At present, the charger ic output otg current limit is 500mA, the
high-current usb device (for example, usb3.0 hard disk) cannot work
normally in Type-C0, such as disconnection and reconnection. According
to the requirements of the usb3.0 protocol, the minimum vbus current
limit is 900mA. We set the charger ic output otg current limit to 900mA,
and the video playback in the usb3.0 hard disk is still unstable.
The rk3588-evb Type-C vbus current limit is about 1.44v, the usb3.0 hard
disk can work stably, so the rk3588s tablet output otg current limit is
configured to 1.5A.
Change-Id: I47bbc6c8f06025504857067d42d780aa783007c6
Signed-off-by: Wang Jie <dave.wang@rock-chips.com>