Commit Graph

1086826 Commits

Author SHA1 Message Date
Finley Xiao
a69795219d dt-bindings: opp: rockchip: Add more properties for pvtm and pvtpll
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I0a3c0d82bf0f2e29f5975cd8aa66f0ad73120299
2023-12-25 15:26:52 +08:00
Mingwei Yan
08fd3467bb media: rockchip: vicap:fix oneframe switch to multiframe error
add oneframe switch to multiframe notify isp

Signed-off-by: Mingwei Yan <mingwei.yan@rock-chips.com>
Change-Id: If10111bc0d683b3583869217e5e2f414822e648e
2023-12-25 15:20:35 +08:00
Mingwei Yan
c5e5c0a8db media: rockchip: isp: fix 4k and dual_sensor pm oneframe error
1 if is_multi_overflow don't set is_first_double
2 avoid dual_sensor resume same sensor only readback once

Signed-off-by: Mingwei Yan <mingwei.yan@rock-chips.com>
Change-Id: I9c25801de47e308d6845b3549f767bd801f5e5f1
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
2023-12-25 15:20:35 +08:00
Zefa Chen
688395ea1a media: rockchip: vicap optimize buf rotation in thunderboot mode
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Ifc9181efeaa1b5e4c1b36acdee6b5ea33fca19aa
2023-12-25 15:20:35 +08:00
Zefa Chen
ccc66b15b4 media: rockchip: vicap fixes logic error of get thundboot_resmem_head
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I7e438b054f9d5e43e74bfb76ad45f0ea8995f9d6
2023-12-25 15:20:35 +08:00
Zefa Chen
5a05693056 media: rockchip: vicap fixes some error for 4K with AOV
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Ifb6fa35ff92c609145a64d6274aeb2c249867605
2023-12-25 15:20:35 +08:00
Wang Panzhenzhuan
6f0438f55f media: i2c: nvp6324: add workqueue support
add workqueue to detect ahd state

Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
Change-Id: Iff9cee96b4b442b7e1e9cc44ca99027252bbbe16
2023-12-23 03:16:36 +00:00
Jon Lin
63b60130f6 mtd: spinand: unim: Support new devices
UM19A1HISW, UM19A0HCSW, UM19A0LCSW, UM19A1LISW

Change-Id: I52542258714cc6fe9d337c69a12f5921be4eae4f
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2023-12-22 20:02:52 +08:00
Cody Xie
aeb84b82ac arm64: dts: rockchip: rk3588-vehicle-evb-v22: Use MAX96756 GamePAD box
Change-Id: I9b7302eaeb5601a92091925658eca137842af37e
Signed-off-by: Cody Xie <cody.xie@rock-chips.com>
2023-12-22 20:01:32 +08:00
Cody Xie
ad65017d04 arm64: dts: rockchip: Add max96756 dtsi for RK3588 Vehicle EVB board
Change-Id: I592f401ba449822b037a81c9abeeeaa30165ac12
Signed-off-by: Cody Xie <cody.xie@rock-chips.com>
2023-12-22 20:01:32 +08:00
David Wu
2b42b3527e i2c: busses: rk3x: Sync with i2c->msg with idle state
Ensure that the I2C->msg is synchronized with the idle state,
and the I2C->msg may still be used in the stop phase, need to
wait until the I2C transfer is completed, and then set I2C->msg
to be null.

Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: I8a8e8c1e72f28cf4c95fe4efb559177056f483d1
2023-12-22 17:59:03 +08:00
David Wu
6272868cd8 i2c: busses: rk3x: Don't care about start ipd
If the start interrupt is not enabled, don't care about this
interrupt, clean it can slove the warning log:
"rk3x-i2c fead0000.i2c: unexpected irq in STOP: 0x10 may appear".

Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: I0ebb145ac7971b4c128c172e136bd1dda6e6192e
2023-12-22 17:59:03 +08:00
Huang zhibao
6ee328c3d6 arm64: dts: rockchip: rk3308-evb-audio-v10-display-rgb: add gt911 support
Change-Id: I16764d76cd60c3d735cbc243ef7c5e42c6c159dd
Signed-off-by: Huang zhibao <hzb@rock-chips.com>
2023-12-22 16:48:13 +08:00
Lan Honglin
9c85271688 media: i2c: sc530ai support thunderboot
Change-Id: Ia8214a1ea0431d3382c50a2ff97a4e21520d1005
Signed-off-by: Lan Honglin <helin.lan@rock-chips.com>
2023-12-22 16:47:17 +08:00
Chuanhu Sun
24af1ec6d3 media: i2c: sc200ai: sensor close i2c in standby mode
Signed-off-by: Chuanhu Sun <aaron.sun@rock-chips.com>
Change-Id: I67e01f1a33de020afed75ad62199672f38753560
2023-12-22 16:41:16 +08:00
Chuanhu Sun
2fe1ecb994 media: i2c: sc200ai: remove use meta fps select sensor mode
Signed-off-by: Chuanhu Sun <aaron.sun@rock-chips.com>
Change-Id: Ic8e88594e410e8c734d64230e20e7f15005a24c6
2023-12-22 16:41:16 +08:00
Tao Huang
9731742ad5 mfd: rkx110_x120: make serdes_connector_detect() static
drivers/mfd/rkx110_x120/rkx110_x120_panel.c:59:1: warning: no previous prototype for 'serdes_connector_detect' [-Wmissing-prototypes]

