Commit Graph

1080740 Commits

Author SHA1 Message Date
Algea Cao
d772f406a5 drm/bridge: dw-hdmi-qp: Add hdcp driver
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: Ic71fc6c8345c9e2987e9f2507d7ba4e0eaf90a1e
2023-09-05 19:03:14 +08:00
Algea Cao
ce2a8c86e6 arm64: dts: rockchip: rk3588: Add hdmitx hdcp14 ext memory
KSV list/M0/B-STATUS are saved in hdcp1.4 external memory.

Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: I4670260dc4b82563e9396d641fafb579ef130fca
2023-09-05 19:03:14 +08:00
Nickey Yang
8492cfd48c arm64: configs: rockchip_linux_defconfig: enable CONFIG_DTC_SYMBOLS
dtb overlays is used to support px30s.

Signed-off-by: Nickey Yang <nickey.yang@rock-chips.com>
Change-Id: I47a20ec36d22148d4264bd4cefd810585acc184b
2023-09-05 17:14:09 +08:00
Jianlong Wang
46c9ff0e79 arm64: dts: rockchip: rk3568: add rk3568-evb8-lp4-v10 support
Change-Id: I64676ce9bb9c4adf366d48d275ccb13ae96e6bd0
Signed-off-by: Jianlong Wang <jianlong.wang@rock-chips.com>
2023-09-05 14:15:05 +08:00
Weiwen Chen
d50c2bcc38 ARM: dts: rockchip: rv1106-evb-cam: add sc3338
Signed-off-by: Weiwen Chen <cww@rock-chips.com>
Change-Id: If5d01edf6b811638e7a77e89089afc796efa4d0a
2023-09-04 19:42:21 +08:00
Elon Zhang
3aaeb74c45 ARM: configs: rv1106-smart-door: enable SC230AI and SC301IOT
Signed-off-by: Elon Zhang <zhangzj@rock-chips.com>
Change-Id: I61b85f02aae234fadb32912a9886823f0ce89076
2023-09-04 18:40:52 +08:00
Damon Ding
b6480bb345 arm64: dts: rockchip: fix timing configs of panel k350c4516t for rk3308/rk3562 evb
1. Modify mcu-timing configs according to panel datasheet.
2. Modify clock-frequency config sync with mcu-timing
   configs.
3. Add more comments for panel initialization sequence.
4. Add 10ms delay before sending initialization sequence
   to make sure the reset gpio output a low pulse.
5. Remove unused parameter reset-value.

Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: I76b0aa6d1a7fba432f500cacb9ce7ff74989c0f1
2023-09-04 18:40:35 +08:00
Zefa Chen
bbf279ef2a media: rockchip: vicap fixes error of buffer state while start stream failed
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I8f96607529c703fcc4c8c1f5eea6df08fec319c3
2023-09-04 18:27:56 +08:00
Wang Panzhenzhuan
458aa0791e media: i2c: nvp6158: add g_frame_interval ops
Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
Change-Id: I93423521b22916d1be9bb93d56777ee586b0823b
2023-09-04 06:31:33 +00:00
Liang Chen
4a3fcb9e1b clk: rockchip: rk3328: set ddr clk with sip call
We need use sip call to change ddr frequency.

Change-Id: I6ad4516306f0cb7c3e0a7124c21ee9fedfd9d055
Signed-off-by: Liang Chen <cl@rock-chips.com>
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2023-09-04 11:12:30 +08:00
Tao Huang
1d8465b558 Revert "dt-bindings: regulator: Document Rockchip RK860X regulators"
This reverts commit ba3959aef3.
After commit 58461615ac ("regulator: rk860x: fix the chip id error"),
rk8603/rk8604 support is moved to rk860x-regulator.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I1229b2f859ae7123f3b1897f999c13ba5e5cf7d8
2023-09-04 09:49:06 +08:00
Damon Ding
57abe4bda2 arm64: dts: rockchip: rk3568-evb: assign DCLK_VOP2 to PLL_GPLL
If not assigned, the clock parent of DCLK_VOP2 will be
PLL_HPLL in uboot, which affects HDMI display.

Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: Ife948de756281ed197413301ce1b05ddb80fe3d9
2023-09-01 20:52:32 +08:00
Caesar Wang
14827047b4 ARM: dts: rockchip: update rk5640 and hdmi sound for rk3288 evb boards
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Change-Id: I2eae296460ee94430e18f5036d26b89c78ea1f8f
2023-09-01 20:48:02 +08:00
Cai YiWei
4fddb54054 media: rockchip: isp: fix underperformance for frame two-run
Change-Id: I525ecbbbb56e9851f4b5f970663f54a5c95a3fcd
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2023-09-01 18:18:16 +08:00
Qiqi Zhang
c173b6c0c1 arm64: dts: rockchip: rk3528-demo6-ddr3-v10: fix typo
rk805,system-power-controoler -> rockchip,system-power-controller

