Commit Graph

1079637 Commits

Author SHA1 Message Date
Chandler Chen
b6cc751bbb video: rockchip: mpp: rkvdec2_link: disable mmu irq when reset
Signed-off-by: Chandler Chen <chandler.chen@rock-chips.com>
Change-Id: I537a2caf670456a1a25894e94968b6445961ff91
2023-04-04 11:16:25 +08:00
Qiqi Zhang
8832a2b6ce drm/rockchip: dsi2: mode valid func add more judgment conditions
In VR application scenarios, some panel will realize dynamic frame
rate adjustment through a wide range of VFP settings, and VFP may
exceed the ip limit (0~1023), which may cause abnormal display. so
reject any modes with larger periods.

Change-Id: I7bc6ae9709393ca0796fdec9ed1079b53b65cf99
Signed-off-by: Qiqi Zhang <eddy.zhang@rock-chips.com>
2023-04-04 10:43:15 +08:00
Jianwei Fan
52610e14e4 video: rockchip: vehicle: fix errors if not use gpio-det
Change-Id: I33ab7123e0aa938169fb7bdbe7c1bbb32f6a7c48
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
2023-04-04 10:41:18 +08:00
Zhang Yubing
4fb2138533 drm/rockchip: vop3: fix rk3528 csc mode register config
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
Change-Id: Ifca0405a705e333ed98ee8b0b5925857fcb63102
2023-04-04 10:31:47 +08:00
Sandy Huang
f2f4ac622f drm/rockchip: vop3: fix vp win_mask error
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: Iac3f0af7d8911cf188cc29788b4777a446536360
2023-04-03 18:21:02 +08:00
ZhiZhan Chen
30769f9482 arm64: dts: rockchip: use cluster for cursor on rk3568-evb1-ddr4-v10-linux.dts
Signed-off-by: ZhiZhan Chen <zhizhan.chen@rock-chips.com>
Change-Id: Icf667a4598a93b672777587775673539018bf4bc
2023-04-03 18:07:37 +08:00
Tao Huang
0500678ee9 net: wireless: rockchip_wlan: bcmdhd: Call filp_open() only when CONFIG_NO_GKI
filp_open() is missing from GKI symbol list.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I6fce3176441fca1910c4edfb6f3eeb423149fc45
2023-04-03 16:32:25 +08:00
Wyon Bi
61301c3b7b drm/bridge: maxim-max96745: Use the parent's extcon
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: I002987713d316f9ac5f59794f501016e29db2de7
2023-04-03 11:19:25 +08:00
Wyon Bi
9ba7ca42d5 mfd: max96745: Add extcon support
In order to set extcon state early at boot.

Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: If4abed7d97bb53e7f73219b600a03b22a54409a6
2023-04-03 11:19:25 +08:00
Cai Wenzhong
62a74f10f4 media: i2c: thcv244: fix abnormal streaming from video1 to video3 in four cameras.
Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Change-Id: I3fdf4da58de8684ab654ef1166c5c03c479c68cf
2023-04-03 11:17:53 +08:00
Jianqun Xu
d59cc6f311 iommu/iova: revert downstream debug codes
Since there is no iova bug currently, revert the debug codes to sync
with upstream, including:

Revert commit af9e6b8f04 ("iommu/iova: fix cpu from 'unsigned long' to 'unsigned int' for for_each_online_cpu")
Revert commit 0373c12d82 ("iommu/iova: drop codes about rcache from iova_dump")
Revert commit 3c9526f479 ("iommu/iova: remove a iova procfs if existed")
Revert commit 4fe55239b3 ("iommu/iova: add iova procfs for each dma iommu")
Revert commit 0c51523b06 ("iommu/iova: dump iova when alloc failed")

