Commit Graph

1073801 Commits

Author SHA1 Message Date
Yu Qiaowei
bfcf44d74a video: rockchip: rga3: clean timeout job before matching scheduler
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: I3f476ac2b519953a290587bb7399c68153a5bae3
2023-03-02 09:34:37 +08:00
Yu Qiaowei
7f9bf911cd video: rockchip: rga3: fix abort when virt_addr is free
Physically contiguous virt_addr needs to add the offset of the first
page when obtaining the phys_addr.

Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: I8076ad2aac31ad61d8a5e0d4332fe69f702d2adb
2023-03-02 09:34:37 +08:00
Yu Qiaowei
2c2f6687dc video: rockchip: rga3: improve the resolution limitation of VSP
When the horizontal input exceeds 2k (here refers to 1996), need to switch
from BI-cubic to BI-linear. When there is an HSD(horizontal scale down),
need to check the horizontal input after the HSD.

Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: I3e4ceeb0e85811ccb131c22fe77ebaa571b8a922
2023-03-02 09:34:37 +08:00
Yu Qiaowei
e16186b552 video: rockchip: rga3: fix the exception of acquire fence
Modify recognition that acquire_fence has been signaled

Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: Id7d9ba288dae05b8c50ebb2090e3aa7ae8b61671
2023-03-02 09:34:37 +08:00
Elaine Zhang
28822b16c6 thermal: rockchip: The temperature ranges from -60 to 180°C
-40 to 125°C reliable, outside the range existed unreliability.

Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: I7f24809bd7a4aa89a7fa12763081258468281fee
2023-03-02 09:32:24 +08:00
Jianwei Zheng
b80051be40 phy: rockchip: inno-usb2: change HS disconnect detect mode for RV1106
This patch set HS disconnect detect mode to single ended detect mode
for RV1106, fix RV1106 can not recognize device plug out sometimes.

Signed-off-by: Jianwei Zheng <jianwei.zheng@rock-chips.com>
Change-Id: I6ee6ded4cc12032cf2825eadd207c1e5003957cd
2023-03-01 17:29:16 +08:00
Yiqing Zeng
f368f6b087 ARM: rv1106-evb.config: enable CONFIG_VIDEO_GC2053
Signed-off-by: Yiqing Zeng <zack.zeng@rock-chips.com>
Change-Id: I67865797e830f991b37b30b7bc9eb974cf9ec3db
2023-03-01 16:56:59 +08:00
Yiqing Zeng
f1238c6c04 ARM: dts: rockchip: support dual gc2053 for rv1106-evb-dual-cam.dtsi
Signed-off-by: Yiqing Zeng <zack.zeng@rock-chips.com>
Change-Id: If236dcd35e77583ca106f788f627d5d9279d4d4d
2023-03-01 16:53:53 +08:00
Damon Ding
7a06461290 drm/rockchip: vop2: remove the version check in core_dclk_div setting
Fixes: f8882d308d94("drm/rockchip: vop2: fix the core_dclk_div_sel setting")
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: I46b402035e8ab3cb76a1adea0c2393a17e633e5a
2023-03-01 16:52:54 +08:00
Caesar Wang
c55b5512e8 arm64: dts: rockchip: add rk3562-iotest-lp3-v10-linux.dts
Change-Id: I784aa391ca03b9d511919daa1b601a2564b94f1a
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
2023-03-01 16:51:48 +08:00
Jon Lin
584f0eb12b arm64: dts: rockchip: rk3528: Assign spi sclk_in
Assign spi0 and spi1 sclk_in

Change-Id: If7337ddaaaa964854122794367d8be8b86c58fb1
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2023-03-01 16:31:04 +08:00
Jon Lin
3301cd7413 arm64: dts: rockchip: rk3562: Assign spi sclk_in
Assign spi0 and spi1 sclk_in.