Change-Id: I8c39fb00ce5cb22d6fafc46d506725d7557c6c49
Signed-off-by: Qiqi Zhang <eddy.zhang@rock-chips.com>
2023-09-01 15:26:20 +08:00
Jianwei Fan
a9d77893d9 media: i2c: lt6911uxe/lt7911uxc: remove vendor limit of get dcphy param
Change-Id: I09028fcbba05f4bec3647c68ad1dbb48d4e113dd
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
2023-09-01 15:25:34 +08:00
Wang Xiaobin
a11451d158 ARM: dts: rockchip: rv1106g-smart-door: increase ramdisk from 5/10 to 7/15
Because of the size increase in librkaiq, librockit, librockchip_mpp
and face models, and cause the ramdisk size increase:
    ramdisk_r + 1408KB
    ramdisk_c + 547KB
The increase of ramdisk_c cause the startup speed increase: + 7ms
(test in SPI NOR flash).

Signed-off-by: Wang Xiaobin <xb.wang@rock-chips.com>
Change-Id: I40bd2cbc93021c56359fd625f029747b36e2f414
2023-09-01 15:24:58 +08:00
Sisyphean Zhou
97aa45b328 media: i2c: gc2093 fastboot support hdr
Signed-off-by: Sisyphean Zhou <sisyphean.zhou@rock-chips.com>
Change-Id: I42233a5c897534ad89f3318186404836aafcc92c
2023-09-01 09:21:34 +08:00
Cai YiWei
da9d34f7cf media: rockchip: isp: fix image effect for frame two-run
Change-Id: Ic1a35142204b6edfb579e0f8c255841f24cfec06
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2023-09-01 09:10:44 +08:00
Sandy Huang
6ac6f5a7b3 drm/rockchip: vop2: enable cluster frame reset for rk3588
without this commit, the cluster maybe display splash screen in some scenarios
at low logic voltage.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I8dc7c77df4431ee8d6695d626cd1f139b7d0a5c8
2023-08-31 20:46:24 +08:00
Yu Qiaowei
fb4fd88e22 video: rockchip: rga3: fix the cache sync issue with physically contiguous virt_addr
When physically contiguous virt_addr are import to the memory manager,
dma_map is not called. So that using the dma_sync_sg API to flush the
cache is ineffective, and dma_sync_single must be used.

Change-Id: Ib172cd4a4046e82f7f383dbc5cee23ae6af17156
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
2023-08-31 14:15:26 +08:00
Yifeng Zhao
b22de4d8af arm64: configs: rockchip_defconfig: disabled rk_nand
There are no projects using MLC NAND FLASH with kernel
5.10 ARM64. This patch will disable rk_nand drivers to
reduce code size and optimize startup time.

Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: I48108a7cc34d636aa1b4d552737d36f830f9a8ad
2023-08-31 11:35:23 +08:00
Liang Chen
d96b0b6b9c arm64: dts: rockchip: rk3568: set remark info for specification_serial_number
Change-Id: I576d265f7707389c36e2d4927856c66fc7be61b5
Signed-off-by: Liang Chen <cl@rock-chips.com>
2023-08-30 17:13:58 +08:00
Liang Chen
9a5b27ee9a soc: rockchip: opp_select: support remark specification_serial_number
Change-Id: I134fc4f0bf3020935ff6efb7938531f5bf34c0ea
Signed-off-by: Liang Chen <cl@rock-chips.com>
2023-08-30 15:50:39 +08:00
Hu Kejun
31a0da2dca media: i2c: otp_eeprom: add pd_offset in pdaf part
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
Change-Id: Ifa901449d7f7d5ffaeeec1498bbed4c4ee5a14f1
2023-08-30 14:23:12 +08:00
ZiHan Huang
6f7585d73c ARM: configs: rk3308bs_aarch32_mipi_display enable CONFIG_DRM_IGNORE_IOTCL_PERMIT
Change-Id: Icacb68adf095676d26d7abc5c63948d5f4938c02
Signed-off-by: ZiHan Huang <zack.huang@rock-chips.com>
2023-08-29 16:39:15 +08:00
Felix Zeng
9894920d7c driver: rknpu: Update rknpu driver, version: 0.9.2
* Add task number tilling support
* Change kmalloc to vmalloc to avoid page allocation failure in RV1106
* Fix the issue of excessive time consumption in memory cache flushing
* Fix map pages into vma failed in kernel 6.10

