Commit Graph

1080748 Commits

Author SHA1 Message Date
Sugar Zhang
04219ca7f0 ASoC: rockchip: pdm: Add support for HPF control
This patch add support for HPF control that allow user
to change HPF cut off freq or on/off HPF.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I33c4ebe8499eabd0770f5454129391d3aea2e28d
2023-10-18 18:20:15 +08:00
Sugar Zhang
06854ed129 ASoC: rockchip: pdm: Use component kcontrol API
Fixes: 5c77c0737d ("ASoC: rockchip: pdm: Use add_component_controls")

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I1a33435d112e1b8288fb4385dcd90261a579bb2d
2023-10-18 18:20:15 +08:00
Sugar Zhang
6788651fa2 ASoC: rockchip: i2s-tdm: Use component kcontrol API
Fixes: f7cdb2cfca ("ASoC: rockchip: i2s-tdm: Use add_component_controls")

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I1abf9d698b12396694470017cc8f51e98d8ce2ce
2023-10-18 18:20:15 +08:00
Sugar Zhang
3db7151741 ASoC: rockchip: i2s: Use component kcontrol API
Fixes: a2d0c7f12f ("ASoC: rockchip: i2s: Use add_component_controls")

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I8343bf048cd3378e878286661a7c55c1255a532e
2023-10-18 18:20:15 +08:00
Sugar Zhang
4a68fd57a9 ASoC: rk817: Fix L/R channel order
The I2S part of RK817 work as slave mode require BCLK on
first, otherwise, there will make the L/R invert.

On the stage hw_params, the BCLK maybe off. so, let's move
it into mute stage to fix this.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I3b9a7030342281a596e16c025f42c49a79c3a5df
2023-10-18 18:20:15 +08:00
Sugar Zhang
e4c5916e13 arm64: configs: rockchip: Enable SND_SOC_ROCKCHIP_DLP_PCM
Audio Products with AEC require loopback for echo cancellation.
the hardware LP is not always available on some products, maybe
the HW limitation(such as internal acodec) or HW Cost-down.

This patch add support software DLP for such products.

Ref: commit 9975bc50f3 ("ASoC: rockchip: Add support for Digital Loopback")

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Ief55346feb52e264fbc22434c6a3c046b455dfe3
2023-10-18 18:20:15 +08:00
Sugar Zhang
db80bed047 arm64: configs: rockchip_linux: Enable SND_SOC_ROCKCHIP_DLP_PCM
Audio Products with AEC require loopback for echo cancellation.
the hardware LP is not always available on some products, maybe
the HW limitation(such as internal acodec) or HW Cost-down.

This patch add support software DLP for such products.

Ref: commit 9975bc50f3 ("ASoC: rockchip: Add support for Digital Loopback")

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Iab070c94c33c3fd47646d07ab38cd9c997a302cf
2023-10-18 18:20:15 +08:00
Sugar Zhang
fa9161ee5f ASoC: rockchip: multi_dais: Add fifo count for SAI
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I5b0e478b9eebbc2a5d1a30594549ba3cff3af435
2023-10-18 18:20:15 +08:00
Sugar Zhang
1831ca1cdc ASoC: rockchip: sai: Fix mclk rate check
Should compare to mclk_req rate, and also increase delta
from 1 Hz to 5 Hz.

Fixes: bca24656b6 ("ASoC: rockchip: sai: Allow mclk shift around 1 Hz")

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I7906c21e670c1dd7f105c025e110af61cbd56299
2023-10-18 18:20:15 +08:00
Sugar Zhang
adf9ddf934 ASoC: rockchip: sai: Add support for DLP
This patch add support DMA-based digital loopback for SAI.

Ref: commit 9975bc50f3 ("ASoC: rockchip: Add support for Digital Loopback")

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I2af1b849b65453f015ed5cc943b2f26622a5efa4
2023-10-18 18:20:15 +08:00
Sugar Zhang
336c6579db ASoC: rockchip: i2s: Add support for DLP
This patch add support DMA-based digital loopback for I2S.

Ref: commit 9975bc50f3 ("ASoC: rockchip: Add support for Digital Loopback")

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I8a0ea59b216e18ed8c9758f529ef600a333913d7
2023-10-18 18:20:15 +08:00
Sugar Zhang
db8f1a338e ASoC: rockchip: Adds support DLP for Multi-DAIs
This patch add support DMA-based digital loopback for
Multi-DAIs.