Change-Id: If78564d81a9b77e2dd5bef7abd69fc14cd28f864
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
2023-04-03 10:57:00 +08:00
Luo Wei
931ba6bd4f arm64: dts: rockchip: rk3588-vehicle-evb: add backlight gpio control for dp/edp serdes lcd
Signed-off-by: Luo Wei <lw@rock-chips.com>
Change-Id: I673bc66ebd2ea6d1d70a817f98b32f6e6a5bc82f
2023-04-03 10:35:46 +08:00
Chen Shunqing
52b4834126 media: rockchip: hdmirx: add hdcp1x key write
Change-Id: I43d828663e1d3fcdc670d258f883f4a1b3492b06
Signed-off-by: Chen Shunqing <csq@rock-chips.com>
2023-03-31 08:46:19 +00:00
Sugar Zhang
c6c61f8679 ASoC: hdmi-codec: Add option for ELD bypass
This patch allow users to enable "ELD Bypass" who don't
care anything from EDID Link Data.

Currently, this driver gets ELD(from EDID) to constraint
channels and rates.

Unfortunately, EDID is not always valid, maybe caused by
the fragile HDMI port or cable, in this situation, the max
features are limited to 48kHz stereo.

So, add this option to allow user to select the manual way
to output audio as expected. such as multi-channels LPCM(7.1),
or HBR bitstream for these sink devices.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Ic5ad66002d6f97b4585aaeb01620a53e08b7ed84
2023-03-31 15:49:36 +08:00
Guochun Huang
da5c8288d2 arm64: dts: rockchip: rk3588-vehicle-maxim-serdes: remove unused attribute
Change-Id: I53aac65a92b01464d5f39196fd8b5ca1736a70f6
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
2023-03-31 15:45:55 +08:00
Xing Zheng
a79d5a5f0a drm/rockchip: inno_hdmi: fix the noise during pause/resume by application
Since the i2s does not support the clock to be always on, and
snd_pcm_stop() will turn off the i2s clock.

However, the inno HDMI codec still needs to the clock to work, then
it does not do the corresponding clear and leads to abnormal audio
logic inside HDMI without the clock.

This patch adds an AUDIO_PD off/on to clear internal audio logic
during HDMI prepare to solve this problem.

Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Change-Id: I1ccb486a3fe1729c95d7d755ae2caf88d61a146b
2023-03-31 14:40:08 +08:00
Jianwei Fan
ca99cd1152 media: i2c: jaguar1: fix compile error and add enum_frame_interval api
Change-Id: I93832e248ee6c2c2efc761d2a3bd2e7cea793fae
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
2023-03-31 14:38:41 +08:00
Jon Lin
3193e78fe5 arm64: dts: rockchip: Reserved bar2 memory region for pcie3x4 ep
Change-Id: I5fac8637263c9f9fc351ddc6ae1d7cc37a8a32af
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2023-03-31 14:37:58 +08:00
Jon Lin
60ce2e8807 PCI: rockchip: dw: Support bar2 memory map
Rerseved memory for bar2 mapping by the dts property
"memory-region", the bar resource mapping rule:
 - bar0 4MB
 - bar2 64MB

for example:
	reserved-memory {
		...
		bar0_region: bar0-region@0x3c000000 {
			reg = <0x0 0x3c000000 0x0 0x00400000>;
		};
		bar2_region: bar2-region@0x40000000 {
			reg = <0x0 0x40000000 0x0 0x04000000>;
		};
	};

	&pcie3x4 {
		...
		memory-region = <&bar0_region>, <&bar2_region>;
		memory-region-names = "bar0", "bar2";
		...
	};

The rule is flexble and change by user as they want.

