Commit Graph

1087207 Commits

Author SHA1 Message Date
Jon Lin
2586765a7c arm64: dts: rockchip: rk356x boards: Fix to regulator to unique name
Change-Id: I113c8f14c8386bd16d81775459b9ca4b51e47f68
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2024-02-29 17:10:41 +08:00
Luo Wei
a0cb6e977e mfd: display-serdes: delete the interface that GKI not supported
Signed-off-by: Luo Wei <lw@rock-chips.com>
Change-Id: I01aa98e803b80229576b5c3a6f00649940f44ce9
2024-02-29 15:39:22 +08:00
Jon Lin
784e52a797 spi: rockchip-sfc: Support sfc-cs-gpio
Change-Id: I24bfbf39ed7bea0596f299d3413159c7e2038ba8
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2024-02-28 14:26:05 +08:00
Jon Lin
e26de7b6ce spi: rockchip-sfc: Set the max speed depend on the IP version
After SFC_VER_8, the FSPI support ddr mode, and the working clock
of the controller is twice that of the IO clock.

Change-Id: I66307ad96960ce7e4daaeab5cf6e191f0ee3778d
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2024-02-28 14:26:05 +08:00
Jon Lin
563fd7672f spi: rockchip-sfc: Using normal memory for dma
Nornal memory CPU copy with cache invalidate is more efficient
than uncache memory copy.

Change-Id: I04e9e9a532bba14858b6f4baa969e3e848f6f032
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2024-02-28 14:26:05 +08:00
Zain Wang
df9eb20bbf arm64: dts: rockchip: rk3588-amp: add configs for amp irqs
Signed-off-by: Zain Wang <wzz@rock-chips.com>
Change-Id: Ia925cbce88d38fe22a61de3be5ffdd1936fe1119
2024-02-28 14:24:32 +08:00
Zain Wang
8679c3ff3c arm64: dts: rockchip: rk3568-amp: add configs for amp irqs
Signed-off-by: Zain Wang <wzz@rock-chips.com>
Change-Id: I9509b9dbaffc081aefe53e4ca1bf97cff7a339c0
2024-02-28 14:24:32 +08:00
Finley Xiao
3402a5b434 soc: rockchip: power-domain: Add pd status module param for debug
Change-Id: I9edf5741a95f877dda22b2fa75eabe288403ed33
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2024-02-28 14:22:19 +08:00
Herman Chen
e424736732 video: rockchip: mpp: rkvenc2: Fix rw_sem error
Use the pointer copy to replace rwsem entry copy.

https://redmine.rock-chips.com/issues/461476

DEBUG_RWSEMS_WARN_ON(sem->magic != sem): count = 0x100,
magic = 0xffffff81036e2a80, owner = 0xffffff81037f8001,
curr 0xffffff81037f8000, list not empty
WARNING: CPU: 0 PID: 171 at kernel/locking/rwsem.c:1468 __up_read+0x1dc/0x264
Modules linked in: bcmdhd(O) dhd_static_buf
CPU: 0 PID: 171 Comm: irq/47-fdbe0000 Tainted: G O 5.10.160 #13
Hardware name: Rockchip RK3588S TABLET V11 Board (DT)
pstate: 60c00009 (nZCv daif +PAN +UAO TCO BTYPE=-)
pc : __up_read+0x1dc/0x264
lr : __up_read+0x1dc/0x264
sp : ffffffc00ca83bb0
x29: ffffffc00ca83bb0 x28: 0000000000000000
x27: ffffffc0080e1000 x26: ffffffc0080e16e0
x25: ffffffc0080e17c0 x24: ffffff8103504080
x23: ffffff8299eeec00 x22: ffffff817ecf8038
x21: ffffff817ecf8088 x20: ffffffc00a725000
x19: ffffff81036e3280 x18: 0000000000000030
x17: 0000000000004d49 x16: 0000000000021f36
x15: ffffffc00a746570 x14: 0000000000000086
x13: ffffffc00964a930 x12: 0000000000000003
x11: fffffffffffe5a28 x10: fffffffffffe5a08
x9 : ffffffc0081b3290 x8 : ffffffc00a748b78
x7 : ffffffc00a7f8b78 x6 : 0000000000000001
x5 : 0000000000000000 x4 : ffffff84fd5b5df8
x3 : ffffff84fd5c6730 x2 : 0000000000000000
x1 : 0000000000000000 x0 : ffffff81037f8000
Call trace:
__up_read+0x1dc/0x264
up_read+0x44/0x70
mpp_task_finalize+0x6c/0xb4
rkvenc_free_task+0x20/0x7c
mpp_free_task+0x50/0x114
mpp_taskqueue_pop_running.isra.0+0x80/0xbc
mpp_task_finish+0xb8/0x180
rkvenc_isr+0xd0/0x2ec
mpp_dev_isr_sched+0x70/0xd0
irq_thread_fn+0x30/0xa0
irq_thread+0x1d4/0x2d0
kthread+0x150/0x154
ret_from_fork+0x10/0x1c