Fixes: 2281a7ab25 ("mfd: rkx110_x120: serdes panel register bridge and connector")
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ia20962a6b866a24a9c18f3e4181d6a1d616e5c49
2023-12-22 09:08:13 +08:00
Zhang Yubing
2281a7ab25 mfd: rkx110_x120: serdes panel register bridge and connector
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
Change-Id: I9711b010f1ecf0b7400d78456fe39678ce2822dc
2023-12-21 19:15:40 +08:00
Damon Ding
f1c0d82ea3 arm64: dts: rockchip: rk3588-evb: add edp 8lane display board
EDP panel M280DCA supports 3840x2160p144 with 8lanes.

Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: I90cb80d6534c1c56610a55b8e6e90f5c9a712b5a
2023-12-21 16:59:52 +08:00
Sandy Huang
7904c8b820 drm/rockchip: vop2: update rk3568 max height to 4096
Usually we think rk3568 max resolution is 4096x2160, in face rk3568 can
also support 2160x4096.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I96358f481f9e26d1196e2118b3ce3b82c4a6ce82
2023-12-21 16:28:06 +08:00
Sugar Zhang
8fb9b4c3ba ASoC: rockchip: i2s-tdm: Register PCM before DAI component
API snd_soc_register_component will try to rebind card per
each component register. and the ASoC allow no-pcm card instance.

  devm_snd_soc_register_component
      snd_soc_try_rebind_card
          snd_soc_bind_card
              snd_soc_add_pcm_runtime
  devm_snd_dmaengine_pcm_register

So, we should register PCM before DAI component.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I578b7c54b96cfa89fd2f8cf346832e2b68a1d355
2023-12-21 16:20:44 +08:00
Sugar Zhang
87d0688458 drm/bridge: synopsys: Fix no sound on some TVs
This patch do full hw params re-configuation instead of the reset one.

Fixes: 0c2c6c9430 ("drm/bridge: synopsys: Fix wrong FIFO reset on AUD_CONF0")

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I1e259797ce22cd9a3be7086e1f21bd02c440ac57
2023-12-21 16:20:44 +08:00
Jon Lin
9403086898 spi: spidev_rkslv: Support dynamic adjustment of system performance
If the DRAM frequency conversion jitters during the transmission process,
it will cause the DMA to be unable to transport SPI FIFO data in a timely
manner, resulting in FIFO overflow/underflow.

Clear performance status for short cmd packet and Set the performance
status for data packet.

Change-Id: I65532ba309677a8d98c8277875a3bd358ca44e44
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2023-12-21 16:15:27 +08:00
Sandy Huang
c401e4da24 drm/rockchip: vop2: fix other display dev do disable and enable when disable writeback
At following commit, we update connectors_changed flag for writeback
enable lead to other display dev do disable and enable:

