Commit Graph

1080276 Commits

Author SHA1 Message Date
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
Wang Panzhenzhuan
5d2e8c3cf9 video: rockchip: vehicle: cif use workqueue to print mipi err
if too many mipi err print in irq, it cause system stuck,
so use workqueue to print mipi err to fix it.

Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
Change-Id: I8bf29f3dc17c1e1b722fad6b2b3841db71e17dca
2023-07-18 11:02:42 +08:00
Lin Jinhan
76d1ca6150 media: i2c: add sc5336 driver
Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
Change-Id: I683d49cfd323afba4bb5322bd811eeaf67b0edfd
2023-07-17 20:15:31 +08:00
Sandy Huang
16b27eed7c drm/rockchip: vop2: recover win state when exit psr
Change-Id: I0d30042473ae84f49b4d326b31732180995b8b52
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2023-07-17 17:29:06 +08:00
Elon Zhang
eefc3b7404 ARM: dts: rockchip: add rv1106g-evb1-v11-facial-gate for spi-nor flash
Signed-off-by: Elon Zhang <zhangzj@rock-chips.com>
Change-Id: I15aa2284ff1a7df98a91525ce7a83f7e88c686b3
2023-07-17 15:25:10 +08:00
Elaine Zhang
ca983d4093 rtc: rk808: fix the rtc alarm status clean
The rtc alarm status must be cleared after alarm 1s or after the alarm
is disabled.

Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: I0874a24d1a3c0e7fd5e8462871d508392f7853cc
2023-07-17 14:43:59 +08:00
Frank Wang
39f343ce4f usb: gadget: uvc: fix error return in bulk mode
When UVC gadget as bulk mode connect to Linux (tested on Ubuntu 18.04),
it may occur twice set_alt for streaming interface, and the UVC state
is moved to "UVC_STATE_STREAMING" before process stream on event, so
amend to check the uvc state value to fix stream on error return.

Fixes: d471d7168a ("usb: gadget: uvc: fix NULL pointer dereference when usb hotplug")
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
Change-Id: Ib0d65c161d8680186ae26b2c8a0f6116b599c158
2023-07-17 14:31:33 +08:00
XiaoDong Huang
5620310d92 ARM: configs: rv1106-tee.config: enable ROCKCHIP_SIP
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
Change-Id: I78248590c6afa51986852997da20bdef6280fc61
2023-07-17 14:26:04 +08:00
shengfei Xu
3453ca5487 firmware: rockchip_sip: support the MCU config
Signed-off-by: shengfei Xu <xsf@rock-chips.com>
Change-Id: Id92dd91cd410207d3858be84e5b64409eca1f976
2023-07-17 14:26:04 +08:00
Damon Ding
764c782d27 arm64: dts: rockchip: rk3562: modify the default drive strength of lcdc pins
According to the SI report, set default drive strength
as below:

clk      level_4
den      level_3
hsync    level_3
data0-23 level_3

Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: Ie14bb84e485c87a6f153bf0b23e13adeb21dadca
2023-07-17 14:19:35 +08:00
Sandy Huang
e2852b6423 drm/rockchip: vop2: Fix plane parameter check error at interlace mode
At interlace mode, the adjusted_mode->crtc_vdisplay will be div2 from vdisplay,
but the userspace is still set as adjusted_mode->vdisplay.

Fixes: bfc49df515 ("drm/rockchip: vop3: plane display size check use crtc_* parameter is more correct")
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I6765e5486dc4d15b0b34b75370280d48500ef4da
2023-07-10 11:08:50 +08:00
Jon Lin
328145662f mtd: spinand: skyhigh: The vendor requires the devices to be patched
1.Double OIP=0 after page 13H
2.The nand flash does not support 84H and 34H command

Change-Id: Ie805f42a36e1a864115988087bdc43592cc94ded
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2023-07-07 18:10:08 +08:00
Jon Lin
718ca57be2 mtd: spinand: foresee: Support new device F35UQA001G-WWT
Change-Id: Icf2f439e2d7e05be100c22f352ef1473a27b0d29
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2023-07-07 17:58:55 +08:00
Jon Lin
390c4a232c mtd: spinand: foresee: Support new device F35UQA002G-WWT
Change-Id: Iff7ba4b10e477e950e11c51f4d68b7783a71075c
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2023-07-07 17:58:42 +08:00
Jon Lin
1f6698fe5d mtd: spinand: fmsh: Support new device FM25S01BI3
Change-Id: I8fdd0bdc4913c31031f2298f206ee6a6025031e1
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2023-07-07 17:14:35 +08:00