Commit Graph

1080351 Commits

Author SHA1 Message Date
Damon Ding
ea3b81ee34 drm/rockchip: drv: fix the dclk calculation of mcu interface
dclk = htotal * vtotal * frame-rate * cycles-per-pixel * pix-total

Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: I6b78463dc8290f562cfe44040d6b6030d652213d
2023-08-04 16:31:30 +08:00
Elaine Zhang
8405687e7c rtc: rockchip: fix up the rtc compensation value
rtc compensation value needs to be converted to a bcd code.

Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: Ic24a5ba0c31c42b804d1efa65702e680bae26630
2023-08-04 15:39:20 +08:00
Shiqin Chen
84a85ea4a6 arm64: dts: rockchip: rk3568-toybrick-sd0: change gmac1 txdelay
Signed-off-by: Shiqin Chen <chensq@rock-chips.com>
Change-Id: I8fbaf468dc41b4da91345a089c0fcd3eb560a6b4
2023-08-04 15:17:44 +08:00
Shawn Lin
2a8db47d13 mmc: dw_mmc: Add some safe delay for releasing power leak
Add some delay for some broken card which need long time to
release the remain power leak. 200ms is very safe, no need to
bother device tree property, as it depends on card not board.

Fixes: 60c9e5240f ("mmc: dw_mmc: Add normal and idle pinctrl control")
Change-Id: I5437945cd860674be860d246200e15eed9d91e03
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
2023-08-04 14:50:39 +08:00
Yandong Lin
54ff36c469 video: rockchip: mpp: fix irq on poweroff for rkvdec2_link
rkvdec2_link_power_off():
    power_enabled = 0 -> disable irq -> power off

rkvdec2_link_irq():
    if power_enabled == 0 -> return and not clear irq

there is a corner case:
   1. after power_enabled flag set to 0 and before disable irq
   2. irq coming
   3. irq return and not clear irq
   4. repeat step 2

Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Change-Id: I284bf40acb19e0c48cf04e526a534fec6383eb11
2023-08-04 14:50:04 +08:00
Yandong Lin
1173b14159 video: rockchip: mpp: fix reset_group protected range
In some platform, there are some devices share PD.
If one device is doing pmu idle request to cru reset and
at this time cpu want to read/write reg for the device will crash.

So use the reset_group to prevent the case.

There is a issue that reset_group protected range not enough,
so fix it.

Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Change-Id: Ide32966f7cff842e4611213d26901617fd57bc14
2023-08-04 14:36:41 +08:00
Shunhua Lan
9bef8f31ad arm64: configs: rockchip_defconfig: Enable RT5651 for rk3399 excavator evb
Signed-off-by: Shunhua Lan <lsh@rock-chips.com>
Change-Id: I09cdf40fdeac8dccc13c3a4b3ec4d3b58c2c35e3
2023-08-04 10:06:30 +08:00
Chen Shunqing
0cb0d5f1ec media: rockchip: hdmirx: fix CTS HF2-86 test fail
If sample_flat field is set to 1, there can't be any sound.

Change-Id: I56ad87d1165fe7d1cc993f9522c4e6d50c253b80
Signed-off-by: Chen Shunqing <csq@rock-chips.com>
2023-08-03 16:48:13 +08:00
yuefu.su
b406f355a2 media: i2c: update sc230ai again map
Signed-off-by: yuefu.su <yuefu.su@rock-chips.com>
Change-Id: I6c5928d5bbb73a9d32a809f6750160a8730c0100
2023-08-03 16:46:04 +08:00
Lin Jinhan
203965847c crypto: rockchip: utils: optimize alignment criteria
There is no length alignment requirement for the last scatterlist.

Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
Change-Id: I9625bce9379cef4c1a8507ba523f5f303d60c9e6
2023-08-03 11:56:23 +08:00
Lin Jinhan
43f141406e crypto: rockchip: Fixed the timeout timer being triggered incorrectly
If the time required for a single data calculation exceeds 3 seconds,
timeout occurs.The timeout timer should be reset after the CRYPTO irq
interrupt is triggered.

Change-Id: I21516ba57bfc8eef3b22624e4ed95523d000cee2
Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
2023-08-03 11:45:59 +08:00
Guochun Huang
c19bda6df3 phy/rockchip: samsung-hdptx: make deskew fifo works on shared pointer
the deskew fifo works on its own pointers may cause inter-lane skew
to exceed the vesa standard, this poses a risk of errors in dp sink
parsing MSA packet which inserted in data stream