Fixes: 99582ba73a ("video: rockchip: mpp: rkvenc2: Fix dual core issue")
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: Id3ecd4b03a9676183a80774fd571f86918281cb9
2024-02-28 11:07:25 +08:00
Luo Wei
3c7417b499 arm64: dts: rockchip: rk3588-vehicle-evb: maxim support 1080p display
dsi0->           ->max96752->720P
       max96789
dsi1->           ->max96752->1080P

dp0/edp0->          ->max96752->720P
           max96745
edp1/edp1->         ->max96752->720P

Signed-off-by: Luo Wei <lw@rock-chips.com>
Change-Id: I6f3c51ce40a6f11f0e135a6e649b2f5e7a8ba752
2024-02-27 16:05:57 +08:00
Cody Xie
4422957f75 arm64: dts: rockchip: rk3588-vehicle-evb-v21/v22: Use vehicle dummy driver for gear selection
Change-Id: I2ed1289f3a14361af15f09def32b654363c8a82a
Signed-off-by: Cody Xie <cody.xie@rock-chips.com>
2024-02-27 16:04:13 +08:00
Binyuan Lan
fbdf3d8d03 ASoC: rockchip: rk817-codec: fix pop from DAC_DIG_CLK_DIS and DAC_DIG_CLK_EN
Signed-off-by: Binyuan Lan <lby@rock-chips.com>
Change-Id: Idfa31a4f3484f1641ebcf46d237244e98e378e93
2024-02-27 16:01:55 +08:00
Zhibin Huang
2424e1c910 misc: rk628: bt1120: add yc-swap and uv-swap property
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: Ie1c54ac3fbc01d76d32eff8d2857f68339654b70
2024-02-26 12:00:57 +08:00
Jianwei Fan
466091d79d arm64: dts: rockchip: rk3588-evb: rk628 change the interrupt to rise edge trigger
Change-Id: I6c3905d2e1440ae82654e3a3f62b762c1f1e2ec7
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
2024-02-23 18:54:03 +08:00
Zhibin Huang
c1ea5f751e misc: rk628: bt1120-2-hdmi: set bus_format for bt1120
Type: Fix
Redmine ID: N/A
Associated modifications: N/A
Test: N/A

