Commit Graph

1064721 Commits

Author SHA1 Message Date
Andy Yan
5e364b4473 drm/rockchip: vop2: Add NV21/NV61/NV42 format support
NV21/NV61/NV42 are uv swap format for NV12/NV16/NV24

Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Change-Id: I5bffb542bcaacde38089880e7738ab00e32d27d3
2022-01-10 14:08:34 +08:00
Wyon bi
884b17df32 drm/bridge: analogix_dp: Check return value of analogix_dp_get_max_rx_{bandwidth,lane_count}()
Signed-off-by: Wyon bi <bivvy.bi@rock-chips.com>
Change-Id: I5ab9ddad5afe1ece5da270f59f6ef533540f1cb3
2022-01-10 14:07:24 +08:00
Frank Wang
d9f9fbf0da phy: rockchip: usbdp: add a condition for orien switch registering
Registering orien switch only when "orientation-switch" property
is configured in DT.

Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
Change-Id: Ic2701911583d8ad047d596c3c91ba32b56d62fff
2022-01-10 12:04:24 +08:00
Wang Jie
2cea4f2ea6 arm64: dts: rockchip: rk3588s-tablet: add fusb302 interrupt gpio configuration for uboot
The uboot Type-C PD driver needs to poll the interrupt gpio level,
but the uboot code does not have a suitable interface to convert the
attributes of "interrupt-parent" and "interrupts" to standard gpio,
so add int-n-gpios configure for uboot to analyze and use.

Change-Id: Ib415902f11a35f8f8ee141297a53aa80dbb1cbaa
Signed-off-by: Wang Jie <dave.wang@rock-chips.com>
2022-01-10 12:03:33 +08:00
Andy Yan
72de5a560a drm/rockchip: vop2: Add reset dclk support
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Change-Id: I93399f18c083a3b49eb2a096ea48ff43228490e1
2022-01-08 18:24:03 +08:00
Andy Yan
5fdd23a170 arm64: dts: rockchip: rk3588: Add clk reset reference for vop
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Change-Id: Ifc4250e7a90dc9a9088f483ef163ed575ff8e7ad
2022-01-08 18:17:26 +08:00
William Wu
f1636eb0fd usb: dwc3: fix failed to enter suspend
The dwc3 disable wakeup in runtime resume, it prevent
the PM suspend with the following log on RK3588 EVB1:

[   22.910675][ T1886] PM: suspend entry (deep)
......
[   23.059751][ T1886] Hardware name: Rockchip RK3588 EVB1 LP4 V10 Board (DT)
[   23.059759][ T1886] Call trace:
[   23.059782][ T1886]  dump_backtrace+0x0/0x1c8
[   23.059797][ T1886]  show_stack+0x1c/0x2c
[   23.059813][ T1886]  dump_stack_lvl+0xdc/0x12c
[   23.059825][ T1886]  dump_stack+0x1c/0x64
[   23.059840][ T1886]  __pm_stay_awake+0xb0/0xbc
[   23.059856][ T1886]  ep_poll_callback+0x190/0x2e8
[   23.059872][ T1886]  __wake_up_common+0xc8/0x14c
[   23.059884][ T1886]  __wake_up_sync_key+0x80/0xd0
[   23.059900][ T1886]  sock_def_readable+0x44/0x7c
[   23.059915][ T1886]  netlink_broadcast_deliver+0xa0/0xe0
[   23.059928][ T1886]  do_one_broadcast+0x234/0x434
[   23.059940][ T1886]  netlink_broadcast_filtered+0xd8/0x1e0
[   23.059952][ T1886]  netlink_broadcast+0x1c/0x2c
[   23.059966][ T1886]  uevent_net_broadcast_untagged+0xd0/0x138
[   23.059977][ T1886]  kobject_uevent_env+0x3e8/0x404
[   23.059987][ T1886]  kobject_uevent+0x18/0x28
[   23.060001][ T1886]  device_del+0x290/0x488
[   23.060013][ T1886]  device_unregister+0x1c/0x3c
[   23.060025][ T1886]  wakeup_source_sysfs_remove+0x18/0x28
[   23.060036][ T1886]  wakeup_source_unregister+0x8c/0xa8
[   23.060047][ T1886]  device_init_wakeup+0x94/0xf4
[   23.060063][ T1886]  dwc3_runtime_resume+0x28/0x74
[   23.060076][ T1886]  pm_generic_runtime_resume+0x2c/0x44
[   23.060089][ T1886]  genpd_runtime_resume+0x174/0x234
[   23.060099][ T1886]  __rpm_callback+0x80/0x338
[   23.060112][ T1886]  rpm_resume+0x3e4/0x66c
[   23.060125][ T1886]  __pm_runtime_resume+0x54/0x8c
[   23.060137][ T1886]  genpd_prepare+0x70/0x100
[   23.060148][ T1886]  device_prepare+0x74/0x184
[   23.060158][ T1886]  dpm_prepare+0xb8/0x410
[   23.060169][ T1886]  dpm_suspend_start+0x30/0x1e4
[   23.060180][ T1886]  suspend_devices_and_enter+0xc4/0x338
[   23.060191][ T1886]  enter_state+0x12c/0x3f8
[   23.060201][ T1886]  pm_suspend+0x60/0xcc
......
[   23.067765][ T1886] PM: PM: Pending Wakeup Sources: NETLINK
[   23.067780][ T1886] PM: Some devices failed to suspend, or early wake event detected
[   23.092746][ T1886] OOM killer enabled.
[   23.093099][ T1886] Restarting tasks ... done.
[   23.095953][ T1886] [dhd] dhd_pm_callback: action=4, suspend=0, suspend_mode=0
[   23.096644][ T1886] Abort: Pending Wakeup Sources: NETLINK
[   23.097145][ T1886] PM: suspend exit

