Commit Graph

1080740 Commits

Author SHA1 Message Date
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
Yifeng Zhao
82da1a9d3c mms: rk_sdmmc_ops: support multi-blocks ops
Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: I39c6fd9756124c120b64fd1caa478c93750e2ea5
2023-07-19 10:29:08 +08:00
Guochun Huang
ec50666d21 phy: rockchip: mipi-dcphy: fix HSTX_CLK_SEL config
set HSTX_CLK_SEL 1`b1 when cphy lane rate under 500Msps,
while set HSTX_CLK_SEL 1`b1 when dphy lane rate under 1500Mbps

Change-Id: Ic42ce385c1952febe0327594231f6bffb2543c5e
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
2023-07-19 10:13:30 +08:00
Wang Panzhenzhuan
01edaa491a video: rockchip: vehicle: support config rotate & mirror simultaneously
usage: dts config
/*0:no, 1:90; 2:180; 4:270; 0x10:mirror-y; 0x20:mirror-x*/
vehicle,rotate-mirror = <0x11>;
means do mirror-y and rotate 90 degree together

Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
Change-Id: Iadda38968ae1950a81d244e37954aeb84d66d75e
2023-07-19 10:12:06 +08:00
William Wu
bea83cc7bc phy: rockchip: inno-usb2: enable bvalid detect irq upon resume
The voltage domain of the usb2 phy grf interrupt mask
register usually belongs to the VD_LOGIC in most of
Rockchip SoCs. So if the VD_LOGIC is power off after
system suspend, the configuration of the usb2 phy grf
interrupt mask may lost when resume.

Test on RK3588 platform with micro usb2.0 interface,
if this case happened, the usb device failed to connect
to host, because the usb device depends on the bvalid
irq to start the enumeration.

This patch enable the bvalid detect irq upon resume
for otg port, and schedule the otg sm delayed work
if the bvalid is high which means that usb device has
connected to Host.

Change-Id: I29245ec4fc812e45eb3f52cc5c2c270b659a0cc6
Signed-off-by: William Wu <william.wu@rock-chips.com>
2023-07-19 10:10:47 +08:00
Luo Wei
01947f7dfd arm64: dts: rockchip: rk3588-vehicle: fix lt7911 compatible name error
Signed-off-by: Luo Wei <lw@rock-chips.com>
Change-Id: I0bff3c570e8b5a4d374e4c895f5868a3049c7f88
2023-07-19 09:54:24 +08:00
Sandy Huang
4056d4ef2c drm/rockchip: vop2: only legacy gamma set need extra config done
The legacy api drmModeCrtcSetGammalegacy can be called independently, so it need extra config done;
and the atomic api have config done at the vop2_crtc_atomic_flush();

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: Idca4c42f1d298ec312dc839ee526e4132d9d8b73
2023-07-18 19:55:57 +08:00
Sandy Huang
903953ddeb drm/rockchip: vop2: update pre_dither_down config
1. config vp1 pre_dither_down at split mode;
2. disable pre_dither_down at YUV 10/8 bit output and RGB 10 bit output;
3. enable pre_dither_down at RGB 8/6 bit output;

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I304fc66324c97e3e4f50e03b8c8c2c1835871b1a
2023-07-18 19:55:57 +08:00
Zefa Chen
cedb72825d media: rockchip: vicap support tool video capture raw with rdbk by isp
used in the case of thunderboot

Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I94e21fe6c130dd52f08cf695a5f1e46d555d7399
2023-07-18 19:44:44 +08:00
Frank Wang
48a7374baa usb: typec: tcpm: fix dp altmode negotiation failure
Do DR_SWAP (UFP/Sink swap to DFP/Sink) when received VDM DiscIdentity
NAK or terminated in VDM DiscModes to fix altmode negotiation failure.