c7e2a3387e ("drm/rockchip: vop2: No need for a full modested when the
only writeback connector changed")

And revert the drm framework update for GKI:
82a56746d9 ("Revert "drm: Not mark crtc state as connectors_changed
when a writeback connector attatch to a crtc"")

But when writeback disable, the DRM framework still thought crtc
connectors is changed and set connectors_changed to true, this will lead
other display dev do disable and enable, so we add this commit to fix
it.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: Ie69d63ea19110251273eb8969fc40a4fceb5e309
2023-12-21 16:13:35 +08:00
Damon Ding
b9ceef773d drm/rockchip: analogix_dp: add mode_valid func support
The edp controller can not support display timings whose
front porch or back porch is 0.

Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: I689f9f23154cffd7199e65767e2a977cd3404ea9
2023-12-20 16:46:57 +08:00
Damon Ding
e56d7f65a4 drm/rockchip: analogix_dp: fix panel parsing in split mode
If using split mode with edp0 and edp1, the node of which
displays in the left area should have "split-mode" property
and config panel node, and the other does not.

Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: I0533df43d5fd5d9ea3fd2fb94c9a8cdab1fd59e2
2023-12-20 16:26:11 +08:00
Mingwei Yan
3312d732ba media: rockchip: isp: wrap mode first done don't send event
Signed-off-by: Mingwei Yan <mingwei.yan@rock-chips.com>
Change-Id: I723ce7df449ae4020570e79990f671eb455ba55e
2023-12-20 16:19:45 +08:00
Jon Lin
8dc5855332 PCI: rockchip: dw: Add dev mutex to protect elbi0 irq user
Change-Id: I9dad204d1d714ecbfa9ac0872123e0001499b981
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2023-12-20 16:18:49 +08:00
Finley Xiao
bd14f96e5e soc: rockchip: rockchip_system_monitor: Fix list_del corruption when del video info
list_del corruption, ffffffc028662d18->next is LIST_POISON1 (dead000000000100)
------------[ cut here ]------------
kernel BUG at lib/list_debug.c:47!
Internal error: Oops - BUG: 0 [#1] PREEMPT SMP
Modules linked in: 8822es(O) sprdbt_tty
Process CtrlThread (pid: 3697, stack limit = 0x0000000060d302a5)
CPU: 1 PID: 3697 Comm: CtrlThread Tainted: G           O      4.19.232 #96
Hardware name: Rockchip RK3528 DEMO4 DDR4 V10 Board (DT)
pstate: 40400005 (nZcv daif +PAN -UAO)
pc : __list_del_entry_valid+0x64/0xb0
lr : __list_del_entry_valid+0x64/0xb0
sp : ffffff800fd1bc70
x29: ffffff800fd1bc70 x28: ffffffc05c468000
x27: 0000000000000000 x26: 0000000000000000
x25: 0000000046000000 x24: 0000000000000011
x23: ffffff800fd1be60 x22: ffffff80098188a0
x21: ffffff8009818000 x20: ffffffc0462af700
x19: ffffffc028662d00 x18: ffffffffffffffff
x17: 0000000000000000 x16: 0000000000000000
x15: ffffff800934a980 x14: 4f53494f505f5453
x13: 494c207369207478 x12: 656e3e2d38316432
x11: 3636383230636666 x10: 66666666202c6e6f
x9 : 6974707572726f63 x8 : 3030303030303030
x7 : 0000000000000058 x6 : ffffffc07f74aa18
x5 : ffffffc07f74aa18 x4 : 0000000000000000
x3 : ffffffc07f753908 x2 : ac674fb1e4701200
x1 : 0000000000000000 x0 : 000000000000004e
Call trace:
 __list_del_entry_valid+0x64/0xb0
 rockchip_update_system_status+0x168/0x250
 status_store+0x1c/0x38
 kobj_attr_store+0x14/0x28
 sysfs_kf_write+0x48/0x58
 kernfs_fop_write+0xf4/0x220
 __vfs_write+0x34/0x158
 vfs_write+0xb0/0x1d0
 ksys_write+0x64/0xe0
 __arm64_sys_write+0x14/0x20
 el0_svc_common.constprop.0+0x64/0x178
 el0_svc_compat_handler+0x18/0x20
 el0_svc_compat+0x8/0x34

Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I42e9c42d7e65c742226f82b9367466b2ed86550d
2023-12-20 15:27:59 +08:00
Yandong Lin
ea89a09451 video: rockchip: mpp: fix watch dog interrupt storm issue
The enc did not stop working when the watch dog timeout was triggered,
and still check timeout and trigger watch dog irq. It will cause watch
dog interrupt storm.

Solution:
1. Mask watch dog irq when first watch dog irq trigger.
2. Set IRQF_ONESHOT to ensure the irq handling is completed.

Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Change-Id: I741fe9fd96486641b1ee5d337ecc144e29778157
2023-12-20 15:10:28 +08:00
ZhiZhan Chen
f0661e47e2 arm64: dts: rockchip: rk3308-evb-audio-v10-display-rgb: enable pixelclk active
Change-Id: I37af8539d753af9ed4ddb4581d62c83de750a37a
Signed-off-by: ZhiZhan Chen <zhizhan.chen@rock-chips.com>
2023-12-20 14:57:28 +08:00
XiaoDong Huang
ed577e0c81 ARM: rockchip: rv1106_pm: do hptimer soft adjust
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
Change-Id: Ic5ca15872d3c03224104a2d1e0d18e9c0a2898be
2023-12-19 17:22:55 +08:00
XiaoDong Huang
f0c103f43b ARM: rockchip: add hptimer functions
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
Change-Id: I947b8ced55b14a7c59f5092be255e72e694e6ad9
2023-12-19 17:22:11 +08:00
XiaoDong Huang
e0db73deaa ARM: dts: rockchip: rv1106: add rockchip-suspend node
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
Change-Id: I6d3fd27d60973f0569abedcee3b8488ab9ac3513
2023-12-19 17:22:11 +08:00
XiaoDong Huang
34a34249b3 dt-bindings: suspend: add rv1106 pm related macros
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
Change-Id: I999012f191bc40d29e728a61efc24d1b73370074
2023-12-19 17:22:11 +08:00
XiaoDong Huang
76cc23644b ARM: rockchip: rv1106: sleep: support pm config
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
Change-Id: I0901947b0f978a985e50be34d42c9e63f19649dd
2023-12-19 17:22:11 +08:00
XiaoDong Huang
9284fc4ac6 ARM: configs: rockchip: rv1106-pm: enable CONFIG_ROCKCHIP_SUSPEND_MODE
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
Change-Id: I4c98df0e65aefda4ebbcab342aa19e8b5fad07f5
2023-12-19 17:22:11 +08:00
XiaoDong Huang
c20415c7c6 soc: rockchip: pm_config: add compatible "rockchip,pm-config"
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
Change-Id: Ic87607c3fff5b4adbe50e8312f3cab6ce6ccc329
2023-12-19 17:22:11 +08:00
XiaoDong Huang
f109558947 soc: rockchip: pm_config: support sleep_io_config
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
Change-Id: Idbb08bb3f7c1deff8e53348dbee1a13785568b75
2023-12-19 17:22:11 +08:00
XiaoDong Huang
945dd8e6cb soc: rockchip: pm_config: add rockchip_get_cur_sleep_config function
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
Change-Id: I90fb297782edda1c955786705adc44a4062f3ba8
2023-12-19 17:22:11 +08:00
XiaoDong Huang
67209dfb7d soc: rockchip: Kconfig: delete ROCKCHIP_SUSPEND_MODE depends on ROCKCHIP_SIP
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
Change-Id: I4e4112951a018628687b888b75cddd10e9d31620
2023-12-19 17:22:11 +08:00
Zhang Yubing
ad8f45b6ce mfd: rkx110_x120: support pattern generator for V1
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
Change-Id: I0fef8a64dd5602ac8642142b247b4198baef56cb
2023-12-19 17:11:43 +08:00
Sandy Huang
c17a354602 arm64: dts: rockchip: px30: fix vopb register length error
Change-Id: Id3972d03297542ca1738f0b13fe6fb1075f1af42
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2023-12-19 14:44:25 +08:00
Finley Xiao
44dec9b035 soc: rockchip: opp_select: Add support to parse rockchip,pvtm-voltage-sel-<name>
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: Icc29a8f8b3791dc9cb899dde4c2755d181a4c0c4
2023-12-19 14:43:01 +08:00
Finley Xiao
feecbd010e soc: rockchip: rockchip_system_monitor: Add support to use low temp pvtpll config
Change-Id: Ifa96a101008587309ca10ae6c2bd76424da6039b
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2023-12-19 14:43:01 +08:00
Finley Xiao
4df54d5e56 cpufreq: rockchip: Add support to init pvtpll table
This patch adds support to parse pvtpll config from devicetree, and
change config through sip smc interface.

Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I74f2127d862db005433d0a9da2703629f80b0faa
2023-12-19 14:43:01 +08:00
Finley Xiao
4149cbb903 soc: rockchip: opp_select: Implement rockchip_init_pvtpll_table()
This patch adds support to parse pvtpll config from devicetree, and
change config through sip smc interface.

Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I5f23b9eb1d358a95b690ca214e35927e74451af1
2023-12-19 14:43:01 +08:00
Finley Xiao
ee4a8d1396 firmware: rockchip_sip: support pvtpll config
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I37f96edc8a97eaed2399c4ec4e7e1b17fc1f98ce
2023-12-19 14:43:01 +08:00
Finley Xiao
7fc3233fd1 soc: rockchip: opp_select: Add missing of_node_put()
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: Ibb6afa022bffc74ef3ecedd40ba7fc47dd4b0b7f
2023-12-19 14:43:01 +08:00
Jon Lin
f12596a9ba PCI: rockchip: dw: Adding a retry mechanism to the enumeration process
When there is a small probability of signal abnormality, try resetting
and enumerating again.

Change-Id: Id37950dc62a497dd1c4703c42de036ce50aaec68
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2023-12-19 09:23:28 +08:00