Commit Graph

1271754 Commits

Author SHA1 Message Date
Caesar Wang
99bc8cce0a arm64: dts: rockchip: add rk3562-iotest-lp3-v10.dtsi for iotest board
This commit adds a new device tree source file rk3562-iotest-lp3-v10.dtsi
to describe the hardware configuration of the Rockchip RK3562 IOTEST LP3
V10 development board. It also modifies the rk3562-iotest-lp3-v10-linux.dts
and rk3562-iotest-lp3-v10.dts files to include the new
rk3562-iotest-lp3-v10.dtsi file.

The main purpose of this commit is to enable synchronized updates for
common content related to the RK3562 IOTEST LP3 V10 development board.

Change-Id: I8d5d26c12e6b4ed00b43118737f8fe36761eaab7
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
2024-05-22 14:58:38 +08:00
Zefa Chen
39c7e7c4d4 media: i2c: fixes error of techpoint driver
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I20508cfb5e08d2629221fa898852bc3bad5ba767
2024-05-22 11:57:12 +08:00
Zhang Yubing
fc87ca81ee drm/rockchip: dw-dp: use low link rate for low pixel clock timing
When DPTX controller config 2 pixe mode and work in sst mode,
and a low pixel clock image transmit in high link rate(HBR3),
some monitor may display flicker. To avoid this issue appear,
use lower link rate(HBR2) when transmit a low pixel clock image.

Change-Id: I75ac8fcb963631cb372dd76c4b45ca33e960f6c9
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2024-05-21 15:26:50 +08:00
Wang Panzhenzhuan
63172c061d phy: rockchip: csi2-dphy: fixes dphy open/close stuck issue for rk3576
This fixes system stuck when open/close dphy connected sensor.
Unable to handle kernel access to user memory outside uaccess routines
at virtual address 000000010000035c
Call trace:
rockchip_csi2_dphy_detach_hw+0x368/0x598
csi2_dphy_s_stream+0x184/0x6a0
csi2_s_stream+0x1e4/0x6c8
rkcif_pipeline_set_stream+0x1e4/0x780
rkcif_do_stop_stream+0x390/0x1260
rkcif_stop_streaming+0x18/0x24
__vb2_queue_cancel+0x38/0x260
vb2_core_streamoff+0x28/0xac
vb2_ioctl_streamoff+0x5c/0x8c
v4l_streamoff+0x24/0x30
__video_do_ioctl+0x2d8/0x3f0
video_usercopy+0x418/0x9ac
video_ioctl2+0x18/0x24
v4l2_ioctl+0x4c/0x5c
__arm64_sys_ioctl+0x90/0xc8
invoke_syscall+0x40/0x104
el0_svc_common+0xbc/0x168
do_el0_svc+0x1c/0x28
el0_svc+0x1c/0x68
el0t_64_sync_handler+0x68/0xb4
el0t_64_sync+0x164/0x168

Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
Change-Id: I568c8790df3ea23b767b71cf414439583853d4b0
2024-05-21 15:18:02 +08:00
Jianwei Fan
170875f34d media: i2c: rk628: fix mutex_lock when get_fmt if nosignal
Fixes: 7f0bc0de39 ("media: i2c: rk628: add nosignal process when get_fmt and enable stream")
Change-Id: I94b55ca0bdd9dd17168f28d25590c66e9f1dd923
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
2024-05-21 10:29:56 +08:00
Chandler Chen
ea6b7d434e video: rockchip: mpp: rkvdec: link mode use autosuspend
Change-Id: I65be7aeb36b6e0906a80768df3ed81af131252e3
Signed-off-by: Chandler Chen <chandler.chen@rock-chips.com>
2024-05-20 18:40:24 +08:00
Cai YiWei
8e8fd7e954 media: rockchip: isp: fix cac repeat enable
Change-Id: I2b0e5cb7e3064a3118147b689ce126e7ff99c9c3
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2024-05-20 16:30:51 +08:00
Damon Ding
e6a4425422 Revert "phy/rockchip: samsung-hdptx: correct SDC_N"
This reverts commit 843fd2249d.