Signed-off-by: Felix Zeng <felix.zeng@rock-chips.com>
Change-Id: I93c49a4766e4d3ff13a8d372be348757579c34e3
2023-08-29 11:28:05 +08:00
ZhiZhan Chen
2b3939a76d drm/rockchip: vop: fix the zpos setting in vop_atomic_plane_reset()
Change-Id: I27a85fc52dded9674f32f93c1a80c69a108d1118
Signed-off-by: ZhiZhan Chen <zhizhan.chen@rock-chips.com>
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2023-08-28 14:50:26 +08:00
Finley Xiao
24ea6649ad arm64: dts: rockchip: rk3562-evb1-lp4x-v10: Change clkin div to 5 for aclk vo
The dclk vop is 132MHz, the aclk vop can be reduced appropriately.

Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I80d060fd90e013aaa1eea4d94868731e3cf02ffb
2023-08-25 17:56:04 +08:00
Finley Xiao
26d58236a5 arm64: dts: rockchip: rk3562-rk817-tablet-v10: Change clkin div to 5 for aclk vo
The dclk vop is 70MHz, the aclk vop can be reduced appropriately.

Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I05f79bb4bade6c8ff6c8014edce448f403bb9ca4
2023-08-25 17:56:04 +08:00
Finley Xiao
0e7bc1d765 arm64: dts: rockchip: rk3562: Change clkin div to 4 for aclk vo
The aclk vop should be equal or greater than the half of dlck vop,
the highest frequency of dclk may be 148.5MHz, the aclk vop is 396MHz,
so change the clkin div to 4.

Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: Ibc47f31b7d03530929fd537020c60a39708ccdcb
2023-08-25 17:56:04 +08:00
Zefa Chen
812a80b857 media: i2c: imx415 remove vendor limit of get dcphy param
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I578a1e306985596d656a19615bdcf67edc08ffd8
2023-08-25 17:52:29 +08:00
Lin Qihao
f085d26126 arm64: dts: rockchip: rk3528-demo4-ddr4-v10-linux: enable sdmmc
Change-Id: Iade84f4f1ac94b2a0a1587ffe6454e074f527863
Signed-off-by: Lin Qihao <kevin.lin@rock-chips.com>
2023-08-25 16:55:41 +08:00
Su Yuefu
6c9d9857dd ARM: dts: rockchip: rv1106g-evb2-v10-dual-camera: sc301iot modified compatible name uppercase to lowercase
Signed-off-by: Su Yuefu <yuefu.su@rock-chips.com>
Change-Id: I7c3c39e0aff4e85cc541903dcd767d80f419a810
2023-08-25 16:51:47 +08:00
LongChang Ma
f188000384 media: i2c: sc301iot modified inferface name uppercase to lowercase
Signed-off-by: LongChang Ma <chad.ma@rock-chips.com>
Change-Id: I7689d695191419fd66504deebe400a01d01f74ba
2023-08-25 16:50:49 +08:00
Tao Huang
7e9467d1d2 usb: dwc3: core: parkmode_disable_hs_quirk depends on CONFIG_NO_GKI
Fixes: 35db5a9e94 ("UPSTREAM: usb: dwc3: core: add support for disabling High-speed park mode")
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ife342a9339c731828d9677d110494fdd7862fe49
2023-08-25 16:50:03 +08:00
Hongming Zou
0c4fa77794 rpmsg: rockchip_test: add delay compensation
1. add delay compensation to the test demo
2. update the names of some structures

Change-Id: I12026f13395ad691628fd6a2c3cb1b15185b156e
Signed-off-by: Hongming Zou <hongming.zou@rock-chips.com>
2023-08-25 15:20:46 +08:00
Mingwei Yan
b5d46d598f media: rockchip: isp: add iqtool video for isp21
Signed-off-by: Mingwei Yan <mingwei.yan@rock-chips.com>
Change-Id: I2760d90f421a789d3f3e20e376cdfa5bef109efb
2023-08-25 14:17:14 +08:00
William Wu
4857aeccce arm64: dts: rockchip: rk3399pro-npu: dis u1 and u2 state for dwc3
This patch adds the properties "snps,dis-u1-entry-quirk"
and "snps,dis-u2-entry-quirk" to disable u1 and u2 state
for dwc3 peripheral. And remove the legacy of property
"snps,dis-u1u2-quirk" which is not used.

Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: I52d51797a06ff23aa145ecd589878ae264c318ad
2023-08-25 10:37:05 +08:00
William Wu
781f512532 arm64: dts: rockchip: rk1808: dis u1 and u2 state for dwc3
This patch adds the properties "snps,dis-u1-entry-quirk"
and "snps,dis-u2-entry-quirk" to disable u1 and u2 state
for dwc3 peripheral. And remove the legacy of property
"snps,dis-u1u2-quirk" which is not used.

Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: I96fd8c2658471383a11aa8228fadaf04422333a3
2023-08-25 10:29:39 +08:00
Jianwei Zheng
065a9b8ad8 arm64: dts: rockchip: dis u1 and u2 state for rk3528 dwc3
We use "snps,dis-u1-entry-quirk" and "snps,dis-u2-entry-quirk"
instead of "snps,dis-u1u2-quirk" after kernel4.19.

