Commit Graph

1277017 Commits

Author SHA1 Message Date
Tao Huang
f14e8a23fc boot.its: Fix typo in Rockchip copyright notice
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: If4996bba54ba14fc09a25eab93882bcc2a7a2876
2024-12-20 17:32:31 +08:00
Zhang Yubing
0ebac7251a drm/rockchip: vop2: wait dp output config take effect
The dp_out_en is config as take effect by vsync signal. When disable
the output, it will do some thing as follow:
1. clean dp_out_en bit in vop.
2. disable dp video stream;
3. disable dp link clk.
If it not wait clean dp_out_en bit take effect, the link clk may
disable before clean dp_out_en bit, which will cause dp fifo overflow
issue.
When enable the output, though it not has this issue, it's better to
wait set dp_out_en bit take effect to avoid the similar issue in the
future.

Change-Id: Ie088a0265e5bdef349cdd3e0dc3daebb6d9eeeff
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2024-12-20 17:09:11 +08:00
Zhang Yubing
ee40bbe630 drm/rockchip: dw-dp: update gpio hpd state when init stage
The gpio hpd state will be mismatch the real state if the cable
plug before init the dp controller. So it need updage the gpio
hpd state when dp controller init.

Fixes: 601aff2337 ("drm/rockchip: dw-dp: optimize the logic to deal with hpd")

Change-Id: I6b7a3d88e2ef70e54ad9465859c1a55205f10c4f
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2024-12-20 17:07:11 +08:00
Damon Ding
7bc0d73f22 drm/rockchip: bridge: analogix_dp: fix the regs settings for TEST_PATTERN_80BIT
According to the DP PHY CTS v1.2b 3.2.3 and 3.3.3 chapters, the
PreEmphasis Level Test Pattern(PLTPAT), which also was called
80-bit custom pattern, should be:

1111100000 1111100000 1111100000 1111100000
1111100000 1111100000 1111100000 1111100000

It is used to verify the HBR2 in "Non Pre-Emphasis Level Verification
Testing" and "Pre-Emphasis Level Verification and Maximum Pk-Pk
Differential Voltage Testing".

Without this patch, the PLTPAT pattern is incorrect.

Fixes: 304dbb104d ("drm/bridge: analogix_dp: Add DP Test Automation")
Change-Id: I4b00acd0a360a8ba3f3eaf32fb30e0a18a451f5c
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2024-12-20 16:06:13 +08:00
Zhihuan He
7fdaaa54f6 ARM: dts: rockchip: rk3506-pinctrl: set dsmc clk drive strength to L3
Change-Id: I097abc26413ea50d1e3c56ae57a7d014a8bfcf46
Signed-off-by: Zhihuan He <huan.he@rock-chips.com>
2024-12-20 16:04:55 +08:00
Zhihuan He
58231cec6b memory: rockchip: dsmc: fix io width config error
The io_width in diff cs should set the same value at the same time.

Change-Id: I2a872ba487bde9aa56f0a3490acbb526a1521475
Signed-off-by: Zhihuan He <huan.he@rock-chips.com>
2024-12-20 16:04:55 +08:00
Zhihuan He
629b36c6b3 memory: rockchip: dsmc: set 0.5x refresh rate allow for xccela psram
Change-Id: I3195579b8c1d597f25e0a9711cd3edc5a6599ab4
Signed-off-by: Zhihuan He <huan.he@rock-chips.com>
2024-12-20 16:04:55 +08:00
Finley Xiao
fce333a285 nvmem: rockchip-otp: Remove redundant clocks
Change-Id: Ifecc210da1687ae3f85e1c11a2082f125cb61fdb
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2024-12-20 11:58:03 +08:00
Jianlong Wang
5a958179f8 arm64: configs: px30_linux_defconfig: update for kernel 6.1
Change-Id: Icfdd8be881d7fb6b971716a5eb9180507bf979b6
Signed-off-by: Jianlong Wang <jianlong.wang@rock-chips.com>
2024-12-20 09:59:03 +08:00
Jianwei Fan
5b4c5525d1 media: i2c: rk628: remove unnecessary ioctl RKMODULE_GET_SKIP_FRAME
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: Ib1cb58008751f335e397270e3bc62a7171ca836c
2024-12-19 16:48:21 +08:00
Cai Wenzhong
1f97a95049 arm64: dts: rockchip: rk3576-vehicle-evb-v20: max96712 d(/c)phy0(/3): add more sensor dtsi
dummy: MAX96717, DUMMY, 1920 * 1440, YUV422 8bit
isx021: MAX96717F, ISX021, 1920 * 1281, YUV422 8bit

Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Change-Id: Ic8b0ff43e376a9697c82092190de46c07bcf8eb8
2024-12-19 10:12:25 +08:00
Jon Lin
058b229588 phy: rockchip-snps-pcie3: Configure registers only when defining phy mode
Change-Id: I75ef3313d59708f9238dbb7cac3a7f210fb97c9b
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2024-12-18 16:43:16 +08:00
Cai Wenzhong
a437e6a016 arm64: dts: rockchip: rk3576-vehicle-evb-v20: support sc233at for DMS
Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Change-Id: Iebe371a9bc6eb6a1303fdbf3c9a77e30b4e112cf
2024-12-18 16:41:17 +08:00
Cai Wenzhong
0c1cb186ff arm64: dts: rockchip: rk3576-vehicle-evb-v20: add max96712-dphy3-sc233at.dtsi
sc233at: MAX96717F, SC233AT, 1920 * 1200, YUV422 8bit

Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Change-Id: Ib29acaf03cf7c2f67aa21c08a46f4eba47e12111
2024-12-18 16:41:17 +08:00
Benoit Sevens
a740751efe UPSTREAM: media: uvcvideo: Skip parsing frames of type UVC_VS_UNDEFINED in uvc_parse_format
This can lead to out of bounds writes since frames of this type were not
taken into account when calculating the size of the frames buffer in
uvc_parse_streaming.

