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
Mingwei Yan
3c1a5874b0
media: rockchip: fec: init driver for rv1126b
...
Signed-off-by: Mingwei Yan <mingwei.yan@rock-chips.com >
Signed-off-by: Xu Hongfei <xuhf@rock-chips.com >
Change-Id: I2fa7a5b68c56fadcd664299c987ee4c227f998c7
2025-03-27 20:43:25 +08:00
William Wu
2ea7714258
phy: rockchip: inno-usb2: Add usb2 phy support for rv1126b
...
RV1126B has one USB2.0 PHY with two ports, the OTG port
support OTG function and BC1.2, and the Host port only
support Host function. The SoC provides USB GRF to control
the internal UTMI+ interface and it also provides APB to
access the PHY internal registers for the USB HS/FS/LS
signal integrity tuning.
This patch adds the USB2.0 PHY tuning to improve the
signal integrity for RV1126B.
1. Enable pre-emphasis during non-chirp phase.
2. Set HS eye height to 425mv(default is 400mv).
3. Set Rx squelch trigger point configure to 112.5mv.
Signed-off-by: William Wu <william.wu@rock-chips.com >
Change-Id: Ief1a0aa532ba6dc6824dce72595bd39d8df8cefe
2025-03-27 20:43:25 +08:00
William Wu
0dddc104b3
phy: rockchip: naneng-combphy: build depends on CPU config
...
When build with rv1126b_defconfig, and enable the combphy
config manually:
CONFIG_PHY_ROCKCHIP_NANENG_COMBO_PHY=y
size drivers/phy/rockchip/phy-rockchip-naneng-combphy.o
before:
text data bss dec hex filename
14891 224 0 15115 3b0b drivers/phy/rockchip/phy-rockchip-naneng-combphy.o
after:
text data bss dec hex filename
5091 224 0 5315 14c3 drivers/phy/rockchip/phy-rockchip-naneng-combphy.o
Signed-off-by: William Wu <william.wu@rock-chips.com >
Change-Id: I83cde7bc9fdc373ad934b9f7fd75160719022b55
2025-03-27 19:47:38 +08:00
William Wu
1cef86cabd
phy: rockchip: naneng-combphy: Add support for rv1126b usb3
...
This patch adds the USB3.0 PHY configurations for
RV1126B USB3.0 interface.
The RV1126B USB3.0 PHY clamp default value is 1'b0 which
means that clamp enable. This patch sets clamp value to
1'b1 for USB3.0 function.
Signed-off-by: William Wu <william.wu@rock-chips.com >
Change-Id: Id285ffd72e849a878b8d338671060ad222143c7e
2025-03-27 19:47:38 +08:00
William Wu
df2f6b949e
dt-bindings: usb: dwc3: Add rv1126b compatible to rockchip,dwc3
...
Add the compatible "rockchip,rv1126b-dwc3" for the RV1126B.
Signed-off-by: William Wu <william.wu@rock-chips.com >
Change-Id: I90f912b68cdaf3ff88045c89ad4ea67b1e736c43
2025-03-27 18:43:43 +08:00
William Wu
292bfc0a73
dt-bindings: phy: rockchip-naneng-combphy: Add rv1126b compatible
...
Add the compatible "rockchip,rv1126b-usb3-phy" for the RV1126B.
Signed-off-by: William Wu <william.wu@rock-chips.com >
Change-Id: If9b7a72e9a96752c21b4dace69e285ab5dd97f33
2025-03-27 18:43:42 +08:00
William Wu
b05f3f93a4
dt-bindings: phy: rockchip-inno-usb2: Add rv1126b-usb2phy compatible
...
Add the compatible "rockchip,rv1126b-usb2phy" for the RV1126B.
Signed-off-by: William Wu <william.wu@rock-chips.com >
Change-Id: I4428c04f5ebf3f47b0ecdebf55dde76c0d56cae1
2025-03-27 18:43:42 +08:00
Cai YiWei
66c8a421fa
media: rockchip: isp: adjust clk rate for isp35
...
Change-Id: I236aa8e529dd5a167d65e394a6d45d5ade82f2d0
Signed-off-by: Cai YiWei <cyw@rock-chips.com >
2025-03-27 18:43:42 +08:00
Cai YiWei
8fa74cd819
media: rockchip: isp: fix stats buf error for isp35
...
Change-Id: I18819a2f036119fbaef47b054980508ae30948a9
Signed-off-by: Cai YiWei <cyw@rock-chips.com >
2025-03-27 18:43:42 +08:00
Cai YiWei
310f380783
media: rockchip: isp: fast stream from vpss for isp35
...
Change-Id: Ie0a6cc46aebedb85bc0d885108ebc3873027c4a4
Signed-off-by: Cai YiWei <cyw@rock-chips.com >
2025-03-27 18:43:42 +08:00
Cai YiWei
502d08b106
media: rockchip: isp: support multi-sensor for aiisp
...
Change-Id: I207420d7a55ff4ad5d5a11ffd1b5f04faa06bc14
Signed-off-by: Cai YiWei <cyw@rock-chips.com >
2025-03-27 18:43:42 +08:00
Cai YiWei
6fb09131fa
media: rockchip: isp: fix isp35 get dvbm error
...
Change-Id: I382b4316e05f82cb5a1eec522b1e0023d7d64286
Signed-off-by: Cai YiWei <cyw@rock-chips.com >
2025-03-27 18:43:42 +08:00
Cai YiWei
d465481ffa
media: rockchip: isp: aiisp for isp35
...
Change-Id: I52313925f5007b9192402e50a985e8cbd42b1e73
Signed-off-by: Cai YiWei <cyw@rock-chips.com >
2025-03-27 18:43:42 +08:00
Cai YiWei
d80d956f28
media: rockchip: isp: add isp35
...
Change-Id: I1f254e64426307983d3a223c761ea9480772b32c
Signed-off-by: Cai YiWei <cyw@rock-chips.com >
2025-03-27 18:43:42 +08:00