Commit Graph

1080312 Commits

Author SHA1 Message Date
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
Zhang Yubing
99b9c4c771 drm/rockchip: cdn-dp: Avoid drm_dp_link helpers in dp training
The drm_dp_link is removed. And link.num_lanes is instead by
max_lanes. Link.rate is instead by max_rate.

Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
Change-Id: I95cbaa541bdf28133ab86f46ce3ac9f0903d364d
2023-07-21 18:42:27 +08:00
Chris Zhong
0aefe26fd9 FROMLIST: drm/rockchip: add transfer function for cdn-dp
We may support training outside firmware, so we need support
dpcd read/write to get the message or do some setting with
display.

Change-Id: If89911e6205546df1a5ae8997ea214d5d2a60af6
Signed-off-by: Chris Zhong <zyw@rock-chips.com>
Signed-off-by: Lin Huang <hl@rock-chips.com>
Reviewed-by: Sean Paul <seanpaul@chromium.org>
Reviewed-by: Enric Balletbo <enric.balletbo@collabora.com>
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
(am from https://patchwork.kernel.org/patch/10420461/)
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2023-07-21 18:42:27 +08:00
Zhibin Huang
f3eda81058 phy/rockchip: inno-dsidphy: remove duplicate code from inno_dsidphy_mipi_mode_enable()
Remove one duplicated call inno_mipi_dphy_lane_enable().

Fixes: 45963f36a7 ("phy/rockchip: inno-dsidphy: add rk3568 dsi dphy support")
Change-Id: I64d9e51d7f7d2ff2cc426f9cd3f81ef1e38fa414
Signed-off-by: Zhibin Huang <zhibin.huang@rock-chips.com>
2023-07-21 18:41:01 +08:00
Cai YiWei
ce8d18569c media: rockchip: isp: fix drc and hdrmge err for multi sensor
Change-Id: Iec602581f6d7b99076544ebada6cb39eea69393e
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2023-07-21 15:18:51 +08:00
Yandong Lin
eecc48ce7b video: rockchip: mpp: disable usr poll timeout
Use wait_event_interrupt to replace wait_event_timeout.
The task irq or task work timeout will wake up the session wait.

Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Change-Id: I47254ca0e66b210d91578b24d63578f9ea5308f9
2023-07-21 10:27:27 +08:00
Cai YiWei
57de878a74 media: rockchip: isp: version to v2.2.2
Change-Id: I3c446f6e0e9a8a8ad3cd269a629524128387ad43
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2023-07-20 20:04:10 +08:00
Sugar Zhang
d9bb11946d arm64: dts: rockchip: rk3562: Optimize clk jitter for DAIs
On the RK3562 SoC, the HPLL is designed dedicated for audio.

This patch assigns PLL_HPLL as the parent of digital audio
interface default. and Set PLL_HPLL to 983.04M(48k group)
default to achieve better jitter performance.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I21615ae46209a2be31630987350131abd3b33a97
2023-07-20 19:08:18 +08:00
Sugar Zhang
89bdfb8696 ASoC: rockchip: sai: Handle clk enable in prepare stage
Currently, the BCLK/FSYNC enable is addressed in hw_params
stage, because the real clk is measured by samplerate. so,
it is quite a good solution.

But, on the system PM situation, it is failed to recovery
BCLK/LRCK after resume. the root cause is that never do
'hw_params' after resume. which is similar to XRUN issue.

So, let's move it to prepare stage which any path must do
before trigger-start.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I9025a98259a4e9bd9f09ec3d23584f753552031d
2023-07-20 19:08:18 +08:00
Sugar Zhang
36eb638d2d ASoC: rockchip: sai: Use generic pm_runtime_force_* for system PM
This patch use the generic pm_runtime_force_* API for system PM,
because both of them do the same action. let's make it implemented
with runtime PM.

Ref: commit 37f204164d ("PM: Add pm_runtime_suspend|resume_force functions")

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Ice5057ca5cdf8999990283a99921b7b6a30cd557
2023-07-20 19:08:18 +08:00
Sandy Huang
06906b5a73 drm/rockchip: vop2: add more plane check
1. NV12/NV16/YUYV xoffset must aligned as 2 pixel;
2. NV12/NV15 yoffset must aligned as 2 pixel;
3. NV30 xoffset must aligned as 4 pixel;
4. NV15/NV20 xoffset must aligend as 8 pixel at rk3568/rk3588/rk3528/rk3562,
   others must aligned as 4 pixel;

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I28d69d1f8189963170ef798c12bfd60fb092ef20
2023-07-20 19:05:10 +08:00
Lin Jinhan
f0023c2918 media: i2c: gc1084: add frame synchronization support
Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
Change-Id: I896eae6a4aa39030ecd41664e81f62889645d443
2023-07-20 19:01:20 +08:00
Zefa Chen
74bb5a299c phy: rockchip: csi2-dphy: fixes fwnode parse error of cphy
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Id6fc73b416888dc25bf3dc8af82ea685821efaf6
2023-07-20 18:58:53 +08:00
Wyon Bi
955d8bfa4b arm64: rockchip_defconfig: Enable CONFIG_DRM_PANEL_MAXIM_MAX96772
Enable the maxim max96772-based panels used on RK3588 vehicle s66 project.

Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: I2065012318aab045c91500c7f9691bd9bee1007a
2023-07-20 18:54:50 +08:00
Xu Xuehui
a748a1bd1c net: wireless: rockchip_wlan: porting infineon driver.
1. support wifi driver contrl wifi_reg_on.
2. fix pcei state when pcie suspend.
3. fix wifi crash when resume timeout.
4. support WIFI oob fuction.

Change-Id: I5ea8be870cb7c3efac206c2d57d1ac66aca871c7
Signed-off-by: Xu Xuehui <xxh@rock-chips.com>
2023-07-20 18:37:22 +08:00
Jason Song
ebdfd241b5 input: sensor: accel/gyro sensor: support iam20680.
Signed-off-by: Jason Song <sxj@rock-chips.com>
Change-Id: Iec153c5f151d887f8810d54e5ae4c9fbef8a3c57
2023-07-20 16:42:28 +08:00
Jason Song
ec02244c43 arm64: dts: rockchip: vehicle-s66: support iam20680.
Signed-off-by: Jason Song <sxj@rock-chips.com>
Change-Id: If5d343a720121ba6e441ea14a433a24ef8b793ec
2023-07-20 16:15:48 +08:00
Cai YiWei
e27cb4b2bf media: rockchip: isp: fix repeated reporting statistics if stats video on/off
Change-Id: Ic0b7d67f0250389b981d79a959c0f081b16a0c25
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2023-07-20 10:16:03 +08:00
Jason Song
0f9b944358 mfd: max96755f: lock status and link reg need access directly.
Signed-off-by: Jason Song <sxj@rock-chips.com>
Change-Id: If1b8866afe9642c33426b1757a72159ec37e2469
2023-07-19 20:03:31 +08:00
Jason Song
26525c754b drm/bridge: maxim-max96755: support dual link mode.
Signed-off-by: Jason Song <sxj@rock-chips.com>
Change-Id: I130a600be675fb834016d852ecbf1fdd0a81f803
2023-07-19 20:03:23 +08:00
Wyon Bi
78e9c25543 drm/panel: Add panel driver for Maxim MAX96772 based LCDs
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: Ie1981f600dd1422052f57c329ceed0702bb97ca4
2023-07-19 20:03:04 +08:00
Jianwei Fan
e57d4ee1ae media: i2c: it6616: modify set ctrl when video stable
Change-Id: I84b583f0a8c17a84a4c22f5a9d62dbde42904132
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
2023-07-19 11:50:10 +08:00
Jianwei Fan
458d457425 media: i2c: lt6911uxe: modify rk3588_dcphy params
Change-Id: I5455c5e18e0074aa08a9bd97d20fa51bf2790a8a
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
2023-07-19 11:49:52 +08:00
Zefa Chen
a9ed7b93e6 media: rockchip: vicap compatible with rk3588s2
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Idd8312275b97b690de378094116d558e85b4cb00
2023-07-19 11:48:20 +08:00
Zefa Chen
a8c5673b5b media: rockchip: vicap support combine two mipi to one dev
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Iba3e83d0bc1433458d56c2542c3224ffee127b90
2023-07-19 11:48:20 +08:00
Zefa Chen
08330d500d phy: rockchip: csi2-dphy: logic node of mipi phy can control all hw of mipi phy
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I30cc62cc1d28c4219e9e5c5ccd77fa9f589e63af
2023-07-19 11:48:20 +08:00
Zefa Chen
c929ccacbb include: rk-camera-module: support get/set capture info
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Ic1f117afcb53b035086f6835deb0ccf2733ee972
2023-07-19 11:48:20 +08:00
Zefa Chen
f23f29d334 include: rkcif-config: support set multi csi info
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I8509ed952b9554659c0238024a383e547620825b
2023-07-19 11:48:20 +08:00
Zefa Chen
d174390f31 ARM: dts: rockchip: rv1106 separate the node of csi2 and hw
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Ifd8eef8e03d9d9edc0a93115b62e2fac41a828dd
2023-07-19 11:48:20 +08:00
Zefa Chen
f442c757df ARM: dts: rockchip: rv1126 separate the node of csi2 and hw
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Iae8f9d8bd721e549d89a27fdb61a9e63da76a6f1
2023-07-19 11:48:20 +08:00
Zefa Chen
d4c693bd95 arm64: dts: rockchip: rk1808 separate the node of csi2 and hw
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I4fdacd6bcac96094ea7746828fbab3e05b31fbab
2023-07-19 11:48:20 +08:00
Zefa Chen
a2af16b03a arm64: dts: rockchip: rk3562 separate hw node of mipi csi2 and mipi dphy
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I9e23e9b94cb851f31c6701deb5d57b1e8297a7b5
2023-07-19 11:48:19 +08:00
Zefa Chen
841fa2175d arm64: dts: rockchip: rk3568 separate the node of csi2 and hw
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Ia3694d29ee53a1ccd46e2e375eed94ce45dcf1fc
2023-07-19 11:48:19 +08:00
Zefa Chen
4efcdeacf3 arm64: dts: rockchip: rk3588 separate the node of csi2 logic and hw
logical and physical nodes are separated, one logic node can
connect multi hw node

Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Ibb75cc466452aedff8f50d29331b191d2fbd922a
2023-07-19 11:48:19 +08:00
Zefa Chen
69c3088116 arm64: dts: rockchip: rk3588 mipi dphy config modify
1. all logic node of mipi phy can get all hw of mipi phy
2. the links between logic and hw is determined by upper level equipmen

Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Icc0cb88c3294a119431ac24b0043e44e34b1b292
2023-07-19 11:48:19 +08:00
Finley Xiao
9adfbb364a arm64: dts: rockchip: rk3588s: Add nvmem-cells for rkcif
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I6e98ce0ce435637f0522c3a67e86117bcd4dc103
2023-07-19 11:47:27 +08:00
Finley Xiao
bcc5f7e025 arm64: dts: rockchip: rk3588s: Add package serial number for otp
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: Icbae70352ba127bb327d5c86580da30259d36742
2023-07-19 11:47:27 +08:00
Yifeng Zhao
5ff437c200 mms: rk_sdmmc_ops: support resume and suspend
Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: Idb3168b4b33cf1251390b783c1aa798db39782da
2023-07-19 10:29:08 +08:00
Yifeng Zhao
5d45ac929f mms: rk_sdmmc_ops: disabled command queue while execute
Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: I1cdca1d01012de8749b0033367ae050c87f19193
2023-07-19 10:29:08 +08:00
Yifeng Zhao
e0bf8700b9 soc: rockchip: sdmmc_vendor_storage: Using multiple blocks of read/write data
Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: If642f464ca22df4e27574fc020fce0312a062b36
2023-07-19 10:29:08 +08:00