The ROPLL_SDC_N should be 1 in HBR and HBR2, which
has been confirmed with the vendor. The pervious
commit will make the SI failed to meet the specifications:

      theoretical rate(Gbps)  actual rate(Gbps)  result
RBR          1.620                 1.620          pass
HBR          2.700                 2.702          fail
HBR2         5.400                 5.404          fail

Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: I6faf6f36b43f7645739e829c761c9f61449d91a3
2024-05-20 16:26:52 +08:00
Sandy Huang
64f2438ab1 drm/rockchip: vop2: correctly config cluster win dly num
Cluster win1 dly num is same with win0 and saved by cluster-win0
dly_num.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: Id9938a69db827513dc3000c5cb832170d0480ab4
2024-05-20 15:22:33 +08:00
Sandy Huang
060f786e9b drm/rockchip: vop2: The data from cluster mix is always premultiplied alpha
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: Icf107d31f9fb04cf612a02a0127d66448d8f7ed1
2024-05-20 11:05:39 +08:00
Algea Cao
727394f2d9 phy: rockchip-samsung-hdptx-hdmi: Fix get phy pll freq failed in frl mode
Get phy pll freq failed in frl mode should read lcpll regs.

Fixes: fff8ec3ee9 ("phy: rockchip-samsung-hdptx-hdmi: Fix phy pll is incorrectly configured when logo is enabled.")
Change-Id: I64e973f85acd74ee251b4ab6c0a141394c116d92
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2024-05-20 10:57:34 +08:00
Jake Wu
5e320d0310 usb: typec: husb311: set vbus off when shutdown
vbus-on will trigger pmic restart when system shutdown.

Signed-off-by: Jake Wu <jake.wu@rock-chips.com>
Change-Id: I49a610f6a24c6d0ffc33a5bef7dc909f738f1f12
2024-05-20 09:41:34 +08:00
Yu Zheng
2945f84855 arm64: dts: rockchip: rk3576 evb1 boards for linux ipc form 3x to 4x camera
Change-Id: I045431ee5fa3f8168bde7a79b40fb60c7d3b3dbd
Signed-off-by: Yu Zheng <yu.zheng@rock-chips.com>
2024-05-20 09:40:08 +08:00
Tao Huang
cf28107f98 mfd: rkx110_x120: pwm: Add module license
Fixes the following error:

ERROR: modpost: missing MODULE_LICENSE() in drivers/mfd/rkx110_x120/rkx120_pwm.o

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I27def7b919a0efcffc62f30e159066a4c21cb905
2024-05-17 19:48:00 +08:00
Finley Xiao
feb16e5db3 soc: rockchip: power-domain: Add memory reset support for rk3576
This fixes panic when pd power on.
rockchip-pm-domain 27380000.power-management:power-controller: failed to set domain 'nputop', target_on= 1, val=0
Kernel panic - not syncing: panic_on_set_domain set ...
Call trace:
dump_backtrace+0xf4/0x114
show_stack+0x18/0x24
dump_stack_lvl+0x6c/0x90
dump_stack+0x18/0x38
panic+0x14c/0x338
rockchip_do_pmu_set_power_domain+0x640/0x644
rockchip_pd_power+0x154/0x350
rockchip_pd_power_on+0x24/0x30
genpd_power_on+0x1d4/0x2ec
genpd_power_on+0x7c/0x2ec
genpd_runtime_resume+0xb0/0x384
__rpm_callback+0x7c/0x3c4
rpm_resume+0x43c/0x678
__pm_runtime_resume+0x4c/0x90
rknpu_power_on+0xa0/0x2d8
__rknpu_action_ioctl+0x54/0x230
drm_ioctl_kernel+0x80/0xf8
drm_ioctl+0x2d4/0x554
__arm64_sys_ioctl+0x90/0xc8
invoke_syscall+0x40/0x104
el0_svc_common+0xbc/0x168
do_el0_svc+0x1c/0x28
el0_svc+0x1c/0x68
el0t_64_sync_handler+0x68/0xb4
el0t_64_sync+0x164/0x168

Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: Ic73413d48335ef6bc57f3793ba6e3b39d4ecd100
2024-05-17 19:38:54 +08:00
Sugar Zhang
d73c871ae7 arm64: dts: rockchip: rk3576: Assign audio_frac_1 to AUPLL
Currently, it serves 48k series sample rate for better jitter
performance.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I11045e45d8deb297d45e4fa9704fc25fcd3857e0
2024-05-17 16:37:49 +08:00
Sugar Zhang
c3c63e6eeb clk: rockchip: rk3576: Export CLK_AUDIO_FRAC_SRC
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I57d467cdba4295a78a9d2b73ff90add51eee8acf
2024-05-17 16:37:35 +08:00
Chandler Chen
0f466460c8 video: rockchip: mpp: reset rkvdec before pm suspend
For link mode, decoder may still running after
frame ready status was written in link table.
Do soft reset before powering off the decoder
to ensure decoder is fully idle.