Change-Id: Ia3bdfaed8696c8f7f21f39f0b55d18b1dce7761f
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
2023-08-02 15:05:08 +08:00
Zhihuan He
ed5a9690cf arm64: dts: rockchip: px30: delete dmc 528MHz and en 666MHz ODT
For a more stable system, delete the 528MHz frequency and open
the 666MHz frequency ODT.

Signed-off-by: Zhihuan He <huan.he@rock-chips.com>
Change-Id: I0354c6dde8f39a9b41878446475ee3acbe1be729
2023-08-01 10:21:40 +08:00
Ziyuan Xu
8ea19e3343 soc: rockchip: tb_service: fixes the register haven't been handle
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
Change-Id: I3af3e5fd3b4725448363a1d8419dc4b9854f6cc6
2023-07-31 20:19:39 +08:00
Zhang Yubing
23299c62a5 drm/rockchip: drv: fix the config csc data issue
Fixes: 6bd92608df ("drm/rockchip: drv: get acm and csc info when boot")

Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
Change-Id: I0dd41b229fce0c85bd3df03f03b4b40da06ef53a
2023-07-31 18:14:37 +08:00
Liang Chen
60dc45eb33 soc: rockchip: cpuinfo: Add support for rk3528a
Change-Id: I62baecdb5a5d10329dbe7c36fdae9a6df15ccc57
Signed-off-by: Liang Chen <cl@rock-chips.com>
2023-07-31 18:12:53 +08:00
Algea Cao
6926979cb0 drm/rockchip: dw_hdmi: Fix crash caused by hotplug in uboot
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: Id22025a2b464e68ac3683587eb808975439096df
2023-07-31 14:53:20 +08:00
Zhang Yubing
bf9c5670ae drm/rockchip: vop2: report vividhdr feature by property
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
Change-Id: I2d680b2066050ca2eeba0947936cc43a8855cbb1
2023-07-31 11:47:49 +08:00
XiaoDong Huang
6d2677915d soc: rockchip: pm_config: support mcu-sleep-config
We configure "mcu sleep parameters" based on
shared memory and atags.
Refer to the following example to configure dts:

rockchip_suspend: rockchip-suspend {
	...

	rockchip-mcu-sleep-cfg {
		...

		mcu-cec-wakeup {
			rockchip,tag = <RK_ATAG_MCU_SLP_CEC>;
			rockchip,params =
				<0x0 0x1 0x2 0x3>;
		};

		...

		mcu-uart-wakeup {
			rockchip,tag = <RK_ATAG_MCU_SLP_UART>;
			rockchip,params =
				<0x3 0x2 0x1 0x0>;
		};

		...
	};

	...
};

Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
Change-Id: I9cb9107334c8ae91add2d4055cfb48cf46bc3e73
2023-07-28 15:52:32 +08:00
Tony Xie
db0e436dec arm64: dts: rockchip: rk3308b-amp: support config amp os irqs
Signed-off-by: Tony Xie <tony.xie@rock-chips.com>
Change-Id: I03ebaca4483c0c4d7be3e42a06774ec87cb8475e
2023-07-28 15:20:46 +08:00
Tony Xie
56e05e2ff3 dt-bindings: soc: rockchip: add define for rockchip amp
Signed-off-by: Tony Xie <tony.xie@rock-chips.com>
Change-Id: Ie4225d2b17b9f6180a1bbfc489c485562d5d2fe4
2023-07-28 15:20:06 +08:00
Tony Xie
2e7658ef57 irqchip/gic: support config amp os irqs
Signed-off-by: Tony Xie <tony.xie@rock-chips.com>
Change-Id: Id7ff9d5cccfe5656462542fcfa68fef51cdd910e
2023-07-28 15:15:46 +08:00
Tony Xie
0bbcfb87aa soc: rockchip: amp: support config amp os irqs
Signed-off-by: Tony Xie <tony.xie@rock-chips.com>
Change-Id: I628a5c4a863e4ed6d51a71ed9243d04993a04e43
2023-07-28 15:12:09 +08:00
Xu Xuehui
1ccd57c4b0 arm64: dts: rockchip: rk3588-vehicle-s66-v10 support wifi/bt
Change-Id: I40ee7f85aebc7400e745cda9c7f20b14aded9d09
Signed-off-by: Xu Xuehui <xxh@rock-chips.com>
2023-07-28 14:57:53 +08:00
Jianqun Xu
d5a0a47461 arm64: dts: rockchip: rk3588-vehicle-adsp-audio-s66 fix i2s-tdm
Fix 'rockchip,tx-lanes' to 'rockchip,tdm-tx-lanes'
and fix 'rockchip,rx-lanes' to 'rockchip,tdm-rx-lanes'

