Commit Graph

1080475 Commits

Author SHA1 Message Date
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
Wu Liangqing
e76a8d7657 arm64: dts: rockchip: rk3588-evb3-lp5: update for v11 board
Signed-off-by: Wu Liangqing <wlq@rock-chips.com>
Change-Id: I6df2ef60133a150e658a03cfa3f7203bd871ba8a
2023-08-23 14:48:43 +08:00
Cai YiWei
fc49b7fcd0 media: rockchip: isp: fix list buf delete err
list_del error for curr_buf to buf_queue list and buf_done_list
pc : list_del+0x4/0x24
lr : destroy_buf_queue+0x170/0x188

Change-Id: Iede1ab20e30d25f4059b39e7896e1a89b3f03f67
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2023-08-23 10:09:15 +08:00
Tao Huang
dcfa3a17f6 soc: rockchip: amp: include rockchip_amp.h for function prototypes
drivers/soc/rockchip/rockchip_amp.c:257:5: warning: no previous prototype for 'rockchip_amp_check_amp_irq' [-Wmissing-prototypes]
drivers/soc/rockchip/rockchip_amp.c:262:5: warning: no previous prototype for 'rockchip_amp_get_irq_prio' [-Wmissing-prototypes]
drivers/soc/rockchip/rockchip_amp.c:267:5: warning: no previous prototype for 'rockchip_amp_get_irq_cpumask' [-Wmissing-prototypes]
drivers/soc/rockchip/rockchip_amp.c:489:6: warning: no previous prototype for 'rockchip_amp_get_gic_info' [-Wmissing-prototypes]

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I42ef41e8dc9fabcba90493ca56df435278614208
2023-08-23 09:32:45 +08:00
Wang Panzhenzhuan
6a1844dc34 arm64: dts: rockchip: rk3562-rk817-tablet: adjust vcm configs to reduce noise
Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
Change-Id: I9a6f2679bef116f9037938002f282c435aa3ec3f
2023-08-22 19:57:49 +08:00
Wang Panzhenzhuan
df3536ceae media: i2c: dw9763: optimize open/close procedure to reduce noise
1. add regulotor control to fix open i2c error issue.
2. fix move time unit to ms not us.
3. optimize open/close procedure, reduce vcm collision noise.
4. use v4l2_dbg replace dev_dbg for dynamic print debug info.

Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
Change-Id: I20c65ef2d4623b6338699874c4c05b42d9d2d863
2023-08-22 19:57:33 +08:00
Stanley Chang
fb0c004d7e UPSTREAM: dt-bindings: usb: snps,dwc3: Add 'snps,parkmode-disable-hs-quirk' quirk
Add a new 'snps,parkmode-disable-hs-quirk' DT quirk to dwc3 core for
disable the high-speed parkmode.

For some USB wifi devices, if enable this feature it will reduce the
performance. Therefore, add an option for disabling HS park mode by
device-tree.

In Synopsys's dwc3 data book:
In a few high speed devices when an IN request is sent within 900ns of the
ACK of the previous packet, these devices send a NAK. When connected to
these devices, if required, the software can disable the park mode if you
see performance drop in your system. When park mode is disabled,
pipelining of multiple packet is disabled and instead one packet at a time
is requested by the scheduler. This allows up to 12 NAKs in a micro-frame
and improves performance of these slow devices.

Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Stanley Chang <stanley_chang@realtek.com>
Link: https://lore.kernel.org/r/20230419020044.15475-2-stanley_chang@realtek.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry-pick from commit 4a2f152af1)
Change-Id: I8bffdfe134e644b705da78eaf16946aff80e5e80
2023-08-22 19:57:02 +08:00
Cai Wenzhong
739cc63893 media: i2c: add Maxim Quad GMSL2/GMSL1 to CSI-2 Deserializer driver.
1. maxim deserializer support: max96712/max96722
1.1 local maxim deserlializer depend on CONFIG_VIDEO_DES_MAXIM4C

2. maxim serializer support: max9295/max96715/max96717
2.1 remote max9295 serializer depend on CONFIG_MAXIM4C_SER_MAX9295
2.2 remote max96715 serializer depend on CONFIG_MAXIM4C_SER_MAX96715
2.3 remote max96717 serializer depend on CONFIG_MAXIM4C_SER_MAX96717

Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Change-Id: I0deab6dd47a419bed9ebf643e451d71dc8f151a4
2023-08-22 19:52:22 +08:00
Cai Wenzhong
383b245ce2 arm64: dts: rockchip: rk3588-vehicle-evb-maxim-max96722: adjust some node name
Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Change-Id: I28052218fad9fa0db840d032b630b9270b599b19
2023-08-22 19:51:40 +08:00
Cai Wenzhong
85504aa4a3 arm64: dts: rockchip: rk3588-vehicle-evb-maxim-max96712: adjust some node name
Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Change-Id: I9e0896ee4cf1e07f8a8b7a415d9c0fdde3e13435
2023-08-22 19:51:23 +08:00
Wu Liangqing
5bd2065957 arm64: dts: rockchip: rk3562-rk817: set vcc_3v3 regulator on in suspend
Change-Id: Ica0866c34353a0e6c624aca3becfc49c8e304b59
Signed-off-by: Wu Liangqing <wlq@rock-chips.com>
2023-08-22 15:43:02 +08:00
Yifeng Zhao
53d54c4a71 mmc: dw_mmc-rockchip: fix tuning return incorrect value in certain situations
When V2 tuning returns an error, it is necessary to reset
the ret to 0, otherwise the incorrect value will be returned.

log:
[    4.935664] mmc0: tuning execution failed: -5

Fixes: 795e052cc8 ("mmc: dw_mmc-rockchip: add v2 tuning support")
Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: I54a77e02255d88114191e8abc434856b34768715
2023-08-21 14:26:55 +08:00
Steven Liu
0b2afcfc6d arm64: dts: rockchip: rk3562-evb1-lp4x-v10-linux-amp: Add memory node for ap amp
use 0x00400000~0x01000000 for ap amp core

Signed-off-by: Steven Liu <steven.liu@rock-chips.com>
Change-Id: If4dd9e18537a9904de55125d0871b533fb340701
2023-08-18 20:17:23 +08:00
Jianwei Fan
e58d97c2cf video: rockchip: vehicle: fix support RK356X
Change-Id: Ifbd619c5cab7e9506b09e7fa4efb90990d301584
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
2023-08-18 20:11:23 +08:00
Jianqun Xu
e6b8805e0e arm64: dts: rockchip: rk3588-vehicle-adsp-audio-s66: set i2s3 master
This patch set the i2s3 to be master mode, while the bt must to be
slave mode.

The mclk rate is 24.576MHz from mclkin pin.

The setting for bt:
 NBS:
  Slave
  LRCK 8k
  BCLK 512kHz
  I2S
  clk inverted

 WBS:
  Slave
  LRCK 16k
  BCLK 1024kHz
  I2S
  clk inverted

Change-Id: I866ea471a2db5e39623cebeb4110ea2a639fbeba
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
2023-08-18 20:08:17 +08:00
Jianwei Fan
6f12652f07 arm64: dts: rockchip: rk3568: default enable mipi_csi2_hw
Fixes: 841fa2175d ("arm64: dts: rockchip: rk3568 separate the node of csi2 and hw")
Change-Id: I16a05ac90044e9aad1338827ac33146bb4f2bc71
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
2023-08-18 20:05:38 +08:00