Actually, we can enable wakeup in runtime resume when usb
connect, so let's fix it.

Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: I7376fe45fbcbc8210db38ed49600f9ffd101607d
2022-01-08 18:03:57 +08:00
Sugar Zhang
88ebea8839 drm/rockchip: dw_hdmi-rockchip: Restore grf config when resume
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Ic5064f35ab6770298172950258c8b7a632cbac6a
2022-01-08 17:05:26 +08:00
Sandy Huang
ffa7fd92d3 drm/rockchip: vop2: remove VP1 HDR10 support for RK3588
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I7b7d353c6ec1016f94d13fff418034412807e20c
2022-01-08 14:50:11 +08:00
Shunhua Lan
a33052cd79 ASoC: es8323: cache sync registers when doing suspend/resume
Signed-off-by: Shunhua Lan <lsh@rock-chips.com>
Change-Id: I88df09eb772fe2d59dc531974859a9b2a081bcbd
2022-01-07 14:02:25 +08:00
Andy Yan
9d6f377603 drm/rockchip: Add a virtual connector driver
Register a virtual drm connector driver to
replace the real hardware connector like HDMI/DP/MIPI.

This can be used for some vop test.

When a virtual connector is enabled, the corresponding
real hardware connector should be disabled.

Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Change-Id: Ic10436e97208cafe3013a4ff800c9b4168bf6e7e
2022-01-07 11:36:18 +08:00
Finley Xiao
b3e993c5f9 soc: rockchip_system_monitor: Add support to parse scmi clk and read margin
Ensure that the device registers system monitor successfully when use
scmi clk or read margin, so that the volt_adjust_mutex is available.

Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: Ieecaa763f0c423658259a05d9f843c7860673e44
2022-01-07 11:24:32 +08:00
Wang Panzhenzhuan
88ff21e756 arm64: dts: rockchip: rk3588s-evb1-lp4x-v10-camera: add ov50c40 configs
Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
Change-Id: I8deefe32a3326560b658f2a1b5f8b37e68184bf2
2022-01-07 11:06:31 +08:00
Zhen Chen
3f89b26931 MALI: rockchip: upgrade bifrost DDK to g10p0-01eac0, from g9p0-01eac0
Change-Id: If5e4683a1da37e00eeaa5a16463206f6f45ecfb4
Signed-off-by: Zhen Chen <chenzhen@rock-chips.com>
2022-01-07 11:05:37 +08:00
Shawn Lin
c3ad28a4aa PCI: rockchip: dw: Force reset link for standard RC
If the devices had been used by firmware and the resource had
been assigned to them but not from the kernel. It won't work for all
as not all devices allowed to reassign resource except for reset it.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: Ica9ff9f52e1099aafdc03ae686788f8d8818ddd0
2022-01-07 10:51:19 +08:00
Weixin Zhou
e0a08d9c40 arm64: dts: rockchip: rk3588 boards: add wakeup-source for rtc hym8563
Signed-off-by: Weixin Zhou <zwx@rock-chips.com>
Change-Id: I84ff00c0089309418c884a5716db40adec48546d
2022-01-07 10:02:16 +08:00
Guillaume Tucker
eb98d6c9f9 UPSTREAM: rtc: hym8563: enable wakeup when applicable
Enable wakeup in the hym8563 driver if the IRQ was successfully
requested or if wakeup-source is set in the devicetree.

