Commit Graph

1287927 Commits

Author SHA1 Message Date
Zhen Chen
5d8020fa94 configs: rockchip: add bifrost_gpu_gki.config and valhall_gpu_gki.config
In order to have better compatibility with the Android build method,
the configurations for Bifrost and Valhall GPUs for GKI build
are respectively deployed in the aforementioned config files.

Change-Id: Id99944e8fa17c986e585855d86b3c8eddec3b906
Signed-off-by: Zhen Chen <chenzhen@rock-chips.com>
2025-05-07 08:22:00 +00:00
Zhen Chen
513da3827c arm64: configs: rockchip: Migrate configs for Bifrost and Valhall GPUs to SoC-level config files
This is in coordination with the modification of commit
"MALI: rockchip: Add separate src directory for Valhall driver from DDK g28p0-00eac0".
The configs related to Bifrost and Valhall GPUs are designed to be configured
in the SoC-level config files.
Therefore, for some SoCs, the kernel compilation command line needs to be adjusted.

Change-Id: Ida29d2f6dba9b9ea7f39e8b5f7995214b346d1dc
Signed-off-by: Zhen Chen <chenzhen@rock-chips.com>
2025-05-07 08:13:09 +00:00
Tao Huang
b4e46d9b84 Merge commit 'e54469c723f07d3885deea31d2d6f10473661293'
* commit 'e54469c723f07d3885deea31d2d6f10473661293':
  MALI: rockchip: Add separate src directory for Valhall driver from DDK g28p0-00eac0

Change-Id: I68c48c6bafa5bb1aa2f64c5aca2947183db6f48e
2025-05-07 15:46:08 +08:00
Zhen Chen
e54469c723 MALI: rockchip: Add separate src directory for Valhall driver from DDK g28p0-00eac0
Previously, Valhall and Bifrost GPUs shared a single driver source directory (drivers/gpu/arm/bifrost).
However, starting from DDK r52 (g27), Bifrost GPUs are no longer supported.
As a result, the Valhall GPU driver from DDK r53 (g28) must use a separate source directory
(drivers/gpu/arm/valhall).

There are also modifications in some header files outside of drivers/gpu/arm/.

In addition, the configs related to Bifrost and Valhall GPUs have been removed
from the defconfig file like rockchip_linux_defconfig,
which does not reflect the current SoC.
Instead, these configs have been migrated to the .config files
such as rk3576.config, whose file names can reflect the current SoC.
Therefore, for some SoCs, the kernel compilation command line needs to be adjusted.

Change-Id: I0c4384212b4b679a728401f7f89ae839530f002b
Signed-off-by: Zhen Chen <chenzhen@rock-chips.com>
2025-05-07 07:43:36 +00:00
Tao Huang
37b51393d4 Merge commit '74328f507f2dbb19aa456d8bbf64ce41bc8984d0'
* commit '74328f507f2dbb19aa456d8bbf64ce41bc8984d0':
  drm/bridge: synopsys: dw-hdmi-qp: support hdmi2.0 when get modes is not from edid
  thermal: rockchip: Don't adjust bias for rv1126b
  arm64: dts: rockchip: rk3588-vehicle-evb-v23-audio: fix BT card format
  arm64: dts: rockchip: rv1126b: set low-temp-min-volt for dmc
  arm64: dts: rockchip: rv1126b: Add rockchip,cru for isp and aisp pvtpll
  clk: rockchip: clk-pvtpll: Add support to disable pvtpll for rv1126b
  drm/rockchip: dsi: transfer WMS/WMC packet use HS DCS long write command