Change-Id: I582b27fff7a5ec6da6ad7ef5fee18bbe8fbedb1b
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2023-03-01 16:31:04 +08:00
ZiHan Huang
47d70443c2 ARM: rockchip_linux_defconfig: enable CONFIG_SND_SOC_ROCKCHIP_SAI=y
Change-Id: I61f8ca7ffb98774a5c8256765f73ba95c2f8478f
Signed-off-by: ZiHan Huang <zack.huang@rock-chips.com>
2023-03-01 16:24:32 +08:00
Jason Zhu
9ec9e12850 ASoC: rk_codec_digital: fix register definition error
Fixes: 5d33c809c3 ("ASoC: codecs: Add support for rockchip codec digital interface")
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Change-Id: I867538d4aef82120b9cefa2cf833ccfe43f11596
2023-03-01 16:24:15 +08:00
Zefa Chen
dba7790c26 media: rockchip: vicap fixes pclk polarity for rv1106
Fixes: 74aca7167d ("media: rockchip: rv1106 vicap support dvp")
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I521d0f56061486f7db4ebe283382aa69c4f2d5e3
2023-03-01 16:19:25 +08:00
Sugar Zhang
309faf4a9c ASoC: rockchip: i2s: Fix FIFO clear error on SLAVE mode
Workaround for FIFO clear on SLAVE mode:

A Suggest to do reset hclk domain and then do mclk
  domain, especially for SLAVE mode without CLK in.
  at last, recovery regmap config.

B Suggest to switch to MASTER, and then do FIFO clr,
  at last, bring back to SLAVE.

Now we choose plan B here.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I1884659df7fa9052477652b7b0315da21e3165c2
2023-03-01 16:01:29 +08:00
Sugar Zhang
3d084c2144 ASoC: rockchip: i2s: Simplify FIFO clear routine
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I4ecfe4978d7646a99b205772515ae1c4f2d4607f
2023-03-01 16:01:29 +08:00
Sugar Zhang
c003b7fd8a ASoC: rockchip: i2s-tdm: Fix FIFO Clear failed on SLAVE mode sometimes
The previous idea about FIFO clear on SLAVE mode is:

1, Switch to MASTER mode
2, Do FIFO clear
3, Switch to SLAVE mode

But, there is a risk that drivers don't set mclk on SLAVE mode,
the mclk from PLL maybe a very high freq (higher than controllers'
signoff freq) that make controller work unexpected.

This patch allow set mclk freq for MASTER / SLAVE mode to fix it.
and, of course, there is no side effect.

This patch also simplify the clear routine by merging clear step 1/2
into a single one.