Signed-off-by: Zhibin Huang <zhibin.huang@rock-chips.com>
Change-Id: I5e285e5c14e639a552936835b726da6e71a2e998
2024-02-23 15:12:02 +08:00
Lan Honglin
ecf409630c media: i2c: add sc3336p sensor driver
Change-Id: I917458b8c8bb9f8d85d203d545ec11015c98b2e5
Signed-off-by: Lan Honglin <helin.lan@rock-chips.com>
2024-02-23 11:24:30 +08:00
Tony Xie
dc7bc9ebe7 dt-bindings: soc: rockchip-amp: remove CPU_GET_AFFINITY() to dtsi file
Signed-off-by: Tony Xie <tony.xie@rock-chips.com>
Change-Id: I472ba149c529f70520963711147ef25d1905bf53
2024-02-22 15:26:27 +08:00
Weiwen Chen
11b3eda762 ARM: dts: rockchip: add rv1106g-evb2-v12-spi-nand-tb.dts
Signed-off-by: Weiwen Chen <cww@rock-chips.com>
Change-Id: I8090c6b2e95aa956cbe36c5aa344b9858c689094
2024-02-22 14:41:27 +08:00
Zain Wang
faf92ec690 arm64: dts: rockchip: rk3562-amp: define CPU_GET_AFFINITY
Signed-off-by: Zain Wang <wzz@rock-chips.com>
Change-Id: Ia5144a800de1dc014269969f1eadbf67a373827c
2024-02-22 14:24:01 +08:00
Zain Wang
80d2eb7080 arm64: dts: rockchip: rk3308-amp: define CPU_GET_AFFINITY
Signed-off-by: Zain Wang <wzz@rock-chips.com>
Change-Id: I7676d07e010a6ef6643b4cdc269379ad39aa806a
2024-02-22 14:23:44 +08:00
Tony Xie
3bdcd9e582 soc: rockchip: amp: support init gpio group irqs for amp
Signed-off-by: Tony Xie <tony.xie@rock-chips.com>
Change-Id: If152a54aa00b18aedf919b6053fb6d2fff853b07
2024-02-22 14:07:26 +08:00
Tony Xie
8f8a13a24d irqchip/gicv3: support config amp os irqs
Signed-off-by: Tony Xie <tony.xie@rock-chips.com>
Change-Id: I0abcf9fd44514b1aac06aa6977df2859ebd01459
2024-02-22 11:18:24 +08:00
Cai YiWei
bd99973c0a media: rockchip: isp: version v2.5.0
Change-Id: Ic885032c2e177a714cacfb0609032366e66aac3c
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2024-02-21 12:13:49 +08:00
Cai YiWei
e0a6d5fa86 media: rockchip: isp: support 8k for isp32 lite
Change-Id: I2ebd5bff4be4b646564a874ce801cc8c9bf261e1
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2024-02-21 12:13:39 +08:00
Cai YiWei
6c66737840 media: rockchip: isp: fix isp32 lite frame buffer data read
Change-Id: I1e8e19185bce2800a0aee2a1623b204adb07355d
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2024-02-21 10:25:17 +08:00
Cai YiWei
e84d9bd50a media: rockchip: isp: add ioctl to get bay3d buf
Change-Id: Id65390eab9f1dc2d64405def56e854078ceba037
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2024-02-21 10:25:17 +08:00
Cai YiWei
c4c06227b0 media: rockchip: isp: add RKISP_CMD_SET_TB_HEAD_V32 API
Change-Id: I07ae10d69ae977ff5932c377e24eefbd48387946
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2024-02-21 10:25:17 +08:00
Liang Chen
25c456719d clk: rockchip: rv1106: optimize calibrate step for cru pvtpll
The frequency of pvtpll may unstable when calibrate, if the step
is too small, it will stride a too big length and adjust back
again, that is bad.

Signed-off-by: Liang Chen <cl@rock-chips.com>
Change-Id: I96227b37cde45ae86df68777da8f32467f8926e6
2024-02-21 10:19:27 +08:00
Liang Chen
f3fcf22888 ARM: rockchip: rv1106_pm: optimize pvtpll save/restore process flow
Pvtpll length must configure before enable pvtpll, otherwise pvtpll
may output wrong frequency.

Signed-off-by: Liang Chen <cl@rock-chips.com>
Change-Id: I432d10b53bf5853c724fb9e4e54256a3dd3e146b
2024-02-21 10:19:16 +08:00
Samuel Holland
8d3794f358 UPSTREAM: gpio: rockchip: Reset int_bothedge when changing trigger
With v2 hardware, an IRQ can be configured to trigger on both edges via
a bit in the int_bothedge register. Currently, the driver sets this bit
when changing the trigger type to IRQ_TYPE_EDGE_BOTH, but fails to reset
this bit if the trigger type is later changed to something else. This
causes spurious IRQs, and when using gpio-keys with wakeup-event-action
set to EV_ACT_(DE)ASSERTED, those IRQs translate into spurious wakeups.

