Commit Graph

1268996 Commits

Author SHA1 Message Date
Yu Qiaowei
05baafeecf video: rockchip: rga3: mpi: fix submit failed causing request to be released
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: I05976707580d6892cb706356f8063152c4bfca1e
2024-04-29 12:02:56 +08:00
Sandy Huang
dc39be5e13 drm/rockchip: vop2: fix compile warning
[clang] drivers/gpu/drm/rockchip/rockchip_drm_vop2.c:2709:9: warning:
Division by zero [core.DivideZero]

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I95a28037ab52a10e3d2e333b773ade4f8e2e0c87
2024-04-29 09:16:57 +08:00
Sandy Huang
5afebb19ce drm/rockchip: vop2: add aclk reset mode for iommu reset
set vop aclk mode to ROCKCHIP_VOP_ACLK_RESET_MODE is better
for power and performance.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I8514e57af6ac8950112a6c675f5eb03fe4e44cf0
2024-04-29 09:16:18 +08:00
Sandy Huang
f37500067e arm64: dts: rockchip: rk3576: add aclk reset mode to vop opp table
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I3d05b91b22696e597010954a2c550694ce4891a3
2024-04-29 09:15:42 +08:00
LiuDiMing Lin
ebb1606c2a arm64: dts: rockchip: add rk3576-evb1-v10-ipc-3x-linux.dts
Change-Id: I7eba699ffba9d7800b873121150fc40f2c81ba8e
Signed-off-by: LiuDiMing Lin <fenrir.lin@rock-chips.com>
2024-04-28 16:22:10 +08:00
Chaoyi Chen
a7377e78ec drm/rockchip: Add vop lite config support for rk3576
The VOP Lite unit is found on rk3576 which use legacy VOP architecture.

Change-Id: I800523a7dac1e086db26b3fbf731f3d07e1ed68d
Signed-off-by: Chaoyi Chen <chaoyi.chen@rock-chips.com>
2024-04-28 15:14:44 +08:00
Huibin Hong
f99134904e serial: 8250: fix bug rts is inactive when auto flow is enable
To save mcr value when uart is reset for setting baudrate.

Change-Id: I1a4fcd78498cf4f601d0c8461d1db67dc0ed6f9e
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
2024-04-28 14:21:56 +08:00
Johnson Ding
12fd5673bd video: rockchip: mpp: jpege: fix isr return value incorrect problem
The wrong value will make irq counter stop to increase at 200001, and
software takes more time to finish encoding.

Fixes: 53048fad2a ("video: rockchip: mpp: Add JPEG VPU720 driver")
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com>
Change-Id: Id98fcdc6d4e617e8dfba1bc6471295a14c48594b
2024-04-28 14:12:41 +08:00
Sandy Huang
61aaa35883 drm/rockchip: vop2: force select BT601L for r2y when it is yuv overlay
VOP YUV overlay only can support YUV limit range, so force select BT601L
todo R2Y.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I3af0d916d549a1fd890f14d3723f3264c779a1ea
2024-04-26 14:45:49 +08:00
Algea Cao
e876c6e23b drm/rockchip: vop2: Set plane csc yuv path when DCI is enabled
Plane csc determines its own color input path on the input
color format of plane. So when DCI is enabled should force
yuv csc path.

Change-Id: I66d5f3e773fc0fd631673622c22b242dcc791afe
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2024-04-26 14:32:39 +08:00
Jon Lin
2df0a44f0a arm64: dts: rockchip: rk3576: remove SCLK_SFC assigned-clock setting
1.Delete the assigned-clock
2.Only rely on spi-max-frequency configuration in sub nodes

Change-Id: I040a3afaa0c92de854f9f21eb58e912d6638b080
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2024-04-26 14:10:21 +08:00
Jon Lin
ef7384222b arm64: dts: rockchip: rk3588: remove SCLK_SFC assigned-clock setting
1.Delete the assigned-clock
2.Only rely on spi-max-frequency configuration in sub nodes

Change-Id: I952376e0e898635dda299c833759a84efbe631cf
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2024-04-26 14:10:21 +08:00
Jon Lin
a4354b5355 arm64: dts: rockchip: rk3562: remove SCLK_SFC assigned-clock setting
1.Delete the assigned-clock
2.Only rely on spi-max-frequency configuration in sub nodes

