Caesar Wang
f96312dc3e
arm64: configs: update configs for rv1126b_defconfig
...
As the AUTOFS4 and CGROUPS needed for Debian OS.
CONFIG_AUTOFS4_FS=y
CONFIG_CGROUPS=y
The BT configs for Linux OS.
Change-Id: I0b9f9e1f4462a0ca61948b7d4b88e4b1654c7880
Signed-off-by: Caesar Wang <wxt@rock-chips.com >
2025-03-27 20:43:28 +08:00
Caesar Wang
2fbf165a4a
arm64: configs: enable camera sensors for rv1126b
...
Enable IMX415, SC200AI, SC450AI and SC850SL camera modules support.
Change-Id: I0b2ebe93d9e163377e9a79e76b068ab8463ba19d
Signed-off-by: Caesar Wang <wxt@rock-chips.com >
2025-03-27 20:43:28 +08:00
Hongming Zou
7dbf560359
arm64: rv1126b_defconfig: enable gt1x configs
...
prepared for the RV1126B EVB4 board
Signed-off-by: Hongming Zou <hongming.zou@rock-chips.com >
Change-Id: I766836d9de5ec3d6eecfc10ed5750330ef49e07a
2025-03-27 20:43:28 +08:00
Sugar Zhang
486897644a
arm64: configs: rv1126b: Enable Audio Config
...
+CONFIG_SND_SOC_ROCKCHIP_ASRC=y
+CONFIG_SND_SOC_ROCKCHIP_MULTICODECS=y
+CONFIG_SND_SOC_RK3506=y
+CONFIG_SND_SOC_RK817=y
+CONFIG_SND_SOC_RK_DSM=y
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com >
Change-Id: I1430d7ed55ea73b21dce5d74ac4fa807f7f7f8cc
2025-03-27 20:43:28 +08:00
David Wu
743e1a5241
arm64: configs: rv1126b: Enable GMAC and ROCKCHIP FEPHY driver
...
Change-Id: Ia50d83dc75b4ffabfe2236c75a30c647962805bd
Signed-off-by: David Wu <david.wu@rock-chips.com >
2025-03-27 20:43:28 +08:00
Weiwen Chen
437ceb512c
arm64: configs: rv1126b: Enable CONFIG_VIDEO_ROCKCHIP_VPSS
...
Change-Id: Ic21f5eb201c43d6b6b4bf63f639f4b28ff29b583
Signed-off-by: Weiwen Chen <cww@rock-chips.com >
2025-03-27 20:43:28 +08:00
William Wu
29f798fa1f
arm64: configs: rv1126b: Enable USB EHCI/OHCI/XHCI HCD
...
This patch enable the USB EHCI/OHCI/XHCI HCD CONFIG
for USB2.0/3.0 controllers.
Signed-off-by: William Wu <william.wu@rock-chips.com >
Change-Id: I12aefc06984b4eb05a89443198d16c2b26c9d510
2025-03-27 20:43:28 +08:00
Chaoyi Chen
04dbe4a615
arm64: configs: Add vop support for rv1126b_defconfig
...
Change-Id: I52c84d7d5d3b68cf67d299e401a7b0d506b948fb
Signed-off-by: Chaoyi Chen <chaoyi.chen@rock-chips.com >
2025-03-27 20:43:28 +08:00
William Wu
58e818ffae
arm64: configs: rv1126b: Enable CONFIG_PHY_ROCKCHIP_NANENG_COMBO_PHY
...
This patch enable CONFIG_PHY_ROCKCHIP_NANENG_COMBO_PHY
for RV1126B USB3.0 interface.
Signed-off-by: William Wu <william.wu@rock-chips.com >
Change-Id: Ib29bc3065f41f2db19d453ccd2da603464a3e943
2025-03-27 20:43:28 +08:00
Joseph Chen
78d87888ce
arm64: configs: rv1126b: Enable rk801 regulator
...
Signed-off-by: Joseph Chen <chenjh@rock-chips.com >
Change-Id: I3a5b7014cd9a6c7f4f9107e0b61ea061f3327909
2025-03-27 20:43:28 +08:00
Lin Jinhan
64dc8516fb
arm64: configs: rv1126b: enable CRYPTO
...
Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com >
Change-Id: I1a948482c4506bf11cefec56f523d4bb58ee36e5
2025-03-27 20:43:28 +08:00
Weiwen Chen
39bad45732
arm64: configs: rv1126b_defconfig: enable CONFIG_DMABUF_HEAPS
...
Signed-off-by: Weiwen Chen <cww@rock-chips.com >
Change-Id: I124e004ba9600314cf4fb4fc7c7be087c42b1bb1
2025-03-27 20:43:28 +08:00
Weiwen Chen
168cfffada
arm64: configs: rv1126b_defconfig: update mpp config
...
Signed-off-by: Weiwen Chen <cww@rock-chips.com >
Change-Id: I2c1702ccf58ebcb3bf7b424cfdc860bd0d649900
2025-03-27 20:43:28 +08:00
Jason Zhu
2ac31e5281
arm64: configs: rv1126b_defconfig: enable CONFIG_SND_SOC_ROCKCHIP_PDM_V2
...
Change-Id: I08df974f5e84c935c6a660f7eaed25f41b709c07
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com >
2025-03-27 20:43:28 +08:00
Sugar Zhang
8464fe32b9
arm64: configs: Add rv1126b_defconfig
...
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com >
Signed-off-by: Tao Huang <huangtao@rock-chips.com >
Change-Id: If8dd04b703264f0c9c53db1940a04d77ba22b524
2025-03-27 20:43:28 +08:00
Zefa Chen
0558c00ae9
media: i2c: tp2855 split 2/4 lane mode
...
Change-Id: Ib429f517b4a087caff4cf3c0fe3d20c987a9cff9
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com >
2025-03-27 20:43:27 +08:00
Zefa Chen
c6279919da
media: i2c: gc2145 fixes bus info of dvp
...
Change-Id: I123872d29e263301f568009d8cb0efc4aa448576
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com >
2025-03-27 20:43:27 +08:00
Simon Xue
6537516795
soc: rockchip: rockchip_decompress: add iommu support in non-thunder boot
...
Change-Id: I3df03fffae564aafdc23da01cc557bd270de9897
Signed-off-by: Simon Xue <xxm@rock-chips.com >
2025-03-27 20:43:27 +08:00
Simon Xue
518eaa7b59
dma-buf: rk_heaps: add uncached for easy test
...
Change-Id: I55449d22b9276752563c499d0bff558b3f828377
Signed-off-by: Simon Xue <xxm@rock-chips.com >
2025-03-27 20:43:27 +08:00
Simon Xue
29ef3c3b2c
iio: adc: rockchip_saradc: support raw read in test mode
...
Change-Id: Ic19240bfdc05865e395c91b83fdadd8cfb4d8eac
Signed-off-by: Simon Xue <xxm@rock-chips.com >
2025-03-27 20:43:27 +08:00
Simon Xue
6f4e88f870
iio: adc: rockchip_saradc: don't break rockchip_saradc_isr if in test mode
...
Change-Id: Ia33235887c38305879a52506f1d3ad0466609669
Signed-off-by: Simon Xue <xxm@rock-chips.com >
2025-03-27 20:43:27 +08:00
Ziyuan Xu
c60e19be11
iio: adc: rockchip_saradc: add rv1126b support
...
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com >
Signed-off-by: Simon Xue <xxm@rock-chips.com >
Change-Id: I86c9a153a25ba3955c40e4879c45bd3bd6c4f179
2025-03-27 20:43:27 +08:00
Jason Zhu
4ac3d1b2b7
clk: rockchip: rv1126b: modify clkout_pdm
...
Change-Id: I74f8b398642e7a5fd5810f0dc5a76ee1e3355371
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com >
2025-03-27 20:43:27 +08:00
Liang Chen
e1590dc298
clk: rockchip: add cpu/npu/enc pvtpll clk for rv1126b
...
Change-Id: If735e96258b217df2410156e3b374843baa23d86
Signed-off-by: Liang Chen <cl@rock-chips.com >
2025-03-27 20:43:27 +08:00
Yu Qiaowei
d7c1ee5326
video: rockchip: rga3: handle bus error interrupts first
...
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com >
Change-Id: Id9546b03b7d2e40f779192aa78c2eaddabac3ba7
2025-03-27 20:43:27 +08:00
Yu Qiaowei
a3da8a9f83
video: rockchip: rga3: fix iommu pre-fetch threshold
...
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com >
Change-Id: Ic74f2d8136826484e019bb7fcbc31da0f9580e1e
2025-03-27 20:43:27 +08:00
Yu Qiaowei
85edaf5c3d
video: rockchip: rga3: open RGA2 optimization options
...
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com >
Change-Id: I6597b9e5b026e609a93d61bed08368ef378fd3d8
2025-03-27 20:43:27 +08:00
Yu Qiaowei
807eca48f7
video: rockchip: rga3: support RV1126B
...
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com >
Change-Id: I2cded58d40d388adaf25c1a550c23a7e535d81dc
2025-03-27 20:43:27 +08:00
Jason Zhu
43c4c4f014
ASoC: codecs: rk_dsm: support master & slave mode
...
Change-Id: I33d506d0b5fc73d0f8f0974907f3b86f5ff6c8f2
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com >
2025-03-27 20:43:27 +08:00
Jason Zhu
00b779e9e9
ASoC: codecs: rk3506: support rv1126b
...
Change-Id: If5f6f691ac49d516c7d2e148d75084e7b8ec111a
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com >
2025-03-27 20:43:27 +08:00
Simon Xue
59cd67eb52
iommu: export iommu_group_default_domain
...
Change-Id: I2906011f73a96500e93438bfa6949c046f0c46e2
Signed-off-by: Simon Xue <xxm@rock-chips.com >
2025-03-27 20:43:27 +08:00
David Wu
dc32326cab
net: phy: Add rockchip fephy driver support
...
Support integrated ethernet FEPHY for ROCKCHIP currently.
Change-Id: Icbd24e84414efdd720b0c2963341677c80f6d9f5
Signed-off-by: David Wu <david.wu@rock-chips.com >
2025-03-27 20:43:27 +08:00
Jason Zhu
26380bf43e
ASoC: codecs: rk_dsm: support rv1126b
...
Change-Id: I00db320249ed6bd689a3bdc668884c4545f341d8
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com >
2025-03-27 20:43:26 +08:00
Zefa Chen
b258ef99c2
phy: rockchip: mipi csi2 dphy support rv1126b
...
Change-Id: I45365edfa4ffb7363bec13387e9b2b3d2a6a0a0b
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com >
2025-03-27 20:43:26 +08:00
Damon Ding
ad2f865cf8
pwm: rockchip: check features from reg PWM_FEATURE(offset 0x007c) for rv1126b and later platforms
...
Change-Id: I891559a536d161839f18ea880d320a6291d2245a
Signed-off-by: Damon Ding <damon.ding@rock-chips.com >
2025-03-27 20:43:26 +08:00
Shuangjie Lin
98e08ec41d
driver: rknpu: Fix premature table release causing cache flush error
...
Signed-off-by: Shuangjie Lin <shuangjie.lin@rock-chips.com >
Change-Id: I3df3dbf3a77e4308a923fa333d137d11d9439be5
2025-03-27 20:43:26 +08:00
Felix Zeng
75965a6c8c
driver: rknpu: Update rknpu_iommu.c to exclude IOMMU API based on ARM architecture.
...
Change-Id: I50e95805b2db63ccf672de389bcad5dfb46a4a83
Signed-off-by: Felix Zeng <felix.zeng@rock-chips.com >
2025-03-27 20:43:26 +08:00
Felix Zeng
7d489c1c3a
driver: rknpu: Add support for rv1126b
...
Signed-off-by: Felix Zeng <felix.zeng@rock-chips.com >
Change-Id: I8f722c615ac2643e85e5bdefba41301b886854e6
2025-03-27 20:43:26 +08:00
David Wu
e0b4448fdc
dt-bindings: net: rockchip-dwmac: add rv1126b compatible
...
Add compatible string for RV1126B gmac.
Signed-off-by: David Wu <david.wu@rock-chips.com >
Change-Id: Ibd3581dbb85f51589fc0c9e9a89323d959ebd58c
2025-03-27 20:43:26 +08:00
David Wu
0e42425e1f
ethernet: stmmac: dwmac-rk: Add GMAC support for RV1126B
...
Add constants and callback functions for the dwmac on RV1126B soc.
As can be seen, the base structure is the same.
Change-Id: I880d7908ae72d58b6e200572187647be4e32fd47
Signed-off-by: David Wu <david.wu@rock-chips.com >
2025-03-27 20:43:26 +08:00
Zhizhen Zheng
96d89865a2
media: rockchip: avsp: init driver for rv1126b
...
Change-Id: Idc461ba83d04b056249f025ca27bfbbd7fa4abbb
Signed-off-by: Zhizhen Zheng <zhizhen.zheng@rock-chips.com >
2025-03-27 20:43:26 +08:00
Yanjun Liao
7a30fcfc4b
video: rockchip: mpp: rkvenc2: add hwinfo for vepu511
...
matches 1126b compatible
Change-Id: I9900f95dd1272401482127c10304582c78f3827e
Signed-off-by: Yanjun Liao <yanjun.liao@rock-chips.com >
2025-03-27 20:43:26 +08:00
Hongjin Li
cbd4930fdc
video: rockchip: mpp: rv1126b: code for support decoder
...
decoder version: vdpu384a
Change-Id: I784564a88de8687b9d211817d04794e10a4d104e
Signed-off-by: Hongjin Li <vic.hong@rock-chips.com >
2025-03-27 20:43:26 +08:00
Zhihuan He
7b2e984d67
PM / devfreq: rockchip-dfi: Add support for rv1126b dfi
...
Change-Id: I1f7dca44795afbe787e9bcd661f506dd772f8ee2
Signed-off-by: Zhihuan He <huan.he@rock-chips.com >
2025-03-27 20:43:26 +08:00
Hu Kejun
d7466155ba
media: rockchip: add aiisp driver
...
Signed-off-by: Hu Kejun <william.hu@rock-chips.com >
Change-Id: I11459fd2862411528c1fce4eb6fdd174c42325d8
2025-03-27 20:43:26 +08:00
Caesar Wang
39d1fb94fa
media: rockchip: vpss: prevent NULL dereference in rkvpss runtime resume
...
- Validate vpss[i] and sw_base_addr before memset/memcpy operations
- Add bounds checking for dev_num to prevent array overflow
- Add error logging for invalid sw_base_addr during register restoration
This resolves kernel panic caused by accessing uninitialized sw_base_addr
during power management resume path. The issue occurred when restoring
VPSS hardware registers from suspend state.
Boot up on as below logs:
[ 6.869681] lr : rkvpss_hw_runtime_resume+0x160/0x198
[ 6.870141] sp : ffffffc00969b930
[ 6.870444] x29: ffffffc00969b930 x28: ffffff80035e9800 x27: ffffff80020ad200
[ 6.871088] x26: 0000000000000003 x25: ffffffc0091f4000 x24: ffffff8001ed40a8
[ 6.871730] x23: ffffffc008cbf000 x22: ffffff8001953010 x21: ffffff8001ed40c8
[ 6.872373] x20: 0000000000000002 x19: ffffff8001ed4080 x18: 0000000000000000
[ 6.873018] x17: 0000000000000000 x16: 0000000000000000 x15: 0000000000000000
[ 6.873652] x14: ffffff8001fb5025 x13: 0000000000000007 x12: ffffff800142c900
[ 6.874284] x11: 0000000000000002 x10: 00000007305dcf59 x9 : 0000000000000000
[ 6.874926] x8 : 0000018000000000 x7 : 0000000000000000 x6 : 000000000000003f
[ 6.875567] x5 : 0000000000000040 x4 : 0000000000000000 x3 : 0000000000000004
[ 6.876208] x2 : 0000000000006f40 x1 : 0000000000000000 x0 : 0000018000000000
[ 6.876851] Call trace:
[ 6.877076] __memset+0x16c/0x188
[ 6.877375] pm_generic_runtime_resume+0x24/0x34
[ 6.877787] __rpm_callback+0x40/0x11c
[ 6.878129] rpm_callback+0x68/0x6c
[ 6.878448] rpm_resume+0x304/0x37c
[ 6.878767] __pm_runtime_resume+0x50/0x74
[ 6.879132] ofl_open+0x4c/0xc8
[ 6.879419] v4l2_open+0x98/0xec
[ 6.879714] chrdev_open+0x158/0x164
[ 6.880048] do_dentry_open+0x2d4/0x350
Change-Id: Iab179899258189d7bdf9ccc9bb13d07c25d80910
Signed-off-by: Caesar Wang <wxt@rock-chips.com >
Signed-off-by: Cai YiWei <cyw@rock-chips.com >
2025-03-27 20:43:26 +08:00
Caesar Wang
ae4ced56fe
media: rockchip: vpss: prevent NULL dereference in ofl_open
...
Add NULL check for ofl->hw before accessing dev_lock mutex to avoid
kernel panic caused by translation fault at virtual address 0x27d8.
The crash occurs when opening V4L2 device if the hardware structure
(ofl->hw) is not properly initialized. This adds defensive checks to:
1. Validate ofl and ofl->hw pointers before mutex operations
2. Return -ENODEV if hw structure is unavailable
3. Prevent use-after-unlock in error paths
Fixes system stability issues with v4l_id process (PID 229) when
handling uninitialized hardware states. Detail issues can repo as below:
[ 6.811649] Unable to handle kernel paging request at virtual address 00000000000027d8
[ 6.812363] Mem abort info:
[ 6.812621] ESR = 0x0000000096000005
[ 6.812958] EC = 0x25: DABT (current EL), IL = 32 bits
[ 6.813438] SET = 0, FnV = 0
[ 6.813718] EA = 0, S1PTW = 0
[ 6.813999] FSC = 0x05: level 1 translation fault
[ 6.814429] Data abort info:
[ 6.814685] ISV = 0, ISS = 0x00000005
[ 6.815021] CM = 0, WnR = 0
[ 6.815360] user pgtable: 4k pages, 39-bit VAs, pgdp=0000000043594000
[ 6.815941] [00000000000027d8] pgd=0000000000000000, p4d=0000000000000000, pud=0000000000000000
[ 6.816746] Internal error: Oops: 0000000096000005 [#1 ] SMP
[ 6.817245] Modules linked in:
[ 6.817530] CPU: 0 PID: 229 Comm: v4l_id Tainted: G W 6.1.118 #16
[ 6.818193] Hardware name: Rockchip RV1126B EVB1 V10 Board (DT)
[ 6.818715] pstate: 00000005 (nzcv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[ 6.819332] pc : mutex_unlock+0xc/0x40
[ 6.819686] lr : ofl_open+0x5c/0xc8
[ 6.820010] sp : ffffffc009673ad0
[ 6.820312] x29: ffffffc009673ad0 x28: ffffff8001f65400 x27: 0000000000000000
[ 6.820956] x26: 0000000000000004 x25: 0000000000000000 x24: ffffffc008cae360
[ 6.821598] x23: ffffff800290e200 x22: 00000000000027d8 x21: ffffff8002030108
[ 6.822233] x20: ffffff800290e200 x19: 0000000000000000 x18: 0000000000000000
[ 6.822865] x17: 0000000000000000 x16: 0000000000000000 x15: 0000000000000000
[ 6.823508] x14: ffffff8001820025 x13: 0000000000000007 x12: ffffff8001425480
[ 6.824155] x11: 0000000000000002 x10: 00000007305dcf59 x9 : 0000000000000000
[ 6.824787] x8 : ffffff80020328b8 x7 : 0000000000000000 x6 : 000000000000056c
[ 6.825430] x5 : ffffffc008c23fb0 x4 : 0000000000000000 x3 : 0000000000000000
[ 6.826072] x2 : 0000000000000000 x1 : ffffff8001f65400 x0 : 00000000000027d8
[ 6.826715] Call trace:
[ 6.826940] mutex_unlock+0xc/0x40
[ 6.827254] v4l2_open+0x98/0xec
[ 6.827550] chrdev_open+0x158/0x164
[ 6.827875] do_dentry_open+0x2d4/0x350
[ 6.828231] vfs_open+0x28/0x30
[ 6.828520] path_openat+0x760/0x870
[ 6.828854] do_filp_open+0x38/0x88
Change-Id: I48b2e39f2e9a79efee7e63348e9dfc02889a02a1
Signed-off-by: Caesar Wang <wxt@rock-chips.com >
2025-03-27 20:43:26 +08:00
Mingwei Yan
62ed11eb36
media: rockchip: vpss: offline wrap add reset and read hw seq
...
Signed-off-by: Mingwei Yan <mingwei.yan@rock-chips.com >
Change-Id: I5d8a80492896e0e57c3efac3c5bf55c4e83c78ec
2025-03-27 20:43:26 +08:00
Yandong Lin
7871f4dbaf
media: rockchip: vpss: support vpss-dvbm wrap
...
Change-Id: I03c53d4c66cfad276ea0f4aed25b9e0019f893e6
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com >
2025-03-27 20:43:25 +08:00
Mingwei Yan
05533d40dc
media: rockchip: vpss: add v20 for rv1126b
...
Signed-off-by: Mingwei Yan <mingwei.yan@rock-chips.com >
Change-Id: I60d64e1d8ffb39f199b6a8cd8352f64b3afef344
2025-03-27 20:43:25 +08:00