Change-Id: I192809f30a9a60b22812209afc4a99b57d7f84e1
2025-05-07 15:05:13 +08:00
Chen Shunqing
74328f507f drm/bridge: synopsys: dw-hdmi-qp: support hdmi2.0 when get modes is not from edid
Signed-off-by: Chen Shunqing <csq@rock-chips.com>
Change-Id: Ie1c78cf2b817b6ba9bfb59481331507bd9e5fa12
2025-05-07 07:01:26 +00:00
Finley Xiao
a6e1abc637 thermal: rockchip: Don't adjust bias for rv1126b
The bias is adjusted in spl.

Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: If585775120165d42def687903db6baa8d0978cff
2025-05-07 07:01:01 +00:00
Zheng zhiqi
eab93b2967 arm64: dts: rockchip: rk3588-vehicle-evb-v23-audio: fix BT card format
FIX BT card format
    format = 'dsp_a'
    bitclock = 'inversion'
    mclk-fs = '256'

Change-Id: Iddb5e5c995a29e2a0e756f98e3583893504f8d08
Signed-off-by: Zheng zhiqi <looper.zheng@rock-chips.com>
2025-05-07 01:10:12 +00:00
Liang Chen
3d090ee1b3 arm64: dts: rockchip: rv1126b: set low-temp-min-volt for dmc
Change-Id: I1322a9501f4c9322e5e576dfeec36757049ef9f4
Signed-off-by: Liang Chen <cl@rock-chips.com>
2025-05-06 17:21:50 +08:00
Zorro Liu
f3564437b6 drm/rockchip: ebc_dev: release version v7.14
1.system update no wait framedone under overlay mode
2.fast mode to normal mode use part glr16 if fast mode not complete
3.support setting enable waveform fix
4.support setting force temperature

Change-Id: I63355e094f56f055022bdb6688270cee3f09b705
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
2025-05-06 16:50:07 +08:00
Finley Xiao
14ad825b7c arm64: dts: rockchip: rv1126b: Add rockchip,cru for isp and aisp pvtpll
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I4552cfe5bc414472fe6b47035918619a46490a57
2025-05-06 15:33:56 +08:00
Finley Xiao
7cd995b081 clk: rockchip: clk-pvtpll: Add support to disable pvtpll for rv1126b
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I3352b39d97e5bfacd962b7f786c87eda92770e40
2025-05-06 15:33:10 +08:00
Mark Huang
bcf6d77dec ARM: rockchip_defconfig: Enable RK630_PHY config
Signed-off-by: Mark Huang <huangjc@rock-chips.com>
Change-Id: I084c75f24f04f2a284b06d1cd483d2f223d05258
2025-05-06 09:58:20 +08:00
Guochun Huang
96aaf2fd6c drm/rockchip: dsi: transfer WMS/WMC packet use HS DCS long write command
DSI works in command mode, using long packet DCS commands WMC and WMS
to send video signals at high speed.

Change-Id: Ib95e9e2228d6393f85f7d3e53918d538f34d9b72
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
2025-05-02 17:31:51 +08:00
Tao Huang
931cca2f18 Merge commit '3efb087f485e02291124f64267e6d92e48135f1f'
* commit '3efb087f485e02291124f64267e6d92e48135f1f':
  media: i2c: dw9800v: fix motor pos is wrong after change max logicalpos
  media: i2c: otp_eeprom fixes error of qsc data size
  media: rockchip: isp: fix bls2/bls3
  media: rockchip: isp: fix resume no output for isp35
  drm/bridge: analogix_dp: Add log to indicate panel self test mode
  dmaengine: rockchip-dma: Fix potential concurrent on rk_dma_lch
  dmaengine: rockchip-dma: Fix overflow in get_bytes_xfered calculation

