Commit Graph

1281739 Commits

Author SHA1 Message Date
Tao Huang
9d9ce2cb47 Revert "tee: optee: interrupt an RPC depend on shutdown flag"
This reverts commit b0b2892b93.

Replaced by commit ec18520f5e ("tee: optee: Fix supplicant wait loop").

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2025-07-07 19:15:34 +08:00
Shengfei Xu
03ccc5e01f arm64: dts: rockchip: rv1126bp-evb-v14: Adjust the matching voltage
Hardware suggests adjusting the 800mV voltage to 900mV.

Signed-off-by: Shengfei Xu <xsf@rock-chips.com>
Change-Id: Ice645a47138b4905053e8bf6d1a903c616a1c719
2025-07-07 09:03:33 +00:00
hkj
2e3bcaae97 media: rockchip: aiisp: delete one temp buffer to reduce memory
Signed-off-by: hkj <william.hu@rock-chips.com>
Change-Id: I70ac6a2dbd3f0b07244480b9d4e3925a083e009a
2025-07-07 02:32:36 +00:00
Cai YiWei
34aa1c493f media: rockchip: isp: mp output buf notice to aiisp
Change-Id: Ic615514cb36aacf33cdaa15976d76265d455e8f9
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2025-07-07 02:32:10 +00:00
hkj
8faaf5ea8a media: rockchip: aiisp: modify for aiynr algo
Change-Id: If8189c7ea66ac572ad4f8ac335d7f365c24d29f7
Signed-off-by: hkj <william.hu@rock-chips.com>
2025-07-07 02:32:10 +00:00
Elaine Zhang
77c92aee86 rtc: rockchip: add ready flag for rtc setting time
Change-Id: I0f1ddcf41ae4891c40ed2d4ec05e1a9b38f786b6
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2025-07-07 09:54:22 +08:00
Liang Chen
1f43a694ea soc: rockchip: cpuinfo: export chip unique id to userspace
root@linaro-alip:/# cat /sys/module/rockchip_cpuinfo/parameters/id
4132475458000000000000000006150b

Change-Id: Idfb80ed48e4b507d81731c63004686f37b745b45
Signed-off-by: Liang Chen <cl@rock-chips.com>
2025-07-04 07:02:04 +00:00
Wei Dun
2cd7ed573f media: rockchip: vpss: offline mode support auto unite output
Change-Id: I234f7c5af53e855e0faebf791d3db74d94e33022
Signed-off-by: Wei Dun <willam.wei@rock-chips.com>
2025-07-04 03:35:36 +00:00
Damon Ding
e8cba62d56 drm/rockchip: vop2: Add "DIMMING_DATA" property for local dimming
The user can update the dimming data via "DIMMING_DATA" property, and
it will be sent to the panel supported local dimming function in the
rockchip dimming panel driver.

Change-Id: I7dba541450fce86be064d0205af0f595b1712aea
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2025-07-04 02:55:34 +00:00
Cai YiWei
e78f73a9b5 media: rockchip: isp: aiisp switch for offline mode
Change-Id: I4e72621acf57d4497cb53b905e9ec75a23f558cd
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2025-07-04 02:55:18 +00:00
Cai YiWei
ac36b30e88 media: rockchip: isp: aiisp switch for isp35
Change-Id: I57bed352c7e27c3e96710254a7ccbbbba834ff26
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2025-07-04 02:55:18 +00:00
Cai YiWei
b789675ade media: rockchip: isp: support aiisp yuv mode
Change-Id: I6aba5461ee1c7c215af648561c9eb8ef6897c2a5
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2025-07-04 02:55:18 +00:00
Tao Huang
fe81cd9828 input: touchscreen: gt1x: prefix global variables and functions with "gt1x_"
update_info -> gt1x_update_info
_do_i2c_read -> gt1x_do_i2c_read
_do_i2c_write -> gt1x_do_i2c_write

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: If8fae2583a0df52f31f22e9844dec7ac3a625517
2025-07-04 10:39:16 +08:00
Weixin Zhou
a5c5772e79 MALI: valhall: add gpu mem sysfs entry
ls -l sys/class/misc/mali0/device/kprcs/(pid)/
-r--r--r-- 1 root root 4096 2025-06-12 21:59 private_gpu_mem
-r--r--r-- 1 root root 4096 2025-06-12 21:59 total_gpu_mem

