Commit Graph

1276774 Commits

Author SHA1 Message Date
Sugar Zhang
465e356900 dmaengine: pl330: Fix desc_pool list-add corruption
list_add corruption. prev->next should be next (ffffff8102792618), but was ffffff8102af00a8. (prev=ffffff8101640460).

kernel BUG at lib/list_debug.c:28!
Internal error: Oops - BUG: 0 [#1] PREEMPT SMP
Modules linked in: bcmdhd dhd_static_buf tiot_driver r8168
CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.10.66-abeng..20241011.190040 #1
Hardware name: Rockchip RK3588S TABLET SU30PRO SSD V12 Board (DT)
pstate: 60400089 (nZCv daIf +PAN -UAO -TCO BTYPE=--)
pc : __list_add_valid+0x94/0x98
lr : __list_add_valid+0x94/0x98
sp : ffffffc01261bdf0
x29: ffffffc01261bdf0 x28: ffffffc0109f01c0
x27: ffffff8102af14e0 x26: 0000000000000000
x25: ffffff8102792618 x24: ffffff8101640460
x23: ffffff8102f66800 x22: ffffff8101640a80
x21: 0000000000000000 x20: ffffff8102af1428
x19: ffffff8102792480 x18: ffffffc012611048
x17: 0000000000000000 x16: 00000000000000d8
x15: 0000000000000004 x14: 0000000000002d18
x13: ffffffc012060018 x12: 0000000000000003
x11: 0000000100042d18 x10: 0000000000000000
x9 : 9df2689215223100 x8 : 9df2689215223100
x7 : 5f78783338387761 x6 : ffffffc01226f350
x5 : ffffffffffffffff x4 : 0000000000000000
x3 : ffffffc011d08caf x2 : ffffff84f1d098c8
x1 : 0000000000000000 x0 : 0000000000000075
Call trace:
 __list_add_valid+0x94/0x98
 pl330_tasklet+0x204/0x2c4
 tasklet_action_common+0x11c/0x414
 tasklet_action+0x28/0x38
 _stext+0x108/0x408
 __irq_exit_rcu+0xc0/0xc4
 irq_exit+0x14/0x28
 __handle_domain_irq+0x84/0xd0
 gic_handle_irq+0x78/0x154
 el1_irq+0xe4/0x1c0
 cpuidle_enter_state+0x180/0x3b8
 cpuidle_enter+0x3c/0x58
 cpuidle_idle_call+0x158/0x238
 do_idle+0xac/0xfc
 cpu_startup_entry+0x28/0x2c
 rest_init+0xd8/0xec
 arch_call_rest_init+0x14/0x24
 start_kernel+0x3d8/0x500

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I5ad862db58262fb9ec39bbfe273dcb0215bb1c9d
2024-11-25 17:19:35 +08:00
Sugar Zhang
0f41390f2f dmaengine: pl330: Report DMA_IN_PROGRESS for infinitely cyclic
The infinitely cyclic without CPU intervention use the single desc,
so, should always return DMA_IN_PROGRESS to match its status.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I1e104d2eadb5ba2c7271a830fa35a047891562c0
2024-11-25 14:07:50 +08:00
Joseph Chen
4b09c335c2 ARM: dts: rockchip: rk3502-evb1-v10: Set SAI1_MCLK sleep pull-down
sai mclk is not controlled by sai controller driver but peri device driver,
so set it here for saving system suspend power.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Ibca621eb2975b06a7fd2d805db06b8dd70ec0596
2024-11-25 10:14:04 +08:00
Zheng zhiqi
dba5b1a4ea arm64: dts: rockchip: rk3576-vehicle-evb-v20-audio: sai4 channels
Modify SAI4 to TDM8 8 channels

Change-Id: I07636ff9f8527c7a43654afc1aacaa6b70d5c917
Signed-off-by: Zheng zhiqi <looper.zheng@rock-chips.com>
2024-11-22 11:01:53 +08:00
Jiajian Wu
5264fb8518 ARM: rk3506_defconfig: Enable CONFIG_SND_SOC_ROCKCHIP_MULTI_DAIS
Change-Id: Ie4aed61734961a9b2668c17a630dc6d8f45f7fe9
Signed-off-by: Jiajian Wu <jair.wu@rock-chips.com>
2024-11-21 19:44:52 +08:00
zorro.liu
0ff6e5745d arm64: dts: rockchip: rk3566-eink: reserved more memory for ebc-dev
Change-Id: I9fee371d8455f571df27e2e66fed3b28fb02be1b
Signed-off-by: zorro.liu <zorro.liu@rock-chips.com>
2024-11-21 18:11:18 +08:00
zorro.liu
fe4f8c7795 arm64: dts: rockchip: rk35xx-eink: add nvmem-cells
Change-Id: Idfb56cc18fa67b42ddf3bda9f65450d787ee656c
Signed-off-by: zorro.liu <zorro.liu@rock-chips.com>
2024-11-21 18:10:56 +08:00
Elaine Zhang
d73d160e36 rtc: rockchip: rv1103b: config D2A_XO_CUR_SEL
Increase the anti-jamming ability of crystal vibration start-up.

Change-Id: I65600d7303cf67b91fee540ad3e0a06c589ba600
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2024-11-21 16:58:50 +08:00
Elaine Zhang
b21b8b8e93 rtc: rockchip: config D2A_XO_START for rv1106
Increase the anti-jamming ability of crystal vibration start-up.

Change-Id: I9cfeab7d2338cd2a38e6e86b78f6967c2d0bbdd1
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2024-11-21 16:58:50 +08:00
Elaine Zhang
e57a5a2bb8 rtc: rockchip: remove rtc test and compensation for rv1103b
Change-Id: Id3a2ccd3cb46dd8829c1cba715db6236fb57e22b
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2024-11-21 16:58:50 +08:00
Elaine Zhang
3ae2dd089c rtc: rockchip: support rv1103b rtc
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: I418c483d09d041730e44e570c610f3b6286a66a8
2024-11-21 16:58:50 +08:00
Hongming Zou
c6bcd826d3 phy/rockchip: inno-dsidphy: Supports RK3506 to shut down 1.2v ldo when suspend
Change-Id: I951a40e2f7e1c19f6bc86ed9f12d1c25c52395a8
Signed-off-by: Hongming Zou <hongming.zou@rock-chips.com>
2024-11-21 16:54:17 +08:00
Hongming Zou
b74d20e428 input: touchscreen: gt1x: set rst-gpio to low level after suspend
Change-Id: I4ebd59e3fa10f13e39ce19dbac8b39f19518061b
Signed-off-by: Hongming Zou <hongming.zou@rock-chips.com>
2024-11-21 16:54:17 +08:00
Cai YiWei
5c0b6b4799 media: rockchip: isp: remove graph_mutex
Change-Id: Iaa0ec728724b5bdcfe84ce4a339e0b3f569d5ab7
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2024-11-21 09:49:23 +08:00
Cai YiWei
f6c952c6df media: rockchip: vpss: remove graph_mutex
Change-Id: I5c0e1ea977da4ab60d25fa32551075cc7005d7e9
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2024-11-21 09:48:47 +08:00
Yu Qiaowei
83ecc44c37 video: rockchip: rga3: fix power off in isr-thread when job is running
When the ISR is blocked, it's possible that the original job has already
been released while the scheduler is now running a new job. Therefore,
it is necessary to check whether the current job has already triggered a
hardware interrupt.

Change-Id: If8999b07c76c5217f47419908f20945b6f619e67
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
2024-11-20 16:46:26 +08:00
Yu Qiaowei
eb966dcdee video: rockchip: rga3: fix hardware state has been cleared after timeout
Change-Id: I15607f0af364bbb5947aba19024f0d582148016f
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
2024-11-20 16:46:26 +08:00
Jianlong Wang
a3d08fbcc0 arm64: dts: rockchip: add rk3358m automotive board support
Change-Id: I48e6d2748f5d7ab2681a8c13c54a92252d56eb59
Signed-off-by: Jianlong Wang <jianlong.wang@rock-chips.com>
2024-11-20 16:43:29 +08:00
Zain Wang
fd4dfa23f4 ARM: configs: rk3506: Add gzip support for initrd
Signed-off-by: Zain Wang <wzz@rock-chips.com>
Change-Id: Iedf4c04259b7accefb1d0fb7416108e088e8e67a
2024-11-20 14:43:18 +08:00
Chaoyi Chen
2ba5e1d681 drm/rockchip: gem: Set size of the allocated object when create gem
We may want to know how many size of a gem object is allocated, but
this size in rockchip_gem_object for no-IOMMU devices will not be set.

There are two ways to use rockchip GEMs, one is to create GEMs via DRM,
and the other is to import buffer created by other devices via DMA-BUF
and map it. For no-IOMMU devices, neither of them will set the buffer
size.

Let's set the size in rockchip_gem_object when we create a new rockchip
gem.

Fixes: c1c9524d3f ("drm/rockchip: debugfs: optimize dump buffer file name and size")
Change-Id: I396bf60a0d49d6f703044f9d354aa37312c9cc82
Signed-off-by: Chaoyi Chen <chaoyi.chen@rock-chips.com>
2024-11-19 15:55:19 +08:00
Shengfei Xu
b711dfd7ef mfd: rk806: Support power-supply grouping to enter sleep mode
In order to support the suspend/resume power supply sequence,
the power supplies are grouped and controlled in stages to enter sleep mode.

Change-Id: I16cb53b01b86a8b221de91a62c5ffddfa34e0f33
Signed-off-by: Shengfei Xu <xsf@rock-chips.com>
2024-11-19 15:54:37 +08:00
Huang-Huang Bao
2c35da87a4 UPSTREAM: pinctrl: rockchip: fix pinmux reset in rockchip_pmx_set
rockchip_pmx_set reset all pinmuxs in group to 0 in the case of error,
add missing bank data retrieval in that code to avoid setting mux on
unexpected pins.

Change-Id: I5a1943732317002f77e4c0f80ded68952795418e
Fixes: 14797189b3 ("pinctrl: rockchip: add return value to rockchip_set_mux")
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Huang-Huang Bao <i@eh5.me>
Link: https://lore.kernel.org/r/20240606125755.53778-5-i@eh5.me
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Ye Zhang <ye.zhang@rock-chips.com>
(cherry picked from commit 4ea4d4808e342ddf89ba24b93ffa2057005aaced)
2024-11-19 15:34:30 +08:00
William Wu
1c7a3dd86f usb: dwc3: core: Add shutdown support
The RK3576 platform doesn't use the dwc3 glue layer
which supports to call dwc3_of_simple_shutdown and
dwc3_remove on system shutdown. Therefore, the RK3576
dwc3 controller still keeps working on system shutdown,
and it may cause pending usb irq if usb transmission
happens when do reboot test.

This patch adds shutdown support for RK3576 platform.

Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: I2cc0764402909fc8c168c0bad75909a8719fce80
2024-11-19 14:58:50 +08:00
Jon Lin
21226ba125 mtd: spinand: HIKSEMI: Fix MFR id to 0x3C
Change-Id: If7ce0da4e1678615a8252740259f5bee46ef0f76
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2024-11-18 17:22:07 +08:00
Zhen Chen
6ec3ff387a Mali: utgard: Use platform_get_irq_byname() to obtain IRQ numbers
Signed-off-by: Zhen Chen <chenzhen@rock-chips.com>
Change-Id: Ie49ec94549e24312c8f7620b99819b0b90353192
2024-11-18 16:55:52 +08:00
Luo Wei
b16cbb21d7 arm64: dts: rockchip: rk3576-vehicle-evb: edp-vp0 use vpll default
Signed-off-by: Luo Wei <lw@rock-chips.com>
Change-Id: If69dd8af979156aeb6d1ca575592fcfbaab7cac8
2024-11-18 15:35:10 +08:00
Luo Wei
e9bbd6b68e arm64: dts: rockchip: vehicle-evb: update max96752 01ea register to default value
Signed-off-by: Luo Wei <lw@rock-chips.com>
Change-Id: I87478539edfb3a3a5c8afd78369df3b90b2a756a
2024-11-18 14:11:49 +08:00
William Wu
59eb83b7aa usb: typec: tcpci_husb311: Avoid unregister port on shutdown
Test on RK3576 EVB1, if do tcpci_unregister_port on
husb311_shutdown, it will cause two issues in reboot
test.

1. Introducing unnecessary usb mode initialization
in dwc3 driver, the call trace:

husb311_shutdown -> tcpci_unregister_port -> tcpm_reset_port ->
tcpm_mux_set -> usb_role_switch_set_role -> dwc3_usb_role_switch_set

2. More seriously, if the dwc3 driver is unbind before
husb311_shutdown, it will cause kernel panic.

(1) echo 23000000.usb > /sys/bus/platform/drivers/dwc3/unbind
(2) do reboot
(3) kernel panic with the following log:
Unable to handle kernel access to user memory outside uaccess routines at virtual address 0000000000000010
Mem abort info:
  ESR = 0x0000000096000005
  EC = 0x25: DABT (current EL), IL = 32 bits
  SET = 0, FnV = 0
  EA = 0, S1PTW = 0
  FSC = 0x05: level 1 translation fault
Data abort info:
  ISV = 0, ISS = 0x00000005
  CM = 0, WnR = 0
user pgtable: 4k pages, 39-bit VAs, pgdp=00000001021ef000
[0000000000000010] pgd=0000000000000000, p4d=0000000000000000, pud=0000000000000000
Internal error: Oops: 0000000096000005 [#1] PREEMPT SMP
Modules linked in:
CPU: 4 PID: 1 Comm: init Not tainted 6.1.99 #110
Hardware name: Rockchip RK3576 EVB1 V10 Board (DT)
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : usb_role_switch_put+0x24/0x40
lr : tcpm_unregister_port+0x7c/0xd0
...
Call trace:
 usb_role_switch_put+0x24/0x40
 tcpm_unregister_port+0x7c/0xd0
 tcpci_unregister_port+0x18/0x2c
 husb311_shutdown+0x80/0xb0
 i2c_device_shutdown+0x3c/0x5c
 device_shutdown+0x16c/0x21c
 kernel_restart+0x3c/0x104

Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: Iab02d60b7e25d0cb086fa486e5f31b30029142ec
2024-11-18 14:08:24 +08:00
Jianwei Zheng
8e6926b1d4 phy: rockchip: inno-usb2: support usb wakeup for rk3506
1. Support linestate filter time control register for OTG0 and OTG1.
2. Disable disconnect rise and disconnect fall irq. Because these
two interrupts will be triggered immediately after the system goes
into sleep mode, causing the system to be unable to sleep.

Change-Id: Ia6c1e58ef926f86dee6df0013aafe9bfe4586b52
Signed-off-by: Jianwei Zheng <jianwei.zheng@rock-chips.com>
2024-11-18 14:08:07 +08:00
Jianwei Fan
b5c70abd65 arm64: dts: rockchip: add rk3576-evb1-v10-rk621-hdmi2csi for rk3576 evb1 exboard
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: Ie6ddd07be14e35c34466c0bc9dee07ab69c863bd
2024-11-15 17:18:26 +08:00
Chaoyi Chen
9912c1bae7 drm/rockchip: vop: Set missing global alpha value
Change-Id: I43e8b1c5143c14038c3c25c89dafc6971808c8b3
Signed-off-by: Chaoyi Chen <chaoyi.chen@rock-chips.com>
2024-11-15 16:09:04 +08:00
Chandler Chen
696a80bb09 video: rockchip: mpp: rk3562 use mmu reset & cru reset
Fixes: e111685605 ("video: rockchip: mpp: rk3562 use cru reset")

Change-Id: Ie899f86c3cbbdf71bda5af087305af132d27cead
Signed-off-by: Chandler Chen <chandler.chen@rock-chips.com>
2024-11-14 17:49:32 +08:00
Tao Huang
358f888f72 ARM: dts: rockchip: rv1126: Add status "okay" property at queue for gmac
The queue nodes will be deleted, the driver cannot get it, add
status "okay" attributes to avoid deletion.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I3898d58805f80cddbe5e71a07d9055b66fab651f
2024-11-14 15:27:22 +08:00
David Wu
e850ed4666 ethernet: stmmac: Fixes compile error for MINI_KERNEL
This patch sloves following error:
drivers/net/ethernet/stmicro/stmmac/stmmac_ptp.o: in function `stmmac_adjust_time':
drivers/net/ethernet/stmicro/stmmac/stmmac_ptp.c:107: undefined reference to `stmmac_calc_tas_basetime'

Change-Id: I929b9df0b72dfd48ef03caa5cec8c6fec14ee4d7
Signed-off-by: David Wu <david.wu@rock-chips.com>
2024-11-14 14:50:35 +08:00
Mark Huang
67c4cdf6c5 arm64: dts: rockchip: rk3528-evb: include rk-stb-ir-keymap
Signed-off-by: Mark Huang <huangjc@rock-chips.com>
Change-Id: Ic6fdc23c00db47554373d6921cf7226fc7a855ca
2024-11-14 14:19:49 +08:00
Jon Lin
3265632a88 mtd: spinand: GSTO: Add third flash id for some devices
GSS02GSAX1, GSS01GSAX1.

Change-Id: Id61f63a2c2460b5b8e3a57aeaa3341ddcf32f44e
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2024-11-14 09:21:19 +08:00
Jon Lin
a1f4d7f37f mtd: spinand: Winbond: Add third flash id for some devices
W25N01JWZEIG, W25N01KWZPIG.

Change-Id: I05648d131f9076ab716f3baadfc7249eecf31671
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2024-11-14 09:21:19 +08:00
Binyuan Lan
bc64ae62f4 arm64: dts: rockchip: rk356x: Add property 'sound-name-prefix' for i2s/pdm
This patch add name-prefix for i2s/pdm to support prefix kcontrol,
widget and route names in an ASoC machine that has multiple dais with
conflicting names.

Signed-off-by: Binyuan Lan <lby@rock-chips.com>
Change-Id: Id48d35f7678000efd3bbf56673768bc5f225dfba
2024-11-14 09:17:28 +08:00
Zhang Yubing
3cdad0f1e8 drm/rockchip: analogix_dp: fix NULL pointer issue when disable encoder
When disable encoder, the encoder.crtc will be reference. In some
case, for example show logo stage, if some config cause a full
modeset, the encoder.crtc will be used before assigned a value,
which will cause a NUll pointer issue.
It's better to use drm_connector_state.crtc to avoid this issue.

Change-Id: I0382eda8a7e25e15b06cefc08ec7be94cf8136ea
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2024-11-13 19:48:01 +08:00
Zhang Yubing
e6f1af9a82 drm/rockchip: logo: add the effect bridge state for atomic state
Some display interface driver will register encoder and bridge.
The analogix edp driver is one of these driver and it will use
the bridge state in atomic_check callback. If no bridge state
get, the atomic_check will return without assign a value to the
crtc_state.output_type.

When enable uboot logo, if no bridge state get for the analogix
edp, the old_crtc_state.output_type will be 0 and the
new_crtc_state.output_type will be DRM_MODE_CONNECTOR_eDP. It
assume that this different will affect nothing. But when the edp
attach to VOPB/L and assign the VOPB/L dclk parent as VPLL, the
crtc atomic_check callback will change the VOPB/L dclk parent
and issue a mode change. this mode change will call the edp driver
encoder_disable callback and reference the encoder.crtc pointer.
This point only assign a value in
drm_atomic_helper_update_legacy_modeset_state(). So a NULL pointer
issue will happen as follow:
[    3.489609] Unable to handle kernel NULL pointer dereference at virtual address 00000000000005c8
[    3.585216] Mem abort info:
[    3.585219]   ESR = 0x0000000096000005
[    3.585223]   EC = 0x25: DABT (current EL), IL = 32 bits
[    3.585227]   SET = 0, FnV = 0
[    3.585230]   EA = 0, S1PTW = 0
[    3.585232]   FSC = 0x05: level 1 translation fault
[    3.585235] Data abort info:
[    3.585237]   ISV = 0, ISS = 0x00000005
[    3.585240]   CM = 0, WnR = 0
[    3.586697] mmcblk0rpmb: mmc0:0001 AJTD4R 4.00 MiB, chardev (235:0)
[    3.587117] [00000000000005c8] user address but active_mm is swapper
[    3.587121] Internal error: Oops: 0000000096000005 [#1] SMP
[    3.592746] Modules linked in:
[    3.593023] CPU: 5 PID: 46 Comm: kworker/u12:1 Not tainted 6.1.99 #517
[    3.593595] Hardware name: Rockchip RK3399 EVB IND LPDDR4 Board edp (Linux) (DT)
[    3.594244] Workqueue: events_unbound deferred_probe_work_func
[    3.594764] pstate: 60000005 (nZCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[    3.595380] pc : rockchip_dp_drm_encoder_disable+0x20/0x10c
[    3.595874] lr : drm_atomic_helper_commit_modeset_disables+0x1e0/0x670
[    3.596444] sp : ffffffc00a71b6b0
[    3.596741] x29: ffffffc00a71b6b0 x28: ffffff80049ce200 x27: 0000000000000038
[    3.597370] x26: ffffff8003091810 x25: ffffff8004d27c98 x24: 0000000000000000
[    3.597999] x23: 0000000000000000 x22: ffffffc009971ade x21: ffffffc00991a755
[    3.598628] x20: ffffff80049c9c80 x19: ffffff8004d27c98 x18: ffffff8003154090
[    3.599257] x17: 685f63696d6f7461 x16: ffffffffffffffff x15: ffffff800a2f4400
[    3.599885] x14: 0000000000000000 x13: 0000000000000350 x12: 000000000104202a
[    3.600514] x11: 0000000000800000 x10: 0000000000000000 x9 : ffffffc0087ef158
[    3.601143] x8 : 0000000000000000 x7 : 72205d3536353938 x6 : 0000000000000000
[    3.601771] x5 : 0000000000000000 x4 : 0000000000000000 x3 : ffffffc00a71b5a0
[    3.602399] x2 : ffffff8002cac4c0 x1 : ffffff80049c9c80 x0 : ffffff8004d27c98
[    3.603027] Call trace:
[    3.603245]  rockchip_dp_drm_encoder_disable+0x20/0x10c
[    3.603704]  drm_atomic_helper_commit_modeset_disables+0x1e0/0x670
[    3.604250]  rockchip_drm_atomic_helper_commit_tail_rpm+0x4c/0x2d8
[    3.604799]  commit_tail+0xa8/0x154
[    3.605108]  drm_atomic_helper_commit+0x1c8/0x1e4
[    3.605519]  drm_atomic_commit+0xa8/0xd0
[    3.605864]  rockchip_drm_show_logo+0x1a98/0x1c50
[    3.606276]  rockchip_drm_bind+0x1fc/0x2ac
[    3.606643]  try_to_bring_up_aggregate_device+0x1f8/0x28c
[    3.607123]  __component_add+0xc4/0x180
[    3.607467]  component_add+0x18/0x20
[    3.607788]  rockchip_dp_probe+0x41c/0x480
[    3.608154]  platform_probe+0xa8/0xd0
[    3.608476]  really_probe+0x168/0x3f8
[    3.608798]  __driver_probe_device+0xa4/0x164
[    3.609186]  driver_probe_device+0x40/0x210
[    3.609553]  __device_attach_driver+0x12c/0x1c0
[    3.609954]  bus_for_each_drv+0x88/0xd0
[    3.610299]  __device_attach+0xd4/0x1c0
[    3.610642]  device_initial_probe+0x18/0x20
[    3.611009]  bus_probe_device+0x38/0x98
[    3.611354]  deferred_probe_work_func+0xa4/0xf8
[    3.611754]  process_one_work+0x1e0/0x400
[    3.612112]  worker_thread+0x340/0x55c
[    3.612445]  kthread+0xcc/0x204
[    3.612722]  ret_from_fork+0x10/0x20

To avoid this issue, a method is to add the effect bridge state when
show logo.

Fixes: a7620fa846 ("drm/rockchip: analogix_dp: add support for color format yuv444/yuv422")

Change-Id: Ie1f1ce5a8a21809a146acd48f3ee94d1a8879eb6
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2024-11-13 19:48:01 +08:00
Andy Yan
164e2cba5d drm/rockchip: vop2: reset axi clk before disable vop
Reset AXI bus to get a clean state, which is conducive to recovering
from exceptions when enable at next time(such as iommu page fault).

Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Change-Id: I70e2a119e5abf3399720cc06a083a4468e60a1cb
2024-11-13 19:48:00 +08:00
Sugar Zhang
10d25e24d5 ASoC: rockchip: sai: Simplify the Fsync Lost Threshold
Simplify the lost threshold config per sample rate.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Ic032a91ae7c3727f299fdab17acbabe879e57b1d
2024-11-13 19:48:00 +08:00
Sugar Zhang
ca3d858e41 ASoC: rockchip: sai: Fix Fsync Error Detect
FSE depends on FSS_EN.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I76e864e13f6dc12747fd600ea9b952853506529a
2024-11-13 19:48:00 +08:00
Shawn Lin
c793ee2437 Revert "phy: add combo phy driver for Rockchip SoCs"
This reverts commit 89941824ca.

Only used in RK1808/RK3399Pro platform which is probably
not going to be supported on new version. So remove this file.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: Ied493b9d215f83543d8187be31b4d6f9aa708e7f
2024-11-13 19:48:00 +08:00
Chen Shunqing
0569cd7250 media: i2c: rk628: force EQ if hdmi2.0
Signed-off-by: Chen Shunqing <csq@rock-chips.com>
Change-Id: I64ecf4804763b31108f08fc58dcb7dc5ffcc53a4
2024-11-13 19:48:00 +08:00
Chen Shunqing
5e31f848c9 media: i2c: rk628: check if phy is locked
Signed-off-by: Chen Shunqing <csq@rock-chips.com>
Change-Id: I0de339129dbd969ffcdfccc1fc3d84c6ee424461
2024-11-13 19:48:00 +08:00
Chen Shunqing
012fb67a53 media: i2c: rk628: fix cec i2c error when hdmirx reset
Signed-off-by: Chen Shunqing <csq@rock-chips.com>
Change-Id: Idcd931041bd24175461d7509353c77456d31803e
2024-11-13 19:48:00 +08:00
Caesar Wang
ddf0dd7772 arm64: dts: rockchip: rk3399-evb: Fix device tree warnings for I2C unit address format
Removed leading zeros from I2C unit addresses to match the expected format.

Build warnings as below:

arch/arm64/boot/dts/rockchip/rk3399-evb-ind.dtsi:797.26-808.4:
Warning (unit_address_format): /i2c@ff110000/tc358749x@0f: unit name should not have leading 0s
...

Change-Id: Id1e94a40d2e13a98cb999275d6d7b8edbda238b0
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
2024-11-13 19:48:00 +08:00
Sandy Huang
4e6b9720a3 arm64: dts: rockchip: rk3399-evb-ind-lpddr4-linux: assigned clock parents for vop
The dclk parent for VOP->HDMI must from VPLL, the other can from CPLL.

Fixes: c2395e6617 ("arm64: dts: rockchip: add rk3399 evb ind v11 board support for linux")
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: Iac83d4e1911a07ccd20fc8a5ddbee48f470d06da
2024-11-13 19:48:00 +08:00
Luo Wei
10f8a9f06a mfd: display-serdes: if route enable then no need init serdes pinctrl
and i2c address to reduce booting time

Signed-off-by: Luo Wei <lw@rock-chips.com>
Change-Id: I3d6e3598418a7b9a07a624f38e823b023109b50d
2024-11-12 10:30:01 +08:00