Damon Ding
2bebef2839
pwm: rockchip: replace duty_table with wave_table in irq callbacks
...
Change-Id: If0f81d6eb2c6d922e9ceab9fe440fe3555bc9112
Signed-off-by: Damon Ding <damon.ding@rock-chips.com >
2025-04-29 06:21:15 +00:00
Damon Ding
00b6ef8285
drm/rockchip: vop2: Fix the name of CSC and BCSH parameters conversion function
...
Replace vop3_get_csc_paramter_from_bcsh() with
vop3_get_csc_info_from_bcsh().
Fixes: f9166c5c1d ("drm/rockchip: vop2: config csc parameters from bcsh defaultly")
Change-Id: I5feb0be308c73571976f90780a9805e8b21b9d5f
Signed-off-by: Damon Ding <damon.ding@rock-chips.com >
2025-04-29 10:05:43 +08:00
Frank Wang
adb3aba203
usb: typec: tcpm: fix panic when pd disabled in dt
...
The pd revision can't be initialized when the 'pd-disable' property
is added in DT, and the negotiated_rev becomes be invalid, which
causes kernel panics.
The Kernel panic has the following stack trace:
[ 4.262221][ T182] Unable to handle kernel paging request at virtual address ffffffc8096bf508
[ 4.264702][ T182] Mem abort info:
[ 4.265014][ T182] ESR = 0x0000000096000005
[ 4.265411][ T182] EC = 0x25: DABT (current EL), IL = 32 bits
[ 4.265939][ T182] SET = 0, FnV = 0
[ 4.266271][ T182] EA = 0, S1PTW = 0
[ 4.266612][ T182] FSC = 0x05: level 1 translation fault
[ 4.267107][ T182] Data abort info:
[ 4.267426][ T182] ISV = 0, ISS = 0x00000005
[ 4.267823][ T182] CM = 0, WnR = 0
[ 4.268152][ T182] swapper pgtable: 4k pages, 39-bit VAs, pgdp=000000004217e000
[ 4.268802][ T182] [ffffffc8096bf508] pgd=0000000000000000, p4d=0000000000000000, pud=0000000000000000
[ 4.269633][ T182] Internal error: Oops: 0000000096000005 [#1 ] PREEMPT SMP
[ 4.270250][ T182] Modules linked in:
[ 4.270584][ T182] CPU: 5 PID: 182 Comm: 2-004e Not tainted 6.1.99 #7
[ 4.271158][ T182] Hardware name: Rockchip RK3576 EVB1 V10 Board (DT)
[ 4.271730][ T182] pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[ 4.272402][ T182] pc : tcpm_set_state+0x6c/0x11c
[ 4.272834][ T182] lr : tcpm_set_state+0x40/0x11c
[ 4.273254][ T182] sp : ffffffc00beebd70
[ 4.273606][ T182] x29: ffffffc00beebd70 x28: 0000000000000000 x27: ffffffc009f59e00
[ 4.274303][ T182] x26: ffffffc009f27008 x25: 0000000000000001 x24: ffffff80c7dc7148
[ 4.274996][ T182] x23: ffffffc008c22ee8 x22: 0000000000000011 x21: 0000000000000000
[ 4.275689][ T182] x20: 0000000000000012 x19: ffffff80c4f8c040 x18: ffffffc00bd45028
[ 4.276372][ T182] x17: 3a736d61202c312d x16: ffffffffffffffff x15: 0000000000000004
[ 4.277065][ T182] x14: ffffffc009fdc100 x13: 0000000000003fff x12: 0000000000000003
[ 4.277757][ T182] x11: ffffffc0096bf510 x10: 00000000ffffffff x9 : ffffffc0096bf528
[ 4.278450][ T182] x8 : 0000000000000000 x7 : 205b5d3430323236 x6 : 322e34202020205b
[ 4.279143][ T182] x5 : ffffffc00a3fb617 x4 : ffffffc00beebac7 x3 : ffffffc009ba7471
[ 4.279836][ T182] x2 : ffffffc009bc41de x1 : ffffffc00beebb30 x0 : 0000000000000058
[ 4.280528][ T182] Call trace:
[ 4.280805][ T182] tcpm_set_state+0x6c/0x11c
[ 4.281204][ T182] run_state_machine+0x108c/0x1908
[ 4.281645][ T182] tcpm_state_machine_work+0x84/0xcc
[ 4.282097][ T182] kthread_worker_fn+0xf4/0x228
[ 4.282517][ T182] kthread+0xec/0x1b8
[ 4.282860][ T182] ret_from_fork+0x10/0x20
Signed-off-by: Frank Wang <frank.wang@rock-chips.com >
Change-Id: I7039c541039e17199f1db6b42ecf23af7f317963
2025-04-28 11:29:32 +00:00
Damon Ding
559aa0ed87
pwm: rockchip-test: Add demo for updating both period and duty in wave generator mode
...
The demo wave should be like:
_ _ _ _ _
| | | | | | | | | |
__| |_| |_| |_| |_| |_____________________________________
| | |
| five 400K waves | delay 10ms |
| | |
Change-Id: I89c1d921dd2b230debe2664036b20c1d305cd35f
Signed-off-by: Damon Ding <damon.ding@rock-chips.com >
2025-04-28 19:25:50 +08:00
Damon Ding
31546c56cb
pwm: rockchip: simplify to one wave_table configuration instead of duty_table and period_table
...
For wave mode, the duty and period share memory to update, so it is
sufficient to config &rockchip_pwm_wave_config.wave_table and set
&rockchip_pwm_wave_config.duty_*/&rockchip_pwm_wave_config.period_*
for the update of duty and period.
Change-Id: Ide133377991a9a6c2c26c4de4cb91040f6a7eadd
Signed-off-by: Damon Ding <damon.ding@rock-chips.com >
2025-04-28 19:25:50 +08:00
Zefa Chen
46e513f605
media: rockchip: vicap support get data type form sensor driver
...
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com >
Change-Id: Ieecd9ed63d5172a1a210a48f1b16848a93e71ed4
2025-04-28 19:25:50 +08:00
Zefa Chen
41a9d53bc3
include: rk-camera-module: add cmd of RKMODULE_GET_SPD_RATIO
...
Change-Id: I398507ea699a71325a635cee8a9ce3e23ec8f1b0
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com >
2025-04-28 19:25:50 +08:00
Zefa Chen
49f1524f77
include: rk-camera-module: add cmd of RKMODULE_SET_BLC
...
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com >
Change-Id: I65a7979e828421daba600a537c737ff514a2c8b3
2025-04-28 19:25:50 +08:00
Zefa Chen
0a46c92b2d
include: rk-camera-module: add cmd of RKMODULE_SET_WB_GAIN
...
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com >
Change-Id: I9202c9000e755d6ede2bff139874933d32acfa3a
2025-04-28 19:25:50 +08:00
Xing Zheng
a2be2f002e
ASoC: codecs: rk_dsm: Fixed the configuration in multi codec sound was modified by capture stream
...
Also, the setting of rk_dsm_set_clk() is only in the playback stream.
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com >
Change-Id: I142091151f94cc62b4b22f4079d3ab03f9dce57f
2025-04-28 19:25:50 +08:00
Algea Cao
36d47d42d0
drm/rockchip: vop2: Set post-csc input range limited when vp is yuv overlay
...
When dci is not enabled and vp is yuv overlay, the input
range of csc is limited.
Fixes: c08d820f80 ("drm/rockchip: vop2: Support post csc color range convert")
Change-Id: I53064bcbb46f8d2fda70eb71577e79ea32399690
Signed-off-by: Algea Cao <algea.cao@rock-chips.com >
2025-04-28 19:25:50 +08:00
Elaine Zhang
085dfd9f13
clk: rockchip: rv1126b: fix hclk_rkrng_ns parent
...
rkrng_ns depends on rkrng_s.
Change-Id: I6d7bac7011ac26fafd1aae2a4948504b7e547335
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com >
2025-04-28 19:25:50 +08:00
Ye Zhang
9a979886a0
gpio: rockchip: Fix debounce clock management and refcount handling
...
Signed-off-by: Ye Zhang <ye.zhang@rock-chips.com >
Change-Id: I28861a0523a59f3189fb5669171b84a8ff6b864e
2025-04-28 19:25:49 +08:00
Shuangjie Lin
7c86d0dc46
driver: rknpu: Fix missing misc_deregister() on dma heap open failure
...
Signed-off-by: Shuangjie Lin <shuangjie.lin@rock-chips.com >
Change-Id: I8e0f622cb5090b2eae0ac819b4bfb78e35ada261
2025-04-28 06:23:49 +00:00
Cai YiWei
63f6206c76
media: rockchip: isp: default to NO_HDR if sensor Unimplemented RKMODULE_GET_HDR_CFG
...
Change-Id: I9abb7c48246d8303ef24012364c2c4d56c834df3
Signed-off-by: Cai YiWei <cyw@rock-chips.com >
2025-04-28 06:23:32 +00:00
Hongjin Li
59b5ac2a0f
video: rockchip: mpp: rkvdec2: fix vdec IP stuck issue
...
Platform: RV1126B
Err log:
mpp_rkvdec2 22140100.rkvdec: session 94 task 47772 timeout 1 abort 0 force_deq0
mpp_rkvdec2 22140100.rkvdec: resetting...
mpp_rkvdec2 22140100.rkvdec: reset timeout
mpp_rkvdec2 22140100.rkvdec: reset done
mpp_rkvdec2 22140100.rkvdec: resend task 47773
mpp_rkvdec2 22140100.rkvdec: resend task 47774
Err case:
When the zap mmu is issued, it causes the mmu to issue an additional
table fetch command. The data returned by this additional table fetch
command happens to fall during the clock-off period of the reset,
resulting in an incomplete final bus.
Solution:
The software should not zap the MMU while the hardware is operating.
Instead, the 1126B can rely on its built-in hardware MMU zap
functionality.
Change-Id: I1d7df42305edf910c1f39686832f856ccc26bc6d
Signed-off-by: Hongjin Li <vic.hong@rock-chips.com >
2025-04-28 12:32:58 +08:00
Hongming Zou
f736a39fb8
ARM: dts: rockchip: update the init values of the ili9881d screen for all platforms that use it
...
Modify the delay value of the screen wake-up from sleep mode
register from 0 to 150 ms
Modify the delay value of the screen display enable register
from 1 to 20 ms
The reason for the modification:
When the U-Boot display feature is disabled, the default
configuration may cause screen display failures
Change-Id: Icfdca35d9262b640ac0b26b2f9adab04e7a960b0
Signed-off-by: Hongming Zou <hongming.zou@rock-chips.com >
2025-04-28 04:17:55 +00:00
Hongming Zou
9b70ecec04
arm64: dts: rockchip: rv1126bp-evb: update dsi panel configuration
...
Modify according to the values provided by the screen manufacturer
solved the problem that the rkipc vo probability is not displayed
Change-Id: I7a74c8827e37071f3c3708c4de9711b9d97bb28d
Signed-off-by: Hongming Zou <hongming.zou@rock-chips.com >
2025-04-28 04:17:55 +00:00
Cai YiWei
bb34e2e6ac
media: rockchip: isp: fix isp35 bls3
...
Change-Id: I926aa37dce705c81c021a5a84cc91b0a05e89674
Signed-off-by: Cai YiWei <cyw@rock-chips.com >
2025-04-28 11:03:45 +08:00
Weixin Zhou
d4e3d00bdd
video: rockchip: vehicle: fix generic sensor read data error
...
Signed-off-by: Weixin Zhou <zwx@rock-chips.com >
Change-Id: Ib00626d55100ba941e50a8e265d2a54759743aa8
2025-04-28 02:56:58 +00:00
Luo Wei
5336f1b5a2
arm64: dts: rockchip: rk3576-vehicle-evb: close dmc default
...
Signed-off-by: Luo Wei <lw@rock-chips.com >
Change-Id: I3bd8dcf98e8e8388caf17300214da536fbdf1c7c
2025-04-27 15:00:22 +08:00
Luo Wei
d22bea4295
arm64: dts: rockchip: rk3588-vehicle-evb: close dmc default
...
Signed-off-by: Luo Wei <lw@rock-chips.com >
Change-Id: Idfa186b2179e2096847e311d8503f173358c56e9
2025-04-27 15:00:19 +08:00
Jianwei Fan
103ff18720
media: i2c: rk628: fix get range when hdmirx detect default range
...
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com >
Change-Id: I1e0f0cdef4f6bfe4ec43b8ada42cdd6bc4c6695e
2025-04-27 06:58:37 +00:00
Chen Shunqing
c6dc73ee3f
media: i2c: rk628: update edid to support video capability
...
Change-Id: I10e661c95950ecb09c001fcfc07261ede2c5e6bb
Signed-off-by: Chen Shunqing <csq@rock-chips.com >
2025-04-27 06:47:57 +00:00
Chen Shunqing
aa05f99a27
media: rockchip: hdmirx: update edid to support video capability
...
Change-Id: I2207ceb25b48ad2c70a12c53a60ab0756292f4ad
Signed-off-by: Chen Shunqing <csq@rock-chips.com >
2025-04-27 06:47:42 +00:00
Jianwei Fan
6af2e086d0
media: i2c: rk628: fix rk628d should not reset txdata when stream on
...
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com >
Change-Id: I7e1e793882bbc214da7a9591efd32fd4a09c0c8a
2025-04-27 06:47:17 +00:00
Wei Dun
b4e8fa7e0d
media: rockchip: vpss: update procfs MIR_EN/CMSC_EN/CHN_SEL display
...
Signed-off-by: Wei Dun <willam.wei@rock-chips.com >
Change-Id: Icc27903f096d946f4d33bfb56ab202dd1fde2fcb
2025-04-27 06:08:22 +00:00
Yu Qiaowei
7570556ece
video: rockchip: rga3: remove over-constrained on act_height
...
Change-Id: I8cbf3383e993141ce1d31aa39cadfe2f13de6fc0
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com >
2025-04-27 06:07:34 +00:00
Yu Qiaowei
41f62556f0
video: rockchip: rga3: fix unbalanced clk_disable call
...
Fixes: ba424a5b94 ("video: rockchip: rga3: get clk through dts")
Change-Id: I41b02dda39098cd85837e5a21b7a934e85884236
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com >
2025-04-27 06:07:34 +00:00
Cai YiWei
85cf80c455
media: rockchip: isp: fix isp35 aiawb config
...
Change-Id: I4d06f04df2e7692ec6b0267865fc0766830289b7
Signed-off-by: Cai YiWei <cyw@rock-chips.com >
2025-04-27 01:32:49 +00:00
Tao Huang
fb9f5e33d9
Revert "sync: add tracepoint support"
...
This reverts commit ae739c14a7 .
Signed-off-by: Tao Huang <huangtao@rock-chips.com >
Change-Id: I83bd11a206e9a9c360ab4aca2cb5e2471178f5e5
2025-04-25 18:29:32 +08:00
Finley Xiao
21e1f0ed71
arm64: dts: rockchip: rk3588: Fix opp-b-950000000 node for npu
...
Change-Id: I193606dae3d4fd3c14e37f3ff67cc68421530c2a
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com >
2025-04-25 09:59:37 +00:00
Liang Chen
e744952891
arm64: dts: rockchip: rv1126b: update opp-table for cpu/npu/enc
...
Change-Id: I2dca18e84d2000d7d6a5d590fd4c2812ccb45ad5
Signed-off-by: Liang Chen <cl@rock-chips.com >
2025-04-25 15:27:47 +08:00
Liang Chen
0235d2612b
clk: rockchip: clk-pvtpll: update cpu/npu/enc pvtpll config for rv1126b
...
Change-Id: I0005666aea7d14c35b145fdf370b3474887f3a58
Signed-off-by: Liang Chen <cl@rock-chips.com >
2025-04-25 15:27:33 +08:00
Zefa Chen
334b4588fc
media: rockchip: vicap fixes error of compact mode for isp_unite
...
Change-Id: I4d6cc25f0f1af30cd81653f7e241dda31fc8a9fd
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com >
2025-04-25 06:07:38 +00:00
Cai YiWei
f78b1bc6d6
media: rockchip: isp: fix rawrd bytesperline
...
Change-Id: Id30a3a49988b9b2f4cd819b528270075636c617c
Signed-off-by: Cai YiWei <cyw@rock-chips.com >
2025-04-25 10:30:13 +08:00
Yu Zheng
c8a1451d09
media: i2c: gc8613 add staggered hdr support
...
Signed-off-by: Yu Zheng <yu.zheng@rock-chips.com >
Change-Id: I3fc28f0c3ba6195c5f4a893f122cc445860c8d86
2025-04-24 10:36:50 +00:00
Zefa Chen
31c281f3e2
media: i2c: add gc6603 sensor driver
...
Change-Id: I373d413d4051753d6bf0f38a8d9373db971ce588
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com >
2025-04-24 08:15:33 +00:00
Zefa Chen
4fe007016c
media: i2c: os04d10 sync from kernel-5.10 and fixes error of compile
...
Change-Id: If306552babe2ce6386479d29bda3e8e23536a791
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com >
2025-04-24 08:14:26 +00:00
YouMin Chen
61bf55598d
firmware: rockchip_sip: replace memset with memset_io
...
Fixes: b8c0e6975d ("firmware: rockchip_sip: add valid value check for map->bank_bit_first")
Change-Id: Ie7df5dc8026dcfb9bce9e70d6c4103de18814b8e
Signed-off-by: YouMin Chen <cym@rock-chips.com >
2025-04-24 08:12:17 +00:00
Zorro Liu
df1bcc7a2f
arm64: dts: rockchip: rk3576-ebook-v10: rename fp9931-thermal to fp9931_thermal to match uboot driver
...
Change-Id: I71ccb60bff7067897d103d8549c4dcd57d2b7b81
Signed-off-by: Zorro Liu <lyx@rock-chips.com >
2025-04-24 08:09:45 +00:00
Jianwei Fan
a6838a8f6a
media: i2c: lt6911c: add dcphy param if link to rk3588 dcphy
...
Change-Id: I9c424159847380fbfb5b4f9971fa8693283ff528
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com >
2025-04-24 11:54:40 +08:00
Tao Huang
e1d516524c
clk: rockchip: Add missing MODULE_LICENSE()
...
ERROR: modpost: missing MODULE_LICENSE() in drivers/clk/rockchip/clk-rockchip.o
Signed-off-by: Tao Huang <huangtao@rock-chips.com >
Change-Id: I875c24b00995e955056eea03a048d54032085590
2025-04-23 12:28:16 +00:00
YouMin Chen
b8c0e6975d
firmware: rockchip_sip: add valid value check for map->bank_bit_first
...
Change-Id: I4909cd313854a10c415686f3c9df85411677370d
Signed-off-by: YouMin Chen <cym@rock-chips.com >
2025-04-23 18:26:49 +08:00
Weiguo Hu
c3bd2c8d05
arm64: dts: rockchip: rk3528: default disable v2 tuning for sdio
...
Signed-off-by: Weiguo Hu <hwg@rock-chips.com >
Change-Id: I0fb7f8be05046c44f11e3a0591fca15b8b8cbb27
2025-04-23 14:01:27 +08:00
Tao Huang
ee353a6c3b
clk: rockchip: ROCKCHIP_CLK_INV depends on CLK_RK3188 || CLK_RK3288 || CLK_RK3368 || CLK_RV1108
...
Change-Id: I81542d40312e2ce4f743a18198addb333eb4ecbc
Signed-off-by: Tao Huang <huangtao@rock-chips.com >
2025-04-22 18:59:28 +08:00
Tao Huang
a2439f944c
clk: rockchip: ROCKCHIP_CLK_PVTM depends on CLK_RK3368
...
Change-Id: I43fafd1376f52e2047c019a86233d0ce02035916
Signed-off-by: Tao Huang <huangtao@rock-chips.com >
2025-04-22 18:49:49 +08:00
Tao Huang
f9324b0e31
ARM: configs: rv1126b_defconfig: Disable CONFIG_ROCKCHIP_PVTM
...
Change-Id: Id185fa5984937c847a3c9982084d7960b04f3717
Signed-off-by: Tao Huang <huangtao@rock-chips.com >
2025-04-22 18:33:39 +08:00
Caesar Wang
d1ccccff54
ARM: configs: add rv1126b_linux_defconfig to support RV1126B SoC with Linux OS
...
This defconfig targets the RV1126B SoC, enabling essential drivers for
embedded Linux systems built with Buildroot.
Verified on RV1126B evaluation board: boots to desktop GUI and runs rkipc demo
app normally.
Change-Id: I431c667fc0a560b2e3232667db95f5d8128c29cf
Signed-off-by: Caesar Wang <wxt@rock-chips.com >
2025-04-22 18:31:13 +08:00
Wei Dun
757decd818
media: rockchip: vpss: set ROCKIT_BUF_NUM_MAX to 20
...
Signed-off-by: Wei Dun <willam.wei@rock-chips.com >
Change-Id: I1d2b0b30bccef8fce1a3f98e7c862a317b062e4c
2025-04-22 09:41:37 +00:00