ls -l sys/class/misc/mali0/device/
-r--r--r-- 1 root root 4096 2025-06-12 22:35 private_gpu_mem
-r--r--r-- 1 root root 4096 2025-06-12 22:35 total_gpu_mem

Signed-off-by: Weixin Zhou <zwx@rock-chips.com>
Change-Id: Ie14aa324779492bd7983fcf1c94dab86bc066e2c
2025-07-04 01:30:20 +00:00
Damon Ding
65f19639f9 drm/rockchip: Make the DRM panel as part of Rockchip DRM sub devices for panel loader protect
In order to support the loader protect function of more panel
drivers, we add the DRM panel as part of Rockchip DRM sub devices.

The panel-simple driver always is regarded as a panel driver demo of
Rockchip platforms, so we first add the Rockchip DRM sub_dev for it.

The panel drivers that adapt to Rockchip DRM drivers can call
rockchip_drm_register_sub_dev()/rockchip_drm_unregister_sub_dev() to
register/unregister DRM sub_dev, and then invoke
rockchip_drm_panel_loader_protect() to achieve the panel loader
protect function.

Change-Id: Ibc302c3f3677e0c55545e90af29d7a87444c2e21
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2025-07-03 18:59:45 +08:00
Damon Ding
d8e42edcd6 drm/rockchip: Pass struct rockchip_drm_sub_dev for &rockchip_drm_sub_dev.loader_protect()
In order to enhance the flexibility of loader protect callback
&rockchip_drm_sub_dev.loader_protect(), we replace the parameter
'struct drm_encoder *encoder' by 'struct rockchip_drm_sub_dev'so that
the panel or bridge drivers can apply it to achieve the loader
protect function.

Change-Id: Ic26110583245c1a0807fee35f4dd889ee8f1f845
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2025-07-03 18:59:45 +08:00
Damon Ding
927ec42749 pwm: rockchip: Add &rockchip_pwm_chip.oneshot_valid to indicate validity of configurations
In the past, the flag &rockchip_pwm_chip.oneshot_en may not represent
the accurate enabled status for oneshot mode, because the oneshot mode
should be active after setting the 'pwm_en' bit. Therefore, we add the
&rockchip_pwm_chip.oneshot_valid to represent the validity of oneshot
configurations, and &rockchip_pwm_chip.oneshot_en does what it should
do.