Fixes: 0a0a0b7606 ("ASoC: rockchip: i2s-tdm: Fix FIFO clear error on SLAVE mode")

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I8488b039e1e21a632bfd2a1c48c86b343fded17a
2023-03-01 16:01:29 +08:00
Zefa Chen
fce76cf947 media: rockchip: vicap support rockit
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I4748ecdf0909c8af71a311f43022b796c531d5be
2023-02-28 21:18:16 +08:00
Zefa Chen
89611a83d2 include: rockchip: rockchip_rockit.h support vicap
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I5551e4af4ad2396f5cec470e59cc8e464ff84a56
2023-02-28 21:15:07 +08:00
Yifeng Zhao
605b9e4765 arm64: dts: rockchip: enable emmc power off notify for rk3588s-evb
The emmc power is turned off after it is suspended. The drivers
need to enable the power off notification, otherwise the emmc
initialization will take a long time during wake-up.

Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: Iea233d378c0a7f313ebc39228b4e109cbb4a4f83
2023-02-28 17:31:11 +08:00
Yifeng Zhao
1e3334adf1 arm64: dts: rockchip: enable emmc power off notify for rk3588-evb
The emmc power is turned off after it is suspended. The drivers
need to enable the power off notification, otherwise the emmc
initialization will take a long time during wake-up.

Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: I52ed6ecd3c5bb8eacf2b918a7b091e83db026594
2023-02-28 17:31:11 +08:00
Yifeng Zhao
069d2d95b4 arm64: dts: rockchip: enable emmc power off notify for rk3568-evb
The emmc power is turned off after it is suspended. The drivers
need to enable the power off notification, otherwise the emmc
initialization will take a long time during wake-up.

Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: Ifbcfdc0b7821c85cc20d7a88c86c29b5343d7259
2023-02-28 17:31:11 +08:00
Yifeng Zhao
da17fb1daf arm64: dts: rockchip: enable emmc power off notify for rk3562-evb
The emmc power is turned off after it is suspended. The drivers
need to enable the power off notification, otherwise the emmc
initialization will take a long time during wake-up.

Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: I47d61aa0b3d310c3c5718e35dc4432111103ec19
2023-02-28 17:31:11 +08:00
Zhang Yubing
7af4de4666 drm/rockchip: dw-dp: avoid null pointer issue
Fixes: 7d048d6dac ("drm/rockchip: dw-dp: Add HDCP function support")
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
Change-Id: I29b4b7b118cfdde9e6b3a99dfc0f1c0c8103d6cc
2023-02-28 17:16:22 +08:00
Yiqing Zeng
9a3e2b4d71 media: i2c: gc2053 support slave mode
Signed-off-by: Yiqing Zeng <zack.zeng@rock-chips.com>
Change-Id: Ia851a9de5443c835be9c1c2b1d89625062742682
2023-02-28 14:35:55 +08:00
Jianwei Fan
ee38b2089a media: i2c: gc2093: set gpios output mode when use gpios
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: I7f91264f7202393a9041721f221c0a098cc79624
2023-02-28 14:34:51 +08:00
Jianwei Fan
1296e0f778 media: i2c: ov16a1q: add ov16a1q camera sensor
Change-Id: I9a19655697f231dedff577c1572e5663aa7bfc0d
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
2023-02-28 14:34:34 +08:00
Finley Xiao
6444f91bf9 arm64: dts: rockchip: rk3562: Remove clocks for pd gpu
As the clk_matrix_200m_src is critical clock.

Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I1efb315dd00de2aa4f4067a84f04f9370c91d915
2023-02-28 14:32:24 +08:00
Finley Xiao
7b957a4593 clk: rockchip: rk3562: Make 100m 200m and 300m src as critical clk
The ATF may use these clocks.

Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: Ie31f6b368aa467a989cd534c1795bb781ddd9998
2023-02-28 14:31:34 +08:00
Finley Xiao
2c323bbc97 clk: rockchip: rk3562: make the hpll as parent just for audio
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I15a17655ba30abc79a31b7eb68b5630b7c7e6054
2023-02-28 14:31:34 +08:00
Finley Xiao
d4fcb0f9a4 arm64: dts: rockchip: rk3562: Change dclk vop1 parent to apll
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I883e0523495431c686d45ff645dc8bfd89788a13
2023-02-28 14:28:03 +08:00
Finley Xiao
7efdc461ea clk: rockchip: rk3562: change parent for aclk core and pclk dbg
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: Iab8ef712d0f263897e212b4ad3c3a3b0e504a2d3
2023-02-28 11:10:08 +08:00
Finley Xiao
d731e092fe clk: rockchip: rk3562: make the apll as parent just for dclk vop1
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I9961d3cd865abc3a9589d4b28c698f2b829ae941
2023-02-28 11:10:08 +08:00
Jianqun Xu
20153d54d3 dma-buf: support partial sync under CONFIG_DMABUF_PARTIAL
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I1bf92c9bea5ae9506adb636f5d645bea434ade7c
2023-02-28 10:34:41 +08:00
Binyuan Lan
31c11a2896 arm64: dts: rockchip: Add peripheral dts node for RK3562 test1
Change-Id: I307dbab8cb296474d80eac02ce54bb0931224a87
Signed-off-by: Binyuan Lan <lby@rock-chips.com>
2023-02-28 10:25:02 +08:00
Frank Wang
99321070f1 usb: typec: tcpm: fusb302: fix pd rx packet loss
This amends the following points:
 - pull all RX messages from FIFO to TCPM while packet received and
   GoodCRC sent.
 - for TX success alert, just complete the tx status and GoodCRC will
   be read out at RX process (GCRCSENT alert).

The above changes can fix the Source Caps packets may loss in PD
renegotiate stage probably.

Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
Change-Id: I0422449842fd24e42e398a38446dc00477c7acce
2023-02-28 10:04:50 +08:00
Frank Wang
8dc7042e4b usb: typec: tcpm: fix source caps may lost after soft reset
Invoke set_pd_rx() may flush the RX FIFO of PD controller, so do
set_pd_rx() before sending Soft Reset in case Source caps may be flushed
at debounce time between SOFT_RESET_SEND and SNK_WAIT_CAPABILITIES state.

Without this patch, in PD charger stress test, the FUSB302 driver may
occur the following exceptions in power negotiation stage.

