Commit Graph

1080728 Commits

Author SHA1 Message Date
William Wu
fa63778a21 usb: host: ohci-platform: enable async suspend for rk3588
The rk3588 has two ohci controllers, and the ohci_resume()
takes a long time when system resume. Considering that the
delay time in the ohci_resume() is related to controller
hardware, we should not modify the delay time.

This patch enable async suspend for rk3588 ohci controllers,
then they can do asynchronous resume. Note that it generally
is unsafe to permit the asynchronous suspend/resume for ohci
because we can't certain that the PM dependencies of the ohci.
However, for rk3588, we have add device_link between the ohci
and ehci with the commit 68850661b5 ("usb: host: ehci-platform:
Add device_link between the ehci and companion"), so we can
safely enable async suspend/resume for rk3588 ohci.

Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: Ia74fc59c2c75a4bdc34d0de0a7bd047c178e9971
2023-10-18 15:25:26 +08:00
William Wu
8ad098a280 arm64: dts: rockchip: rk3588s: Add compatible for ohci
Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: I554bfc9f4546ddfff606475e0086e2c087d122dd
2023-10-18 15:25:26 +08:00
Liang Chen
fb636d97d0 arm64: dts: rockchip: rk3588-linux: set rcu_expedited/rcu_nocbs
Change-Id: I66650255d2f961ac774135f778f25341d7b30ef4
Signed-off-by: Liang Chen <cl@rock-chips.com>
2023-10-18 14:32:42 +08:00
Liang Chen
b0fa3b415d arm64: dts: rockchip: rk3588-android: set rcu_expedited/rcu_nocbs
Change-Id: Ifff59d83e49f1b69a6b575d11a04fecb8a580ad8
Signed-off-by: Liang Chen <cl@rock-chips.com>
2023-10-18 14:32:27 +08:00
Liang Chen
ca2973c80a arm64: rockchip_linux_defconfig: enable configs needed for RCU perf/power optimizations
CONFIG_RCU_EXPERT=y
CONFIG_RCU_FAST_NO_HZ=y
CONFIG_RCU_NOCB_CPU=y

Change-Id: I57cb51402e2137938ca46b4d31cf27e2cd32242f
Signed-off-by: Liang Chen <cl@rock-chips.com>
2023-10-18 14:32:08 +08:00
Liang Chen
f397a0261b arm64: rockchip_defconfig: enable configs needed for RCU perf/power optimizations
CONFIG_RCU_EXPERT=y
CONFIG_RCU_FAST_NO_HZ=y
CONFIG_RCU_BOOST=y
CONFIG_RCU_NOCB_CPU=y

According to gki commit e9b2f28785 ("ANDROID: GKI: enable RCU configs")
and commit c8701aa0a7 ("ANDROID: GKI: enable RCU_BOOST").

Change-Id: I441a203ffa85bff6eec244f1059faf8f97652ae0
Signed-off-by: Liang Chen <cl@rock-chips.com>
2023-10-18 14:31:10 +08:00
Cai YiWei
7a20185e35 ARM: dts: rockchip: rv1106g-evb2-v12-wakeup add rtt for isp node
Change-Id: I3f185b0ea825ff6d9c9f0c1153417d79b95a0c17
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
2023-10-18 12:01:00 +08:00
Wang Panzhenzhuan
6e83090a68 arm64: dts: rockchip: rk3562-evb1-cam: add dw9714 supply control
Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
Change-Id: I8a01f184fdf6d743d87c94c9fe495c78d61e89c6
2023-10-18 10:02:57 +08:00
Cai YiWei
95d54529d9 media: rockchip: isp: fix resume hold by lut error
Change-Id: I04264da03ac709963f8b50d18015cccc37daf141
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2023-10-18 10:01:12 +08:00
Cai YiWei
8f9f8dc62d media: rockchip: isp: suspend resume with rtt
Change-Id: Ibc86e518c3c464950d41166401c5ba2d9ee6c613
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2023-10-18 09:59:36 +08:00
Mingwei Yan
9414fed2b7 media: rockchip: isp: pm add call sensor s_power
Change-Id: Ic04794a6b00845b21ee0f098fea119ebde0fae71
Signed-off-by: Mingwei Yan <mingwei.yan@rock-chips.com>
2023-10-18 09:46:59 +08:00
Caesar Wang
803cb50485 arm64: dts: rockchip: update rk3568-evb1-ddr4-v10-dual-lvds relevant files
In order to add a rk3568-evb1-ddr4-v10-dual-lvds-linux.dts to support
linux dts, slightly more relevant file for better readability.

Change-Id: I5b5396aa6bf084b8eacfcff088c3478a00b83aaf
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
2023-10-17 15:06:40 +08:00
Lan Honglin
2741107719 ARM: dts: rockchip: add rv1106g-4k dts
support isp unite mode

Change-Id: I27d61555dd7faed85cb33de87818412e4e5dc570
Signed-off-by: Lan Honglin <helin.lan@rock-chips.com>
2023-10-16 18:53:27 +08:00
Luo Wei
734c046668 arm64: dts: rockchip: rk3588-vehicle-evb-v22: enable uboot logo again
Signed-off-by: Luo Wei <lw@rock-chips.com>
Change-Id: I2d001583f95b61bef35a8d6e27220a7591ff5ee7
2023-10-16 18:50:45 +08:00
Su Yuefu
b3f515deea media: i2c: sc200ai support normal boot
Signed-off-by: Su Yuefu <yuefu.su@rock-chips.com>
Change-Id: I380f06c4711fddc180761bf51a00a5b6be2d1739
2023-10-16 18:48:52 +08:00
Su Yuefu
7f673187a4 media: i2c: sc2336: fix gain table error
Signed-off-by: Su Yuefu <yuefu.su@rock-chips.com>
Change-Id: I73fda7901bfd960bceb56ed1da11ec40b57b3e70
2023-10-16 18:48:37 +08:00
Cai YiWei
30c7740c9b media: rockchip: isp: support suspend and resume
Change-Id: I92e73c82b389d75f9df0f804a950bcaec679fba3
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2023-10-16 15:45:23 +08:00
Zefa Chen
7fe4c669e7 media: rockchip: isp: add RKISP_VICAP_CMD_QUICK_STREAM CMD
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I37f52db2ac2a1a72e1ddc046d37db104e2d76d00
2023-10-16 15:45:23 +08:00
Huibin Hong
6b0bd5e6b2 soc: rockchip: minidump: add backup of addr in phdr and shdr
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
Change-Id: I45b794b9f0d72a1520f3f259b1783bfac52d2f18
2023-10-16 15:38:10 +08:00
XiaoDong Huang
718244e83a ARM: rockchip: rv1106: sleep: save/restore pvtpll cru
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
Change-Id: I7bdfc573aa9d79da2b4305197d05cab50b25926c
2023-10-16 11:09:20 +08:00
Jon Lin
b5a6305b8b mtd: nand: bbt_store: Add mechanisms to protect bad block tables
1.Add hash check
2.Add anti-shake mechanism to avoid damaging the bad block tables
3.Add anti-shake mechanism to optimize the reliability of bad block table

Change-Id: I468b1463677b8538c79b4ef1523ef96125f4d711
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2023-10-13 18:11:45 +08:00
Jon Lin
eb14307d6e drivers: rkflash: Add mechanisms to protect bad block tables
1.Add hash check
2.Add anti-shake mechanism to avoid damaging the bad block tables
3.Add anti-shake mechanism to optimize the reliability of bad block table

Change-Id: I888ceba54e5bbc55283850316e27560c484a9cf5
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2023-10-13 18:11:45 +08:00
Lan Honglin
2a81ace15b ARM: rv1106-evb.config: enable CONFIG_VIDEO_IMX415
Change-Id: I1d95a5dcd884ebcab8ce35912735fd670fc32724
Signed-off-by: Lan Honglin <helin.lan@rock-chips.com>
2023-10-13 17:27:45 +08:00
Lan Honglin
5848058172 ARM: dts: rockchip: rv1106-evb-cam: imx415 support 2lane
Change-Id: I3702ee0d443270fadb5a87ea55bf9c86d90752f2
Signed-off-by: Lan Honglin <helin.lan@rock-chips.com>
2023-10-13 17:24:39 +08:00
Lan Honglin
6602d7e5d3 media: i2c: imx415: support 2lane
Change-Id: Id1bc53d85bf84067ee10aca67eb0ad22a0b4b574
Signed-off-by: Lan Honglin <helin.lan@rock-chips.com>
2023-10-13 17:23:21 +08:00
Sugar Zhang
28b543390d arm64: configs: rockchip_linux: Update by savedefconfig
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Id9d91c28028de621bd404c166e1bf3ea2be60fe9
2023-10-13 17:18:18 +08:00
Sugar Zhang
227f34f488 dmaengine: pl330: Fix pos calculation on interleaved dma
bytes_requested should use the full buffer size which
include ICG(inter-chuck-gap) size.

Fixes: 0eba9f8ec0 ("dmaengine: pl330: Add support for interleaved transfer")

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Ib0bb5a55abaea306071d96e76d219de942b151b4
2023-10-13 17:11:08 +08:00
Sugar Zhang
7a0fb5c1b7 ASoC: rockchip: i2s: Use device_property_* API
Compatible for DT and ACPI system.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I8472f725aaa326d9a1aff194c877684195f2d1f0
2023-10-13 17:00:58 +08:00
Zefa Chen
4bec8d1720 media: rockchip: vicap add support format of RGB888 with different order
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I05728f94cadcfaeffd27d72ee78206bd7108d7e9
2023-10-13 17:00:36 +08:00
Lan Honglin
81514e2796 ARM: dts: rockchip: rv1106-evb-cam: add imx415
Change-Id: I1761b18a6c8065444a11c148ad548127abcdd328
Signed-off-by: Lan Honglin <helin.lan@rock-chips.com>
2023-10-13 16:52:07 +08:00
Jianwei Fan
b20479e4ad media: i2c: lt8619c: set default timings when driver probe
Change-Id: I6410534620a6485dc903603819119ce1326ec253
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
2023-10-13 16:13:10 +08:00
Cai YiWei
49f48fd37e media: rockchip: isp: fix image effect for rv1106 4k
Change-Id: I122716e3a97fc802c8ca736428a82b0483f88ed9
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2023-10-13 16:03:36 +08:00
Johnson Ding
372c139dee video: rockchip: mpp: fix JPEG Enc dma sync problem
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com>
Change-Id: I5947652b7291cd997ee4555c89942a0bd7af53c1
2023-10-12 18:16:07 +08:00
Wangqiang Guo
89b28f5bba arm64: rockchip_gki.config: enable icm4260x sensor.
support RK3588-EVB7

Change-Id: I1b365c1bf344a1cd106ae6ba55c1a177cb759861
Signed-off-by: Wangqiang Guo <kay.guo@rock-chips.com>
2023-10-12 16:56:41 +08:00
Wangqiang Guo
206d4855f1 arm64: rockchip_defconfig: enable icm4260x sensor.
support RK3588-EVB7

Change-Id: I1899ae8f1bc8b102a68bd7b00ca9d698760f8f19
Signed-off-by: Wangqiang Guo <kay.guo@rock-chips.com>
2023-10-12 16:46:32 +08:00
Rimon Xu
3b4cfe2dae video: rockchip: vtunnel: fix compile errors on android 14
Change-Id: If3ef85ec97616507a337fa8a898155b80397f9f2
Signed-off-by: Rimon Xu <rimon.xu@rock-chips.com>
2023-10-12 16:41:38 +08:00
Huibin Hong
0b926bd8dd fiq_debugger: set uart irq no balancing
When IRQ BALANCING is enable, the log below is show:

fiq_debugger:cpu 0 not responding,reverting to cpu 6

Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
Change-Id: Ic5a1786ecb72dc4b28e9b9fa8428065e111e55ee
2023-10-12 16:35:59 +08:00
Damon Ding
8f518bafab arm64: dts: rockchip: rk3588s-evb3: disable gt1x in bt1120 display board
The pins of gt1x and sii9022 are multiplexed.

In addition, add support for bt656 by the same display
ext board.

Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: I9164bd0a354a215cf5e04eec99946714c0638465
2023-10-12 11:34:36 +08:00
Jianwei Fan
81b6116b24 arm64: dts: rockchip: rk3568-evb: fix gc8034 power domain config
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: I2c21854981952f5784de077f397bd1469835abe2
2023-10-12 11:09:10 +08:00
Shawn Lin
a095b98601 PCI: rockchip: dw: remove .link_up() hook from struct dw_pcie_ops
[2.353901] rk-pcie 3c0000000.pcie Link up. LTSSM is 0x1
[2.354036] rk-pcie 3c0000000.pcie: PCI host bridge to bus 0000 :00
[2.354058] pci_bus 0000:00: root bus resource [bus 00-0f]
[2.354074] pci_bus 0000:00: root bus resource [??? 0x4000000-0xf40fffff flags 0x0]
...

The original link event is checking LTSSM and ensure it's in L0. However
enabling ASPM will make accessing config space failed. So commit
824c99261a ("PCI: rockchip: dw: Update link up check state") remove the LTSSM
check. But it introduce a situation that if link still in training and host
bridge tries to enumerate slot, it will fail unexpectedly. Fix this by removing
rk_pcie_link_up and let dwc core use its own port logic to decide the link state.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: I41f05a8aa89ac33782d569ffa7d466cf95981c68
2023-10-11 19:45:33 +08:00
shengfei Xu
ccaa5a7183 regulator: rk806: delete the PLDO6 enable/disable interface
The PLDO6 must be always on. if the PLDO6 is off, the PMIC
will be abnormal.

Signed-off-by: shengfei Xu <xsf@rock-chips.com>
Change-Id: I5c2cf8f0d2ba3cb08cd7538d998857d8c2db55f2
2023-10-11 19:40:21 +08:00
Zhang Yubing
07f45d2725 mfd: rkx110_x120: change panel device and driver name
In the display-serdes panel driver, it has the same name
"serdes-panel" as rkserdes panel device. When register
rkserdes panel device, it may mismatch to the display-serdes
panel driver. To avoid this issue happen, change the rkserdes
panel device name. For the same reason, change the rkserdes
panel driver name.

Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
Change-Id: Ic146472c40252b3e55b2d46f1a6bfd099eb013c3
2023-10-11 19:32:06 +08:00
Wu Liangqing
da65c04d60 arm64: dts: rockchip: remove androidboot bootargs for px30/rk3326 boards
Signed-off-by: Wu Liangqing <wlq@rock-chips.com>
Change-Id: Ifb5eda4386ae04b298434c4e1d175eed941c4278
2023-10-11 19:28:04 +08:00
Yu Qiaowei
4bbe1970ad video: rockchip: rga2: add hardware time-consuming printing
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: I780056e58892cf9c265026119ebbe0c6eb3dc75d
2023-10-11 19:13:04 +08:00
Wang Xiaobin
180ac760c9 media: i2c: gc2093: get camera param from cam-tb-setup
Signed-off-by: Wang Xiaobin <xb.wang@rock-chips.com>
Change-Id: I733f612f413a788beee7c1acbe02462dcefb2dc1
2023-10-10 19:34:31 +08:00
Wang Xiaobin
2604a38ab4 media: i2c: add cam-tb-setup
Thunder boot related camera parameters.

Signed-off-by: Wang Xiaobin <xb.wang@rock-chips.com>
Change-Id: I221e22041677325842a3d192c232fbff9d1bc992
2023-10-10 19:34:16 +08:00
Wangqiang Guo
bbe13f289f input: sensors: add icm4260x driver.
Change-Id: Ic1951c136bb81c0a93229e75e39605303cef3105
Signed-off-by: Wangqiang Guo <kay.guo@rock-chips.com>
2023-10-10 19:31:16 +08:00
Yandong Lin
de1cbb0ebd video: rockchip: mpp: fix iommu fault irq triggered repeatedly
Add mask iommu irq in iommu fault handle func to prevent iommu trigger
pagefault repeatedly.

Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Change-Id: I11c9b918e3a9c3af576b7f82cbdc7dbeb960dbd8
2023-10-10 19:01:52 +08:00
Yandong Lin
ca7fd65693 video: rockchip: mpp: rkvenc2: optimize iommu fault handle
1. There are two rkvenc cores and share a iommu domain. When they work at
the same time, the arg with iommu fault handle will be mismatch with
real device.
So find the real device according to iommu_dev.

2. config appropriate timeout threshold and it can trigger hw timeout
when pagefault.

Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Change-Id: If816e43c9732d6cefc60d80efbaf297001d500ff
2023-10-10 18:55:23 +08:00
Yandong Lin
c51724a2c1 video: rockchip: mpp: vepu2: add iommu fault handle
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Change-Id: If6dac8d783d5b6d3b344ab2f511503af9c322073
2023-10-10 18:54:49 +08:00