Change-Id: Idb3f0d243faf72659e81416063a920401c1e13b7
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2024-04-26 14:10:21 +08:00
Jon Lin
db2ade5d89 ARM: dts: rockchip: rv1106: remove SCLK_SFC assigned-clock setting
1.Delete the assigned-clock
2.Only rely on spi-max-frequency configuration in sub nodes

Change-Id: I481d1c6ffeb2f7f70fe7a8a8cf1a633319a0b4bd
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2024-04-26 14:10:21 +08:00
Jon Lin
7f9bba3dfd ARM: dts: rockchip: rv1106 boards: remove SCLK_SFC assigned-clock setting
1.Delete the assigned-clock
2.Only rely on spi-max-frequency configuration in sub nodes

Change-Id: Ia8961e12ef5f6812ac12de1b6fdfdb5f6bda8267
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2024-04-26 14:10:21 +08:00
Jon Lin
21c833e3c9 soc: rockchip: thunderboot_sfc: Increase the waiting time to adapt to lower frequency
Wait 5 seconds.

Change-Id: I5dc9e6c8ed99eec742cbb1eab84bf0ce8a6a8e0e
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2024-04-26 14:10:21 +08:00
Jon Lin
37db7be369 spi: rockchip-sfc: Increase the waiting time to adapt to lower frequency
Wait 5 seconds.

Change-Id: I7a91d5bb4efa939a365f101b61f3246912558046
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2024-04-26 14:10:21 +08:00
Zhang Yubing
6d87b35a1d drm/rockchip: dw-dp: fix HDCP1.3 write Ainfo register issue
Some device DPCD Reversion is 1.2, but It can't write
Ainfo register REAUTHENTICATION_ENABLE_IRQ_HPD bit. For there
devices, it should avoid write REAUTHENTICATION_ENABLE_IRQ_HPD
bit.
It better to write REAUTHENTICATION_ENABLE_IRQ_HPD bit to Ainfo
register just when the DPCE Reversion higher than 1.2.

Change-Id: I10dcae33e8f33c9d41a05752caebc9cd085e729b
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2024-04-26 14:09:17 +08:00
Zhang Yubing
71b54b4228 drm/rockchip: dw-dp: delay more than 5s for repeater device
In DisplayPort HDCP1.3 Spec Section 2.2.2 page 12, It
indicate that the maximum-permitted time to receive ready
status bit is 5s for repeater.

Change-Id: I5a01c742328c2c6dfbd49fa31f952ab5b858fee0
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2024-04-26 14:09:17 +08:00
Zhang Yubing
86c5457a7e drm/rockchip: dw-dp: enable hdcp after enable video stream
In DisplayPort HDCP1.3 CTS case 1A-01 page 10, unencrypted video
signal should be sent before enable hdcp.
In DisplayPort HDCP2.2 CTS case 1A-1 page 12, unencrypted video
signal may be sent before enable hdcp.

Change-Id: I12f5ec4143728683663cba5a0f079c915c500383
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2024-04-26 14:09:17 +08:00
Shawn Lin
eec3ea3cc7 scsi: ufs: rockchip: Remove UFSHCD_CAP_RPM_AUTOSUSPEND
The benchmark test shows a significant score drop from 87038 to 73764,
if enabling UFSHCD_CAP_RPM_AUTOSUSPEND, due to the slow recover process
during readom rw test.

Meanwhile we finally have a power consumption result, which shows even more power
consumption was observed due to the phy/unipro status mismatch, one side is in H8,
another side lost the link.

|scene                        | UFS 128G rpm disable        |UFS 128G rpm enable      |
|-------------------------------------------------------------------------------------|
|screen 3.8V   |TEMP25 |DDR   |V     |mA      |VBAT         |V    |mA     |VBAT       |
|-------------------------------------------------------------------------------------|
|Static Desk   |36     |528   |3.8V  |419.11  |3.845|414.2  |3.8V |418.79 |3.843|414.1|
|-------------------------------------------------------------------------------------|
|Static Desk[1]|36     |528   |3.8V  |125.76  |3.882|123.1  |3.8V |127.05 |3.881|124.4|
|-------------------------------------------------------------------------------------|
|1080P video   |36     |528   |3.8V  |556.83  |3.827|552.9  |3.8V |584.63 |3.829|580.2|
|-------------------------------------------------------------------------------------|
|1080P video[2]|36     |528   |3.8V  |525.06  |3.837|520    |3.8V |499.98 |3.839|494.9|
|-------------------------------------------------------------------------------------|
|Note: [1] no screen  [2] no buffering                                                |
|-------------------------------------------------------------------------------------|

