Commit Graph

1086854 Commits

Author SHA1 Message Date
Finley Xiao 604cec4004 soc: rockchip: rockchip_system_monitor: Fix opp_info NULL pointer
Fixes: feecbd010e ("soc: rockchip: rockchip_system_monitor: Add support to use low temp pvtpll config")
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I17f5dbc2cd2da487f7e5c9f81a89520c6eb53799
2023-12-29 17:56:35 +08:00
Zefa Chen 8a6ab5ba66 media: rockchip: vicap fixes error of access NULL point when pm resume
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I9014a892c0eeb1b84389f8ce2980abf1e9ea6bab
2023-12-29 17:56:35 +08:00
Zefa Chen 3c4b76edbe media: rockchip: vicap fixes error flags of devm_request_irq
to resolve:

Unbalanced enable for IRQ 66
WARNING: CPU: 3 PID: 1589 at kernel/irq/manage.c:691 enable_irq+0x9c/0xf0
Modules linked in:
CPU: 3 PID: 1589 Comm: v4l2-ctl Not tainted 5.10.198 #50
Hardware name: Rockchip RK3588 EVB1 LP4 V10 Board (DT)
pstate: 60400089 (nZCv daIf +PAN -UAO -TCO BTYPE=--)
pc : enable_irq+0x9c/0xf0
lr : enable_irq+0x9c/0xf0
sp : ffffffc00e53b660
x29: ffffffc00e53b670 x28: 0000000000000001
x27: ffffff810313f610 x26: 0000000000000000
x25: 0000000000000000 x24: 0000000000000001
x23: ffffff81030de600 x22: 0000000000020001
x21: ffffff810310e380 x20: 0000000000000042
x19: ffffff8101193400 x18: ffffffffffffffff
x17: 0000000000000000 x16: 00000000000000f4
x15: 0000000000000004 x14: 0000000000001fff
x13: ffffffc009be2528 x12: 0000000000000003
x11: 00000000ffffdfff x10: c0000000ffffdfff
x9 : 44662b0799533b00 x8 : 44662b0799533b00
x7 : 6f6620656c62616e x6 : ffffffc009d69688
x5 : ffffffc008cee45c x4 : 0000000000000001
x3 : 0000000000000000 x2 : 0000000000000000
x1 : ffffffc00e53b330 x0 : 000000000000001c
Call trace:
 enable_irq+0x9c/0xf0
 csi2_start+0x31c/0x594
 csi2_s_stream+0xf8/0x238
 rkcif_pipeline_set_stream+0x250/0x63c
 rkcif_do_start_stream+0xe64/0x122c
 rkcif_start_streaming+0x1c/0x24
 vb2_start_streaming+0x64/0x134

Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I0506b9b49094b6ee22331d38aa028ec46bb2d50d
2023-12-29 17:56:35 +08:00
Damon Ding 732061bcf9 pwm: rockchip: support pwm version 4
Change-Id: I64e270c49e51244a9437f40cdc9e0df5aff1576d
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2023-12-28 09:47:16 +08:00
Damon Ding 0b024bc977 pwm: core: add oneshot_repeat and duty_offset attributes
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: I39caf2cc449499afc51097724a28cc2055ab149f
2023-12-28 09:47:16 +08:00
Damon Ding a8165608c7 pwm: rockchip: support more features
1.support counter, frequency meter, global control and
  wave generator.
2.add struct rockchip_pwm_funcs and modify struct
  rockchip_pwm_data for compatibility and extensibility.
3.rename current .enable/.config/.irq_handler to v1.
4.not to return ERRNO if failed to get irq in probing for
  pwm_v3.

Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: I28c6a2946ccb9072f464397d6b25f4b6803fa8c5
2023-12-28 09:47:16 +08:00
Tao Huang 210fc91d1c driver: rknpu: Fix passing 0 to PTR_ERR in rknpu_devfreq_init()
drivers/rknpu/rknpu_devfreq.c:338 rknpu_devfreq_init() warn: passing zero to 'PTR_ERR'

