Commit Graph

1277138 Commits

Author SHA1 Message Date
Tao Huang
d2cbeecf81 Merge commit '2ee64657c086046c4d6eb78376e163a158a8a5b7'
* commit '2ee64657c086046c4d6eb78376e163a158a8a5b7':
  media: i2c: rk628: implement RK_HDMIRX_V4L2_EVENT_AUDIOINFO event
  arm64: dts: rockchip: rk3576-evb1-v10-rk628-hdmi2csi: use rockchip hdmi as rk628 hdmiin sound
  media: i2c: rk628: register a codec for hdmirx audio
  media: i2c: rk628: only disable i2s data out only when disabling i2s out
  arm64: dts: rockchip: rk3576-evb: add edp sound support
  arm64: dts: rockchip: rk3576: add property #sound-dai-cells for edp
  drm/rockchip: analogix_dp: fix the max_i2s_channels to 8
  input: touchscreen: fix build error with CONFIG_FB
  media: i2c: rk628: fix background not be disabled
  media: i2c: rk628: fix problem of loop pulling down and up cec hpd
  soc: rockchip: csu: Implement rockchip_csu_get_bus()
  media: i2c: rk628: add workaround for HDMI ARC
  media: i2c: rk628: add attributes for enabling HDMI ARC
  video: rockchip: mpp: add vdpu383 int_err_mask
  drm/rockchip: dw_hdmi: Fix some TVS all resolutions are filtered
  arm64: dts: rockchip: rk3576: reduce DS of pwm0/pwm2 pins to level2
  drm/rockchip: dsi2: enable hs clk once the init cmds be sent by default

Change-Id: If20e80d5b0b9d91304454747beafbaffb81b0e8b
2024-05-16 19:37:19 +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
Tao Huang
1bb1c459bc Merge commit 'a6950c52636737132b15e13ee172a2c42f594a4d'
* commit 'a6950c52636737132b15e13ee172a2c42f594a4d':
  phy: rockchip: usbdp: update phy parameters for SI test
  ASoC: rockchip-spi-codec: Silence no spi_device_id warning
  drm/panel: panel-simple: add panel_simple_spi_ids id_table
  spi: rockchip-test: Add spi_rockchip_test_spi_ids id_table
  arm64: dts: rockchip: rk3568: remove rockchip,max-volt for cpu0_opp_table
  media: i2c: dw9763: support set max logical pos ioctl
  media: i2c: ov13855: support get otp info
  drm/bridge: dw-hdmi-qp-hdcp: Fix timeout for ksv list ready
  arm64: dts: rockchip: rk3576: add rkvdec_sram support

Change-Id: I4de1113b4c20febc037c04b116c6f07c7a4b7451
2024-05-14 19:37:24 +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
Tao Huang
842d93042e Merge commit 'c1dcc6ec1ede1f46f8ef5e25c805d0531b74356b'
* commit 'c1dcc6ec1ede1f46f8ef5e25c805d0531b74356b':
  drm/rockchip: dw_hdmi: Fix hdmi cts hf1-31 failed
  arm64: dts: rockchip: rk628-hdmi2csi: rk628 change the interrupt to high level trigger
  arm64: dts: rockchip: rk3576-evb1-v10-rk628-hdmi2csi: enable cec for rk628 hdmirx
  media: i2c: rk628: fix cec no response when send messages
  spi: spidev-rkslv: Add spidev_rkslv_spi_ids
  spi: spidev-rkmst: Add spidev_rkmst_spi_ids
  spi: spidev: Add spidev id_table
  media: i2c: rk628: add nosignal process when get_fmt and enable stream
  media: i2c: rk628: get_fmt width must align to 8

Change-Id: I22ea938cde89d66c12ca9b641934c8d2688aee17
2024-05-13 20:33:15 +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
Chen Shunqing
68693b6b4a arm64: dts: rockchip: rk3576-evb1-v10-rk628-hdmi2csi: enable cec for rk628 hdmirx
Signed-off-by: Chen Shunqing <csq@rock-chips.com>
Change-Id: I6efa666debb66ece04be3d4725631de3cd1d0165
2024-05-13 20:29:45 +08:00
Chen Shunqing
ad4f5d739b media: i2c: rk628: fix cec no response when send messages
Signed-off-by: Chen Shunqing <csq@rock-chips.com>
Change-Id: If9c4dbe6a4aafe9117eb12140da632b8b59e5988
2024-05-13 20:25:48 +08:00
Jon Lin
2de9a7b015 spi: spidev-rkslv: Add spidev_rkslv_spi_ids
Change-Id: I1e6109f17a2d113f22f8f0206425aacbd3f12994
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2024-05-13 20:21:28 +08:00
Jon Lin
e53d33a889 spi: spidev-rkmst: Add spidev_rkmst_spi_ids
Change-Id: I45db0e79cbddab0a27337a111f20a5228add3489
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2024-05-13 20:20:55 +08:00
Jon Lin
49e918deab spi: spidev: Add spidev id_table
Fixes: 4239fdd85b ("spi: spidev: Add rockchip spidev compatible string")
Change-Id: Icb09c853361e987bf7e4d2022fc3b35548a96270
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2024-05-13 20:18:53 +08:00
William Wu
caa6ba955f arm64: dts: rockchip: rk3588-android: disable u2phy0_otg suspend for GKI
For the time being, the usb dwc3 runtime autosuspend
is not yet supported in rk3588 GKI, if we enable the
u2phy0_otg suspend mode, it may cause dwc3 device
enumeration failure.

