Commit Graph

1256058 Commits

Author SHA1 Message Date
Liang Chen
9fd9fb1e7b drm/rockchip: vop: fix error for memcpy of vop regs
It will cause an error when use memcpy(), so use for(;;) instead, and
need find out the root cause later.

For upstream reference: 76f1416e64 ("drm/rockchip: Do not use memcpy for
MMIO addresses")

For px30, the reg len is 0x1fc, this will trigger a none 8 byte alignment
address in _memcpy.

Error log when use memcpy() as below:

vop_power_enable regsbak: 0xffffff80050ad040 regs: 0xffffffc00a85d000 len: 0x1fc
Unable to handle kernel paging request at virtual address ffffffc00a55d1bc
Mem abort info:
  ESR = 0x0000000096000021
  EC = 0x25: DABT (current EL), IL = 32 bits
  SET = 0, FnV = 0
  EA = 0, S1PTW = 0
  FSC = 0x21: alignment fault
Data abort info:
  ISV = 0, ISS = 0x00000021
  CM = 0, WnR = 0
swapper pgtable: 4k pages, 39-bit VAs, pgdp=0000000001cc4000
[ffffffc00a55d1bc] pgd=100000007ffff003, p4d=100000007ffff003, pud=100000007ffff003, pmd=1000000002d7c003, pte=00680000ff460713
Internal error: Oops: 0000000096000021 [#1] PREEMPT SMP
Modules linked in:
CPU: 2 PID: 112 Comm: recovery Not tainted 6.1.25 #1091
Hardware name: Rockchip PX30 evb ddr3 board (DT)
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : __memcpy+0x168/0x250
lr : vop_initial+0x218/0x9e8
sp : ffffffc00ab1b920
x29: ffffffc00ab1b920 x28: 000000000000032a x27: ffffff8006611780
x26: ffffff80033f3c00 x25: ffffffc00994d6ac x24: ffffff8002eae010
x23: ffffff80033f3c18 x22: 00000000000002d0 x21: ffffff8004938100
x20: ffffffc009979341 x19: ffffff8004ae0040 x18: ffffffffffffffff
x17: 0000000000000000 x16: 00000000000000c0 x15: 0000000000000004
x14: 0000000000000000 x13: 0000000000000000 x12: 0000000000000000
x11: 0000000000000000 x10: 0000000000000000 x9 : 0000000000000000
x8 : 0000000000000000 x7 : 0000000000000000 x6 : 0000080000000000
x5 : ffffff8005e0ca3c x4 : ffffffc00a55d1fc x3 : ffffff8005e0c9c0
x2 : ffffffffffffffec x1 : ffffffc00a55d1c0 x0 : ffffff8005e0c840
Call trace:
 __memcpy+0x168/0x250
 vop_crtc_atomic_enable+0x120/0x2c30
 drm_atomic_helper_commit_modeset_enables+0x50/0x268
 rockchip_drm_atomic_helper_commit_tail_rpm+0x48/0x190
 commit_tail+0x108/0x1f4
 drm_atomic_helper_commit+0x204/0x220
 drm_atomic_commit+0xa0/0xc8
 drm_atomic_helper_set_config+0x60/0xdc
 drm_mode_setcrtc+0x29c/0x6cc
 drm_ioctl+0x248/0x3b8
 drm_compat_ioctl+0xd8/0xe8
 __arm64_compat_sys_ioctl+0x14c/0x168
 invoke_syscall+0x3c/0xfc
 el0_svc_common+0xb8/0x160
 do_el0_svc_compat+0x18/0x20
 el0_svc_compat+0x24/0x8c
 el0t_32_sync_handler+0x70/0xa8
 el0t_32_sync+0x17c/0x180

Change-Id: I4e13298e66797df39233b91a3163c156a4e175bc
Signed-off-by: Liang Chen <cl@rock-chips.com>
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
2023-10-19 14:17:17 +08:00
Frank Wang
ebb7b1b888 usb: dwc3: fix failed to reset device for otg host after PM resume
With upstream commit 649f5c842b ("usb: dwc3: core: Host wake up
support from system suspend"), if the device set to wakeup capable,
dwc3_resume_common() will skip core init that would be caused the
device reset failed after PM resume time.

The above upstream changes also delete the wake up flag set in
dwc3_runtime_suspend()/dwc3_runtime_resume(), so keep in line with it.

Change-Id: If5f06c0d19e123cf907f0fc3294a6ba708a8fd35
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
2023-10-17 14:39:44 +08:00
Frank Wang
9e78a311c7 usb: host: xhci: fix skip phy init quirk
Previously, in commit a811f07f45 ("usb: host: xhci: skip phy init
quirk can configure in dt"), Rockchip added "quirk-skip-phy-init"
quirk to configure the property in DT, however, upstream commit
8e10548f7f ("Revert "usb: host: xhci: mvebu: make USB 3.0 PHY
optional for Armada 3720") changed the condition later that makes
the quirk became ineffectual. So fix it.

Fixes: a811f07f45 ("usb: host: xhci: skip phy init quirk can configure in dt")
Change-Id: If5acf77731532ab6bb19098ac8d435aaeb0b3a10
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
2023-10-17 14:38:42 +08:00
Shunhua Lan
1f1b8d8c4c ARM: dts: rockchip: change property rockchip i2s
rockchip,clk-trcm = <1> to rockchip,trcm-sync-tx-only
rockchip,clk-trcm = <2> to rockchip,trcm-sync-rx-only
remove rockchip,clk-trcm = <0> because of it's the default

Signed-off-by: Shunhua Lan <lsh@rock-chips.com>
Change-Id: I3c9756d17f9d61360688848ede695c06912b50dc
2023-10-16 10:18:49 +08:00
Shunhua Lan
0b9bfbfe78 ARM: dts: rockchip: rv1106: change property rockchip i2s
rockchip,clk-trcm = <1> to rockchip,trcm-sync-tx-only

Signed-off-by: Shunhua Lan <lsh@rock-chips.com>
Change-Id: If7c4d963fd2892e8586076291dd143af3ca81e42
2023-10-16 10:18:18 +08:00
Shunhua Lan
89fc7be3bd arm64: dts: rockchip: change property rockchip i2s
rockchip,clk-trcm = <1> to rockchip,trcm-sync-tx-only
rockchip,clk-trcm = <2> to rockchip,trcm-sync-rx-only
remove rockchip,clk-trcm = <0> because of it's the default

Signed-off-by: Shunhua Lan <lsh@rock-chips.com>
Change-Id: I10938cb1eec02456e86c775113bb83ec329390e4
2023-10-16 10:17:33 +08:00
Shunhua Lan
58be71bc55 arm64: dts: rockchip: rk3588s: change property rockchip i2s
rockchip,clk-trcm = <1> to rockchip,trcm-sync-tx-only

Signed-off-by: Shunhua Lan <lsh@rock-chips.com>
Change-Id: I5ee35f34a0f29e98eb12b8a6c431bb3291def201
2023-10-16 10:16:43 +08:00
Shunhua Lan
29278f648b arm64: dts: rockchip: rk3308: change property rockchip i2s
rockchip,clk-trcm = <1> to rockchip,trcm-sync-tx-only

Signed-off-by: Shunhua Lan <lsh@rock-chips.com>
Change-Id: Ifb2eb645349e25690a0fa16817a5969878d2b200
2023-10-13 16:50:35 +08:00
Shunhua Lan
3767ab6a8c arm64: dts: rockchip: rk356x: change property rockchip i2s
rockchip,clk-trcm = <1> to rockchip,trcm-sync-tx-only

Signed-off-by: Shunhua Lan <lsh@rock-chips.com>
Change-Id: I4e940dd27404911773c92f991bd520817cf50977
2023-10-13 16:50:35 +08:00
Damon Ding
3380a6561e drm/bridge: sii902x: modify the check of bus-format
Use the definition of MEDIA_BUS_FMT_XXX instead of the
definition of sii902x_bus_format.

Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: I72b4d92a1704f98f437a80d2a8afe16d9f6b003f
2023-10-13 14:30:03 +08:00
Tao Huang
116680b9cb Merge commit '372c139deef48d827f8fe6ca47cb8210b28914a4'
* commit '372c139deef48d827f8fe6ca47cb8210b28914a4':
  video: rockchip: mpp: fix JPEG Enc dma sync problem
  arm64: rockchip_gki.config: enable icm4260x sensor.
  arm64: rockchip_defconfig: enable icm4260x sensor.
  video: rockchip: vtunnel: fix compile errors on android 14
  fiq_debugger: set uart irq no balancing
  arm64: dts: rockchip: rk3588s-evb3: disable gt1x in bt1120 display board
  arm64: dts: rockchip: rk3568-evb: fix gc8034 power domain config
  PCI: rockchip: dw: remove .link_up() hook from struct dw_pcie_ops

Change-Id: Ie4ab8e2b6cc65d422edb219b645d9ad43da50fe9
2023-10-12 18:16:47 +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
Shawn Lin
28a6652322 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-12 16:34:04 +08:00
Tao Huang
ce4f9cc205 Merge commit 'ccaa5a718372de677a3ca0d7e48fbdb27c313dbe'
* commit 'ccaa5a718372de677a3ca0d7e48fbdb27c313dbe':
  regulator: rk806: delete the PLDO6 enable/disable interface
  mfd: rkx110_x120: change panel device and driver name
  arm64: dts: rockchip: remove androidboot bootargs for px30/rk3326 boards
  video: rockchip: rga2: add hardware time-consuming printing
  media: i2c: gc2093: get camera param from cam-tb-setup

Change-Id: Iaa791f3d16b6725f8e40f69ac60276962d117732
2023-10-12 16:31:08 +08:00
Tao Huang
15ca5c7d22 Merge commit '2604a38ab45fef071b54515f4edd0c5e7c245a70'
* commit '2604a38ab45fef071b54515f4edd0c5e7c245a70':
  media: i2c: add cam-tb-setup

Merge using ours merge strategy.

Change-Id: I4462b49049243fe794db3ff98b25db27a4267898
2023-10-12 16:30:31 +08:00
Wang Xiaobin
813ac004fb 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-12 16:29:12 +08:00
Tao Huang
bbdbeabda2 Merge commit 'bbe13f289fc573df0b69c8405aa15e246f6420a2'
* commit 'bbe13f289fc573df0b69c8405aa15e246f6420a2':
  input: sensors: add icm4260x driver.

Merge using ours merge strategy.

Change-Id: I8c6adef48b4522a021d492f9acf96401450f697d
2023-10-12 14:56:09 +08:00
Wangqiang Guo
fdb8c50bcd input: sensors: add icm4260x driver.
Change-Id: Ic1951c136bb81c0a93229e75e39605303cef3105
Signed-off-by: Wangqiang Guo <kay.guo@rock-chips.com>
2023-10-12 14:51:54 +08:00
Tao Huang
c03548401b Merge commit 'de1cbb0ebd2d3b3e66bf6682af5798d76f423c68'
* commit 'de1cbb0ebd2d3b3e66bf6682af5798d76f423c68': (24 commits)
  video: rockchip: mpp: fix iommu fault irq triggered repeatedly
  video: rockchip: mpp: rkvenc2: optimize iommu fault handle
  video: rockchip: mpp: vepu2: add iommu fault handle
  media: rockchip: hdmirx: add new controls for audio status and audio rate
  media: rockchip: hdmirx: implement RK_HDMIRX_V4L2_EVENT_AUDIOINFO event
  media: rockchip: hdmirx: add private v4l2 event
  arm64: dts: rockchip: rk3588s: Add reset for i2c
  i2c: busses: i2c-rk3x: Add i2c bus reset for scl hold timeout by slave
  i2c: busses: i2c-rk3x: Fix msg length 32 for autostop tx only mode
  media: i2c: maxim4c: Add debugfs entry to change MIPI timing
  media: i2c: maxim4c: Add config ssc-ratio property
  arm64: dts: rockchip: rk3588-vehicle-evb-v22: Change regulators supply for cameras
  arm64: dts: rockchip: rk3588-vehicle-evb-maxim-max9671(/2)2-d(c)phy0(/3): Add regulators
  media: i2c: maxim4c: Add regulator suppliers
  BACKPORT: iio: adc: rockchip_saradc: do not use internal iio_dev lock
  arm64/configs: rockchip_defconfig: enable CONFIG_GPIO_SYSCON
  arm64/configs: rockchip_linux_defconfig: enable CONFIG_GPIO_SYSCON
  media: i2c: lt6911uxc: add dcphy params
  arm64: dts: rockchip: Add dual mipi configuration for rk3588 evb1 extboard
  media: i2c: sc401ai: add support thunder boot
  ...

Change-Id: Ib93e5f5697a9fe8d8011b871aeab9e8e3860aa40
2023-10-12 14:30:28 +08:00
Tao Huang
117e18c52e Merge commit '0eba9f8ec037e4c7fccb16e2a433be822dd802b8'
* commit '0eba9f8ec037e4c7fccb16e2a433be822dd802b8':
  dmaengine: pl330: Add support for interleaved transfer

Merge using ours merge strategy.

Change-Id: I466ab3dfd0b08e5dea4cc62f8cf9c1a0bc631653
2023-10-12 14:29:46 +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
Sugar Zhang
4367b72380 dmaengine: pl330: Add support for interleaved transfer
This patch add support for interleaved transfer which used
for interleaved audio or 2d video data transfer.

for audio situation, we add 'nump' for number of period frames.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I502ea9c86c8403dc5b1f38abf40be8b6ee13c1dc
2023-10-12 11:32:43 +08:00
Tao Huang
86adb4b672 Merge commit 'de0064df8fa35b0d0e2951b2b2799f9e02157439'
* commit 'de0064df8fa35b0d0e2951b2b2799f9e02157439':
  arm64: dts: rockchip: rk3308b-amp: using 64-bits for cpu's affinity
  arm64: dts: rockchip: rk3562-amp: using 64-bits for cpu's affinity
  irqchip/gic: add the parameter of gic version for rockchip amp
  soc: rockchip: amp: using 64-bits variable to manage the cpu's affinity
  irqchip/gic: allow to config pending function between different os
  arm64: dts: rockchip: rk3588-vehicle-evb-v22: Add delay for all camera related regulators
  drm: bridge: dw-hdmi: Fix 3d fp mode clock miscalculation
  BACKPORT: xhci: Improve the XHCI system resume time
  media: rockchip: isp: fix rv1106g3 4k cmsk right

Change-Id: I253ac2ecaee64e1b90cd2f2fb85538ad5b77da65
2023-10-12 11:30:38 +08:00
Tao Huang
4621f35ed9 Merge commit '28a26c7b729986a62c3ad6bfb0ba587cd6e26363'
* commit '28a26c7b729986a62c3ad6bfb0ba587cd6e26363':
  media: i2c: lt6911uxc: add 4K60 dual mipi port support

Merge using ours merge strategy.

Change-Id: Id5a071669a2afb5a538f450002e086598de99a52
2023-10-12 11:29:47 +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
Jianwei Fan
ec9514c1ad media: i2c: lt6911uxc: add 4K60 dual mipi port support
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: Ib70ec05ed521b924f5e10343a3399d629ee40dbe
2023-10-12 01:04:37 +00: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
Shunhua Lan
cd5a25f0f1 media: rockchip: hdmirx: add new controls for audio status and audio rate
Signed-off-by: Shunhua Lan <lsh@rock-chips.com>
Change-Id: I9fd34740ee0417c5dd0f5bf61b8070b162205768
2023-10-10 11:42:58 +08:00
Shunhua Lan
95aa09af43 media: rockchip: hdmirx: implement RK_HDMIRX_V4L2_EVENT_AUDIOINFO event
Signed-off-by: Shunhua Lan <lsh@rock-chips.com>
Change-Id: I3f0594807d86990121e45460df359b33b6594c21
2023-10-10 11:42:24 +08:00
Shunhua Lan
1a2bbe66b1 media: rockchip: hdmirx: add private v4l2 event
add private v4l2 event: RK_HDMIRX_V4L2_EVENT_AUDIOINFO
when audio info changed, driver will queue event and apps
should chang audio record parameters

Signed-off-by: Shunhua Lan <lsh@rock-chips.com>
Change-Id: I6fa6c951d648f546655475eede21d1769444741c
2023-10-10 09:35:29 +08:00
David Wu
70d6108844 arm64: dts: rockchip: rk3588s: Add reset for i2c
Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: Ib7ab98d3059bbefba1fbf3a26c82d8d35f155944
2023-10-10 09:23:48 +08:00
David Wu
006c0b1e77 i2c: busses: i2c-rk3x: Add i2c bus reset for scl hold timeout by slave
If the scl has been pulled low for a long time and is not released,
at this time, because the exception needs to end the I2C, a reset
needs to be done to ensure that the state machine is restored. Set
the timeout time to 200ms, and the debounce of the scl is pulled
low to 100ms.

Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: Iee0c2afe2fbd59a30d1b7ef486d0856b00b88cc8
2023-10-10 09:23:48 +08:00
David Wu
f67504a486 i2c: busses: i2c-rk3x: Fix msg length 32 for autostop tx only mode
If autostop mode is enabled, such as RK3588, autostop mode requires
statistics on the transmission length; for tx only mode, the device
address is also counted as one byte, so the judgment conditions become
different.

Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: I91c0b68fabb60952f630a98133423aa4cb1b9b48
2023-10-10 09:23:48 +08:00
Cody Xie
e5ab4cbe7f media: i2c: maxim4c: Add debugfs entry to change MIPI timing
Change-Id: I3e215583975e7272ca1c655dc61a59abc6c07d4e
Signed-off-by: Cody Xie <cody.xie@rock-chips.com>
2023-10-09 17:55:50 +08:00
Cody Xie
f237af29a4 media: i2c: maxim4c: Add config ssc-ratio property
Change-Id: I1178c5becbdf2ded1648e31ff609b7ce6a07bdf5
Signed-off-by: Cody Xie <cody.xie@rock-chips.com>
2023-10-09 17:55:42 +08:00
Cody Xie
368f785570 arm64: dts: rockchip: rk3588-vehicle-evb-v22: Change regulators supply for cameras
Change-Id: I6c004cc78d851500b6e1651419c6aa3b3f6a5a31
Signed-off-by: Cody Xie <cody.xie@rock-chips.com>
2023-10-09 17:55:18 +08:00