Fixes: 8e49eef1b5 ("driver: rknpu: Avoid taking an uninitialized lock")
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I2faafba822613e45852bb2a5c734eb39b01de8da
2023-12-28 09:39:03 +08:00
Zefa Chen 73c9b3d6a5 media: rockchip: vicap fixes error of rk_csirx_irq1_handler
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Iec15d04da87fb82e9bceca25300ebd93547fec45
2023-12-27 16:03:48 +08:00
Zefa Chen 67c83f5d38 media: rockchip: vicap fixes issue of resend the same buffer to isp
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I9c6a92ac43667289642369f13cc46cd810c3fd3c
2023-12-27 16:03:33 +08:00
Zefa Chen 9f585815cc media: rockchip: vicap fixes logic error of skip frame
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Ic1428169c8a60786decf3d8926bd86f2df7670e1
2023-12-27 16:02:04 +08:00
Zefa Chen e917db0dd7 media: rockchip: vicap fixes rdbk buffer not send to isp with single frame mode
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Idd4e5994a094ed39a5a6f948f57f813b5702f8f8
2023-12-27 16:00:06 +08:00
ZhiZhan Chen 3456ecfd23 arm/configs: rk3308bs_aarch32_mipi_display.config add gt911
Change-Id: Ie5cea049edcf6ff22d8b88960f62a5d36eb2f5a8
Signed-off-by: ZhiZhan Chen <zhizhan.chen@rock-chips.com>
2023-12-27 14:46:50 +08:00
Tao Huang 76f17016d5 media: rockchip: hdmirx: select CEC_CORE
drivers/media/platform/rockchip/hdmirx/rk_hdmirx_cec.c:143:3: error: implicit declaration of function 'cec_transmit_attempt_done' [-Werror,-Wimplicit-function-declaration]
drivers/media/platform/rockchip/hdmirx/rk_hdmirx_cec.c:148:3: error: implicit declaration of function 'cec_received_msg' [-Werror,-Wimplicit-function-declaration]
drivers/media/platform/rockchip/hdmirx/rk_hdmirx_cec.c:224:14: error: implicit declaration of function 'cec_allocate_adapter' [-Werror,-Wimplicit-function-declaration]
drivers/media/platform/rockchip/hdmirx/rk_hdmirx_cec.c:224:12: error: incompatible integer to pointer conversion assigning to 'struct cec_adapter *' from 'int' [-Werror,-Wint-conversion]
drivers/media/platform/rockchip/hdmirx/rk_hdmirx.c:1068:2: error: implicit declaration of function 'cec_queue_pin_hpd_event' [-Werror,-Wimplicit-function-declaration]
drivers/media/platform/rockchip/hdmirx/rk_hdmirx.c:1077:2: error: implicit declaration of function 'cec_queue_pin_hpd_event' [-Werror,-Wimplicit-function-declaration]

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ibad7f45af8ecf9a789d7062a2b33c68c4f1541cb
2023-12-27 14:41:33 +08:00
Finley Xiao 8e49eef1b5 driver: rknpu: Avoid taking an uninitialized lock
------------[ cut here ]------------
DEBUG_LOCKS_WARN_ON(lock->magic != lock)
WARNING: CPU: 5 PID: 1 at kernel/locking/mutex.c:604 __mutex_lock_common+0x5fc/0x142c
Modules linked in:
CPU: 5 PID: 1 Comm: swapper/0 Not tainted 6.1.43 #211
Hardware name: Rockchip RK3588 EVB1 LP4 V10 Board (DT)
pstate: 60400009 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : __mutex_lock_common+0x5fc/0x142c
lr : __mutex_lock_common+0x5fc/0x142c
sp : ffffffc00b06b6a0
x29: ffffffc00b06b710 x28: 0000000000000000 x27: 0000000000000000
x26: 0000000000000000 x25: ffffffc00aee2000 x24: ffffffc0097b2d28
x23: ffffff8108be1780 x22: 0000000000000008 x21: 0000000000000000
x20: 0000000000000000 x19: ffffff81011ca458 x18: ffffffc00b0450b8
x17: 0000000000000013 x16: ffffffffffffffff x15: 0000000000000004
x14: ffffffc00a08bf18 x13: 0000000000003fff x12: 0000000000000003
x11: 00000000ffffbfff x10: c0000000ffffbfff x9 : fcad3029a1246100
x8 : fcad3029a1246100 x7 : 4e5241575f534b43 x6 : ffffffc009579a44
x5 : 0000000000000000 x4 : 0000000000000001 x3 : 0000000000000000
x2 : 0000000000000000 x1 : ffffffc00b06b430 x0 : 0000000000000028
Call trace:
 __mutex_lock_common+0x5fc/0x142c
 mutex_lock_nested+0x38/0x44
 rockchip_opp_dvfs_lock+0x1c/0x28
 rknpu_devfreq_lock+0x14/0x20
 rknpu_power_on+0x70/0x2a4
 rknpu_probe+0x60c/0x8cc
 platform_probe+0xa8/0xd0
 really_probe+0x174/0x350
 __driver_probe_device+0xa0/0x128
 driver_probe_device+0x44/0x218
 __driver_attach+0xfc/0x1c8
 bus_for_each_dev+0x80/0xcc
 driver_attach+0x24/0x30
 bus_add_driver+0x10c/0x1f8
 driver_register+0x78/0x114
 __platform_driver_register+0x24/0x30
 rknpu_init+0x1c/0x28
 do_one_initcall+0xf8/0x348
 do_initcall_level+0xd0/0x17c
 do_initcalls+0x54/0x94
 do_basic_setup+0x1c/0x28
 kernel_init_freeable+0x16c/0x1f0
 kernel_init+0x20/0x1a0
 ret_from_fork+0x10/0x20

Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: Ic0247477705a9111f5617eb9fbbc438843feb79c
2023-12-26 18:47:09 +08:00
Xu Xuehui 097d888d0e arm64: dts: rockchip: rk3588-vehicle-evb-v22: change minipcie power supply
Change-Id: If3918bd6c598aaeb2ddfd1f6fb93b586b43d6794
Signed-off-by: Xu Xuehui <xxh@rock-chips.com>
2023-12-26 18:43:11 +08:00
Lan Honglin 56a3646562 ARM: dts: rockchip: add rv1106g-evb2-v12-dual-camera-avs.dts
support dual sc230ai
support master_slaver mode