CVE-2024-53104

Change-Id: I3dd74072f3b41bab05634f24cfaf8f35a6fae43f
Fixes: c0efd23292 ("V4L/DVB (8145a): USB Video Class driver")
Signed-off-by: Benoit Sevens <bsevens@google.com>
Cc: stable@vger.kernel.org
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
(cherry picked from commit ecf2b43018da9579842c774b7f35dbe11b5c38dd)
2024-12-18 15:47:20 +08:00
Jiri Kosina
f8c680bb5e UPSTREAM: HID: core: zero-initialize the report buffer
Since the report buffer is used by all kinds of drivers in various ways, let's
zero-initialize it during allocation to make sure that it can't be ever used
to leak kernel memory via specially-crafted report.

CVE-2024-50302

Change-Id: I949eb045a8e7fdc0be118d2899d9d957395067f1
Fixes: 27ce405039 ("HID: fix data access in implement()")
Reported-by: Benoît Sevens <bsevens@google.com>
Acked-by: Benjamin Tissoires <bentiss@kernel.org>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
(cherry picked from commit 177f25d1292c7e16e1199b39c85480f7f8815552)
2024-12-18 15:47:20 +08:00
Zhang Yubing
41fe643f8c drm/rockchp: dw-dp: enable video stream fifo overflow irq
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
Change-Id: I73e33d60db8886b150c390b387ba360bafbc0b72
2024-12-18 10:38:30 +08:00
Zhang Yubing
b358a51aef drm/rockchip: vop2: fix the sys port ctrl reg config of rk3576
Change-Id: I277605413e4f6e3abdcfe07942a92a717e31a9bf
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2024-12-18 10:38:16 +08:00
Mark Huang
5e8b5902ea arm64: dts: rockchip: rk3528-evb1-ddr4-v10: add power on delay to fix wifi open fail
Signed-off-by: Mark Huang <huangjc@rock-chips.com>
Change-Id: I980007a467b911b5b6992c25ce3289eab8e3552e
2024-12-18 10:32:52 +08:00
Mark Huang
8836ecc22a ARM: dts: rockchip: add RK3528 demo4 board devicetree
Signed-off-by: Mark Huang <huangjc@rock-chips.com>
Change-Id: I6ce3b7efc221550572d18ff39a3fdc165849c6e1
2024-12-18 10:32:52 +08:00
Liang Chen
98e1dfc90c ARM: dts: rockchip: rk3502: update opp-table for cpu
Change-Id: Ic8668f5dcf6381729a2377c192e9c87a09042ee2
Signed-off-by: Liang Chen <cl@rock-chips.com>
2024-12-18 09:31:49 +08:00
Liang Chen
3f9ac9b161 soc: rockchip: opp_select: adjust pvtpll by volt-sel in clk-pvtpll driver
Change-Id: I9f2142dcea31acf688555646db3dbe4576104b54
Signed-off-by: Liang Chen <cl@rock-chips.com>
2024-12-18 09:31:49 +08:00
Liang Chen
48cc83ec5e clk: rockchip: clk-pvtpll: Add support to adjust pvtpll by volt-sel and otp
Change-Id: I3a3c63874454b130a20c96ecb95186c3a9290373
Signed-off-by: Liang Chen <cl@rock-chips.com>
2024-12-18 09:31:44 +08:00
Wang Panzhenzhuan
682d7c7aff media: i2c: add os05l10 camera driver
Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
Change-Id: I0cf41a250d1a1818c4b4cdd19a949a3fddd297d2
2024-12-17 16:45:34 +08:00
Simon Xue
1a44a28107 dma-buf: system_heap: add support system-uncached type
Change-Id: Ie9f81536ef710b244e79c8d32abd71c2601df4c5
Signed-off-by: Simon Xue <xxm@rock-chips.com>
2024-12-17 15:01:28 +08:00
Simon Xue
43fb28d9a8 dma-buf: add support begin_cpu_access_partial and end_cpu_access_partial
Change-Id: If1a3ccd3d2dcd3fdb5fe223af474df0ca96632e0
Signed-off-by: Simon Xue <xxm@rock-chips.com>
2024-12-17 14:57:02 +08:00
Simon Xue
a2ded8cab4 dma-buf: dma-heap: add find/alloc function
add dma_heap_find/dma_heap_buffer_alloc
for kernel-space user

