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
Tao Huang
19e64be07f
Revert "hid: add usb hid driver for rockchip discrete vr device."
...
This reverts commit bb21b20985 .
Remove unused RKVR driver.
Signed-off-by: Tao Huang <huangtao@rock-chips.com >
Change-Id: I7553897b60c9d8159129a009c6e4f5ab09b6ec94
2023-02-24 17:00:00 +08:00
Tao Huang
6269d536a3
Revert "ALSA: usb-audio: add USB ID for nanoc audio codec"
...
This reverts commit 45c518d6ca .
Remove unused RKVR driver.
Signed-off-by: Tao Huang <huangtao@rock-chips.com >
Change-Id: I1220abd811b4ec8c416758ca3ae00b438ff215c0
2023-02-24 16:57:52 +08:00
Tao Huang
ef69122250
Revert "ALSA: usb-audio: fix disvr usb Audio bug"
...
This reverts commit 7aac3b4eef .
Remove unused RKVR driver.
Signed-off-by: Tao Huang <huangtao@rock-chips.com >
Change-Id: I6f4531ba4b13d876feebf5ac1fd12e254099a6d1
2023-02-24 16:57:46 +08:00
Simon Xue
85623ff322
arm64: mm: Try to fix alignment faults
...
Change-Id: I7ceba0ae2270b95d42eb1c8f13c0ff605429283e
Signed-off-by: Simon Xue <xxm@rock-chips.com >
2023-02-23 19:54:57 +08:00
Cai YiWei
560194a6c5
media: rockchip: isp: fix sensor off to enable reset
...
Change-Id: If167d6f6f2928a554df42eab691406428d69f281
Signed-off-by: Cai YiWei <cyw@rock-chips.com >
2023-02-23 17:31:43 +08:00
Simon Xue
ed2c9c09f4
dma-buf: dma-buf-cache: fix concurrency issue
...
The same dma-buf may attach/map on different cpu at the same time,
this lead to concurrency issue. Add mutex lock to make dma-buf-cache
thread-safe
cpu1 cpu2
| |
dma_buf_cache_map_attachment dma_buf_cache_map_attachment
| |
dma_buf_map_attachment dma_buf_map_attachment
| |
system_heap_map_dma_buf system_heap_map_dma_buf
| |
iommu_dma_map_sg iommu_dma_map_sg
| |
__finalise_sg __finalise_sg
| |
sg_dma_address(sg) = iova1 |
| |
cache->sg_table = sg_table sg_dma_address(sg) = iova2 + iova1
after add mutex lock
cpu1 cpu2
| |
dma_buf_cache_map_attachment dma_buf_cache_map_attachment
| |
mutex_lock mutex_lock
| |
dma_buf_map_attachment return cache->sg_table
| |
system_heap_map_dma_buf mutex_unlock
|
iommu_dma_map_sg
|
__finalise_sg
|
sg_dma_address(sg) = iova1
|
cache->sg_table = sg_table
|
mutex_unlock
Change-Id: I2e08dafe61668ce35467b2c3b074f132f08ed6ba
Signed-off-by: Simon Xue <xxm@rock-chips.com >
2023-02-23 10:22:23 +08:00
Liang Chen
224d1104e7
arm64: dts: rockchip: rk3562: adjust opp-table by pvtm
...
Signed-off-by: Liang Chen <cl@rock-chips.com >
Change-Id: Iee7a75ef75533bc842f3e2b2bc1f1798a3694ad2
2023-02-21 19:56:36 +08:00
Cai YiWei
57bbb677f4
media: rockchip: isp: luma stream resolution alignment
...
Change-Id: If90d5d50dc1e55f28fd077c3651f65240c1010c0
Signed-off-by: Cai YiWei <cyw@rock-chips.com >
2023-02-23 09:41:09 +08:00
Liang Chen
7702078207
thermal: rockchip: register thermal driver early
...
The voltage level of opp-table depend on thermal driver.
Signed-off-by: Liang Chen <cl@rock-chips.com >
Change-Id: Id51106a0676cac38027e901d9c30832aba39d8a5
2023-02-21 17:49:00 +08:00
Binyuan Lan
5071891c17
arm64: dts: rockchip: rk3562-evb: fix uart_rts_gpios
...
Change-Id: Ib90f1ab7cc62a6cf88ec79bec4ac2a68d26b17b6
Signed-off-by: Binyuan Lan <lby@rock-chips.com >
2023-02-22 17:16:54 +08:00
Sandy Huang
271f493d1b
drm/rockchip: vop3: update ygt2/4 triger condition for rk3528
...
Signed-off-by: Sandy Huang <hjc@rock-chips.com >
Change-Id: I21768d3aa506a116964084dc0ee09ff68e838fa4
2023-02-22 17:08:03 +08:00
Shawn Lin
4cf8e604eb
ARM: dts: rockchip: rk3128-evb-ddr3-v10-linux: Fix sdmmc
...
sdmmc card wasn't functional at all as some properties copied from
old kernel can't work any more.
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com >
Change-Id: Ib1deb1d5387bbca0e3be22c3175f301005bcee1d
2023-02-22 16:48:29 +08:00
Shawn Lin
8c62deaf60
ARM: dts: rockchip: rk3128: redefine sdmmc_pwren as GPIO function
...
For rk3128 reference design, sdmmc_pwren is used as a GPIO.
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com >
Change-Id: If954337fe87da85eb7a088714ac6b0a5777c3cb7
2023-02-22 16:37:46 +08:00
Wyon Bi
9014f0d9cb
drm/rockchip: dw-dp: Add support for drm_panel usage
...
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com >
Change-Id: I84545b8465541baf67f62f1deee5a9238a0f89be
2023-02-22 16:06:08 +08:00
Shawn Lin
47c8b6bf38
ARM: dts: rockchip: rk312x: Update sdmmc node
...
Some properties have been removed or modified as kernel upgraded.
And add sdmmc_det for rk3128 since rk3128 can use functional det.
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com >
Change-Id: I256bedb66a1fbf61fdcf40ff9034f69755642b05
2023-02-22 15:53:46 +08:00
Yandong Lin
9b9ba0dcc7
video: rockchip: mpp: fix rkvdec2 link info err
...
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com >
Change-Id: I1f224fa7a8c050f5a782baef7d0bdd6920fad753
2023-02-22 15:21:48 +08:00
Finley Xiao
4bfb57719d
soc: rockchip: opp_select: Fix restricting voltage error
...
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com >
Change-Id: Ia4eb980c9b071b5b6bdb2fbb2229de6b17f65d8a
2023-02-22 14:49:27 +08:00
Sugar Zhang
8b300934b1
arm64: dts: rockchip: rk3528: Set mclkin freq as 0 Hz default
...
Use freq 0 Hz to represent the case which not used yet, and,
should assign the match freq as external mclk in if used.
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com >
Change-Id: Ida01fcf9fb7c57db2de3d55c19a9bc80ac8fde97
2023-02-22 14:33:46 +08:00
Sugar Zhang
cc54f72174
arm64: dts: rockchip: rk3588: Set mclkin freq as 0 Hz default
...
Use freq 0 Hz to represent the case which not used yet, and,
should assign the match freq as external mclk in if used.
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com >
Change-Id: I0a731367a81a740df36af7552c7b6a353f9bd2f0
2023-02-22 14:33:46 +08:00
Sugar Zhang
272ce0169e
arm64: dts: rockchip: rk3562: Set mclkin freq as 0 Hz default
...
Use freq 0 Hz to represent the case which not used yet, and,
should assign the match freq as external mclk in if used.
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com >
Change-Id: Id8d39117ba477285a562e7fa7bf7b28edd5e9212
2023-02-22 14:33:46 +08:00
Sandy Huang
a4309e65bb
drm/rockchip: vop3: add cluster frame reset
...
Signed-off-by: Sandy Huang <hjc@rock-chips.com >
Change-Id: I1d7d590ea91c0864cebe11066780789078960120
2023-02-22 11:34:50 +08:00
Joseph Chen
aec5968aad
clk: rockchip: rk3528: Allow disable clk_400m_src
...
There is not any child under clk_400m_src.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com >
Change-Id: I23c96869f69e62ee3ada30d66ffc7b2482bcdd7f
2023-02-22 03:00:57 +00:00
Elaine Zhang
d659377437
clk: rockchip: rk3128: fix up the sdmmc drv and sample set phase failed
...
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com >
Change-Id: I9e8b25c8f85594ee9c3e7d5d3e2d47ac05fdda94
2023-02-22 11:00:22 +08:00
Sandy Huang
5dabd04f93
drm/rockchip: vop2: adjust writeback commit time
...
adjust commit time from 1/8 to 7/8 scan timing when enable writeback;
Signed-off-by: Sandy Huang <hjc@rock-chips.com >
Change-Id: Iea0dd9e29b83399c1a0966e0c3ff68b861acd020
2023-02-22 10:56:26 +08:00
Zefa Chen
0669486cd5
media: rockchip: vicap fixes tasklet error for vb_done
...
Fixes: 824a24f4 ("media: rockchip: vicap use tasklet to done buf")
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com >
Change-Id: I231edb728285c049e96cfd48b4dfb19b6d31bfe8
2023-02-22 10:18:43 +08:00
Zefa Chen
2b6fcece05
media: rockchip: vicap: rk3562 add csirx data clk
...
if not control csirx data clk, may cause vicap do cru reset fail
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com >
Change-Id: I38bd186e8add2d3e7df1df527f3d02bf4e7d5d76
2023-02-22 10:18:27 +08:00
Zefa Chen
e42f671447
arm64: dts: rockchip: rk3562: vicap add csirx data clk control
...
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com >
Change-Id: I15baadf44db6c1325812b925e7ac84c636f6303c
2023-02-22 10:18:27 +08:00