[ ...]
[ 4.512252] fusb302_irq_intn
[ 4.512260] AMS SOFT_RESET_AMS finished
[ 4.512269] state change SOFT_RESET_SEND ->SNK_WAIT_CAPABILITIES [rev3 NONE_AMS]
[ 4.514511] pd := on
[ 4.514516] pending state change SNK_WAIT_CAPABILITIES ->HARD_RESET_SEND @ 310 ms [rev3 NONE_AMS]
[ 4.515428] IRQ: 0x51, a: 0x00, b: 0x01, status0: 0x93
[ 4.515431] IRQ: BC_LVL, handler pending
[ 4.515435] IRQ: PD sent good CRC
[ 4.516434] PD message header: 0
[ 4.516437] PD message len: 0
[ 4.516444] PD RX, header: 0x0 [1]

Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
Change-Id: Icf8748e319094bee5dd010e353254c532fdea6ab
2023-02-28 10:04:50 +08:00
Jon Lin
136d6212d6 mtd: spi-nor: puya: Support new devices
PY25Q64HA, PY25Q256HB

Change-Id: I927a894be9114ddf74cf9520843fd806eac49656
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2023-02-27 18:58:05 +08:00
Yifeng Zhao
6770b7eee9 mmc: core: modify the power-on initialization timeout to 1 second
The commit af02b05e59 ("mmc: add thunder boot support") reduced
the timeout time by mistake, which will cause mmc initialization error.

Fixes: af02b05e59 ("mmc: add thunder boot support")
Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: Ie84d20104d2ea389c2369d6d1985c6dae0de054f
2023-02-27 18:47:00 +08:00
Binyuan Lan
a919c35a83 ASoC: rockchip: rk817-codec: don't change APLL_CFG3/DDAC_SR_LMT0 when capture with pdm
Change-Id: I1e1b429e64ac6e3fbd5924a6bab4fcfed4a0ae11
Signed-off-by: Binyuan Lan <lby@rock-chips.com>
2023-02-25 12:21:41 +00:00
Tao Huang
386630cb76 Revert "mailbox: rockchip: add driver for Rockchip SoCs integrated mailbox && System Control and Power Interface(SCPI) protocol"
This reverts commit b511d18e50.

Remove unused driver.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I24289b5676f7c8624070c7b3728d6b6aeb3502a1
2023-02-24 21:17:01 +08:00
Tao Huang
d76034d182 Partially revert "clk: rockchip: support setting ddr clock via SCPI and SIP Version 2 APIs"
This partially reverts commit d2b92a90ea.

Remove SCPI support.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I8104fec7d3c39870fa62835fc08d7fc53c45bb53
2023-02-24 21:11:27 +08:00
Tao Huang
ccf392b755 Revert "PM / devfreq: rockchip_dmc: add support for rk3368"
This reverts commit 3aacbd51b7.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I2b72f87b15dab04a34ad796bd16dbba70833c16e
2023-02-24 21:06:10 +08:00
Tao Huang
8c58646774 Revert "linux os can config sleep mode"
This reverts commit c8dc70ee04.

Remove unused driver.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Iaacb3264ee3a1ea47cccc4a1931d34bb6095397a
2023-02-24 21:06:10 +08:00
Tao Huang
80710dd8e7 Revert "arm64: dts: rk3368: add dfi and dmc device nodes"
This reverts commit af1dedb54c.

Remove unused driver.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I7869123d27356bb88c09dea08b348713c3147eea
2023-02-24 21:06:10 +08:00
Tao Huang
085b39ca18 Revert "rk3368 dts: add ddr timing node in rk3368.dtsi"
This reverts commit 8be554a502.

Remove unused driver.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I229ef6acb813f640f6b7f65e06d4d71a49e52839
2023-02-24 21:06:09 +08:00
Tao Huang
ac127f231b Revert "thermal: rockchip: add rk3368 support"
This reverts commit fa07761ac3.

Remove unused driver.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I25f8a09532781c65c27bba0b3553cfe1539e77bb
2023-02-24 21:05:56 +08:00
Tao Huang
be50b5edcb Revert "RK3368 GPU: Rogue N Init."
This reverts commit 418c01275a.

Remove unused driver.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I8f7efe30eb9c8cc356ffca8cc198882e62b07360
2023-02-24 21:05:56 +08:00
Jon Lin
efc029bba1 mtd: spi-nor: esmt: Support new devices
en25qh128, en25s64, en25qh256a, en25qx256a

Change-Id: I168292cab499644970822f18daf11c0edc51d6a8
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2023-02-24 20:25:53 +08:00