Change-Id: Iac963f6fb95e7d88bf0d857950571aa3b2e44f17
2025-04-30 20:32:22 +08:00
Hu Kejun
3efb087f48 media: i2c: dw9800v: fix motor pos is wrong after change max logicalpos
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
Change-Id: I1136ffab716af60c461b03ad5bd71ed811b1fb0b
2025-04-30 12:31:04 +00:00
Zefa Chen
26796deb68 media: i2c: otp_eeprom fixes error of qsc data size
Change-Id: Ifa5aa55f1329ebab875f0525604b0b0a8c39dcac
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
2025-04-30 11:56:15 +00:00
Cai YiWei
b175fe17bc media: rockchip: isp: fix bls2/bls3
Change-Id: I6729034bc03ce6ab27771af77d4dae4a7abc0314
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2025-04-30 10:03:24 +00:00
Cai YiWei
6c9150f09c media: rockchip: isp: fix resume no output for isp35
Change-Id: I68d5f94d66c3e2d15cc58c92a07db7ef89b740fb
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2025-04-30 10:03:24 +00:00
Damon Ding
bd577ca192 drm/bridge: analogix_dp: Add log to indicate panel self test mode
If the CONSOLE_LOGLEVEL_DEFAULT is over 6, there should be the
related log:

......
[   69.489746][  T300] rockchip-dp 27dc0000.edp: Enter panel self test mode
......

Change-Id: I256933ef2cff20716715c5850948a85e4c8fad07
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2025-04-30 02:15:46 +00:00
Sugar Zhang
5887b5e6da dmaengine: rockchip-dma: Fix potential concurrent on rk_dma_lch
The LCH should always be accessed under lock protection to avoid
race conditions that could lead to null-pointer dereference.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I26ef5467c4d79236e1d52806fec7d60c0c34136f
2025-04-30 09:41:32 +08:00
Sugar Zhang
d2c81f797c dmaengine: rockchip-dma: Fix overflow in get_bytes_xfered calculation
The transferred bytes are calculated by subtracting first_lli.base from
current position (cur_pos). However, cur_pos remains 0 until the first
burst transfer completes, which could result in a negative value.
This leads to incorrect byte count reporting.

Fix the overflow by clamping the calculated bytes to 0 when negative,
ensuring the reported transfer position matches hardware state before
the first burst completion.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Ie9d14f514d2ebfe068b535b2f9892b319cb8a41b
2025-04-30 09:36:37 +08:00
Tao Huang
ddfe51603a Merge commit '093b7274161e8fe84cc4f5930e9a9d6cb0f95b37'
* commit '093b7274161e8fe84cc4f5930e9a9d6cb0f95b37':
  arm64: configs: rv1126b: add CONFIG_DMABUF_PARTIAL=y
  ARM: configs: rv1126b: add CONFIG_DMABUF_PARTIAL=y
  video: rockchip: rga3: RGA3 support RGBX/BGRX8888
  dmaengine: rockchip-dma: Fix NULL pointer dereference in rk_dma_irq_handler()
  drm/rockchip: vop2: update color-encoding selection policy for post-csc
  pwm: rockchip: replace duty_table with wave_table in irq callbacks
  drm/rockchip: vop2: Fix the name of CSC and BCSH parameters conversion function

