Commit Graph

1277033 Commits

Author SHA1 Message Date
Jon Lin
9764ff4348 mtd: spi-nor: esmt: Support en25qx64a
Change-Id: Ic52e1748c80aed6feea17aa5dbeab262c7b55f0a
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2024-12-23 18:30:41 +08:00
Jake Wu
e31fbef6dd arm64: dts: rockchip: px30-evb-ddr3-v10: fix sw1/2 for rk809
Type: Fix
Redmine ID: #525434
Associated modifications: N/A
Test: self-test

Signed-off-by: Jake Wu <jake.wu@rock-chips.com>
Change-Id: I4271ad161c1a80250629ad133704bfe837cf0150
2024-12-23 15:07:29 +08:00
Tao Huang
3c6462106f mmc: rk_sdmmc: Fix typo in Rockchip copyright notice
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Icd7563b320deba47960ce571e8780c17a323e5b8
2024-12-20 18:36:04 +08:00
Tao Huang
7876043db4 media: videobuf2-cma-sg: Fix typo in Rockchip copyright notice
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I492d3d9503e2de8cc0f9b23a388d94ecd135cbbe
2024-12-20 18:34:47 +08:00
Tao Huang
ee9bc19eb8 mailbox: rockchip-mbox-demo: Fix typo in Rockchip copyright notice
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ie778a88d9246e7d81a830ec2a55cd13de7e490e3
2024-12-20 18:34:47 +08:00
Tao Huang
14359418a4 mailbox: rockchip: Fix typo in Rockchip copyright notice
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I1850434be596a5f78ff01f985d5677ee606f8882
2024-12-20 18:34:47 +08:00
Tao Huang
050d99f695 input: touchscreen: Fix typos in Rockchip copyright notices
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ief54e322b8cd2f428810de46a3bda31588f23520
2024-12-20 18:34:47 +08:00
Tao Huang
ceaf6706f0 iio: light: ucs12cm0: Fix typo in Rockchip copyright notice
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I795db4c3bceea87036f0ca7ac8185d301e65dd73
2024-12-20 18:34:47 +08:00
Tao Huang
d02681b53a iio: adc: rockchip_saradc: Fix typo in Rockchip copyright notice
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I21009e40bbd55b24ad0960098eb3d147f6b40c74
2024-12-20 18:34:47 +08:00
Tao Huang
f81381b769 Revert "SDMMC: Complete submission SDMMC driver in kernel-3.10.Currently,Only the sdcard can be used."
This reverts commit 3afdc6aaef.
This driver is unused since linux 4.4, drop it.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I2f2260816aaf3637713b811c292673158ab4a981
2024-12-20 18:13:23 +08:00
Tao Huang
791a51855b Mali: utgard: Fix typo in Rockchip copyright notice
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I789d8239c08ef8b2086477b40164a2007470a1fb
2024-12-20 17:40:06 +08:00
Tao Huang
7f19b48064 MALI: bifrost: Fix typos in Rockchip copyright notices
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I33e9cc6a988e96bd37a446bd02c2657688ede13f
2024-12-20 17:38:37 +08:00
Tao Huang
7c14384384 gpio: rockchip: Fix typo in Rockchip copyright notice
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Iab2fb03e9db190a8456d0bca5df0b1653c56fcf0
2024-12-20 17:37:26 +08:00
Tao Huang
f2dff6de3e gpio: aw9110: Fix typo in Rockchip copyright notice
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ifda4695da966586a409ac4069aa232df43863551
2024-12-20 17:36:45 +08:00
Tao Huang
2c9cb1d943 PM / devfreq: rockchip_dmc: Fix typos in Rockchip copyright notices
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I9140e17cf732b9c0d95509a661592fad2810b362
2024-12-20 17:35:32 +08:00
Tao Huang
f15e2190c8 arm64: mm: fixup_fault: Fix typo in Rockchip copyright notice
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ife97e80bb3161b5cb3083d68aaa5098bf7df33df
2024-12-20 17:33:44 +08:00
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