As per the description of device_init_wakeup(), it should be enabled
for "devices that everyone expects to be wakeup sources".  One would
expect this to be the case with a real-time clock.

Tested on rk3288-rock2-square, which has an IRQ configured for the
RTC.  As a result, wakeup was enabled during driver initialisation.

Change-Id: I1e0c3f99d38c84ba7e6c15bf8919a3f30289e7ae
Fixes: dcaf038493 ("rtc: add hym8563 rtc-driver")
Reported-by: kernelci.org bot <bot@kernelci.org>
Signed-off-by: Guillaume Tucker <guillaume.tucker@collabora.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/1ea023e2ba50a4dab6e39be93d7de3146af71a60.1604653374.git.guillaume.tucker@collabora.com
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
(cherry picked from commit c56ac7a0f4)
2022-01-07 09:52:39 +08:00
XiaoDong Huang
e5f9e39692 arm64: dts: rockchip: rk3588-rk806-dual: enable vcc_3v3_s3 in suspend
RTC's power is from vcc_3v3_s3.

Change-Id: Id641a9fcb431f107c10ec92ce9b33a78c1e2a494
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
2022-01-07 09:51:33 +08:00
Li Huang
7a7e0d4b84 video: rockchip: rga3: Add missing judge for dma_buf
Signed-off-by: Li Huang <putin.li@rock-chips.com>
Change-Id: Icaf9a533ad1ad67b89d502391f6a6f4e31124c51
2022-01-06 14:30:45 +08:00
William Wu
ed0b5065fc phy: rockchip: inno-usb2: fix iddig configuration for rk3588
This patch sets iddig_en to 1 for RK3588 USB3_0 and
USB3_1 by default, then it can handle the id irq in
rockchip_usb2phy_irq() if the mode is USB_DR_MODE_HOST
when the PD_BUS is power off.

Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: Ifee1155c72eead4d9faf74b7808c4dd2f6f719eb
2022-01-06 14:30:01 +08:00
Cai YiWei
f6f8dba33e media: rockchip: isp/ispp to version v1.8.0
Change-Id: Ibabaa8c0f7dfb9f6ad6e75a0f556d8d28a1a13aa
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2022-01-06 14:28:57 +08:00
Cai YiWei
e2353386e7 media: rockchip: isp: fix CSI2RX_DATA_IDS_1 config err
Change-Id: I2c552fd3cc291cbaa62804294752b2054efeaa63
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2022-01-06 14:27:22 +08:00
Algea Cao
3378249bc2 phy: rockchip-samsung-hdptx-hdmi: Deassert hdmi phy rst when probe
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: I4f9e0134e5d7eee48492b397622840f1548fe919
2022-01-06 10:00:21 +08:00
Li Huang
2b456d3acd video: rockchip: rga3: Add support for rga load by hrtimer
Add debugger node to show rga load

Signed-off-by: Li Huang <putin.li@rock-chips.com>
Change-Id: Ie7f5facc94db7ccaef2f61490b6951d0c614cb30
2022-01-05 19:16:37 +08:00
Yu Qiaowei
2777810757 video: rockchip: rga3: When current->mm is not needed, don’t get it.
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: I27b09ff0d0470880897783ef2c4d488e1459df37
2022-01-05 15:49:06 +08:00
Yu Qiaowei
5bfd3a9293 video: rockchip: rga3: Use spin_lock_irq to protect read registers
When the ‘reg’ of the debugger is turned on, since the RGA has been
executed, after turning off the pd in the interrupt, the register
may continue to be read.

Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: Ic23e5e5bfe879ea6879a9322972500988415966d
2022-01-05 15:48:50 +08:00
XiaoDong Huang
85180d359d arm64: dts: rockchip: rk3588-rk806-single: adjust power state in suspend
1. on vdd_log_s0, vcc_3v3_s3.
2. off vdd_ddr_s0, vcc_1v8_s0, vdd_ddr_pll_s0.

Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
Change-Id: Ife796d82626e2f2c319588b98d1f39d4ba7ad225
2022-01-05 15:35:27 +08:00
Jianqun Xu
8bda65645d dma-buf: dma-buf-cache: fix error condition for cache fail
Fixes: 43d1db61b0 ("dma-buf: dma-buf-cache: fix error case for attach / detach")

Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: Idc5a052bb3c2ee1c3ae45dbeac8d57178595a22f
2022-01-05 15:34:25 +08:00
Guochun Huang
a6a2d02704 phy: rockchip: mipi-dcphy: correct lanes number configuration errors
Change-Id: I05f5fe5605ae3642c386c416557bebafd6e8b8c4
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
2022-01-05 15:33:01 +08:00
Guochun Huang
69afc70624 drm/rockchip: dsi2: standby vop2 before dsi2 change from ds to cmd mode
standby vop2 to ensure dsi2 core not busy when DSI2_MODE_CTRL
change from data stream to command mode.