Change-Id: I1b866919f81892ad5326fb93896384c22c54fe74
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2023-03-31 14:37:58 +08:00
Wyon Bi
0608f7e239 drm/bridge: maxim-max96745: Remove unused code
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: I2f686f7a6395feb72896a3644093fc1acb315e81
2023-03-31 14:36:20 +08:00
Wyon Bi
dd1d5e6715 drm/panel: maxim-deserializer: Add static GPIO ID assignment
bl_pwm - GPIO ID 0

Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: I0eb4ec5e2e6ff6ad06efbc93f1e7c9837312308f
2023-03-31 14:36:20 +08:00
Wyon Bi
bd05f5d23c arm64: dts: rockchip: rk3588-vehicle-maxim-serdes: Add static GPIO ID assignment
bl_pwm - GPIO ID 0

Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: I807d578646387cc870e5f825f935f50d12924065
2023-03-31 14:36:20 +08:00
Tao Huang
8ded72f47d arm64: rockchip_gki.config: Disable CONFIG_CHR_DEV_SCH
android13 without these symbols:
__scsi_execute
scsi_device_lookup
scsi_print_sense_hdr
scsi_register_driver

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I22871cf2470b33b9d780daca81c195a7343b3655
2023-03-31 09:48:34 +08:00
Tao Huang
95a8c1b877 net: wireless: rockchip_wlan: bcmdhd: Fix out-of-srctree build
../drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/aiutils.c:25:10: fatal error: 'typedefs.h' file not found

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I425cb52776bb1b3294b8ef67c951b04afe2288a9
2023-03-30 21:14:08 +08:00
Zhang Yubing
d0954732ea drm/rockchip: dw_hdmi-qp: support show split mode logo
Change-Id: I13d62aee86ba911253112be6709d84e86213a59e
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2023-03-29 18:52:50 +08:00
Oliver Peng
f06f540a36 arm64: dts: rockchip: init rk3588-vehicle-evb-v20 dts file
add vehicle-evb-v20 dts file for first time

Signed-off-by: Oliver Peng <oliver.peng@rock-chips.com>
Change-Id: If48fa4fee974d84c99989e3014651fc8aacf53e0
2023-03-29 16:34:52 +08:00
Jon Lin
94aced204c arm64: dts: rockchip: rk3562: modify driver strength for spi pins
Change-Id: I5f95608c1b6d5664a45437f37c7dd5b8f53735ad
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2023-03-29 11:05:06 +08:00
Zhang Yubing
efbd7039b3 drm/rockchp: dw-dp: support HDR
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
Change-Id: I7a14f4a8342d44a926fb266bb78bffed7866c469
2023-03-29 10:20:06 +08:00
Guochun Huang
bd43adea36 drm/rockchip: rgb: fix phy power_count may unbalance in resume and suspend
Change-Id: I760db0055f6efcc0a2e1a74942e23e2d432181bd
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
2023-03-29 09:17:15 +08:00
Guochun Huang
f982b75ab5 drm/rockchip: lvds: fix phy power_count may unbalance in resume and suspend
phy->ops->power_on will be called when current phy->power_count equal 0,
and phy->ops->power_off will be called when current phy->power_count
equal 1. but the .power_off and .power_on hook will never be called in
suspend and resume process if phy->power_count is not initialized to 1
in loader_protect.

