Shawn Lin
d028e66817
PCI: rockchip: dw: Fix rk_pcie_remove()
...
Fixes: fbdf4ef963 ("PCI: rockchip: dw: Add remove() support")
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com >
Change-Id: I9f630c85a8022c02232f5898f35556f3eab20cf1
2025-06-13 15:44:01 +08:00
Wei Dun
cceb0646ba
media: rockchip: vpss: update vpss stream stop process
...
Change-Id: I5cd198d8b741f4227099e6fc29c0601b50c454b3
Signed-off-by: Wei Dun <willam.wei@rock-chips.com >
2025-06-13 03:14:49 +00:00
Zefa Chen
680862e96a
media: rockchip: isp support attach thunderboot buffer when iommu enable
...
Change-Id: I2ddf053c1f4780687dfb322b5ed4e27df03f7c7d
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com >
2025-06-13 03:13:22 +00:00
Joseph Chen
316b598212
arm64: dts: rockchip: rv1126b-evb1/4-v10: Add "pmic-reset" for rk801
...
Reset pmic and output NPOR signal 5ms when system reboot.
Change-Id: I8da3ee636faf193a7afcedae66daf7d12a883aa8
Signed-off-by: Joseph Chen <chenjh@rock-chips.com >
2025-06-12 07:57:19 +00:00
Joseph Chen
a3ae00552b
ARM: dts: rockchip: rk3506g-demo-display-control: Update system suspend config
...
Signed-off-by: Joseph Chen <chenjh@rock-chips.com >
Change-Id: If8d9d2d728df0edafa9eb39ef361fa3f47c30d22
2025-06-12 07:57:19 +00:00
Joseph Chen
1a81f4f634
mfd: rk801: Add support for pwrctrl active pol set and reboot rst
...
- Don't require pwrctrl dvs if hw compatible version >= 3.
- Auto parse pwrctrl active pol from GPIO_ACTIVE_{HIGH,LOW} flag.
- Reset pmic and soc when system reboot if required.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com >
Change-Id: I29e60c2a717cee5c9d1e3c6e46ee687352d4a1be
2025-06-12 07:57:19 +00:00
Chen Shunqing
0e2ee0944a
media: i2c: rk628: fix issue of incorrect calculation of dst_rate
...
Signed-off-by: Chen Shunqing <csq@rock-chips.com >
Change-Id: I46f25b2b979c1974a98572e2d0f57925bd476ed2
2025-06-12 07:29:11 +00:00
Chen Shunqing
c390a61e69
media: i2c: rk628: add i2c write without lock
...
Change-Id: I17fa8c3450d3fff5f8914224e6bd18bd09b87293
Signed-off-by: Chen Shunqing <csq@rock-chips.com >
2025-06-12 07:29:07 +00:00
LongChang Ma
4d823ae830
media: i2c: sc450ai support tb for v6.1
...
Signed-off-by: LongChang Ma <chad.ma@rock-chips.com >
Change-Id: I845f834e46093e77445055563e312e41c0cf5c9a
2025-06-12 03:34:24 +00:00
Zefa Chen
e58d2d0937
media: rockchip: vicap used ktime_get_boottime_ns for rv1126b to get timestamp
...
Change-Id: I28ea36f533a4b363d99e3efbc6b7ae1632a6b45b
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com >
2025-06-11 19:09:55 +08:00
Jiahang Zheng
641aebd672
arm64: dts: rockchip: Add rv1126b-evb1-v10-amp.dts
...
Change-Id: I2af98fde593bd1bbf0c2054bf40d6ff0252a3104
Signed-off-by: Jiahang Zheng <jiahang.zheng@rock-chips.com >
Signed-off-by: Shunqian Zheng <zhengsq@rock-chips.com >
2025-06-11 06:07:45 +00:00
Ziyuan Xu
67ee052735
ARM: dts: rockchip: Add rv1126-evb2-tb-400w board support
...
This is use for battery-ipc application with 400w resolution camera
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com >
Change-Id: I5ff04f3063468d4fe60202a1a98003dfb8c870a2
2025-06-11 06:07:17 +00:00
Weiwen Chen
84dd084b65
arm64: dts: rockchip: Add rv1126-evb2-tb-400w board support
...
Signed-off-by: Weiwen Chen <cww@rock-chips.com >
Change-Id: I9f7dbfc5e746df75f348f3934afe055eb689a6ab
2025-06-11 06:07:17 +00:00
Cai YiWei
6e5d7591f2
media: rockchip: isp: fix enh for isp35
...
Change-Id: If77975a818d03af2a468e22a1fe8dc61710d37ad
Signed-off-by: Cai YiWei <cyw@rock-chips.com >
2025-06-11 10:22:17 +08:00
Cai YiWei
6b34f8dc13
media: rockchip: isp: boottime for isp35
...
Change-Id: Idc2edacee2f8bb745e010efb8d849a659cfaaecb
Signed-off-by: Cai YiWei <cyw@rock-chips.com >
2025-06-11 10:22:14 +08:00
Jianqun Xu
3b93344b48
arm64: dts: rockchip: rk3576-iotest: fix property from 'gpio' to 'gpios'
...
The property 'gpios = ' is a fixed rule.
Change-Id: Ie7954834cb60216b8580d3d59147f8e3747e7bd6
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com >
2025-06-11 01:44:16 +00:00
Jon Lin
2920b6bde8
ubi: Change to fill ec_hdr and vid_hdr redundant space with ff data on rockchip
...
These hdr data is place in first two pages in the front of flash block,
most of the data is filled with 0 which may result in 0/1 data unbalance
and finally accelerate the data bit flip process. So using ff redundant
data pattern for data balancing is more stable for nand devices.
Change-Id: I77a9116a4575b94bc6e4da5334db4eaf3d8bcb83
Signed-off-by: Jon Lin <jon.lin@rock-chips.com >
2025-06-10 20:11:10 +08:00
Finley Xiao
db89a88fcc
arm64: dts: rockchip: rv1126b: Use cpu-thermal for npu opp table
...
Fixes: 7a4d6cb92d ("arm64: dts: rockchip: rv1126b: Remove npu thermal")
Change-Id: I7c2c31a6be1d9b13ff59eb227a034b851976112e
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com >
2025-06-10 10:30:52 +00:00
Ziyuan Xu
f18d276227
mmc: core: Skip the first CMD1 when CONFIG_ROCKCHIP_THUNDER_BOOT_MMC=y
...
Assume the capacity greater than 2GB, and skip the first CMD1
transmission to speed up eMMC initialization.
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com >
Change-Id: Ic8553873c6d610390db3f031a0a30cdf5df306b6
2025-06-10 09:58:50 +00:00
Jiahang Zheng
db2b5394f0
arm64: configs: Add rockchip_amp.config
...
Change-Id: I6f4ebad2b83fc6eb69f08d9ade15dce88849e706
Signed-off-by: Jiahang Zheng <jiahang.zheng@rock-chips.com >
2025-06-09 10:58:21 +00:00
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