Moreover it significantly increases the possibility of failing to wait UIC ready state,
which can lead to very long reset and restore link process, adding more latency to the
system.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: I9839fdb4a93c0ecae4b581f07db3281a40a2fa25
2024-04-26 11:40:42 +08:00
Shunhua Lan
c3ff89a211 ASoC: rockchip: sai: add sai wait time init
Change-Id: Ia10d66b67968d092c5d2903334b29078f65c8664
Signed-off-by: Shunhua Lan <lsh@rock-chips.com>
2024-04-25 15:50:06 +08:00
Wang Panzhenzhuan
207de3e76b media: i2c: ov08d10: add camera driver
Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
Change-Id: I55afe3f9e8c3f1140621acade78823c0b80af278
2024-04-25 14:49:53 +08:00
Sandy Huang
698311c7c0 drm/rockchip: vop2: add support vop post CRC
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: Ia97767837d5e70e7d0234f1b931009b46f5384c4
2024-04-24 19:41:24 +08:00
Zhang Yubing
be9a609b6e drm/rockchip: dw_hdcp2: describe member of hl_device
Change-Id: I569ad2679976f581a2071f3398992d91844308b9
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2024-04-24 19:39:32 +08:00
Luo Wei
5fd3a7a183 arm64: dts: rockchip: rk3576-vehicle-evb: enable reg check for display
Signed-off-by: Luo Wei <lw@rock-chips.com>
Change-Id: I8185bcb8daf82e90b3d59ebaa3dc7d47d0b6de73
2024-04-24 19:35:24 +08:00
Luo Wei
279edce686 mfd: display-serdes: detect lock gpio and register to check status
Signed-off-by: Luo Wei <lw@rock-chips.com>
Change-Id: If5c215395010f5d773db6d43073cd2b4ceda693b
2024-04-24 19:35:24 +08:00
Finley Xiao
9a010b3e20 arm64: dts: rockchip: rk3576-tablet-v10: Add vop-supply for vop
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I89d7729ee9e1352d253487b8a024708083a4fbc9
2024-04-24 19:34:31 +08:00
Finley Xiao
cff460658b arm64: dts: rockchip: rk3576-evb: Add vop-supply for vop
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I20f4337f7e2818815eb6c1c7539b5ac119d96f78
2024-04-24 19:34:31 +08:00
Finley Xiao
ffec6aa54d arm64: dts: rockchip: rk3576: Add opp table for vop
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I7637801bb7d9164b54ae9f504b816020ee8652a3
2024-04-24 19:34:31 +08:00
Finley Xiao
4c23385ff2 arm64: dts: rockchip: rk3576: Raise voltage for ddr and logic
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I0661b1c98217f15c3a7e9e7b0f7cb5661c1cca8b
2024-04-24 19:34:31 +08:00
Finley Xiao
d7be04f8ce arm64: dts: rockchip: rk3576: Add opp-info for opp table
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I8295cea84fe69a94d6601a0d02a844cae3096c4e
2024-04-24 19:34:31 +08:00
Finley Xiao
8929e39909 arm64: dts: rockchip: rk3576: Raise voltage for cpu gpu and npu
Change-Id: I2d1aa39490bb9f5ac22a0ce5aa32c41e1923be71
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2024-04-24 19:34:31 +08:00
Jianwei Fan
0dd79cc549 media: i2c: rk628: post process add color bar debug node
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: I95072008c9033b92bcbd4f0c6b20a86df57ad2c4
2024-04-24 19:27:09 +08:00
Wang Panzhenzhuan
6d1aec8459 media: i2c: ov16885: fix kernel-6.1 compile errors
Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
Change-Id: I024209e8e33c2cafa2e61efdf0656942f105be5e
2024-04-24 16:44:51 +08:00
Zefa Chen
0f15907d07 media: rockchip: vicap add dma_fence to support low latency
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I2dc5b7956e5b89f1d03d8276cd5732fcdcfbc69c
2024-04-24 16:28:29 +08:00
Cai Wenzhong
08afa04dc4 media: i2c: maxim: remote: dummy: init_regs using static function
Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Change-Id: I99662e4486686b2f6815c3a52ecb02de676505f5
2024-04-24 15:02:57 +08:00
Damon Ding
718382dfea pwm: rockchip: keep the mode fixed in capture mode although pwm is disabled
The PWM io input/output state is controlled by PWM mode
configuration. In order to avoid the antagonistic drive
state between the PWM pin and the external pin, keep the
PWM mode fixed in capture mode although PWM is disabled.