Fixes: 3bcbd1a85b ("gpio/rockchip: support next version gpio controller")
Reported-by: Guillaume Savaton <guillaume@baierouge.fr>
Tested-by: Guillaume Savaton <guillaume@baierouge.fr>
Signed-off-by: Samuel Holland <samuel@sholland.org>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
(cherry picked from commit 7920af5c82)
Signed-off-by: Steven Liu <steven.liu@rock-chips.com>
Change-Id: I8b4645a81e553957a77cca84e4152f1e38dd1852
2024-02-20 15:16:59 +08:00
Zhihua Wang
d55e030c51 ARM: dts: rockchip: rv1106-evb-dual-cam add sc530ai
Signed-off-by: Zhihua Wang <hogan.wang@rock-chips.com>
Change-Id: Ia073eb82e135466844e6474883f4b0f70aeacbf0
2024-02-19 09:28:11 +08:00
Cai YiWei
f938361535 media: rockchip: isp: fix mp wrap buf from rockit no output
Change-Id: I88fa7707ce8a67846951c0fc6287f81d8c3719ee
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2024-02-18 14:07:29 +08:00
wei.luo
4122e58de9 mfd: display-serdes: fix building error
Fixes: c60873aaf6 ("mfd: display-serdes: add error detection and recovery function")
Signed-off-by: Luo wei <lw@rock-chips.com>
Change-Id: Idcafd226b6e338f6c6180f61212ac7a09d8081b7
2024-02-18 10:07:13 +08:00
Huang zhibao
5fe35955d7 input: rockchip_pwm_remotectl: add pwm v4 support
Change-Id: I40d1571c3285165683845df8c48fe45d7fcac01d
Signed-off-by: Huang zhibao <hzb@rock-chips.com>
2024-02-07 16:00:59 +08:00
Zhibin Huang
ae97b71b7a misc: rk628: optimize input and output mode information
1. Fixed the issue where the log displays input and output mode
information abnormally in some scenarios.
2. The input and output mode information of log and summary are
obtained from the same function to facilitate later maintenance.

Type: Fix
Redmine ID: N/A
Associated modifications: N/A
Test: dmesg | grep "rk628.*input_mode.*output_mode"
      cat /sys/kernel/debug/rk628/2-0050/summary

Signed-off-by: Zhibin Huang <zhibin.huang@rock-chips.com>
Change-Id: I9c4549d1673417701dc929432b96fa802632e63c
2024-02-07 15:23:21 +08:00
Zhibin Huang
379dfa4350 ARM: dts: rockchip: rk3036-evb1-ddr3-v10: unify the rk628 node name of interface in dts
Type: Fix
Redmine ID: N/A
Associated modifications: https://10.10.10.29/c/rk/kernel/+/210058
Test: N/A

Signed-off-by: Zhibin Huang <zhibin.huang@rock-chips.com>
Change-Id: Ic650b9ddda9f9202e430f7459ee86f0b73fac479
2024-02-07 15:22:25 +08:00
Zhibin Huang
25aeddc516 arm64: dts: rockchip: rk3568-evb-rk628: unify the node name of interface in dts
Type: N/A
Redmine ID: N/A
Associated modifications: https://10.10.10.29/c/rk/kernel/+/210058
Test: N/A

Signed-off-by: Zhibin Huang <zhibin.huang@rock-chips.com>
Change-Id: I6e11cb752ca57f3a34678cbf44379d3be3b47985
2024-02-07 15:20:58 +08:00
Zhibin Huang
a8d4e9553d misc: rk628: unify the node name of interface in dts
Type: Fix
Redmine ID: N/A
Associated modifications: N/A
Test: N/A

Signed-off-by: Zhibin Huang <zhibin.huang@rock-chips.com>
Change-Id: I59a56b3def8f20121cb9bf53b65fc5ef3bdad6e7
2024-02-07 15:19:45 +08:00
Jianwei Fan
edbfad5e86 media: i2c: rk628: add suspend and resume support
Change-Id: I8da6815fe9f95d7e29e7dd0fad186e2dbbc35b42
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
2024-02-07 10:20:32 +08:00
Yandong Lin
bed6817b76 video: rockchip: mpp: fix get drv data type err
Fix issue that he drvdata obtained through dev_get_drvdata
does not match the converted type.

Change-Id: I4f5835c2fed609714ac6cb94197ca84a489a3d23
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
2024-02-07 09:48:25 +08:00
Finley Xiao
079fa67494 soc: rockchip: ipa: Avoid NULL pointer when get static power
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I5804b89c205d1d31cd933769bf4e41081d7625c5
2024-02-06 18:56:52 +08:00
Jianwei Fan
cd80332fad media: rockchip: vicap update frame buffer with real frame phase when work with multi_dev combine to one
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Ice0b4671955ceeede83c3496b741ae81d73602d9
2024-02-06 18:09:25 +08:00
Felix Zeng
4a35fccb35 driver: rknpu: Update rknpu driver, version: 0.9.4
Signed-off-by: Felix Zeng <felix.zeng@rock-chips.com>
Change-Id: Ibeaacee69a264b716e636c6397aa9a49068bd8cf
2024-02-06 16:51:20 +08:00
Yandong Lin
caeb85ae6f video: rockchip: mpp: fix rockchip_ipa_get_static_power crash
When echo userspace > /sys/class/devfreq/ffbb0000.rkvenc/governor,the
devfreq->data will be reassign to userspace data.
So cannot get struct rkvenc_dev *enc by devfreq->data.