Fixes: aa029efb52 ("arm64: dts: rockchip: rk3588-vehicle: init s66 project dts files")

Change-Id: I2d3d0650b87aef0207fe15d81821de005b74aac1
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
2023-07-28 14:30:22 +08:00
Cai YiWei
f4a17bf817 media: rockchip: isp: fix 3dlut for multi sensor
Change-Id: Ib1384ea357a4ccd64174247bb394046a82765d82
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2023-07-28 14:29:39 +08:00
Finley Xiao
81a1028bb7 arm64: dts: rockchip: rk3528: Add trim configure for tsadc
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I9f3c5a3be522228e1cbc3c7c9075561ea4bc9bfc
2023-07-27 16:12:57 +08:00
Finley Xiao
4aa87e5793 thermal: rockchip: Add trim temperature for rk3528
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I2e8bbcf1afb932a630dfbc04047a2b43dd2ef820
2023-07-27 16:12:57 +08:00
Yu Qiaowei
3667f95c21 video: rockchip: rga3: avoid premature wake_up causing request to be freed
After other threads will trigger the wakeup, there may be a case where
the request is exited abnormally, so it is necessary to wake_up again
when the function exits.

Change-Id: Ia3e754cf3d4f9064ddc07a590f73f2f75c92d2c3
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
2023-07-26 18:39:59 +08:00
Frank Wang
1761a77fd1 phy: rockchip: usbdp: amend to improve USB compatibility
Amends ln0/ln2 RX DFE to improve the compatibility of USB3 link training.

Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
Change-Id: I568f9260bcfbb4625139222f06b68765f187dd04
2023-07-26 18:39:06 +08:00
HongLin Lan
724009a9d7 mtd: spi-nor: xmc: Support XM25QH256C
Change-Id: I0d1ee1b1615f9d29b472ef5bc8e2ed9aabd86602
Signed-off-by: HongLin Lan <helin.lan@rock-chips.com>
2023-07-26 10:26:16 +08:00
Luo Wei
84f68a63ed arm64: dts: rockchip: rk3588-vehicle-display-v20: not assign clock for vop
Signed-off-by: Luo Wei <lw@rock-chips.com>
Change-Id: I8de3a01a57025592af38d62b3c25c77ba295b914
2023-07-25 17:58:49 +08:00
HongLin Lan
daa92b106c media: i2c: add os02k10 driver
Change-Id: Ia55f5650eb5898092a9933e942bc8b93d0774415
Signed-off-by: HongLin Lan <helin.lan@rock-chips.com>
2023-07-25 17:58:10 +08:00
Damon Ding
7c9675f035 ARM: dts: rockchip: rv1106-evb: add mcu display v20 board
Rockchip RV1106G EVB1 V11 Board + RK EVB MCU 8BIT Display V20 Ext Board

Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: I77db1d6274435f82afe0f790a9a942e901c3fbe3
2023-07-25 10:43:47 +08:00
Qiqi Zhang
15cefa1208 arm64: dts: rockchip: add rk3528 demo6 dts
Change-Id: If52cf05e33f2faa3483c5c88c311f8c8a1745e0f
Signed-off-by: Qiqi Zhang <eddy.zhang@rock-chips.com>
2023-07-25 10:40:17 +08:00
Yu Qiaowei
0f8b67c07c video: rockchip: rga3: fix memory mapping will be skipped when handle is 0
Change-Id: I6d77cc200d692e07037dc613f94870fa0489e997
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
2023-07-25 09:59:31 +08:00
Liang Chen
0c5cc59876 arm64: dts: rockchip: rk3568: Add opps for rk3568j/m
Change-Id: I2e394d1de0dc8d856177a7083b56dc3ac81c5816
Signed-off-by: Liang Chen <cl@rock-chips.com>
2023-07-25 09:57:16 +08:00
Liang Chen
fbd35aede4 cpufreq: rockchip: set supported hw version for opp
Change-Id: I0fcd74b14cfeee03ce5ba022f256087f843aaab9
Signed-off-by: Liang Chen <cl@rock-chips.com>
2023-07-25 09:57:16 +08:00
Shuangjie Lin
1a2943000d driver: rknpu: Update rknpu driver, version: 0.9.1
* Fix rknpu job use after free