Change-Id: I6183987c9bef6f444726643f878c5384f63844d0
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2024-04-23 18:34:44 +08:00
Tao Huang
40e33abf50 drm/rockchip: vop: Fix kernel-doc warnings
drivers/gpu/drm/rockchip/rockchip_drm_vop.c:2386: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
 * rockchip_atomic_helper_update_plane copy from drm_atomic_helper_update_plane
drivers/gpu/drm/rockchip/rockchip_drm_vop.c:2386: warning: missing initial short description on line:
drivers/gpu/drm/rockchip/rockchip_drm_vop.c:2458: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
 * drm_atomic_helper_disable_plane copy from drm_atomic_helper_disable_plane
drivers/gpu/drm/rockchip/rockchip_drm_vop.c:2458: warning: missing initial short description on line:

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ie9d2e00238e4c45d6a8ad7581ea7482b14092a23
2024-04-23 11:35:09 +08:00
Tao Huang
952d1e9902 drm/rockchip: vop2: Fix kernel-doc warnings
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c:6139: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c:6210: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I24f65edf0c4900c09d5b68411a8f2dd473260ce6
2024-04-23 11:32:08 +08:00
Cai Wenzhong
765d26b690 media: i2c: maxim: driver version v3.03.00
Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Change-Id: Id36b507fd07a4d295b0dc974c2af44ec3522cc84
2024-04-22 18:33:02 +08:00
Cai Wenzhong
4d5181c72f media: i2c: maxim: remote: rename sensor module ko, resolve duplicate name issues
Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Change-Id: I5d1d5213fd849b83236c7bb0c6f62eab6ba0eb6d
2024-04-22 18:32:48 +08:00
Zhibin Huang
c8cc469259 drm/panel: panel-simple: delete panel-notifier in loader protect
The event of the notification does not match the actual status

Type: Fix
Redmine ID: N/A
Associated modifications: N/A
Test: N/A

Signed-off-by: Zhibin Huang <zhibin.huang@rock-chips.com>
Change-Id: Ib2a9cb1888c27c74cc14f0f09707a670e65f0aa2
2024-04-22 18:02:36 +08:00
Liang Chen
056c54ef38 arm64: dts: rockchip: rk3576-eink: enable csu node
Signed-off-by: Liang Chen <cl@rock-chips.com>
Change-Id: Ifbacb5c37e30b2d040f42bdc5c1bad90c9f00338
2024-04-22 17:50:58 +08:00
Liang Chen
f343d47d09 arm64: dts: rockchip: rk3576-tablet: enable csu node
Signed-off-by: Liang Chen <cl@rock-chips.com>
Change-Id: I0fa3855094e2774a91c9f667c2521b70e315de36
2024-04-22 17:50:58 +08:00
Zorro Liu
2e23135a10 arm64: dts: rockchip: rk3576-ebook: add hall config for ultra sleep
Change-Id: Ieb8a8b01fed4284da56026254a5f2881d25a6123
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
2024-04-22 17:13:11 +08:00
Zorro Liu
5c6d5ffd84 input: sensors: hall: mh248: judge wakeup sources for hall sensor
for hardware reason, we need judge wakeup sources to avoid wakeup
screen by wrong irq when wakeup from ultra sleep

Change-Id: I5a3ef85eb71a312ba0a9e992b70ef0b14e00fc47
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
2024-04-22 17:12:32 +08:00
Zorro Liu
8e0f2bed69 arm64: dts: rockchip: rk3576-ebook: set hall int pull up
Change-Id: I58c044d8c49b74913f6fdc1efa26515869eec08c
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
2024-04-22 17:10:06 +08:00
Jon Lin
21cd7557bd mtd: spi-nor: Fix the issue of buffer contamination
spi_nor_write_sr will pollute the buffer of sr_cr buffer when calling
spi_nor_read_sr.

Change-Id: I217141297df4f448b64c61f1573e7e40d6874903
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2024-04-22 16:57:39 +08:00
shengfei Xu
75584d57e3 power: supply: rockchip-charger-manager: Add config for the charge pump
The charge pump depends on ROCKCHIP_CHARGER_MANAGER_CHARGE_PUMP

Signed-off-by: shengfei Xu <xsf@rock-chips.com>
Change-Id: I8b47d7525fc2549417c368a68f7486c975cbf427
2024-04-22 16:42:54 +08:00