This can fix a few odd DP monitor (DFP/Source) can not start DR_SWAP
to UFP/Source role at DP altmode negotiation stage.

Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
Change-Id: Ieae9489c068064a20e04151f322ac82a71a72aa4
2023-07-18 14:34:22 +08:00
Damon Ding
b181d44259 arm64: dts: rockchip: fix frame rate of mcu panel to 60Hz for rk3308/rk3562 evb
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: I85e7fc920360b44c70c409f160916ae449e84c68
2023-07-18 14:28:06 +08:00
Damon Ding
6ee64dc3c1 ARM: dts: rockchip: fix frame rate of mcu panel to 60Hz for rv1103/rv1106 evb
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: I32dab30576fca3df53138beb468090340c8cb1e1
2023-07-18 14:26:08 +08:00
Jon Lin
709dbbec5e PCIe: dw: rockchip: Setting rk_pcie_hot_rst_wq before interrupt unmask
Change-Id: I04d628dc2ac390bb5affe276e8c673daa8e14931
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2023-07-18 14:18:57 +08:00
Luo Wei
aa029efb52 arm64: dts: rockchip: rk3588-vehicle: init s66 project dts files
Support two AVM cameras powered by max96712 and max96722.
Support i2s1 works with ADSP-21562 in tdm8 format, and i2s3 to bluetooth.

Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Signed-off-by: Luo Wei <lw@rock-chips.com>
Change-Id: Ic766cc17298ef2a03cc362a62e780e24f2ca1060
2023-07-18 11:45:04 +08:00
Binyuan Lan
b1773149c4 ASoC: rockchip: rk817-codec: Solve pop problems cause by re-configure APLL
SMIC TudorAG and previous versions:
During playback, a POP sound occurs when the recording is opened.
This patch is intended to fix this issue.

Change-Id: I86f79cd531738113092723e1ef198b093ae472b9
Signed-off-by: Binyuan Lan <lby@rock-chips.com>
2023-07-18 11:38:14 +08:00
LongChang Ma
efd29cb148 media: i2c: optimize gc2053 sync issue
Signed-off-by: LongChang Ma <chad.ma@rock-chips.com>
Change-Id: Ibedcc39845d7a1e02fe4f5bcf6794b32a882e793
2023-07-18 11:34:12 +08:00
Cai YiWei
cf933b81f8 media: rockchip: isp: distinguish buf done or subscribed event for param poll
Change-Id: I9b366a9f47ce24783651c93512125dca7c49917f
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2023-07-18 11:14:41 +08:00
Shawn Lin
5bde57f34f mmc: dw_mmc-rockchip: Disable PM runtime for SDIO devices
Some SDIO devices need stable clock provided even after finishing
data transfer.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: I5f048e15b3cafb2d24b93dbd41892f2fb77f8df8
2023-07-18 11:13:02 +08:00
Johnson Ding
a22026c960 video: rockchip: mpp: fix rk3328 h265d timeout issue
Power save optimization may cause rkvdec timeout when decoding some HEVC
bitstream.

Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com>
Change-Id: I60c9e578e53a37dbe610b03912fc0007a782f960
2023-07-18 11:05:43 +08:00
Wang Panzhenzhuan
89b5efc091 video: rockchip: vehicle: flinger fix rotate-mirror config be changed
rk_flinger_first_done & vehicle_flinger_reverse_open may run
at the same time, cause buffer rotate-mirror value changed;
so fix it.

Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
Change-Id: Ie278d89d53386a91700961137f2a60a6a442c0e9
2023-07-18 11:02:42 +08:00
Wang Panzhenzhuan
4004a8990c video: rockchip: vehicle: fix unexpected change when open set android ready
when vehicle in open state, set android ready will close/open stream;
cause preview stuck a moment, so fix it.

Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
Change-Id: I1734edb8de1f52434fa8e6a3a890453fbd51945e
2023-07-18 11:02:42 +08:00
Wang Panzhenzhuan
ced3b6d069 video: rockchip: vehicle: flinger fix 720P & 1080P rotate blurred issue
Original vop show required 64 pixel aligned for width,
but now all resolution are scale to 1920x1080 or
1088x1920 for 90/270 degree rotation is 64 aligned;
so rga blit is no needed to do 64 aligned limit, fix it.

Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
Change-Id: I42433009182d1f29372a0ebe4f7482f9b82a64f6
2023-07-18 11:02:42 +08:00
Wang Panzhenzhuan
a365675d53 video: rockchip: vehicle support drop vop show frames
sample usage:
cif_sensor: cif_sensor {
    nvp6324 {
        ...
        drop_frames = <4>; //frames to drop
        ...
    };
};

Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
Change-Id: I7c7ad473471e2b90ab32600a3d7a31511870307d
2023-07-18 11:02:42 +08:00