In addition, the disabling of oneshot mode does not need to delay one
period(related commit 42e759004f ("pwm: rockchip: add one period
delay before disabling the dclk")). It will end after the last period
sent.

What's more serious, the disabling process may be done in interrupt
handler for oneshot mode(The handler is flexible for user as designed),
so it is unreasonable to call fsleep() in the interrupt handler, which
may cause the following error with 100000ns period:

[    6.517981] BUG: scheduling while atomic: swapper/0/0/0x00010000
[    6.518045] Modules linked in:
[    6.518060] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 6.1.118 #944
[    6.518069] Hardware name: Rockchip RK3576 EVB1 V10 Board (DT)
[    6.518078] Call trace:
[    6.518085]  dump_backtrace+0xd8/0x130
[    6.518108]  show_stack+0x1c/0x30
[    6.518118]  dump_stack_lvl+0x64/0x7c
[    6.518132]  dump_stack+0x14/0x2c
[    6.518141]  __schedule_bug+0x58/0x70
[    6.518155]  __schedule+0x6f0/0x7c0
[    6.518164]  schedule+0x54/0xe0
[    6.518172]  schedule_hrtimeout_range_clock+0xa8/0x144
[    6.518184]  schedule_hrtimeout_range+0x18/0x20
[    6.518193]  usleep_range_state+0x7c/0xb0
[    6.518204]  rockchip_pwm_enable_v4+0xc8/0x104
[    6.518219]  rockchip_pwm_apply+0x80/0x190
[    6.518229]  pwm_apply_state+0x68/0x190
[    6.518239]  rockchip_pwm_irq_v4+0x7c/0x1b0
[    6.518250]  __handle_irq_event_percpu+0x58/0x1d0
[    6.518265]  handle_irq_event+0x4c/0x110
[    6.518276]  handle_fasteoi_irq+0xc0/0x24c
[    6.518290]  generic_handle_domain_irq+0x30/0x44
[    6.518302]  gic_handle_irq+0x60/0x90
[    6.518312]  call_on_irq_stack+0x24/0x34
[    6.518323]  do_interrupt_handler+0x80/0x94
[    6.518333]  el1_interrupt+0x44/0xa0
[    6.518345]  el1h_64_irq_handler+0x14/0x20
[    6.518357]  el1h_64_irq+0x74/0x78
[    6.518366]  cpuidle_enter_state+0xbc/0x434
[    6.518382]  cpuidle_enter+0x3c/0x50
[    6.518393]  do_idle+0x228/0x2b0
[    6.518405]  cpu_startup_entry+0x38/0x40
[    6.518416]  kernel_init+0x0/0x12c
[    6.518425]  arch_post_acpi_subsys_init+0x0/0x18
[    6.518439]  start_kernel+0x6b0/0x6ec
[    6.518450]  __primary_switched+0xb4/0xbc

This patch will also help to avoid the above abnormal situation.

Change-Id: I0df715921d79803f06329a71b966a4ae40876f33
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2025-07-03 07:46:12 +00:00
Damon Ding
3192296029 pwm: rockchip: Add comments for why to add delay before disabling the dclk for PWM v4
Fixes: 42e759004f ("pwm: rockchip: add one period delay before disabling the dclk")
Change-Id: I612fde2adf60940e17146a115a104caf302109b2
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2025-07-03 07:46:12 +00:00
Zhibin Huang
77234413d3 input: touchscreen: hyn: reduce logs
Type: Function
Redmine ID: #N/A
Associated modifications: N/A
Test: N/A

Signed-off-by: Zhibin Huang <zhibin.huang@rock-chips.com>
Change-Id: I3bb19f2cfdd6bcfa4978818ba52ad4097a2d782b
2025-07-03 07:40:32 +00:00
Zhibin Huang
6af2d14c6b input: touchscreen: gt1x: disable async probe for multi-TP
Disable async probe if CONFIG_TOUCHSCREEN_HYN is enabled, since the EVB
requires sequential probing of both gt1x and hyn touchscreen drivers.

Type: Function
Redmine ID: #N/A
Associated modifications: N/A
Test: N/A

Signed-off-by: Zhibin Huang <zhibin.huang@rock-chips.com>
Change-Id: I4610e82d478aa328c0459bec8e9ce270644e3a1b
2025-07-03 15:32:34 +08:00
Zhang Yubing
bff036118f drm/rockchip: dw-dp: config traninig done flag when enable uboot logo
When uboot logo is enabled, we think it has completed the link training
in the uboot stage. so the cr done and eq done flag should be config.
And the retraining will not be filter.

Change-Id: Ibb68c3c6f42837568143f856c9f68fb8f882969a
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2025-07-03 06:52:25 +00:00
Cai YiWei
fbf3984a24 media: rockchip: isp: support unite mode for isp35
Change-Id: Ie4e237d8306f4e340552b8f5541d364cc2fce2ce
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2025-07-03 06:51:56 +00:00
Shengfei Xu
074d8a755b arm64: dts: rockchip: rk3576: Modify the pinctrl configuration of pmic_pins
Change-Id: Iabd0c1243cb8d4959fd879c12e21fe482a151021
Signed-off-by: Shengfei Xu <xsf@rock-chips.com>
2025-07-03 06:49:05 +00:00
Weiwen Chen
d3658dcb61 ARM: dts: rockchip: add rv1126b-evb1-v11-dual-4k.dts
Signed-off-by: Weiwen Chen <cww@rock-chips.com>
Change-Id: Ie5bb7aede43822aae6eb35df31e4574113458ba5
2025-07-02 10:15:46 +00:00
Weiwen Chen
95b49485f9 arm64: dts: rockchip: add rv1126b-evb1-v11-dual-4k.dts
Signed-off-by: Weiwen Chen <cww@rock-chips.com>
Change-Id: I4abe60077c832b6d174cd24a99c326fe1929bd03
2025-07-02 10:15:28 +00:00
Weiwen Chen
f362e051cd ARM: dts: rockchip: add rv1126b-evb1-v11.dts
Signed-off-by: Weiwen Chen <cww@rock-chips.com>
Change-Id: I29bcb0666f6a840834280b5ccd2a0dd7630757f7
2025-07-02 10:15:20 +00:00
Weiwen Chen
0cc3eb7072 arm64: dts: rockchip: add rv1126b-evb1-v11.dts
Signed-off-by: Weiwen Chen <cww@rock-chips.com>
Change-Id: I93c02b09bd800d2f54cd805c2615dd1709fe8602
2025-07-02 10:15:07 +00:00
Weiwen Chen
43d16b2df2 arm64: dts: rockchip: Add rv1126b-evb1-v12.dtsi
Signed-off-by: Weiwen Chen <cww@rock-chips.com>
Change-Id: Id81419915a4e89d1e361470c2a7aad36ad2876f6
2025-07-02 09:44:41 +00:00
Ziyuan Xu
d043cae8a3 ARM: configs: rv1126b: Enable CONFIG_ROCKCHIP_OPP default
Change-Id: I07e65b7d20fe589d6d429bfbaabbb32a1af09675
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
2025-07-02 16:24:30 +08:00
Jkand Huang
1df410e545 ARM: configs: rv1126b-aov.config: disabled ethernet
Signed-off-by: Jkand Huang <jkand.huang@rock-chips.com>
Change-Id: I937fa62a2f1eb090ae477a9ff358566e948c520a
2025-07-02 02:18:11 +00:00
Jkand Huang
a88b101479 ARM: configs: rockchip: rename rv1126b-wakeup.config to rv1126b-aov.config
Signed-off-by: Jkand Huang <jkand.huang@rock-chips.com>
Change-Id: Iebbb1ddb86f38d80fbc1f767547677879fea45ca
2025-07-02 02:15:40 +00:00
Jianwei Fan
b181a04f7d media: i2c: ov50c40: set 4k@15 for debug when cphy mode
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: Id8d1eb7b86529542aaa4bc0974340557a7a020dc
2025-07-02 01:11:10 +00:00
Jianwei Fan
f71c1d2992 arm64: dts: rockchip: add cam config for rk3576-test2
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: I112076d2d7f5c197941ff8736f2496c222dfa6a4
2025-07-01 11:04:26 +00:00
Zhang Yubing
93db60f415 drm/rockchip: dw-dp: limit color depth 8bit for hdr
In some case, the color depth will be 8bit when output
hdr content. So it need limit coor depth as 8bit for
hdr.

Change-Id: I7415230d4e0c4c08097ea5912aff791875db6176
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2025-07-01 06:40:18 +00:00
Cai YiWei
f597a314cd media: rockchip: isp: fix resource release if user crashes
Change-Id: I3587300198b4896f28278812651b38d08fdce2bf
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2025-07-01 06:39:22 +00:00
Jon Lin
835babb6ea misc: rockchip: pcie-rkep: Add rk182a device id
Change-Id: Ibde6bcb50d1f5061ac26fbaf53cac99eb0e35346
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2025-07-01 10:10:17 +08:00
Jon Lin
8883a611f7 misc: rockchip: pcie-rkep: Enable 4MB rkep memory area for basic functions
Change-Id: I49bce1b6eccc0970b96193d77c836c2e82ff236f
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2025-07-01 10:07:58 +08:00
Zitong Cai
70571046b1 arm64: configs: rk3576_vehicle.config: enable CONFIG_PWM_R7F701
Change-Id: If944cfbbcf240a8797e8e43aab662291e8c139ed
Signed-off-by: Zitong Cai <zitong.cai@rock-chips.com>
2025-06-30 10:56:34 +00:00
Zitong Cai
fe03f9c058 arm64: dts: rockchip: rk3576-vehicle-evb: Add max96749+max96772 2560x1600 resolution case
Change-Id: Ib0240c12788d17e80b5fc6ff303deedfa6e975ad
Signed-off-by: Zitong Cai <zitong.cai@rock-chips.com>
2025-06-30 10:56:18 +00:00
Ziyuan Xu
ebac3dcdbe media: i2c: revise initcall for tb-sensors when ROCKCHIP_THUNDER_BOOT_ISP=y
The csi2-dphy depends on them.

Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
Change-Id: Id4a6cc1526e57ecdccc74d511e5f8d141757a44e
2025-06-30 07:36:41 +00:00
Ziyuan Xu
bda57709c6 media: rockchip: cif/isp: subsys_initcall_sync as long as ROCKCHIP_THUNDER_BOOT_ISP=y
The cif/isp depend on iommu, it's appropriate to set the one grader lower level.

Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
Change-Id: Ie25e1ecafffff342b2a726cdc770ea6a90c10736
2025-06-30 07:36:41 +00:00
Ziyuan Xu
d963dcb622 phy: rockchip: csi2-dphy[-hw]: Revise initcall when ROCKCHIP_THUNDER_BOOT_ISP=y
The csi2-dphy depends on csi2-dphy-hw, assign different levels to them.
No need to pay attention to INITCALL_ASYNC.

Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
Change-Id: Ieda3c7737c4e07af3d9664ceee8868ba55dbefbe
2025-06-30 07:36:41 +00:00
Guochun Huang
f133c251b1 drm/rockchip: dsi2: add support split mode
<-2HxV->  <------------- H x V -------------->  <-H x V->
          ┌───────┐    ┌───────┐   ┌───────────┐   ┌───────┐
          │  DSC0 ├───►│dsi0 tx├──►│lcd dsi0 rx│──►│lcd dsc│
 ┌─────┐ /└───────┘    └───────┘   └───────────┘   └───────┘
 │     │/
 │  VP │\ ┌───────┐    ┌───────┐   ┌───────────┐   ┌───────┐
 └─────┘ \│  DSC1 ├───►│dsi1 tx├──►│lcd dsi1 rx│──►│lcd dsc│
          └───────┘    └───────┘   └───────────┘   └───────┘

Change-Id: I7a12d3bccd44934dddb8422c184aceed353b0e8a
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
2025-06-27 19:22:54 +08:00
Jian zheng
cf902d807c ARM: configs: add rv1126b cvr fastboot configuration
Configuration file generation method:
    make ARCH=arm mrproper
    make ARCH=arm rv1126b_defconfig
    cp .config rv1126b.config
    make ARCH=arm rv1126b_defconfig rv1126b-fastboot.config
    make ARCH=arm menuconfig
    ./scripts/diffconfig -m rv1126b.config .config > arch/arm/configs/rv1126b-cvr-fastboot.config

Signed-off-by: Jian zheng <zj@rock-chips.com>
Change-Id: I3933bcc64814b0a416fd4f9539fe9f0f52a26261
2025-06-27 11:12:21 +00:00
Zefa Chen
d04f7171f7 arm64: dts: rockchip: rk3588: remove unnecessary references to rkcif_mmu
Change-Id: I39484b36cd98959c5aa5bc1eee051f7e0dee8bd8
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
2025-06-27 06:49:51 +00:00
Zefa Chen
32383822b4 arm64: dts: rockchip: rk3576: remove unnecessary references to rkcif_mmu
Change-Id: I7381c1ec02633dec28c4349114cddc7081225989
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
2025-06-27 06:49:51 +00:00
Zefa Chen
9226dd6523 media: i2c: os12d40 fixes error bayer pattern when mirror/flip change
Change-Id: I423d30c146baa934b0b060ef8618138de6910339
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
2025-06-27 06:38:07 +00:00
Sandy Huang
2d33531068 drm/rockchip: vop2: use rkiommu 1.0 for rk3576 reserved plane mode
reserved plane mode will enable iommu bypass for rtos reserved plane
display, but rkiommu 2.0 can't support iommu bypass function, so use
rkiommu 1.0 at reserved plane mode by default, others will use rkiommu
2.0 by default.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I68f2ae66e4e0d7eec45264c39a7f23deab01c8eb
2025-06-27 06:37:38 +00:00
Sandy Huang
fc46321d50 drm/rockchip: vop2: add support reserved plane display
reserved plane display will be enabled as following config at dts,
then the reserved plane will be update by other OS, and the reverved
plane zpos is always at the top of other planes.

example:
&vp1 {
	rockchip,drm-fbd-mode = <ROCKCHIP_DRM_FBD_FROM_RTOS>;
	rockchip,reserved-plane = <ROCKCHIP_VOP2_ESMART1>;
};

If userspace want to exit from reserved plane, you can set the property:
RESERVED_PLANE_MASK to 0, and the reverved plane will become the
normal plane.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I34e7a7470e2f6685aea5a228b58bdb84eb9c1e92
2025-06-27 06:37:38 +00:00
Sandy Huang
1eb37c3f47 dt-bindings: display: add Fast Boot Display mode define
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I22005163ec8d1b5f154fa74345ee444e894a28c5
2025-06-27 06:37:38 +00:00