Jiahang Zheng
dcb117ae9b
arm64: dts: rockchip: Add RV1126B amp dtsi
...
Change-Id: I48c3fdbae620196abeef769f0b217be4ade0a6dc
Signed-off-by: Jiahang Zheng <jiahang.zheng@rock-chips.com >
2025-06-09 10:58:21 +00:00
David Wu
de6ded9f6a
i2c: rk3x: Fix DMA clean for Controllers without DMA
...
If supports DMA, make sure clean DMA states for current transfer,
but if not, don't clean it.
Fixes: 37f373979d ("i2c: rk3x: Add dma feature")
Change-Id: Iad8f999c074cb8710f14c7c0ed782b5df690d6ab
Signed-off-by: David Wu <david.wu@rock-chips.com >
2025-06-09 10:49:05 +00:00
Elaine Zhang
dc6b7b1715
arm64: dts: rockchip: rv1126b: add clk_cpll_div10 assigned clk rate
...
Change-Id: I2fdedc4ebd266082ac09514c5749f509f5a9cb2b
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com >
2025-06-09 10:48:50 +00:00
Elaine Zhang
d804f23988
clk: rockchip: rv1126b: fix clk_cpll_div10 parent clk
...
v0:
gpll ----|
|--DIV--clk_cpll_div10
cpll ----|
v1:
gpll ----------|
|--DIV--clk_cpll_div10
clk_asip_pll --|
Change-Id: I6cf2e4127c1272169abcea1a3ef380fd0be44606
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com >
2025-06-09 10:48:23 +00:00
Sugar Zhang
ab3bd32f21
soc: rockchip: cpuinfo: Add support for rv1126b
...
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com >
Change-Id: I9b8b73e78ff5e3ee36fd1fb6c415a04b6acf311b
2025-06-09 16:58:11 +08:00
Shunqian Zheng
2772aabf84
arm64: config: rv1126b: Enable CONFIG_RTC_DRV_ROCKCHIP
...
fix suspend resume
Change-Id: Ib90ae42a45690e3ae43698814ba0ea2283bd67f2
Signed-off-by: Shunqian Zheng <zhengsq@rock-chips.com >
2025-06-09 07:09:56 +00:00
Chaoyi Chen
ceea326d94
drm/rockchip: drv: Only set clk loader protect when route node exist
...
rockchip_clocks_loader_protect() always call in arch_initcall_sync().
However, rockchip_clocks_loader_unprotect() is not called when the
DRM driver is not loaded, which assumes that these clocks will always
be enabled.
This may cause the clock to be turned on accidentally. In the case of
ebc, for example, when the ebc driver is enabled and the DRM driver
is not loaded, rockchip_clocks_loader_protect() will enable ebc clk.
In addition, rockchip_clocks_loader_unprotect() will not be called,
meaning that the ebc clock will always be on. However, the ebc driver
will also control the ebc clk, but it will not be able to actually
turn off the clk. The dmc driver will check the status of the clk in
the CRU while working, and it will always find that the clk is on.
This will cause a wrong judgment on the working status of the ebc.
This patch adds constraints to rockchip_clocks_loader_protect() to
protect clocks only when route nodes are available, which means that
the logo is already enabled during the u-boot stage, so it makes
sense to perform clock loader protect.
Change-Id: Ib9efbade547181e86516d19637995569a751fade
Signed-off-by: Chaoyi Chen <chaoyi.chen@rock-chips.com >
2025-06-09 06:33:55 +00:00
Caesar Wang
5b24af833e
arm64: configs: add rv1126b.config
...
Enable Rockchip RKNPU procfs interface and DMA heap support.
This commit enables two key configurations for Rockchip RKNPU support
on RV1126B platform.
Change-Id: I792b4e9223984d0d2e28639281585f615a015d50
Signed-off-by: Caesar Wang <wxt@rock-chips.com >
2025-06-09 06:26:00 +00:00
Liang Chen
309927bbcb
arm64: dts: rockchip: rv1126b: add opp-supported-hw for npu
...
Change-Id: I3ae282d0b2059ae9e8b3f81c3402d05e2300ad23
Signed-off-by: Liang Chen <cl@rock-chips.com >
2025-06-09 06:23:59 +00:00
Liang Chen
86ea348e9b
driver: rknpu: rv1126b: add support for get_soc_info/set_soc_info
...
Change-Id: I3c4a0f6561f80231009f4947094a8c2823c61656
Signed-off-by: Liang Chen <cl@rock-chips.com >
2025-06-09 06:23:54 +00:00
Liang Chen
0566ececb0
arm64: dts: rockchip: add RK3566PRO evaluation board devicetree
...
Signed-off-by: Liang Chen <cl@rock-chips.com >
Change-Id: Ie60d07d86193c195ba31798f24776a8573e8a797
2025-06-09 06:23:00 +00:00
Liang Chen
512465e0c0
arm64: dts: rockchip: add core dtsi for RK3566RPO Soc
...
Signed-off-by: Liang Chen <cl@rock-chips.com >
Change-Id: I81430bfcce410ddf9205e1b37482b7b869e4f556
2025-06-09 06:23:00 +00:00
Liang Chen
a3995931b6
arm64: dts: rockchip: rk3568: add specification_serial_number for cpuinfo
...
Signed-off-by: Liang Chen <cl@rock-chips.com >
Change-Id: If1c1a23631734c95185591aa3ada1d1879bc0e66
2025-06-09 06:23:00 +00:00
Liang Chen
a2422fd88f
soc: rockchip: cpuinfo: Add support for rk3566pro
...
Signed-off-by: Liang Chen <cl@rock-chips.com >
Change-Id: I0369c883a3025aad3764b695c8a10dd32b34c83f
2025-06-09 06:23:00 +00:00
Jkand Huang
cd9358989d
ARM: configs: rockchip: update rv1126b-wakeup.config
...
1. enable CONFIG_VIDEO_CAM_SLEEP_WAKEUP
2. enable CONFIG_SND_SOC_RK_DSM
3. enable CONFIG_SND_SOC_ROCKCHIP_MULTICODECS
Signed-off-by: Jkand Huang <jkand.huang@rock-chips.com >
Change-Id: I162f9727cd8800ed6e82cc4f3da4115dc225c0af
2025-06-07 10:09:33 +08:00
XiaoDong Huang
1337cd6a19
arm64: dts: rockchip: rv1126b-evb1-v10: rockchip_suspend: sleep-debug-en = 1
...
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com >
Change-Id: I57d48102e35a9b693c19c13121625cd7777183ae
2025-06-06 18:32:29 +08:00
XiaoDong Huang
4153da4ba0
arm64: dts: rockchip: rv1126b: rockchip_suspend: sleep-debug-en = 0
...
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com >
Change-Id: Ifa0c6165272c10771bb25db588354802ead26308
2025-06-06 18:32:18 +08:00
Ziyuan Xu
9d3d119972
arm64: dts: rockchip: Add rv1126b-thunder-boot for SPI Nor/eMMC
...
rv1126b thunderboot reserved memory layout:
H
_______________________
| |
| ramdisk_c |
|_______________________|
| |
| ramdisk_r |
0x48c40000 |_______________________|
| |
| mcu_log |
0x48c3c000 |_______________________|
| |
| mcu |
0x48c00000 |_______________________|
| |
| [TEEOS+TA+SHM] |
0x48400000 |_______________________|
| |
| mmc_escd |
0x48000000 |_______________________|
| |
| mmc_idmac |
0x47fffe00 |_______________________|
| |
| isp[0..1]_tb_rmem |
|_______________________|
| |
| meta |
0x41240000 |_______________________|
| |
| fdt |
0x41200000 |_______________________|
| |
| kernel_r |
0x40208000 |_______________________|
| |
| bl31 |
L |_______________________|
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com >
Change-Id: I69f4dcbf94d6a646794e993ad7dac0e94028ed47
2025-06-06 09:06:11 +00:00
Leo Sun
7cd68dc911
media: rockchip: sc850sl: Support for 40 frame rates
...
Change-Id: Idbaef7b7b9a1286b08733dc20e3200ae9266265f
Signed-off-by: Leo Sun <leo.sun@rock-chips.com >
2025-06-06 07:51:04 +00:00
Jkand Huang
04054a0ea7
arm64: dts: rockchip: rv1126b-evb2-v10: sc485sl enable hw_standby
...
Signed-off-by: Jkand Huang <jkand.huang@rock-chips.com >
Change-Id: Ie12fe2c2abacafcd54ead55a0b543fa028e08fa2
2025-06-06 07:49:47 +00:00
Cai YiWei
58b5fd106b
media: rockchip: isp: fix sequence error correction
...
Change-Id: I35ea43335f3475a8ddb2dafb25201a7523d9457e
Signed-off-by: Cai YiWei <cyw@rock-chips.com >
2025-06-06 09:55:04 +08:00
Algea Cao
1de9a23c54
drm/rockchip: vop2: Fix the abnormal brightness when post-csc is enabled
...
If all planes are in rgb format and are in yuv overlay, r2y
conversion is all carried out in bt601. In this scenario, the
input colorspace of post-csc needs to be selected as bt601.
Fixes: 2e4cd35f06 ("drm/rockchip: vop2: update color-encoding selection policy for post-csc")
Change-Id: I2311fe8b0edb3ad44fe98231e723e895df1a3d69
Signed-off-by: Algea Cao <algea.cao@rock-chips.com >
2025-06-05 07:39:13 +00:00
Wei Dun
9adbfafceb
media: rockchip: vpss: reset sw_vi2enc_sel on dvbm deinit
...
Signed-off-by: Wei Dun <willam.wei@rock-chips.com >
Change-Id: Ia74755db4cba45f74d2108240f8054856ed29d38
2025-06-05 07:18:49 +00:00
Algea Cao
21ccc2dfe7
arm64: dts: rockchip: rk3588-evb: Use the hdmi phy pll dynamic allocation mode
...
If the vp dclk clock source corresponding to hdmi is not the
corresponding hdmi phy pll, that resulting in abnormal display
of some resolutions. Furthermore, the use of hdmi phy pll can
support more non-standard resolutions.
Change-Id: I7a39ab2d73e912c596d8e1720d251e89c30b1f3b
Signed-off-by: Algea Cao <algea.cao@rock-chips.com >
2025-06-03 10:20:30 +00:00
Wei Dun
46bdb508e2
media: rockchip: vpss: fix ch5 output issue
...
Signed-off-by: Wei Dun <willam.wei@rock-chips.com >
Change-Id: Iacd285be0f36d9360eaba776e21b4efe6bc633c9
2025-06-03 10:12:25 +00:00
Wei Dun
907fb7fa62
media: rockchip: vpss: reduce rockit buf vmap
...
Signed-off-by: Wei Dun <willam.wei@rock-chips.com >
Change-Id: I271c2a056fccb6b16f08bfa1f56a1c668cc3b87d
2025-06-03 10:12:21 +00:00
Johnson Ding
994be34daf
video: rockchip: mpp: rkvdec2: Fix reg reading
...
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com >
Change-Id: I9dbc24bc1f577f72535dbd42c6d05ca24b0d2e63
2025-06-03 09:52:36 +00:00
Jon Lin
3791b78401
misc: rockchip: pcie-rkep: Fix mutex lock not released in pcie_rkep_release
...
Change-Id: I4be295e6efb7509fc5b0d1610f2f6b2c480bbf5d
Signed-off-by: Jon Lin <jon.lin@rock-chips.com >
2025-06-03 09:09:04 +08:00
Jon Lin
f803534f3e
phy: rockchip-snps-pcie3: RK3588 phy lock determines compatibility with all bifurcation situations
...
Change-Id: I34d720cab1a949bb1f518674d85bcb0d81d40062
Signed-off-by: Jon Lin <jon.lin@rock-chips.com >
2025-06-02 22:50:37 +08:00
Yu Qiaowei
8597ef189a
video: rockchip: rga3: adapt to kernel-6.12
...
Change-Id: I2770caf4f4363cce36cae4f8cfbb0be9d322e82b
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com >
2025-06-02 06:55:54 +00:00
Alex Zhao
3515a9f56b
net: r8168: update r8168 driver to v8.055.00
...
Signed-off-by: Alex Zhao <zzc@rock-chips.com >
Change-Id: I70c1788eb070ff4eab9aba51a2e52f95f4ab9d01
2025-06-02 06:25:32 +00:00
Zefa Chen
438259ec8c
media: rockchip: vicap fixes error use_count for switch device mode
...
Fixes: 4f7e1db593 ("media: rockchip: vicap support use switch device to switch sensor connect to one dphy")
Change-Id: Ieeca97ae618c50e8710c506c24391740092d61b3
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com >
2025-05-30 11:36:41 +00:00
Zefa Chen
467befa859
media: rockchip: vicap fixes error start stream of aov for rv1126b
...
Change-Id: Ib1406393488ec3c9ca39d942d2e69ed6c06299b7
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com >
2025-05-30 11:35:13 +00:00
Zefa Chen
026cc864c0
arm64: dts: rockchip: rk3562: remove unnecessary references to rkcif_mmu
...
Change-Id: I29f149b9c22d7eef4144c0b7f10717233416ce99
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com >
2025-05-30 11:34:44 +00:00
Yu Zheng
70d8930ab5
arm64: dts: rockchip: rv1126b-evb-cam-csi0: add imx586 support
...
Signed-off-by: Yu Zheng <yu.zheng@rock-chips.com >
Change-Id: I7853c95b97ed70bea5c284fa4994c2d01f6d1d3f
2025-05-30 11:33:58 +00:00
Yu Zheng
8ffb28b34f
ARM: configs: rv1126b-evb: enable imx586
...
Signed-off-by: Yu Zheng <yu.zheng@rock-chips.com >
Change-Id: I8ddfbf33ca2867209796fcc2154d4ddd770faf43
2025-05-30 08:52:20 +00:00
Jake Wu
63c77a77de
arm64: dts: rockchip: rk3588-evb7-v11: support usbhost3.0
...
Change-Id: I7ac5f41798e5333e1473560c0a0355dfb09091cd
Signed-off-by: Jake Wu <jake.wu@rock-chips.com >
2025-05-30 08:49:56 +00:00
Yu Zheng
75da3224ff
iio: imu: inv_icm42670: fix dead lock when resume
...
Signed-off-by: Yu Zheng <yu.zheng@rock-chips.com >
Change-Id: I1aae323d4ee49abcff374d80e3611da2f5c7c023
2025-05-30 08:49:26 +00:00
Liang Chen
27e9662f0c
video: rockchip: mpp: rkvenc2: add governor and device for devfreq
...
Change-Id: Ie92f2a0795359201a77fac4a3446a7c8e1b8e897
Signed-off-by: Liang Chen <cl@rock-chips.com >
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com >
2025-05-30 08:38:45 +00:00
Finley Xiao
c9478f44f8
thermal: rockchip: Remove npu thermal for rv1126b
...
Change-Id: Id90719ccc5d67efb173869febacc86962621e159
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com >
2025-05-30 08:29:19 +00:00
Finley Xiao
7a4d6cb92d
arm64: dts: rockchip: rv1126b: Remove npu thermal
...
Change-Id: Ie1e29b9abc8d483df644b82a4f267b72acaa5216
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com >
2025-05-30 01:23:19 +00:00
Yandong Lin
bb98340ac5
video: rockchip: mpp_osal: Add func to get dma iommu mapping
...
Change-Id: I9c728c8b8048c16cdf85aa421a1192b11f53500c
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com >
2025-05-29 08:40:59 +00:00
Liang Chen
8ec30319e0
arm64: dts: rockchip: rv1126b: add opp-510M/600M for npu
...
Change-Id: I710aef8f78019c264409d0eef79d57d31f34b4a4
Signed-off-by: Liang Chen <cl@rock-chips.com >
2025-05-29 07:39:27 +00:00
Liang Chen
e4c86a01fd
clk: rockchip: clk-pvtpll: add 510M/600M frequency point for rv1126b npu
...
Change-Id: I2177603835eada713f465175311fcd06ad6fd9cf
Signed-off-by: Liang Chen <cl@rock-chips.com >
2025-05-29 07:39:23 +00:00
Jon Lin
513192ee16
arm64: dts: rockchip: rk3528: Remove pcie2x1 SRST_PRESETN_CRU_PCIE reset
...
This reset needs to be always on, and is always on by default, so it
should not be referenced. Otherwise, once PCIe fails to enumerate the
enumerate successfully, it will be closed, which will affect other
controller that do not reference this.
Change-Id: Ie654c0c071006bd0006039286bd22acaec30df10
Signed-off-by: Jon Lin <jon.lin@rock-chips.com >
2025-05-29 06:38:53 +00:00
Jkand Huang
2418a7d538
arm64: dts: rockchip: rv1126b-evb1-v10: Adapt the PMU IO states for the sleep mode
...
Signed-off-by: Jkand Huang <jkand.huang@rock-chips.com >
Change-Id: I505dea64649a0eefb604a8c8f76d6e9ff325982a
2025-05-29 06:26:53 +00:00
Ziyuan Xu
1f258c4eec
arm64: dts: rockchip: rv1126b-evb3-v10: Add rtc/rockchip_suspend support
...
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com >
Change-Id: I85b04227b0410307f02c81f5522c741cae234504
2025-05-29 06:26:32 +00:00
Weiwen Chen
0adfff2bee
arm64: dts: rockchip: rv1126b: Add label to reserved-memory node
...
Signed-off-by: Weiwen Chen <cww@rock-chips.com >
Change-Id: I7d9246f7724f450e9ca59518c952d74d03ed5723
2025-05-29 06:25:59 +00:00
Jkand Huang
4d942ec2d1
arm64: dts: rockchip: rv1126b-evb2-v10: Resolve the leakage issue in sleep mode
...
Signed-off-by: Jkand Huang <jkand.huang@rock-chips.com >
Change-Id: I0babc67fcf01b0a5166d3c26cb6600636e4f3107
2025-05-29 06:23:35 +00:00
LongChang Ma
b5d1812d54
media: i2c: sc850sl: add support hw standby
...
Signed-off-by: LongChang Ma <chad.ma@rock-chips.com >
Change-Id: I54b75f77c8b8a093f04640c402381bea39460006
2025-05-29 06:23:09 +00:00