Signed-off-by: Jianwei Zheng <jianwei.zheng@rock-chips.com>
Change-Id: Ib96b4044edbbd197fa8da1ef40575f7c61089738
2023-08-24 15:28:57 +08:00
Caesar Wang
71edaa9a9b ARM: dts: rockchip: update rk808 for rk3288-evb-rk808-linux.dts
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Change-Id: I497af8de1c21563497a222edc064c9ea51314abd
2023-08-24 10:56:02 +08:00
Caesar Wang
c9c3bf778a ARM: dts: rockchip: Add mmc aliases for rk3288-linux.dtsi
This series in order to have the default MMC alias.

The mmc default alias:
	mmc0 = &sdhci;
	mmc1 = &sdmmc;
	mmc2 = &sdio0;

The Linux OS have the post-build.sh to handle the rootfs,
and export RK_EXTRA_PARTITIONS for setting the PARTITIONS.

Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Change-Id: Ic309cbfc606433b9e9b9098230e7b90ba59cca2d
2023-08-24 10:56:02 +08:00
Algea Cao
b1d8b2c24d drm/bridge: synopsys: dw-hdmi-qp: Fix frl switch error when switching resolution and color at the same time
When switching resolution and color at same commit, current
judgment conditions will cause the hdmi switching process will
not run properly if switching from tmds resolution to frl resolution.
So we need to add the judgment of the resolution before and after
the switch.

Change-Id: I96e304acf224bcfd01edba9df64a3d6b96a2c90d
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2023-08-24 10:15:56 +08:00
Caesar Wang
9ef5ed9bab ARM: configs: enable HDMI and MULTICODECS for rockchip_linux_defconfig
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Change-Id: Ibc8b103357cfe3c6462bef135b28bae0efd88892
2023-08-23 18:40:22 +08:00
Oder Chiou
3d3da63929 UPSTREAM: ASoC: rt5640: Remove the sysclk and sysclk_src checking
Remove the sysclk and sysclk_src checking in the function set_sysclk() to
prevent the PLL power off. It is not getting re-programmed during
subsequent runs after the first run (in BIAS_OFF stage).

Signed-off-by: Oder Chiou <oder_chiou@realtek.com>
Link: https://lore.kernel.org/r/20220210071900.17287-1-oder_chiou@realtek.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Jiajian Wu <jair.wu@rock-chips.com>
(cherry-pick from commit d9c5996ab3)
Change-Id: I080a31484812a61b7cb3c4a53cc1eb3489038aa8
2023-08-23 18:40:00 +08:00
Yandong Lin
8323e849b7 video: rockchip: mpp: fix some iommu hdl register issue
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Change-Id: Ic73bc4e330668b30e4519362b313bfb29ccecb24
2023-08-23 18:36:41 +08:00
Cai YiWei
2b3c021adf media: rockchip: isp: fix get tb info
Fixes: 4ce5cb8b0f ("media: rockchip: isp: add lock to save tb info")
Change-Id: I0085c3697500e3667d8f39dddf6a3a342b7d6ee6
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2023-08-23 15:32:30 +08:00
Finley Xiao
b670135a69 soc: rockchip: rockchip_system_monitor: Don't init wide temp when tz is NULL
Change-Id: I9e5213f130582fcb7ee1beae7a5200e9d7ff4bf4
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2023-08-23 15:06:29 +08:00
Yandong Lin
900dde95ad video: rockchip: mpp: fix task re-add running_list issue
In rkvdec2_link hard ccu worker, the tasks may resend to hw when
decoder reset.There is a bug: the task that resend to hw may be re-add
to running_list.

Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Change-Id: I6aa77213d3f5cc805c24d39b5c5d13269297d749
2023-08-23 15:03:14 +08:00