Change-Id: I9d69dfaa10c73e6d7df1d64f8138ef45122f2d0e
Signed-off-by: William Wu <william.wu@rock-chips.com>
2024-05-13 19:53:01 +08:00
Jianwei Fan
7f0bc0de39 media: i2c: rk628: add nosignal process when get_fmt and enable stream
Change-Id: Idead58407889897d1aaddfa395d0c0eb38d7a211
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
2024-05-13 16:51:23 +08:00
Jianwei Fan
10695ebb8e media: i2c: rk628: get_fmt width must align to 8
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: I46c48b5e372352b599d44a74ca0ad8505200edd3
2024-05-13 16:51:23 +08:00
Tao Huang
77a68c7aa7 Merge commit 'b661b75c97690229bcbf827664b7262f951d90ba'
* commit 'b661b75c97690229bcbf827664b7262f951d90ba':
  arm64: dts: rockchip: rk3576-ebook: remove no use defined
  drm/rockchip: rgb: deinit output_if and output_if_left_panel for rgb output
  media: rockchip: ispp: Disable dump_file on GKI
  input: sensors: mc3230: Call filp_open() only when CONFIG_NO_GKI
  ASoC: rockchip: pdm_v2: make the volume TLV to match the units 0.01dB
  ASoC: rockchip: pdm_v2: set the pdm default gain to 24dB
  arm64: dts: rockchip: Add OP-TEE firmware node for rk3576-linux.dtsi

Change-Id: I5cc63fe0bb549fed26e472f37fe1e32731ac421b
2024-05-11 18:33:50 +08:00
Zorro Liu
b661b75c97 arm64: dts: rockchip: rk3576-ebook: remove no use defined
Type: Function
Redmine ID: #N/A
Associated modifications: N/A
Test: N/A

Change-Id: I6aa121b6942976e67913ac52167753e1676fa354
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
2024-05-11 18:11:15 +08:00
Sandy Huang
528ca6b886 drm/rockchip: rgb: deinit output_if and output_if_left_panel for rgb output
If less this commit, RGB output will be enabled by mistake when rgb
output is switched between different vp.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I673488ee63aeb18fb511f2d1d46672e83455a940
2024-05-11 16:29:40 +08:00
Tao Huang
b1543b9a25 media: rockchip: ispp: Disable dump_file on GKI
GKI do not export filp_open() and kernel_write().

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I14f0fe1d297632d19ab76c7ed63893b1670da545
2024-05-11 15:15:53 +08:00
Tao Huang
95c90bc02e input: sensors: mc3230: Call filp_open() only when CONFIG_NO_GKI
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ic125f35520517ef99b985dc5936ab3b2e7191957
2024-05-11 14:49:02 +08:00
Jason Zhu
320cb810fe ASoC: rockchip: pdm_v2: make the volume TLV to match the units 0.01dB
The volume have a step of 0.375dB, but TLV uses the units 0.01dB. It should
be changed to a step of 0.75dB to match the units of TLV.

Change-Id: Ia7a8b8449b0236f01ade5ba89064f117f5671964
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
2024-05-11 12:13:01 +08:00
Jason Zhu
3ea5c21bd5 ASoC: rockchip: pdm_v2: set the pdm default gain to 24dB
Set the default gain 24dB, this parameter can get better
performance if the voice energy is lower. In other words this
can improve PDM IP SNR.

So the applicable range of this is for sound intensity below 100dB.
If you want to record stronger sound intensity, you must set
PDM gain register but not soft gain-controller.

Change-Id: Ie8883064d124745c8ac2eec2034ccf94dcd362cb
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
2024-05-11 12:13:01 +08:00
Caesar Wang
aec1f47efe arm64: dts: rockchip: Add OP-TEE firmware node for rk3576-linux.dtsi
Add a new firmware node for OP-TEE to the rk3576-linux.dtsi file. OP-TEE is a
trusted execution environment that provides secure execution of trusted
applications.

The firmware node includes the following properties:

- compatible: Set to "linaro,optee-tz" to identify the node as an OP-TEE
  firmware node.
- method: Set to "smc" to specify that the OP-TEE firmware is accessed using
  the ARM Secure Monitor Call (SMC) instruction.

This change allows the kernel to properly initialize and use the OP-TEE
firmware on the RK3576 platform, enabling secure execution of trusted
applications and providing additional security features.

Change-Id: Id8c2fcfcb9176c90afe82d12ee9392e20c8446d1
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
2024-05-11 10:57:21 +08:00
Tao Huang
409400988b Merge commit 'a4c4ab2f3a2fa197a3796f2a8a5f92eca98fe969'
* commit 'a4c4ab2f3a2fa197a3796f2a8a5f92eca98fe969':
  media: rockchip: vicap fix current files is NULL when release fd
  video: rockchip: rga3: clear 'ret' on reset request
  media: i2c: os04a10: Fix lockdep warning
  media: i2c: imx464: Fix lockdep warning
  drm/rockchip: vop2: Fix sharp was disabled by mistake
  media: rockchip: vpss: fix online use channel assigned to offline

Change-Id: I6344c78451bdbd37863145f2ba96fb6d1463a33a
2024-05-10 20:20:13 +08:00
Jianwei Fan
a4c4ab2f3a media: rockchip: vicap fix current files is NULL when release fd
Change-Id: I1a0907bcf2c75518e8998df3d50136008d3a67f7
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
2024-05-10 20:10:59 +08:00
Yu Qiaowei
b911658d78 video: rockchip: rga3: clear 'ret' on reset request
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: I1b9b213621f821ab9e5e2ad1148e074de37a3517
2024-05-10 16:50:04 +08:00