1. struct dma_heap *heap = dma_heap_find("system");
2. struct dma_buf *dmabuf = dma_heap_buffer_alloc(heap, ....);
3. dma_buf_attach/dma_buf_map_attachment
4. dma_buf_unmap_attachment/dma_buf_detach
5. dma_buf_put

Change-Id: I6d3e347698785c2b751bcef980607ed308270c76
Signed-off-by: Simon Xue <xxm@rock-chips.com>
2024-12-17 14:40:44 +08:00
LiuDiMing Lin
5dea796a40 iio: imu: inv_icm42670: use 16bit temp
Change-Id: I5d1e2d1e422902f34da0b8ffd2c4824a6632dd07
Signed-off-by: LiuDiMing Lin <fenrir.lin@rock-chips.com>
2024-12-17 10:56:12 +08:00
LiuDiMing Lin
780c320c07 iio: imu: inv_icm42670: support pass-through mode
Change-Id: I63a394cf03c5b6cd09308e05e0996d1bf1f885f5
Signed-off-by: LiuDiMing Lin <fenrir.lin@rock-chips.com>
2024-12-17 10:56:11 +08:00
Jianwei Fan
e433f21b41 video: rockchip: vehicle: add tp2855 support
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: Ifbf14fc988bae6b595b01ca91cd0ac022a46a33f
2024-12-17 10:53:12 +08:00
Jianwei Fan
362a5d012e media: i2c: tp2855: update driver to V0.01.01
1.fix 1080P/720P config
2.add supplies support
3.adapt to vehicle driver

Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: I03a29e6dcc86c4e6ff0b0f391345e41447bca3a9
2024-12-17 09:43:54 +08:00
Tao Huang
8097eedd29 ARM: rockchip: Select ARM_ERRATA_814220
This ERRATA affected the Cortex-A7 and present in r0p2, r0p3, r0p4, r0p5.

Make sure that ARM errata 814220 is selected by
RK3036/RK3126/RK3128/RK3228/RK3229/RV1103B/RV1106B/
RV1103/RV1106/RV1107/RV1108/RV1109/RV1126/RK3506.

Change-Id: I98685e57abcecc668e43197344f57973f1eeebaf
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2024-12-17 09:32:18 +08:00
Sandy Huang
2d1becab94 drm/rockchip: drv: delete unused NV20 and NV30 define
NV20 and NV30 is supported by DRM core, so it's unused now.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I87083c3aa232e416334bb83c2d965c860ddd0a9b
2024-12-17 09:30:43 +08:00
Zefa Chen
5eac3c250d media: rockchip: vicap fixes error of wake up with yuv422 input
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Id50155d8edd8bde9e0a1e91dbf065e8859eb207a
2024-12-17 09:28:51 +08:00
Mingwei Yan
31f3e5a5bb media: rockchip: isp: fix mipi drop when isp capture after vpss start
if isp state  already START add scale auto update at frame end