[<b040f41c>] (rockchip_ipa_get_static_power) from [<b078fbdc>] (devfreq_cooling_get_requested_power+0x140/0x150)
[<b078fbdc>] (devfreq_cooling_get_requested_power) from [<b078e578>] (power_allocator_throttle+0x224/0x8b0)
[<b078e578>] (power_allocator_throttle) from [<b078a5ac>] (handle_thermal_trip+0xb0/0x1c8)
[<b078a5ac>] (handle_thermal_trip) from [<b078a738>] (thermal_zone_device_update.part.3+0x70/0xc4)
[<b078a738>] (thermal_zone_device_update.part.3) from [<b013d2b4>] (process_one_work+0x1f0/0x408)
[<b013d2b4>] (process_one_work) from [<b013df8c>] (worker_thread+0x30/0x564)
[<b013df8c>] (worker_thread) from [<b0142f04>] (kthread+0x160/0x190)
[<b0142f04>] (kthread) from [<b01010d8>] (ret_from_fork+0x14/0x3c)

Change-Id: I46977c8dd23d2fc286afa0ae8b87aea1cb0be0d7
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
2024-02-06 15:34:27 +08:00
Liang Chen
02685e262a clk: rockchip: rv1106: use system_freezable_wq for pvtpll_calibrate_work
1. Do not freeze pvtpll_calibrate_work when calibration is processing,
otherwise the rate of pvtpll maybe wrong.
2. Set the delay to 300ms.

Signed-off-by: Liang Chen <cl@rock-chips.com>
Change-Id: I67bef5663d4cc5bf838f5db0d02b643105d25be6
2024-02-06 15:29:20 +08:00
Weiwen Chen
3b699aa2b7 ARM: configs: rockchip: Update rv1106-recovery.config
Update by:
    make ARCH=arm rv1106_defconfig
    cp .config rv1106.config
    make ARCH=arm rv1106_defconfig rv1106-recovery.config
    ./scripts/diffconfig -m rv1106.config .config > arch/arm/configs/rv1106-recovery.config

Signed-off-by: Weiwen Chen <cww@rock-chips.com>
Change-Id: I09929ea0c47ef543cbdfd74bee240699989b7eae
2024-02-06 15:23:20 +08:00
Yandong Lin
6d575115ec video: rockchip: mpp: fix last slice fifo with 0 slice len issue
Change-Id: Ibfdc65d43dddba86374e5c44a2e6fc3ddcca6283
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
2024-02-06 09:26:45 +08:00
Wangqiang Guo
b65bb3bb00 media: i2c: rk628: add private interface, compatible with hdmirx.
Change-Id: I737dcb068bc830baccb932d985bdbede56b5d490
Signed-off-by: Wangqiang Guo <kay.guo@rock-chips.com>
2024-02-05 18:28:07 +08:00
Chen Shunqing
f1132b51ff media: i2c: rk628: fix display error caused by read resolution error
Type: Fix
Redmine ID: #461216
Associated modifications: N/A
Test: plugin and plugout the HDMI cable.

Change-Id: Id2be68bc74aa22e8f731f4800c5f22fc6fc8f342
Signed-off-by: Chen Shunqing <csq@rock-chips.com>
2024-02-05 17:45:23 +08:00
Chen Shunqing
fb7e8f94dc media: i2c: rk628: fix display error in plugout
Type: Fix
Redmine ID: #461174
Associated modifications: N/A
Test: plugin and plugout the HDMI cable.

Change-Id: Ib4c23b2cb98f782cafe0704e9e9ad22a3448dbfa
Signed-off-by: Chen Shunqing <csq@rock-chips.com>
2024-02-05 17:11:32 +08:00