fixes https://redmine.rock-chips.com/issues/477479
rockchip-pm-domain 27380000.power-management:power-controller:
failed to set idle on domain 'vdec', target_idle = 1, val=0

Change-Id: I30a337bb4cd9193627ae95fae137c12d73027c38
Signed-off-by: Chandler Chen <chandler.chen@rock-chips.com>
2024-05-17 16:37:21 +08:00
Chandler Chen
d9a3c682cb video: rockchip: mpp: add reset ready check for vdpu383
Change-Id: I915959cc5ca9f01934e201bae110af540ac8dccb
Signed-off-by: Chandler Chen <chandler.chen@rock-chips.com>
2024-05-17 16:37:21 +08:00
Cai YiWei
d42cd4ceda media: rockchip: isp: fix multi sensor for isp39
1.fix stop no to disable yuvme
2.limit dhaz thumb size, cam_n * col * row <= 80

Change-Id: Ib90ba6fb1664dd85860b639653ad424fc0f2e37d
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2024-05-17 10:18:28 +08:00
Shunhua Lan
2828cf9ec3 media: i2c: rk628: modify audio status report
set audio present and rate ctrls to volatile so that app can get
the audio status immediately

Change-Id: I91ba1795b0b33ee83d2e2f0195d813a1c7fcfedd
Signed-off-by: Shunhua Lan <lsh@rock-chips.com>
2024-05-17 10:15:38 +08:00
Chen Shunqing
4fc7543c31 media: i2c: rk628: fix interrupts can be triggered in suspend
Signed-off-by: Chen Shunqing <csq@rock-chips.com>
Change-Id: I39955e126729c9ec1ffabcd53d3bc679d354cd0f
2024-05-17 10:13:13 +08:00
Shunhua Lan
2ee64657c0 media: i2c: rk628: implement RK_HDMIRX_V4L2_EVENT_AUDIOINFO event
Change-Id: I568ac37ce08ba86a24e1a88b83bb3cb8e878fa03
Signed-off-by: Shunhua Lan <lsh@rock-chips.com>
2024-05-16 14:49:35 +08:00
Shunhua Lan
b9aa2b4bb7 arm64: dts: rockchip: rk3576-evb1-v10-rk628-hdmi2csi: use rockchip hdmi as rk628 hdmiin sound
Change-Id: I600ce2121f9da127d79df72100b72cb59b977f37
Signed-off-by: Shunhua Lan <lsh@rock-chips.com>
2024-05-16 14:45:04 +08:00
Shunhua Lan
39c151cdbe media: i2c: rk628: register a codec for hdmirx audio
When the hdmi out device which connect to the rk628 hdmiin stopping audio
stream, The i2s clk out  by rk628 will be interrupted. Here register a codec
to inform alsa the i2s clk is interrupted.