Change-Id: Ib69f93ac02d396182ee08f55657c71d6cd907329
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
2023-03-29 09:17:08 +08:00
Zefa Chen
913273ca12 media: rockchip: vicap: fixes error of access a nonexistent tools_vdev
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Ia872c7c14eba23ce9d4f38ec152c7705384fcdf1
2023-03-29 09:16:41 +08:00
Damon Ding
eedd15d9e4 drm/rockchip: rgb: support more display formats
Add MEDIA_BUS_FMT_BGR888_3X8 and MEDIA_BUS_FMT_BGR888_DUMMY_4X8.

Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: I3262b2ab9f671c32263a98b51b4bf79fe49da4c3
2023-03-29 09:16:03 +08:00
Huibin Hong
4cda6bf166 soc: rockchip: rk_fiq_debugger: fix interrupt fires forever
Fix bug that RX TIMEOUT interrupt fires forever.

Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
Change-Id: I98062debaf549ccbd8e3bda84a396e59588c8309
2023-03-28 10:05:40 +00:00
Cai YiWei
17e4013e9e media: rockchip: rename isp and ispp uapi head
Change-Id: I768baae0c406efc0bdc9b13dc2ac745f1365cf45
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2023-03-27 09:18:24 +08:00
Zefa Chen
fd32f0f8d6 media: rockchip: vicap: scale video capture follow main stream
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Ie1d052bae55027d42d8ecb5976c9dccddd1e784c
2023-03-27 09:13:05 +08:00
Damon Ding
10f9176932 arm64: dts: rockchip: rk3562: modify driver strength for bt1120 pins
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: I8ad40748f7fc2ecb2ee5cca795b41cdecb17816e
2023-03-27 09:09:08 +08:00
Sandy Huang
b9be1cc4a6 drm/rockchip: vop2: Don't dynamic turn on/off rk3588 PD_ESMART
Close dynamic turn on/off rk3588 PD_ESMART and keep esmart pd on when
enable display.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I154b96d1039dc42a773ec769c81aa054e9f9d79d
2023-03-27 09:06:23 +08:00
Zhang Yubing
2b7835ea77 drm/rockchip: dw-dp: fix dw_dp_bridge_mode_valid() return value type
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
Change-Id: Id31da1890c26b5c76e955fe103b62966eec2c126
2023-03-27 09:03:47 +08:00
Jon Lin
014c17ee5f PCI: rockchip: dw: Using __u32 instead of u32
Change-Id: I58cbbb23c6cb74a073da130d70eeb5519b09e121
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2023-03-27 09:03:27 +08:00
Zefa Chen
73fe7e52d3 media: rockchip: vicap: fixes snprintf warning of mipi csi2 error
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Ie6aed0c88a4ac5d9c5750885ef70fb0b391aa552
2023-03-27 09:01:27 +08:00
Zefa Chen
ddc6266787 media: rockchip: vicap: fixes issue of tools video register
tools video only support chip higher than rk1808

Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Iec7bfa9e9faa0bf520443f7e259c0519496c7b0f
2023-03-27 09:01:27 +08:00
Cai YiWei
d6fb546c18 media: rockchip: isp: version v2.2.0
Change-Id: I58699277e15b23c7eb8d4730c8d043164fb4746b
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2023-03-23 18:41:04 +08:00
Cai YiWei
f035db5f70 media: rockchip: isp: fix read BP_WR_CTRL reg
Change-Id: I2d448dcd6db98dafeb00209cb9d876a5ee98c51c
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2023-03-23 18:41:04 +08:00
Yiqing Zeng
32c4d89494 ARM: dts: rockchip: rv1106-evb-cam: change os04a10 module name and lens name
Signed-off-by: Yiqing Zeng <zack.zeng@rock-chips.com>
Change-Id: I37f114e048f9e919f8fe02eee749124276e2b402
2023-03-23 17:32:00 +08:00
Shiqin Chen
50c6114437 arm64: configs: rk3588_edge: Enable CONFIG_SENSORS_PWM_FAN
Signed-off-by: Shiqin Chen <chensq@rock-chips.com>
Change-Id: I76ab7f583afe3f891d5680056b12bab24a6b0407
2023-03-23 09:51:24 +08:00
Zorro Liu
535756b972 backlight: pwm_bl: set bl brightness 0 when reboot quiescent
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
Change-Id: Idf24ba57198dfb404d36507e207069c542924eea
2023-03-23 09:29:01 +08:00
Zorro Liu
c9e25627a9 arm64: dts: rockchip: rk3588s: add reboot mode quiescent
Change-Id: I263760f6a4869210ec80eac4ae4437bb7762d625
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
2023-03-23 09:26:03 +08:00
Zorro Liu
e760c21d37 dt-bindings: soc: rockchip: add reboot mode quiescent
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
Change-Id: I249f7dc7b8f464e0f5dd69797124fba036126b55
2023-03-23 09:22:27 +08:00
Jianwei Fan
232b116165 media: i2c: imx577: fix gain step
Fixes: de9477630d ("media: i2c: imx577: add dgain control")
Change-Id: Ie78a4330a8c38f605db2b07bc867f20cb3a29bb1
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
2023-03-22 17:53:02 +08:00
Shawn Lin
48b91619b8 PCI: rockchip: dw: Double check LTSSM
We saw a link failure after linkup which should fail to probe the device
actually. That was misleading for PCIe stack to scan the device. Add a
double check for that. If that happened, just try to link until the
timeout happened.

[    2.373308] rk-pcie fe180000.pcie: PCIe Linking... LTSSM is 0x3
[    2.455521] rk-pcie fe180000.pcie: PCIe Link up, LTSSM is 0x2
[    2.455658] rk-pcie fe180000.pcie: PCI host bridge to bus 0003:30

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: I0f9bcbb42d77a80aa1cb533952427b71096240d6
2023-03-22 17:39:38 +08:00