* commit '0c4fa77794ce128089a9f9523d4615d4f2835ec5':
rpmsg: rockchip_test: add delay compensation
media: rockchip: isp: add iqtool video for isp21
arm64: dts: rockchip: rk3399pro-npu: dis u1 and u2 state for dwc3
arm64: dts: rockchip: rk1808: dis u1 and u2 state for dwc3
arm64: dts: rockchip: dis u1 and u2 state for rk3528 dwc3
ARM: dts: rockchip: update rk808 for rk3288-evb-rk808-linux.dts
ARM: dts: rockchip: Add mmc aliases for rk3288-linux.dtsi
drm/bridge: synopsys: dw-hdmi-qp: Fix frl switch error when switching resolution and color at the same time
ARM: configs: enable HDMI and MULTICODECS for rockchip_linux_defconfig
UPSTREAM: ASoC: rt5640: Remove the sysclk and sysclk_src checking
video: rockchip: mpp: fix some iommu hdl register issue
media: rockchip: isp: fix get tb info
soc: rockchip: rockchip_system_monitor: Don't init wide temp when tz is NULL
video: rockchip: mpp: fix task re-add running_list issue
arm64: dts: rockchip: rk3588-evb3-lp5: update for v11 board
media: rockchip: isp: fix list buf delete err
soc: rockchip: amp: include rockchip_amp.h for function prototypes
arm64: dts: rockchip: rk3562-rk817-tablet: adjust vcm configs to reduce noise
media: i2c: dw9763: optimize open/close procedure to reduce noise
UPSTREAM: dt-bindings: usb: snps,dwc3: Add 'snps,parkmode-disable-hs-quirk' quirk
Change-Id: Iaab1b5d91a4a16c24fb30938d520087b77861a73
* commit '383b245ce2449c78580a067ed3a9872314f3a780':
arm64: dts: rockchip: rk3588-vehicle-evb-maxim-max96722: adjust some node name
arm64: dts: rockchip: rk3588-vehicle-evb-maxim-max96712: adjust some node name
arm64: dts: rockchip: rk3562-rk817: set vcc_3v3 regulator on in suspend
mmc: dw_mmc-rockchip: fix tuning return incorrect value in certain situations
arm64: dts: rockchip: rk3562-evb1-lp4x-v10-linux-amp: Add memory node for ap amp
video: rockchip: vehicle: fix support RK356X
arm64: dts: rockchip: rk3588-vehicle-adsp-audio-s66: set i2s3 master
Change-Id: I399421907007ac460928435c727d8890948e5466
* commit 'd04353d0020cd29c4b54f9db165f37312f8c4a2d':
arm64: dts: rockchip: disable hs park mode for usb dwc3 controller
UPSTREAM: usb: dwc3: core: add support for disabling High-speed park mode
Ignore:
commit 35db5a9e94 ("UPSTREAM: usb: dwc3: core: add support for disabling High-speed park mode")
commit d04353d002 ("arm64: dts: rockchip: disable hs park mode for usb dwc3 controller")
Change-Id: I37c2a042504b5a53b8863791e14a806ac6628978
Some high speed devices performance drop drastically on
Rockchip platforms when connected with DWC3-xHCI controller.
It's because that the DWC3 controller enable high speed
park mode by default, it aims to improve performance with
pipelining of multiple packet. However, for some devices
(such as UVC with bulk transfer VID:04b4, PID:02f9),
when an IN request is sent within 900ns of the ACK of the
previous packet, these devices NAKs more than 3 times, it
could decrease the performance.
These slow devices include:
1. idVendor=04b4, idProduct=02f9, Product: IRay UVC
2. idVendor=1921, idProduct=21863, Product: Sandisk
3. idVendor=3744, idProduct=8552, Manufacturer: Flex Drive
In order to improve compatibility with high speed devices,
this patch disable HS park mode for USB DWC3 controller on
all arm64 SoCs.
With this patch, we test RK3588 with one slow device
(IRay UVC VID:04b4, PID:02f9) and three fast devices
(U2 disk VID:058f, PID:6387; U2 disk VID:0781, PID:557c;
U3 disk VID:174c, PID:55aa), all of these device have
no performance loss.
Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: I9037143fa2553317ad7ae55abeafad3b106cafcb
Setting the PARKMODE_DISABLE_HS bit in the DWC3_USB3_GUCTL1.
When this bit is set to '1' all HS bus instances in park mode are disabled
For some USB wifi devices, if enable this feature it will reduce the
performance. Therefore, add an option for disabling HS park mode by
device-tree.
In Synopsys's dwc3 data book:
In a few high speed devices when an IN request is sent within 900ns of the
ACK of the previous packet, these devices send a NAK. When connected to
these devices, if required, the software can disable the park mode if you
see performance drop in your system. When park mode is disabled,
pipelining of multiple packet is disabled and instead one packet at a time
is requested by the scheduler. This allows up to 12 NAKs in a micro-frame
and improves performance of these slow devices.
Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Signed-off-by: Stanley Chang <stanley_chang@realtek.com>
Link: https://lore.kernel.org/r/20230419020044.15475-1-stanley_chang@realtek.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry-pick from commit d21a797a3e)
Change-Id: I43ee416e54779a073a0ba4057edf4be8bd7886de
1.Set slow slew rate control for PI
2.Set CDR phase path with 2x gain
Signed-off-by: Jianwei Zheng <jianwei.zheng@rock-chips.com>
Change-Id: I2d0811b0be7b1d4764ecd738d069b06e4da5eaa2
MUST: after pm_runtime_enable step, any register R/W
should be wrapped with pm_runtime_get_sync/put.
Another approach is to enable the regcache true to
avoid access HW registers.
Alternatively, performing the registers R/W before
pm_runtime_enable is also a good option.
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I69dd66230cba636d2ccb31ec01a21be1a482a0e3
* commit 'f8a6ea73884dd5aadd827127b35ab56015e1e704':
ASoC: rockchip: sai: Fix register access in probe
arm64: dts: rockchip: rk3308: update property logo,kernel
pwm: rockchip: add a little delay to make sure conlock works
drm/bridge: synopsys: dw-hdmi-qp: filter hdmi 2.1 resolution when enable-gpio is not configured
drm/bridge/synopsys: dw-hdmi-qp: fix color error in DVI mode
ARM: dts: rockchip: support dual sc301iot for rv1106-evb-dual-cam.dtsi
arm64: dts: rockchip: rk3588-vehicle-adsp-audio-s66: correct i2s3 iomux
arm64/configs: add rk3308bs_mipi_display.config for support mipi display
arm64: dts: rockchip: rk3399-evb: use multicodecs instead simple card
media: rockchip: vicap: fixes create dummuy buffer fail with size 0
drm/bridge/synopsys: dw-hdmi-qp: Add support for external bridge
video: rockchip: vehicle: remove vehicle dev when exit
Change-Id: I8094e3496eb3c966e53f0db1f1cdb8d13f95f73b
There are three types of compliance mode test requirement right
now, consolidate them together:
[1] SMA tool: rockchip,compliance-mode = <0 ANY_VALUE_FROM_0_TO_10>;
[2] Soldered board: rockchip,compliance-mode = <mode preset>;
mode: 1->Gen1 2->Gen2 3->Gen3
preset: 0->p0 1->p1 2->p2 .... etc.
[3] lookback: same as SMA tool case
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: I180b4881d827e3c2f0fc22f0bab4ca165be44c19
* commit '7d42e408908c426339f6a9371bf21920a8190d02':
drm/rockchip: direct_show: add cached buf cpu access begin & end
media: rockchip: isp: add api get isp work mode for rockit
media: i2c: rk628: fix 5V detect event report
media: rockchip: isp: fix refer to sram info for multi sensor
media: rockchip: isp: fix stream init pause state
mtd: spinand: xtx: Fix XT26G11C ecc status ops
net: can: rockchip: support rk3568 can v2
Change-Id: Id0eeeb7b3068ea34475576aefac03c5127aeb0bd
* commit '46449e5334ffd1b21f1f509e8f4d55240d076581':
drm/rockchip: dsi: set vop2 standby before command mode in rk3566/rk3568
Ignore:
commit 46449e5334 ("drm/rockchip: dsi: set vop2 standby before command mode in rk3566/rk3568")
Change-Id: I6af690cd979d61b1fe26fa5614fc4d3521b62cd1
Fixes: 35db5a9e94 ("UPSTREAM: usb: dwc3: core: add support for disabling High-speed park mode")
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ife342a9339c731828d9677d110494fdd7862fe49
1. add delay compensation to the test demo
2. update the names of some structures
Change-Id: I12026f13395ad691628fd6a2c3cb1b15185b156e
Signed-off-by: Hongming Zou <hongming.zou@rock-chips.com>
This patch adds the properties "snps,dis-u1-entry-quirk"
and "snps,dis-u2-entry-quirk" to disable u1 and u2 state
for dwc3 peripheral. And remove the legacy of property
"snps,dis-u1u2-quirk" which is not used.
Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: I52d51797a06ff23aa145ecd589878ae264c318ad
This patch adds the properties "snps,dis-u1-entry-quirk"
and "snps,dis-u2-entry-quirk" to disable u1 and u2 state
for dwc3 peripheral. And remove the legacy of property
"snps,dis-u1u2-quirk" which is not used.
Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: I96fd8c2658471383a11aa8228fadaf04422333a3
We use "snps,dis-u1-entry-quirk" and "snps,dis-u2-entry-quirk"
instead of "snps,dis-u1u2-quirk" after kernel4.19.
Signed-off-by: Jianwei Zheng <jianwei.zheng@rock-chips.com>
Change-Id: Ib96b4044edbbd197fa8da1ef40575f7c61089738
This series in order to have the default MMC alias.
The mmc default alias:
mmc0 = &sdhci;
mmc1 = &sdmmc;
mmc2 = &sdio0;
The Linux OS have the post-build.sh to handle the rootfs,
and export RK_EXTRA_PARTITIONS for setting the PARTITIONS.
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Change-Id: Ic309cbfc606433b9e9b9098230e7b90ba59cca2d
When switching resolution and color at same commit, current
judgment conditions will cause the hdmi switching process will
not run properly if switching from tmds resolution to frl resolution.
So we need to add the judgment of the resolution before and after
the switch.
Change-Id: I96e304acf224bcfd01edba9df64a3d6b96a2c90d
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
dclk_vop_frac is frac divider with high jitter,
Is unfriendly to vop.
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: If6218886fe64182261cf37172c88fcaeea197b22
In rkvdec2_link hard ccu worker, the tasks may resend to hw when
decoder reset.There is a bug: the task that resend to hw may be re-add
to running_list.
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Change-Id: I6aa77213d3f5cc805c24d39b5c5d13269297d749
Fixes: 389088186f ("soc: rockchip: rockchip_system_monitor: Use new APIs to check rate and volt")
Change-Id: I252146bb541c4de97a0a4c72546842353c712318
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
list_del error for curr_buf to buf_queue list and buf_done_list
pc : list_del+0x4/0x24
lr : destroy_buf_queue+0x170/0x188
Change-Id: Iede1ab20e30d25f4059b39e7896e1a89b3f03f67
Signed-off-by: Cai YiWei <cyw@rock-chips.com>