Change-Id: I8fdae9e921e2264a817933848e9ee6a1dce314de
2025-04-29 20:23:29 +08:00
Yandong Lin
093b727416 arm64: configs: rv1126b: add CONFIG_DMABUF_PARTIAL=y
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Change-Id: Id05ccce1375243b1fd3402f23b648f3d0b9f06c0
2025-04-29 20:17:57 +08:00
Yandong Lin
82dc09df86 ARM: configs: rv1126b: add CONFIG_DMABUF_PARTIAL=y
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Change-Id: I51e5c984da5433c822908c0a63646fc5f8df7315
2025-04-29 20:15:35 +08:00
Yu Qiaowei
6ec967cecf video: rockchip: rga3: RGA3 support RGBX/BGRX8888
Change-Id: I93a403d5dd94a44e267692a3542a938a2aaacf8d
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
2025-04-29 11:47:34 +00:00
Sugar Zhang
7ce3df001a dmaengine: rockchip-dma: Fix NULL pointer dereference in rk_dma_irq_handler()
Unable to handle kernel NULL pointer dereference at virtual address 0000000c
[0000000c] *pgd=00000000
Internal error: Oops - BUG: 17 [#1] SMP THUMB2
CPU: 0 PID: 0 Comm: swapper/0 Tainted: G           O       6.1.118 #1
Hardware name: Generic DT based system
PC is at rk_dma_irq_handler+0xa2/0x112
LR is at arch_spin_lock+0x9/0x32
pc : [<b01c3f00>]    lr : [<b0038341>]    psr: 600001f3
sp : b060de28  ip : 00000000  fp : b0ab3580
r10: 00000000  r9 : 00000001  r8 : 00000000
r7 : 00000000  r6 : b0abc124  r5 : b0a7d440  r4 : 00000000
r3 : 00000000  r2 : 00000001  r1 : 00001707  r0 : 00000000

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Ib72308df4899c6142ac5749722b6f0b96af8c988
2025-04-29 11:36:44 +00:00
Algea Cao
2e4cd35f06 drm/rockchip: vop2: update color-encoding selection policy for post-csc
When all layers are rgb, the post-csc input color encoding
is fixed to rgb full, and the value of input_color_encoding
has no actual utility. If there are any yuv planes, value
of post-csc input_color_encoding selects the value of the
yuv plane with the largest area.

Change-Id: If624730e93a5ac03fc334890074883b9e6b828eb
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2025-04-29 16:31:36 +08:00
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
Tao Huang
5d22b782fc Merge commit 'adb3aba20382510c199c55aad189de8924f86f90'
Merge made by the 'ours' strategy.

* commit 'adb3aba20382510c199c55aad189de8924f86f90':
  usb: typec: tcpm: fix panic when pd disabled in dt

Change-Id: I2ca3e90fbb6afce217ad5a25bdfbe28125f523ab
2025-04-29 09:10:24 +08:00
Frank Wang
1b2b4749bc 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-29 08:47:37 +08:00
Tao Huang
809e70e641 Merge commit '559aa0ed870d95d91c14d3471747aa5979d7655a'
* commit '559aa0ed870d95d91c14d3471747aa5979d7655a': (27 commits)
  pwm: rockchip-test: Add demo for updating both period and duty in wave generator mode
  pwm: rockchip: simplify to one wave_table configuration instead of duty_table and period_table
  media: rockchip: vicap support get data type form sensor driver
  include: rk-camera-module: add cmd of RKMODULE_GET_SPD_RATIO
  include: rk-camera-module: add cmd of RKMODULE_SET_BLC
  include: rk-camera-module: add cmd of RKMODULE_SET_WB_GAIN
  ASoC: codecs: rk_dsm: Fixed the configuration in multi codec sound was modified by capture stream
  drm/rockchip: vop2: Set post-csc input range limited when vp is yuv overlay
  clk: rockchip: rv1126b: fix hclk_rkrng_ns parent
  gpio: rockchip: Fix debounce clock management and refcount handling
  driver: rknpu: Fix missing misc_deregister() on dma heap open failure
  media: rockchip: isp: default to NO_HDR if sensor Unimplemented RKMODULE_GET_HDR_CFG
  video: rockchip: mpp: rkvdec2: fix vdec IP stuck issue
  ARM: dts: rockchip: update the init values of the ili9881d screen for all platforms that use it
  arm64: dts: rockchip: rv1126bp-evb: update dsi panel configuration
  media: rockchip: isp: fix isp35 bls3
  video: rockchip: vehicle: fix generic sensor read data error
  arm64: dts: rockchip: rk3576-vehicle-evb: close dmc default
  arm64: dts: rockchip: rk3588-vehicle-evb: close dmc default
  media: i2c: rk628: fix get range when hdmirx detect default range
  ...

Change-Id: I5cc37283e174e07d6ad42f4523ce4aa74845de8e
2025-04-28 20:43:25 +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