Change-Id: I52a43843f64de964bb6415d46d7cefd17a464157
Signed-off-by: Shunhua Lan <lsh@rock-chips.com>
2024-05-16 11:16:35 +08:00
Shunhua Lan
0ecd15c432 media: i2c: rk628: only disable i2s data out only when disabling i2s out
Change-Id: I96ae219e1e0c1338120547a43726e759884f0a7c
Signed-off-by: Shunhua Lan <lsh@rock-chips.com>
2024-05-16 11:11:55 +08:00
Damon Ding
84555b3f82 arm64: dts: rockchip: rk3576-evb: add edp sound support
Change-Id: If59c59e7320f3011e193308bbb204eb3ed7baad0
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2024-05-15 17:10:00 +08:00
Damon Ding
6becc68bd5 arm64: dts: rockchip: rk3576: add property #sound-dai-cells for edp
Change-Id: I5367c1bff1598d54a0785f459f00d7c9147e081e
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2024-05-15 17:08:07 +08:00
Damon Ding
7ab25e6a29 drm/rockchip: analogix_dp: fix the max_i2s_channels to 8
According to IC design, the max_i2s_channels is 8 in
RK3568/RK3576/RK3588.

Change-Id: Ic1bda08c4b8bab72c5cf32ee5ce9aad8c1075ffe
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2024-05-15 17:06:44 +08:00
Weixin Zhou
05bd68e5d5 input: touchscreen: fix build error with CONFIG_FB
Signed-off-by: Weixin Zhou <zwx@rock-chips.com>
Change-Id: Id46e4eca111a8216cfade8038486ffcf233a9b6d
2024-05-15 16:59:02 +08:00
Chen Shunqing
e042ab4129 media: i2c: rk628: fix background not be disabled
Signed-off-by: Chen Shunqing <csq@rock-chips.com>
Change-Id: I9ac01158cddf71a46c7f91399fdc19da1bb79c92
2024-05-15 16:55:19 +08:00
Chen Shunqing
dfa65b17b1 media: i2c: rk628: fix problem of loop pulling down and up cec hpd
Signed-off-by: Chen Shunqing <csq@rock-chips.com>
Change-Id: I4fdb6d95269b836d664e3530424f1aaf54fb0a64
2024-05-15 16:54:09 +08:00
Finley Xiao
b22ce737d2 soc: rockchip: csu: Implement rockchip_csu_get_bus()
Change-Id: Ibe9d569348b19b4bad1aed3d810a3160aa5c7988
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2024-05-15 16:53:00 +08:00
Jason Zhang
8008e85058 media: i2c: rk628: add workaround for HDMI ARC
The HPD should not be triggered if the HDMI ARC is enabled.

Signed-off-by: Jason Zhang <jason.zhang@rock-chips.com>
Change-Id: If4d74ea9d72a4295a054ab0be45454a0914ab35b
2024-05-15 16:27:28 +08:00
Jason Zhang
e5c8e1cc2f media: i2c: rk628: add attributes for enabling HDMI ARC
This patch adds attributes for enabling HDMI ARC.

Signed-off-by: Jason Zhang <jason.zhang@rock-chips.com>
Change-Id: Iec7e1169efc65f298e5b5449e3803151d91c7258
2024-05-15 16:27:14 +08:00
Chandler Chen
38e425f2a3 video: rockchip: mpp: add vdpu383 int_err_mask
Change-Id: Ie9b112f55427b20242148021baf55c054a0f53e5
Signed-off-by: Chandler Chen <chandler.chen@rock-chips.com>
2024-05-15 16:25:56 +08:00
Algea Cao
efba86d983 drm/rockchip: dw_hdmi: Fix some TVS all resolutions are filtered
Some TVS edid max_tmds_clock are 0, we think it only
support hdmi1.4 resolutions.

Fixes: c1dcc6ec1e ("drm/rockchip: dw_hdmi: Fix hdmi cts hf1-31 failed")
Change-Id: Iea8b182d869fb2722701abd77ff65d7f4cf76518
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2024-05-15 16:14:36 +08:00
Damon Ding
67fd88dac5 arm64: dts: rockchip: rk3576: reduce DS of pwm0/pwm2 pins to level2
According to the SI test, reduce the drive strength of
pwm0/pwm2 pins to level2 in order to meet the signal
metrics.

Change-Id: I18b6855efd7f97096f9ee85113ef470627436615
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2024-05-15 15:34:39 +08:00
Guochun Huang
00338cf851 drm/rockchip: dsi2: enable hs clk once the init cmds be sent by default
the host processor to keep the HS serial clock running for the
peripheral which may not generate its own clock to complete
processing or pipeline movement of received data.