Change-Id: Id46d1a199ae1b9421b61622dd9fca6dda08c2781
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
2022-01-05 15:33:01 +08:00
shengfei Xu
287dac0f05 arm64: dts: rockchip: rk3588-rk806: fix the spi2_cs1 iomux
relative log:
[    2.257040] rockchip-pinctrl pinctrl: pin gpio0-8 already requested by feb20000.spi; cannot claim for 8-0051
[    2.257046] rockchip-pinctrl pinctrl: pin-8 (8-0051) status -22
[    2.257051] rockchip-pinctrl pinctrl: could not request pin 8 (gpio0-8) from group hym8563-int  on device rockchip-pinctrl
[    2.257056] rtc-hym8563 8-0051: Error applying setting, reverse things back
[    2.257064] rtc-hym8563: probe of 8-0051 failed with error -22
[    2.258247] usbcore: registered new interface driver uvcvideo

Signed-off-by: shengfei Xu <xsf@rock-chips.com>
Change-Id: I132203508f595063a5231a1f69fddbbe1287e0b4
2022-01-05 15:19:11 +08:00
Wu Liangqing
a3fbc69a1e arm64: dts: rockchip: rk3588s-evb1: enabled pwm ir
Signed-off-by: Wu Liangqing <wlq@rock-chips.com>
Change-Id: I80bf9dae575a5dba6c4e67bcef927f78f751b840
2022-01-05 15:18:25 +08:00
Weixin Zhou
499a568090 arm64: dts: rockchip: rk3588s-tablet-rk806-single: adjust some configs
Signed-off-by: Weixin Zhou <zwx@rock-chips.com>
Change-Id: I48b73e8fa5e231c49afee4465040c3c12faee860
2022-01-05 15:07:08 +08:00
Huang zhibao
15cd5ed71c arm64: dts: rockchip: Disable CPU_SLEEP idle state on rk3588-nvr
Signed-off-by: Huang zhibao <hzb@rock-chips.com>
Change-Id: I54dd5e717941192980b0ae8ae03d26432eb17d45
2022-01-05 14:41:52 +08:00
Jianqun Xu
9cff33671f drm/rockchip: free loader memory in rockchip_drm_fb_destroy()
Fix a remap issue caused by memory space leak:
 iova: 0x00000000edf00000 already mapped to 0x00000000edf00000 cannot remap to phys: 0x00000000098c1000 prot: 0x3
 [drm:rockchip_gem_iommu_map] ERROR failed to map buffer: size=0 request_size=68685824
 [drm:rockchip_gem_prime_import_sg_table] ERROR failed to import sg table: 12

Change-Id: I42f1ebb60391f81a83e34a779cf12e0f0e4386a7
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
2022-01-05 14:32:30 +08:00
William Wu
677567ee71 phy: rockchip: inno-usb2: reduce suspend power consumption for rk3588
This patch aims to reduce the power consumptiom of usb2 phys
for rk3588. For lowest power consumption, we set the phy1/2/3
enter IDDQ mode by default in uboot spl stage.

IDDQ mode power consumption:
AVCC_1V8_S0 : 0.2mA (0.05mA per phy)
AVDD_0V75_S0: 0.2mA (0.05mA per phy)
VCC_3V3_S0  : 0.2mA (0.05mA per phy)

In kernel, we needs to set the phy exit from IDDQ mode and
reset the phy to enter normal mode firstly. We use suspend
mode instead of IDDQ mode for dynamic power management,
because IDDQ mode will power down all analog blocks and that
cause the usb controllers working abnormally.