Ref: commit 9975bc50f3 ("ASoC: rockchip: Add support for Digital Loopback")

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I2861632eb28b4c5f596cfa5af855676c6140d1e1
2023-10-18 18:20:15 +08:00
Sugar Zhang
2a771fb100 ASoC: rockchip: dlp: Split driver into CORE and PCM
This patch splits driver into core and pcm part to
simplify the DLP development and debugging for varies
cases. such as SINGLE-DAI, MULTI-DAIS.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Ibbf39b5ae67661a8d9663399d760cbee3220dbc2
2023-10-18 18:20:15 +08:00
Luo Wei
8bbe906daa mfd: display-serdes: power off remote serdes while shutdown
Signed-off-by: Luo Wei <lw@rock-chips.com>
Change-Id: Ic358750583e2cb94a79710cabc84bc739bf12b12
2023-10-18 16:54:17 +08:00
Zefa Chen
abdfc22491 ARM: dts: rockchip: rv1106g-evb2-v12-wakeup add rtt for vicap node
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I6023ffe9a79173998bacece428e4f38b1d7ff8fa
2023-10-18 16:45:44 +08:00
Wenping Zhang
a899962598 arm64: dts: rockchip: rk3588s: add winusb reboot mode.
Change-Id: Ie3eae1892e679a078aad79403e28af1cadff3832
Signed-off-by: Wenping Zhang <wenping.zhang@rock-chips.com>
2023-10-18 15:46:37 +08:00
Wenping Zhang
fe7022a2f0 dt-bindings: soc: rockchip: add reboot mode winusb.
winusb mode is used to capture minidump in uboot through usb
when kernel panic.

Change-Id: I493d32746fd4030f8e7a1466d8a9b2f8bf3a3ccc
Signed-off-by: Wenping Zhang <wenping.zhang@rock-chips.com>
2023-10-18 15:46:28 +08:00
Zhen Chen
194a7d5a75 MALI: bifrost: Fix a null pointer exception when event tracing is enabled
The issue was reported in https://redmine.rock-chips.com/issues/442097.
The kernel crash log:
[   10.737137][ T1028] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000010
...
[   10.747955][ T1028] pc : __pi_strlen+0x60/0x84
[   10.748673][ T1028] lr : trace_event_raw_event_dma_fence+0xe0/0x1e8
...
[   10.761907][ T1028] Call trace:
[   10.762198][ T1028]  __pi_strlen+0x60/0x84
[   10.762561][ T1028]  dma_fence_init+0xd4/0xfc
[   10.762951][ T1028]  kbasep_kcpu_fence_signal_init+0x6c/0x1b0
[   10.763454][ T1028]  kbase_kcpu_fence_signal_prepare+0x6c/0x134
[   10.763980][ T1028]  kbase_csf_kcpu_queue_enqueue+0x1d0/0x10ec
[   10.764499][ T1028]  kbase_ioctl+0xa80/0xf78
[   10.764890][ T1028]  __arm64_sys_ioctl+0x90/0xc8
[   10.765296][ T1028]  el0_svc_common+0xac/0x1ac
[   10.765691][ T1028]  do_el0_svc+0x1c/0x28
[   10.766058][ T1028]  el0_svc+0x10/0x1c
[   10.766389][ T1028]  el0_sync_handler+0x68/0xac
[   10.766796][ T1028]  el0_sync+0x160/0x180

Change-Id: I68739107dd9486b3a964746583c526a51f68e1ae
Signed-off-by: Zhen Chen <chenzhen@rock-chips.com>
2023-10-18 15:44:29 +08:00
Cody Xie
7c27dbc54d arm64: dts: rockchip: rk3588-vehicle-evb-v22: Use location name for camera regulators
Change-Id: Ic1d21d5d987a819d88675d0a88b0347cbf8256fb
Signed-off-by: Cody Xie <cody.xie@rock-chips.com>
2023-10-18 15:37:39 +08:00
Cody Xie
f696e55329 media: i2c: maxim4c: Fix unbalanced disable of PoC regulator
Change-Id: I446e5774b460c55ba3feb91d7544c354f1e8886c
Signed-off-by: Cody Xie <cody.xie@rock-chips.com>
2023-10-18 15:28:34 +08:00
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