Signed-off-by: Shuangjie Lin <shuangjie.lin@rock-chips.com>
Change-Id: I916ad6c53438dfb951b6555c7c580d8abdd57c75
2023-07-25 09:39:07 +08:00
yuefu.su
09edc318b9 media: i2c: sc301iot: pm runtime put device until stream off for thunderboot
The camera device should keep *power on* until stream off, that make
sure the mclk is enable.

Signed-off-by: yuefu.su <yuefu.su@rock-chips.com>
Change-Id: I877d73cfa64e484e7c93e7b761d31ff23e353960
2023-07-24 15:44:18 +08:00
Chen Shunqing
ab1b8c1425 drm/rockchip: dw-dp: support hdcp key without aes encrypt
Change-Id: Ifc6ea0398914855e7c1d90ebf95b0766d70004d4
Signed-off-by: Chen Shunqing <csq@rock-chips.com>
2023-07-24 11:59:45 +08:00
Yandong Lin
99697177f4 video: rockchip: mpp: fix session cleanup issue
The session can only be released after all tasks are released.

Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Change-Id: I9a4e7940323be72cb0982338777af813888f957f
2023-07-24 11:57:54 +08:00
Fenrir Lin
c8ab145b3d media: i2c: sc3338 support normal boot
Change-Id: I06468abc80bfa501d7ad251606700fae586bae52
Signed-off-by: Fenrir Lin <fenrir.lin@rock-chips.com>
2023-07-21 20:19:54 +08:00
Xu Xuehui
9f9d39a908 arm64: dts: rockchip: rk3588-vehicle-evb-v21: change pcie wifi power control
regulator should always on when system suspend, avoid wifi crash.

Change-Id: If78702e56b68f653b2d50a06d7fd31bc4ced2943
Signed-off-by: Xu Xuehui <xxh@rock-chips.com>
2023-07-21 18:46:41 +08:00
Lin Jianhua
249466a6bd arm64: dts: rockchip: rk3308bs-evb-mipi-display-v11: reduce drive strength of lcdc d18~23 from 6ma to 2ma
The touchscreen i2c is abnormal due to current crosstalk of lcdc
d18~23,so reduced drive strength reduces crosstalk

Change-Id: Iaa7f6fc3854ecf2ab5e96d96c44464044a23b128
Signed-off-by: Lin Jianhua <linjh@rock-chips.com>
2023-07-21 18:44:58 +08:00
Fenrir Lin
16b1062239 ARM: dts: rockchip: rv1106g-evb2-v10: correct sc3338 gpio
Change-Id: I5e49d308ab5a2c0a7e9ae6de5e8b6821674c39df
Signed-off-by: Fenrir Lin <fenrir.lin@rock-chips.com>
2023-07-21 18:43:09 +08:00
Zhang Yubing
a34d847830 phy: rockchip-typec: use phy interface replace global functions
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
Change-Id: I193a9b78e397c56e1aecda5f2c0e5d338f902fd7
2023-07-21 18:42:27 +08:00
Zhang Yubing
d9da2bf65a drm/rockchip: cdn-dp: use phy interface replace global functions
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
Change-Id: Ic66390d224f37bfdf9254c674d6b6a3ec41904c2
2023-07-21 18:42:27 +08:00
Wyon Bi
9eabfc8112 phy: rockchip-typec: Fix DP lane config
Split dynamic lane configuration from tcphy_dp_cfg_lane().

Change-Id: Ie4ce3138b30f3f9304daec9a9c582091548c0e60
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2023-07-21 18:42:27 +08:00
Wyon Bi
6397c9ae57 drm/rockchip: cdn-dp: support dp training outside dp firmware
DP firmware uses fixed phy config values to do training, but some
boards need to adjust these values to fit for their unique hardware
design. So get phy config values from dts and use software link training
instead of relying on firmware, if software training fail, keep firmware
training as a fallback if sw training fails.

Change-Id: I075bff6aa153a5e18b6a5ddec2645131f1411913
Signed-off-by: Chris Zhong <zyw@rock-chips.com>
Signed-off-by: Lin Huang <hl@rock-chips.com>
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2023-07-21 18:42:27 +08:00