Suspend mode power consumption:
AVCC_1V8_S0 : 12.5mA (3.125mA per phy)
AVDD_0V75_S0: 10.3mA (2.575mA per phy)
VCC_3V3_S0  : 0.2mA  (0.050mA per phy)

For Type-C0 USB OTG mode, set phy suspend control from GRF,
it can help to reduce the suspend power consumption:
AVCC_1V8_S0  : reduce 5.1mA
AVDD_0V75_S0 : reduce 4.6mA

Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: I610b95f9bb6da38d25ed2e78b0a87dcb4db8cc38
2022-01-05 14:23:20 +08:00
William Wu
ee2c3f8035 arm64: dts: rockchip: rk3588: add reset for usb2 phys
Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: I674f27e5a01f6fa214b015c3e23d02ddf9557a99
2022-01-05 14:23:20 +08:00
Yu Qiaowei
93c256335b video: rockchip: rga3: Fix wrong scaling check
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: I3159ef8c8a7a425e0106666477b0b5eaa6131d7d
2022-01-05 11:44:03 +08:00
Kever Yang
3a3bde59ba arm64: defconfig: Enable CONFIG_PCIEASPM_POWERSAVE
Enable Low power mode for PCIE by default, the PCIe subsystem will enter
L0s/L1 under hardware control.

Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Change-Id: I9558587f23cf6b4f852ca6b5d1ab5a9f9eb014ca
2022-01-04 20:14:00 +08:00
Kever Yang
824c99261a PCI: rockchip: dw: Update link up check state
PCIe Link up state is not only L0(0x11), but also other state like L0s,
L1 and etc.

Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Change-Id: I9b04d01ea38be6423c214f6cb474d045dff235d5
2022-01-04 20:14:00 +08:00
Steven Liu
79b9c780ba serial: 8250: fix programmable transmit interrupt mode
fix __do_stop_tx IER clear UART_IER_PTIME bit.

Fixes: e480347688 ("serial: 8250: enable Programmable THRE Interrupt for tx")
Signed-off-by: Steven Liu <steven.liu@rock-chips.com>
Change-Id: Ie82bdb4dc7cb35ada9cd422e575412eb63d5bf45
2022-01-04 19:19:37 +08:00
Jianqun Xu
a6a0e30750 drm/rockchip: gem: put object unlock for get phys ioctl
fix warning as following
[   24.485312] ------------[ cut here ]------------
[   24.485348] WARNING: CPU: 0 PID: 468 at drivers/gpu/drm/drm_gem.c:1009 drm_gem_object_put_locked+0x30/0x50
[   24.485355] Modules linked in:
[   24.485367] CPU: 0 PID: 468 Comm: rk_mpi_mmz_test Not tainted 5.10.66 #40
[   24.485372] Hardware name: Rockchip RK3588 EVB1 LP4 V10 Board (DT)
[   24.485380] pstate: 40400009 (nZcv daif +PAN -UAO -TCO BTYPE=--)
[   24.485388] pc : drm_gem_object_put_locked+0x30/0x50
[   24.485395] lr : drm_gem_object_put_locked+0x28/0x50
[   24.485400] sp : ffffffc0151abc10
[   24.485405] pmr_save: 000000e0
[   24.485410] x29: ffffffc0151abc10 x28: 0000000000000008
[   24.485419] x27: 0000000000000008 x26: 0000007fc80811b8
[   24.485428] x25: 00000000c0086444 x24: ffffffc0151abd28
[   24.485437] x23: ffffffc01064dab0 x22: ffffff8005bf0400
[   24.485446] x21: 0000000000000031 x20: 0000000000000000
[   24.485455] x19: ffffff8005bf0000 x18: 0000000000000000
[   24.485464] x17: 0000000000000000 x16: 0000000000000000
[   24.485472] x15: 0000000000000000 x14: 0000000000000000
[   24.485481] x13: 0000000000000000 x12: 0000000000000000
[   24.485489] x11: 0000000000000000 x10: ffffff8005bf0458
[   24.485498] x9 : 0000000000000000 x8 : ffffff8005bf0438
[   24.485507] x7 : 0000000000000000 x6 : 0000000000000000
[   24.485515] x5 : ffffffc011a0a808 x4 : 0000000000000000
[   24.485523] x3 : 0000000000000004 x2 : ffffff800b57a000
[   24.485532] x1 : fffffffeffe00000 x0 : 0000000000000000
[   24.485541] Call trace:
[   24.485549]  drm_gem_object_put_locked+0x30/0x50
[   24.485556]  rockchip_gem_get_phys_ioctl+0x70/0xac
[   24.485563]  drm_ioctl_kernel+0x94/0x100
[   24.485569]  drm_ioctl+0x30c/0x34c
[   24.485577]  vfs_ioctl+0x58/0x68
[   24.485583]  __arm64_sys_ioctl+0x68/0x98
[   24.485591]  el0_svc_common.constprop.5+0x138/0x1ec
[   24.485597]  do_el0_svc+0x80/0x9c
[   24.485605]  el0_svc+0x1c/0x28
[   24.485611]  el0_sync_handler+0x64/0x12c
[   24.485618]  el0_sync+0x158/0x180