Signed-off-by: Mingwei Yan <mingwei.yan@rock-chips.com>
Change-Id: I84d63afb87100072a16d69951e635e78c87f9b2c
2024-12-16 19:11:21 +08:00
Cai YiWei
ad942c1534 media: rockchip: isp: fix isp30 stream buf size if enable attach information
Change-Id: I3a061a418cbd87f4bd0dbea6be8ee22ad1429e8a
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2024-12-16 09:49:39 +08:00
ChuanHu Sun
0e6f34b90b video: rockchip: mpp_osal: add api mpp_device_add_driver() for rockit
Signed-off-by: ChuanHu Sun <aaron.sun@rock-chips.com>
Change-Id: I2f945004f199b61935a4a1f5a49cf2d1c1ec093b
2024-12-13 19:50:04 +08:00
Shunhua Lan
e1ecb83818 ASoC: rockchip: multicodecs: remove unused cables
Signed-off-by: Shunhua Lan <lsh@rock-chips.com>
Change-Id: I66e1316e6c07fd13ce127c63d2f626803a96c6d1
2024-12-13 19:49:16 +08:00
Shunhua Lan
5823f0f49c ASoC: rockchip: multicodecs: checking hp status when resume from sleep
Signed-off-by: Shunhua Lan <lsh@rock-chips.com>
Change-Id: Ia5def71bba47be20f61fff3f03de42d627aa411a
2024-12-13 19:49:16 +08:00
XiaoDong Huang
446d978b3e dt-bindings: suspend: rk3576: add RKPM_SLP_ARCH_TIMER_RESET macro
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
Change-Id: Ic1c1e1e5a062e0c681b2633c37a204da3fe24142
2024-12-13 18:02:11 +08:00
XiaoDong Huang
0b991abdb4 dt-bindings: suspend: rk3588: add RKPM_SLP_ARCH_TIMER_RESET macro
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
Change-Id: Ibc34b83dcb436223deca7049f9659a6c4c0b2107
2024-12-13 18:02:11 +08:00
XiaoDong Huang
049257ee66 dt-bindings: suspend: rk3588: add sleep-pin related macros
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
Change-Id: Ib2dfcf71646d363cc2d4aa0adb9a9e1f339a53a1
2024-12-13 18:02:11 +08:00
Yifeng Zhao
4d97053164 mmc: cqhci: add emmc hardware reset after cqe recovery
When an eMMC error occurs due to changes in hardware conditions
(such as temperature, voltage, etc.), it may not return to normal
without reinitializing the eMMC. In this case, adding hardware
reset and reinitialization can solve the problem.

Change-Id: Ie2164175c59402d06fcb0d774aaba6d712f947d9
Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
2024-12-13 17:32:23 +08:00
Yifeng Zhao
d84e5b6f72 arm64: dts: rockchip: rk3576: remove freq table for ufs
Design frequency is 166MHz, overclocking may cause stability issues.

Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: Ia0b4bf630c1033badc6ca23bd5b0af9b2c9b2eb7
2024-12-13 17:29:30 +08:00
Yifeng Zhao
b769d72b95 scsi: ufs: rockchip: disabled devfreq for rk3576
log:
ufshcd-rockchip 2a2d0000.ufs: ufshcd_wait_for_doorbell_clr:
timedout waiting for doorbell to clear (tm=0x0, tr=0x2)
devfreq 2a2d0000.ufs: dvfs failed with (-16) error

Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: Ibc4b07b8ccefcc64220aa108caf51d938b7377dc
2024-12-13 17:28:06 +08:00
Yifeng Zhao
70e0b8e214 scsi: ufs: rockchip: fix dme-reset failed issue
Resetting the device without resetting the controller during
exception handling will result in a dme command error.

log:
ufshcd-rockchip 2a2d0000.ufs: uic cmd 0x14 with arg3 0x0 completion timeout
ufshcd-rockchip 2a2d0000.ufs: dme-reset: error code -110
ufshcd-rockchip 2a2d0000.ufs: DME_RESET failed
ufshcd-rockchip 2a2d0000.ufs: ufshcd_host_reset_and_restore: Host init failed -110

Change-Id: Ia83e80aea0f6b916bf7131d0b2240023f32a1a21
Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
2024-12-13 17:27:36 +08:00
Yu Qiaowei
971dce993d video: rockchip: rga3: fix bi-linear scaled down causing timeout
Adjust config based on RGA2 limit.

Update driver version to 1.3.7

Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: I2954dbb36a1698e34da14fff33fb9d97792478da
2024-12-13 16:39:04 +08:00
Yu Qiaowei
711f17c2fe video: rockchip: rga3: fix intr exception that causes driver timeout
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: I1ca23d1ef4ffd88244224bc463afc7d5e192e292
2024-12-13 16:39:04 +08:00
HangYu Li
5d173bd028 iio: imu: inv_icm42670: add core of new inv_icm42670 driver
1. Core component of a new driver for InvenSense ICM-42670 devices.
It includes registers definition, main probe/setup, and device
utility functions.
2. Add SPI driver for InvenSense ICM-42670 devices.
3. Add I2C driver for InvenSense ICM-42670 devices.

The ICM-42670-P is a high performance 6-axis MEMS MotionTracking
device that combines a 3-axis gyroscope and a 3-axis accelerometer.
It has a configurable host interface that supports I3CSM, I2C, and
SPI serial communication, features up to 2.25 Kbytes FIFO
and 2 programmable interrupts with ultra-lowpower wake-on-motion
support to minimize system power consumption

Change-Id: Ic308640f989ba6391eacca36f898dfc964054056
Signed-off-by: HangYu Li <hangyu.li@rock-chips.com>
2024-12-13 16:39:03 +08:00
Sandy Huang
e8a650f813 drm/rockchip: vop2: fix XRGB format alpha overlay error
Some application draw XRGB format the X value may be not 0xff,
If transfer this value to next level mix will appear overlay error.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I16d0e848325acefc4c0ab950d7bddaec82231cc1
2024-12-13 16:39:03 +08:00