Change-Id: If8f08662c4a520f3ae7c37ae57037f1760912b97
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
2024-05-15 08:35:36 +08:00
Zhang Yubing
a6950c5263 phy: rockchip: usbdp: update phy parameters for SI test
Change-Id: If6da3936e35fd0dffec83b71bc6d48fb2871218d
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2024-05-14 15:51:46 +08:00
Tao Huang
59bf779088 ASoC: rockchip-spi-codec: Silence no spi_device_id warning
SPI devices use the spi_device_id for module autoloading even on
systems using device tree, after commit 5fa6863ba6 ("spi: Check
we have a spi_device_id for each DT compatible"), kernel warns as
follows since the spi_device_id is missing:

SPI driver spi_codec has no spi_device_id for rockchip,spi-codec

Add spi_device_id entries to silence the warning, and ensure driver
module autoloading works.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ie33ffd25261376f55a16ae5a34ee0fafdb6e6cd6
2024-05-14 10:49:47 +08:00
Damon Ding
3fc825d3b1 drm/panel: panel-simple: add panel_simple_spi_ids id_table
Add panel_simple_spi_ids to fix the unexpected warning
because of the check of SPI devices autoloading. The
warning may be like:
[    1.607343] SPI driver panel-simple-spi has no spi_device_id for simple-panel-spi

See the following commit for details:
commit 5fa6863ba6 ("spi: Check we have a spi_device_id for each DT compatible")

In addition, add compatible "panel-simple-spi" for
naming consistency.

Change-Id: I89a72abc75e0537e98166265376afa1c94eab600
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2024-05-14 10:34:43 +08:00
Jon Lin
784edc6ed9 spi: rockchip-test: Add spi_rockchip_test_spi_ids id_table
Change-Id: I9bc509aca655f05e6a91c014da8b6cffbf91853f
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2024-05-14 10:32:38 +08:00
Liang Chen
1edcb4fdaa arm64: dts: rockchip: rk3568: remove rockchip,max-volt for cpu0_opp_table
The property rockchip,max-volt is not used for cpu0_opp_table, so remove it.

Signed-off-by: Liang Chen <cl@rock-chips.com>
Change-Id: If0493c7029a8c67a790771cadff93e26e0f2df08
2024-05-14 10:31:54 +08:00
Hu Kejun
c135a425bc media: i2c: dw9763: support set max logical pos ioctl
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
Change-Id: Id83b55310426b3a526036496b888b559df8f3db6
2024-05-14 10:29:34 +08:00
Hu Kejun
f8f1fb7c3f media: i2c: ov13855: support get otp info
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
Change-Id: Idd9f3fe23249ebfbe85d5ea714c0136b53b023ba
2024-05-14 10:28:11 +08:00
Algea Cao
d21de2cd70 drm/bridge: dw-hdmi-qp-hdcp: Fix timeout for ksv list ready
CTS requires a minimum timeout period of 5s.

Change-Id: I6312d3334acb9171a81c13e4eda6900b7fb429da
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2024-05-14 10:26:11 +08:00
Yandong Lin
b775c13815 arm64: dts: rockchip: rk3576: add rkvdec_sram support
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Change-Id: Ibb3b7d6ab0a6950d2ffd897d0bb28885826b725d
2024-05-14 10:22:39 +08:00
Algea Cao
c1dcc6ec1e drm/rockchip: dw_hdmi: Fix hdmi cts hf1-31 failed
Hdmi cts hf1-31 required filtering yuv420 mode that frequency
exceeds the max tmds clock of edid.

Change-Id: I746a9f910444845ab84b7804ebc63bb934363ebe
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2024-05-13 20:32:19 +08:00
Chen Shunqing
b0186da406 arm64: dts: rockchip: rk628-hdmi2csi: rk628 change the interrupt to high level trigger
Signed-off-by: Chen Shunqing <csq@rock-chips.com>
Change-Id: Ie1123db45990fe164f06b2c8f40d12d4b54375e8
2024-05-13 20:30:32 +08:00