Fixes: a430ff906a ("drm/rockchip: gem: Add GEM create ioctl support")
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: I39be4c5dd952c49d86f51b5abce790090d80294f
2022-01-04 19:07:18 +08:00
ZhiZhan Chen
4ef7101b3a arm64: dts: rockchip: Add drm-logo memory-region for rk3588-linux
Signed-off-by: ZhiZhan Chen <zhizhan.chen@rock-chips.com>
Change-Id: Ibe7c63314e06c225f96dc991c902ee8bce079485
2022-01-04 16:40:20 +08:00
Shawn Lin
1bf109c3d0 PCI: rockchip: dw: Set #PERST to low after suspend
As we don't do it in resume routine, so in order to be better
compatibale with devices, set it to low.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: I0613e05f6d35ba7def7eedd902cfaff73d716952
2022-01-04 15:00:03 +08:00
Cai YiWei
9f5cb077de media: rockchip: isp: add csm params config for isp3
Change-Id: I87732e4f6ce0bcc936e919ed82b2dad62ec25639
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2022-01-04 14:45:47 +08:00
Wang Panzhenzhuan
2861e20508 arm64: dts: rockchip: rk3588s-tablet: adapt to camera hw power modification
tablet's camera hardware power has been modified,
modify configs to adapt it.

Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
Change-Id: Ibc1804c9a1730a8b9d32dafe4cdcb722f603d7a2
2022-01-04 14:29:48 +08:00
Lian Xu
fdee9ffb97 media: rockchip: ispp: add the iqtool module
Change-Id: I12bebaf79c5ed7de61d1869819b96b22c5b7ff3b
Signed-off-by: Lian Xu <xu.lian@rock-chips.com>
2022-01-04 14:28:28 +08:00
Lian Xu
2550f7a43d media: rockchip: isp: add the iqtool module
Change-Id: Icf3a383e8dba6ea79ce112ddb32c194d70c3fb3a
Signed-off-by: Lian Xu <xu.lian@rock-chips.com>
2022-01-04 14:27:19 +08:00
Shawn Lin
239dd93442 PCI: rockchip: dw: Enable async system PM for multiports SoC
Individual port can be suspended or resumed separately.
This can save some time for resuming from deep sleep if
multiports are used.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: I44ed4a4a5cbda46425bce13a15809f68856d2174
2022-01-04 10:52:02 +08:00
Herman Chen
4fecb7a4a5 video: rockchip: mpp: Fix mpp_dev_release crash
This patch fix crash in mpp_dev_release.
In multi-instance case the session on deinit is attached to session_detach
and trigger the taskqueue to release session. But the session is
released just after unlock and before trigger then the session and
invalid and the session->mpp is also invalid.

The crash log is shown below:

[71267.807643] Call trace:
[71267.810099]  do_raw_spin_lock+0x20/0xd8
[71267.813937]  _raw_spin_lock_irqsave+0x28/0x38
[71267.818292]  kthread_queue_work+0x2c/0x80
[71267.822298]  mpp_dev_release+0x118/0x154
[71267.826219]  __fput+0xf4/0x1a8
[71267.829272]  ____fput+0x20/0x2c
[71267.832409]  task_work_run+0x88/0xb0
[71267.835982]  do_notify_resume+0xe8/0x10c
[71267.839902]  work_pending+0x8/0x10
[71267.843306] Code: aa1e03e0 d503201f 5289d5a0 72bbd5a0 (b9400661)
[71267.849396] ---[ end trace d8082e9114a3a9da ]---

Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: Ib9825de2f1bc9f7999bdfe193aa440fd85d41448
2022-01-04 09:55:19 +08:00