Change-Id: I0b3fdffa22dd5ca0b9272e6b3f8159aeb4727208
Signed-off-by: Lan Honglin <helin.lan@rock-chips.com>
2023-12-26 18:29:24 +08:00
Nathan Chancellor 9b4205b38d UPSTREAM: usb: gadget: uvc: Fix argument to sizeof() in uvc_register_video()
When building s390 allmodconfig after commit 9b91a65230 ("usb: gadget:
uvc: increase worker prio to WQ_HIGHPRI"), the following error occurs:

  In file included from ../include/linux/string.h:253,
                   from ../include/linux/bitmap.h:11,
                   from ../include/linux/cpumask.h:12,
                   from ../include/linux/smp.h:13,
                   from ../include/linux/lockdep.h:14,
                   from ../include/linux/rcupdate.h:29,
                   from ../include/linux/rculist.h:11,
                   from ../include/linux/pid.h:5,
                   from ../include/linux/sched.h:14,
                   from ../include/linux/ratelimit.h:6,
                   from ../include/linux/dev_printk.h:16,
                   from ../include/linux/device.h:15,
                   from ../drivers/usb/gadget/function/f_uvc.c:9:
  In function ‘fortify_memset_chk’,
      inlined from ‘uvc_register_video’ at ../drivers/usb/gadget/function/f_uvc.c:424:2:
  ../include/linux/fortify-string.h:301:25: error: call to ‘__write_overflow_field’ declared with attribute warning: detected write beyond size of field (1st parameter); maybe use struct_group()? [-Werror=attribute-warning]
    301 |                         __write_overflow_field(p_size_field, size);
        |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This points to the memset() in uvc_register_video(). It is clear that
the argument to sizeof() is incorrect, as uvc->vdev (a 'struct
video_device') is being zeroed out but the size of uvc->video (a 'struct
uvc_video') is being used as the third arugment to memset().

pahole shows that prior to commit 9b91a65230 ("usb: gadget: uvc:
increase worker prio to WQ_HIGHPRI"), 'struct video_device' and
'struct ucv_video' had the same size, meaning that the argument to
sizeof() is incorrect semantically but there is no visible issue:

  $ pahole -s build/drivers/usb/gadget/function/f_uvc.o | grep -E "(uvc_video|video_device)\s+"
  video_device    1400    4
  uvc_video       1400    3

After that change, uvc_video becomes slightly larger, meaning that the
memset() will overwrite by 8 bytes:

  $ pahole -s build/drivers/usb/gadget/function/f_uvc.o | grep -E "(uvc_video|video_device)\s+"
  video_device    1400    4
  uvc_video       1408    3

Fix the arugment to sizeof() so that there is no overwrite.

Cc: stable@vger.kernel.org
Fixes: e4ce9ed835 ("usb: gadget: uvc: ensure the vdev is unset")
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Link: https://lore.kernel.org/r/20220928201921.3152163-1-nathan@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit a15e17acce)
Change-Id: Id7fe8570ae7f3998593f33c01ffb63c8c89f0716
2023-12-26 15:21:18 +08:00
Michael Grzeschik de7ec95b44 UPSTREAM: usb: gadget: uvc: increase worker prio to WQ_HIGHPRI
This patch is changing the simple workqueue in the gadget driver to be
allocated as async_wq with a higher priority. The pump worker, that is
filling the usb requests, will have a higher priority and will not be
scheduled away so often while the video stream is handled. This will
lead to fewer streaming underruns.

Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Link: https://lore.kernel.org/r/20220907215818.2670097-1-m.grzeschik@pengutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit 9b91a65230)
Change-Id: I3a70591f53a4040c50d723784f5e520cf2d53d99
2023-12-26 15:21:18 +08:00
Michael Grzeschik 3afe252aa9 UPSTREAM: usb: gadget: uvc: ensure the vdev is unset
Since the uvc video device is created on demand, we have to ensure
that the struct is always zeroed. Otherwise the previous settings
might collide with the new values.

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Link: https://lore.kernel.org/r/20211017215017.18392-7-m.grzeschik@pengutronix.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit e4ce9ed835)
Change-Id: I4ecb8c85a4d838254b68ea23284e35b04b9678af
2023-12-26 15:21:18 +08:00
Yu Zheng 435ab979d2 ARM: configs: rv1106-wakeup.config: enable CONFIG_INPUT_EVDEV
Signed-off-by: Yu Zheng <yu.zheng@rock-chips.com>
Change-Id: I063e8b3cd4ff0450ffbde4229d3d8c0de4ee7a53
2023-12-26 15:21:01 +08:00
Shawn Lin a2993fb994 PCI: rockchip: dw: Add debug info for device miss case
It's hard to debug without log if folks add wrong present
gpio.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: Ic9d54a90911d6d268830e21df90710af0a352992
2023-12-26 14:18:10 +08:00
Jon Lin a4d67e502a drivers: rkflash: Change RK_SFTL dependent to RK_NANDC_NAND
Change-Id: I9c525f32c3d686a85508548c77c0f6d6bb75e09a
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2023-12-26 10:38:47 +08:00
Huang zhibao 2ee260c4ed arm64/configs: rk3308bs_mipi_display.config add gt911
Change-Id: I8f03d8ebf80e6091e0981cc032f3060d570245e6
Signed-off-by: Huang zhibao <hzb@rock-chips.com>
2023-12-26 09:18:18 +08:00
Huang zhibao e25a827b43 input: touchscreen: fixed gt9xx compile error
Change-Id: Ie02a67a206bb7a83dfbd953880f5b1d744955449
Signed-off-by: Huang zhibao <hzb@rock-chips.com>
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2023-12-25 18:32:56 +08:00
Cai YiWei d19f5307b1 media: rockchip: isp: isp32 using ktime_get_boottime_ns
Change-Id: Ib02e9416bbe9e7d21100c74767eb9ee6c0137b54
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2023-12-25 18:32:35 +08:00
Zefa Chen 1654e03632 media: rockchip: vicap: change irq state when start/stop stream
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I1147d430e5464d32b3513451d1aa496c27a1b594
2023-12-25 18:31:43 +08:00
Zefa Chen 3623186b8e media: rockchip: vicap: rv1106 use ktime_get_boottime_ns to get timestamp
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I2ab64cbbff6d69769099e16751f6aed4d760a86d
2023-12-25 18:31:25 +08:00
Zefa Chen e5ffdcf4c2 media: rockchip: vicap support skip frame
request by sensor driver

Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I961223b9295dce1c8e133c6668e47e3d38e00d3c
2023-12-25 18:30:54 +08:00
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