Commit Graph

1268274 Commits

Author SHA1 Message Date
Johan Hovold
ffe673b0e5 BACKPORT: USB: dwc3: refactor clock lookups
The probe callback has become unwieldy so break out the clock lookups
into a new helper function to improve readability.

Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Link: https://lore.kernel.org/r/20230404072524.19014-11-johan+linaro@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit bd82857424)
Change-Id: Iefc63ea7b7c516bd85bb2c20c86f1d899875497e
2024-02-20 18:41:42 +08:00
Binyuan Lan
19e4b7da39 ASoC: rockchip: rk817-codec: fix pop from DAC_DIG_CLK_DIS and DAC_DIG_CLK_EN
Signed-off-by: Binyuan Lan <lby@rock-chips.com>
Change-Id: Idfa31a4f3484f1641ebcf46d237244e98e378e93
2024-02-07 16:31:36 +08:00
Sandy Huang
a73c8e037d drm/rockchip: vop2: primary plane need consider win possible_crtcs
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I4a7529bfd70a39970ffeb7ddaca0d37dfc0d7b0c
2024-02-07 16:31:00 +08:00
Tao Huang
a91f064677 Merge commit '5fe35955d774cc30268c13ee4d8b7a5709505269'
* commit '5fe35955d774cc30268c13ee4d8b7a5709505269':
  input: rockchip_pwm_remotectl: add pwm v4 support
  misc: rk628: optimize input and output mode information
  ARM: dts: rockchip: rk3036-evb1-ddr3-v10: unify the rk628 node name of interface in dts
  arm64: dts: rockchip: rk3568-evb-rk628: unify the node name of interface in dts
  misc: rk628: unify the node name of interface in dts

Change-Id: I9890cae140709f25f67aa4a607e357ad88492cce
2024-02-07 16:22:00 +08:00
Tao Huang
5a8ee2c7f8 Merge commit 'edbfad5e8605a8d36334fd6637e72e0f93628850'
* commit 'edbfad5e8605a8d36334fd6637e72e0f93628850':
  media: i2c: rk628: add suspend and resume support

Change-Id: I360eff65948d0072b686b479b04df7771ab113f2
2024-02-07 16:21:37 +08:00
Tao Huang
7fdd51f070 Merge commit 'bed6817b766a80ed9d49bbad3b5e3c6935778907'
Merge made by the 'ours' strategy.

* commit 'bed6817b766a80ed9d49bbad3b5e3c6935778907':
  video: rockchip: mpp: fix get drv data type err

Change-Id: I6684d33e761119b4767bdb1ce083ff9c9bcea12a
2024-02-07 16:20:36 +08:00
Tao Huang
d082b581af Merge commit '079fa67494942657b96ed069c0dba21a5d57b88e'
* commit '079fa67494942657b96ed069c0dba21a5d57b88e':
  soc: rockchip: ipa: Avoid NULL pointer when get static power
  media: rockchip: vicap update frame buffer with real frame phase when work with multi_dev combine to one

Change-Id: I2f6e8db6084394f128feea501323cb26984535a4
2024-02-07 16:19:47 +08:00
Yandong Lin
9de9c7ccf9 video: rockchip: mpp: fix get drv data type err
Fix issue that he drvdata obtained through dev_get_drvdata
does not match the converted type.

Change-Id: I4f5835c2fed609714ac6cb94197ca84a489a3d23
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
2024-02-07 16:18:55 +08:00
Huang zhibao
5fe35955d7 input: rockchip_pwm_remotectl: add pwm v4 support
Change-Id: I40d1571c3285165683845df8c48fe45d7fcac01d
Signed-off-by: Huang zhibao <hzb@rock-chips.com>
2024-02-07 16:00:59 +08:00
Zhibin Huang
ae97b71b7a misc: rk628: optimize input and output mode information
1. Fixed the issue where the log displays input and output mode
information abnormally in some scenarios.
2. The input and output mode information of log and summary are
obtained from the same function to facilitate later maintenance.

Type: Fix
Redmine ID: N/A
Associated modifications: N/A
Test: dmesg | grep "rk628.*input_mode.*output_mode"
      cat /sys/kernel/debug/rk628/2-0050/summary

Signed-off-by: Zhibin Huang <zhibin.huang@rock-chips.com>
Change-Id: I9c4549d1673417701dc929432b96fa802632e63c
2024-02-07 15:23:21 +08:00
Zhibin Huang
379dfa4350 ARM: dts: rockchip: rk3036-evb1-ddr3-v10: unify the rk628 node name of interface in dts
Type: Fix
Redmine ID: N/A
Associated modifications: https://10.10.10.29/c/rk/kernel/+/210058
Test: N/A

Signed-off-by: Zhibin Huang <zhibin.huang@rock-chips.com>
Change-Id: Ic650b9ddda9f9202e430f7459ee86f0b73fac479
2024-02-07 15:22:25 +08:00
Zhibin Huang
25aeddc516 arm64: dts: rockchip: rk3568-evb-rk628: unify the node name of interface in dts
Type: N/A
Redmine ID: N/A
Associated modifications: https://10.10.10.29/c/rk/kernel/+/210058
Test: N/A

Signed-off-by: Zhibin Huang <zhibin.huang@rock-chips.com>
Change-Id: I6e11cb752ca57f3a34678cbf44379d3be3b47985
2024-02-07 15:20:58 +08:00
Zhibin Huang
a8d4e9553d misc: rk628: unify the node name of interface in dts
Type: Fix
Redmine ID: N/A
Associated modifications: N/A
Test: N/A

Signed-off-by: Zhibin Huang <zhibin.huang@rock-chips.com>
Change-Id: I59a56b3def8f20121cb9bf53b65fc5ef3bdad6e7
2024-02-07 15:19:45 +08:00
Zhibin Huang
fb8c650f26 drm/panel: panel-simple: power-on and power-off timing optimization
1. move the dsi sequence from prepare/unprepare to resume/suspend
2. remove duplicate unprepare times

Type: Fix
Redmine ID: 460825
Associated modifications:
    commit 3235b0f20a ("drm/panel: panel-simple: Use runtime pm to
    avoid excessive unprepare / prepare")
    commit e5e30dfcf3 ("drm: panel: simple: Defer unprepare delay
    till next prepare to shorten it")
Test: N/A

Signed-off-by: Zhibin Huang <zhibin.huang@rock-chips.com>
Change-Id: I05c907ac25f40126f2d1751346ecb09f4252cf46
2024-02-07 15:06:04 +08:00
Jianwei Fan
edbfad5e86 media: i2c: rk628: add suspend and resume support
Change-Id: I8da6815fe9f95d7e29e7dd0fad186e2dbbc35b42
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
2024-02-07 10:20:32 +08:00
Yandong Lin
bed6817b76 video: rockchip: mpp: fix get drv data type err
Fix issue that he drvdata obtained through dev_get_drvdata
does not match the converted type.

Change-Id: I4f5835c2fed609714ac6cb94197ca84a489a3d23
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
2024-02-07 09:48:25 +08:00
Finley Xiao
079fa67494 soc: rockchip: ipa: Avoid NULL pointer when get static power
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I5804b89c205d1d31cd933769bf4e41081d7625c5
2024-02-06 18:56:52 +08:00
Jianwei Fan
cd80332fad media: rockchip: vicap update frame buffer with real frame phase when work with multi_dev combine to one
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Ice0b4671955ceeede83c3496b741ae81d73602d9
2024-02-06 18:09:25 +08:00
Tao Huang
b2b88adec6 Merge commit '4a35fccb3576ad7e0768f6aa00d692d1a0b124c4'
* commit '4a35fccb3576ad7e0768f6aa00d692d1a0b124c4':
  driver: rknpu: Update rknpu driver, version: 0.9.4

Change-Id: I4c237c70e80a2ce24ddbb89c5fd1b9b8a43dd5e6
2024-02-06 17:05:34 +08:00
Tao Huang
9bf64b1485 Merge commit 'caeb85ae6fc056f0c1f0f7f8e1a79e3b7124129c'
Merge made by the 'ours' strategy.

* commit 'caeb85ae6fc056f0c1f0f7f8e1a79e3b7124129c':
  video: rockchip: mpp: fix rockchip_ipa_get_static_power crash

Change-Id: Ie293c8946ec8b9ad4ef2d949c06a22eaef74bfae
2024-02-06 17:05:22 +08:00
Tao Huang
504356b366 Merge commit '02685e262a2d88bc8ae0eeeb04cd8cc03b825f5d'
* commit '02685e262a2d88bc8ae0eeeb04cd8cc03b825f5d':
  clk: rockchip: rv1106: use system_freezable_wq for pvtpll_calibrate_work
  ARM: configs: rockchip: Update rv1106-recovery.config
  video: rockchip: mpp: fix last slice fifo with 0 slice len issue

Change-Id: Ibb9009e8590e375a500cc1c5b00f059e29b43bf4
2024-02-06 17:04:15 +08:00
Tao Huang
9ced5e9ae9 version_compat_defs: Add vm_flags_set()/vm_flags_clear()
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I8812670a600bdc9cf13ce0d89893a71a5d971e43
2024-02-06 16:56:55 +08:00
Felix Zeng
4a35fccb35 driver: rknpu: Update rknpu driver, version: 0.9.4
Signed-off-by: Felix Zeng <felix.zeng@rock-chips.com>
Change-Id: Ibeaacee69a264b716e636c6397aa9a49068bd8cf
2024-02-06 16:51:20 +08:00
shunhua.lan
1feee0d9c0 ASoC: codecs: add aw882xx amp
Change-Id: Ia1249aa8971f6e7dee58858343ea56454862601c
Signed-off-by: Shunhua Lan <lsh@rock-chips.com>
2024-02-06 16:17:36 +08:00
Yandong Lin
caeb85ae6f video: rockchip: mpp: fix rockchip_ipa_get_static_power crash
When echo userspace > /sys/class/devfreq/ffbb0000.rkvenc/governor,the
devfreq->data will be reassign to userspace data.
So cannot get struct rkvenc_dev *enc by devfreq->data.

[<b040f41c>] (rockchip_ipa_get_static_power) from [<b078fbdc>] (devfreq_cooling_get_requested_power+0x140/0x150)
[<b078fbdc>] (devfreq_cooling_get_requested_power) from [<b078e578>] (power_allocator_throttle+0x224/0x8b0)
[<b078e578>] (power_allocator_throttle) from [<b078a5ac>] (handle_thermal_trip+0xb0/0x1c8)
[<b078a5ac>] (handle_thermal_trip) from [<b078a738>] (thermal_zone_device_update.part.3+0x70/0xc4)
[<b078a738>] (thermal_zone_device_update.part.3) from [<b013d2b4>] (process_one_work+0x1f0/0x408)
[<b013d2b4>] (process_one_work) from [<b013df8c>] (worker_thread+0x30/0x564)
[<b013df8c>] (worker_thread) from [<b0142f04>] (kthread+0x160/0x190)
[<b0142f04>] (kthread) from [<b01010d8>] (ret_from_fork+0x14/0x3c)

Change-Id: I46977c8dd23d2fc286afa0ae8b87aea1cb0be0d7
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
2024-02-06 15:34:27 +08:00
Liang Chen
02685e262a clk: rockchip: rv1106: use system_freezable_wq for pvtpll_calibrate_work
1. Do not freeze pvtpll_calibrate_work when calibration is processing,
otherwise the rate of pvtpll maybe wrong.
2. Set the delay to 300ms.

Signed-off-by: Liang Chen <cl@rock-chips.com>
Change-Id: I67bef5663d4cc5bf838f5db0d02b643105d25be6
2024-02-06 15:29:20 +08:00
Weiwen Chen
3b699aa2b7 ARM: configs: rockchip: Update rv1106-recovery.config
Update by:
    make ARCH=arm rv1106_defconfig
    cp .config rv1106.config
    make ARCH=arm rv1106_defconfig rv1106-recovery.config
    ./scripts/diffconfig -m rv1106.config .config > arch/arm/configs/rv1106-recovery.config

Signed-off-by: Weiwen Chen <cww@rock-chips.com>
Change-Id: I09929ea0c47ef543cbdfd74bee240699989b7eae
2024-02-06 15:23:20 +08:00
Yandong Lin
6d575115ec video: rockchip: mpp: fix last slice fifo with 0 slice len issue
Change-Id: Ibfdc65d43dddba86374e5c44a2e6fc3ddcca6283
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
2024-02-06 09:26:45 +08:00
Jason Zhang
97edf935a5 ASoC: codecs: add support for IT6621
The IT6621 is a transmitter designed for HDMI2.1 Enhanced Audio
Return Channel (eARC) and it is also backward compatible to the
HDMI1.4 Audio Return Channel (ARC). When operating in eARC mode,
the Differential Mode Audio Channel (DMAC) bandwidth, i.e. 98.304Mbps,
allows HDMI Sink to transmit 8-channel 192K audio to the HDMI Source.
No video stream and CEC function is required when eARC link is active.

The IT6621 adopts eight I2S and one SPDIF signals for the audio
input interface. Eight I2S signals are used to transmit multi-channel
L-PCM audio and the maximum 16-channel audio is supported by the IT6621.

Change-Id: I50d969a3e08c89a65581671a43b7ae2132ca79ec
Signed-off-by: Jason Zhang <jason.zhang@rock-chips.com>
2024-02-05 21:02:18 +08:00
Sandy Huang
8612b1897d drm/rockchip: drv: Fix ROCKCHIP_BO_CACHABLE flag Invalid
The ROCKCHIP_BO_CACHABLE flag first introduced at the following commit:
commit 4d89a73831 ("drm/rockchip: support cpu cache for drm memory")

After the follwing commit, the vm_page_prot init be moved to rockchip drm gem driver:
commit f8b5307074 ("drm/rockchip: Implement mmap as GEM object function")

so add this commit to adapt this change.

issues info:
https://github.com/JeffyCN/mirrors/issues/18

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: Ic7ae1279c157d02a1ae4758b45934a8506741f67
2024-02-05 20:43:47 +08:00
Tao Huang
f9ab55a3df Merge commit 'b65bb3bb00d6912ac6c1ad07f920621d7b5b48ec'
* commit 'b65bb3bb00d6912ac6c1ad07f920621d7b5b48ec':
  media: i2c: rk628: add private interface, compatible with hdmirx.
  media: i2c: rk628: fix display error caused by read resolution error
  media: i2c: rk628: fix display error in plugout
  mfd: display-serdes: add error detection and recovery function

Change-Id: I51b5cc47db20be0b80a7107eda6cd5d7d1e1e176
2024-02-05 19:09:12 +08:00
Jon Lin
e2a3d6258c spi: rockchip-sfc: Compatible with OSPI DTR mode
Change-Id: Ic3fad7b6668e97339da54b9bb9311c8326c4dab5
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2024-02-05 18:55:49 +08:00
Wangqiang Guo
b65bb3bb00 media: i2c: rk628: add private interface, compatible with hdmirx.
Change-Id: I737dcb068bc830baccb932d985bdbede56b5d490
Signed-off-by: Wangqiang Guo <kay.guo@rock-chips.com>
2024-02-05 18:28:07 +08:00
Chen Shunqing
f1132b51ff media: i2c: rk628: fix display error caused by read resolution error
Type: Fix
Redmine ID: #461216
Associated modifications: N/A
Test: plugin and plugout the HDMI cable.

Change-Id: Id2be68bc74aa22e8f731f4800c5f22fc6fc8f342
Signed-off-by: Chen Shunqing <csq@rock-chips.com>
2024-02-05 17:45:23 +08:00
Chen Shunqing
fb7e8f94dc media: i2c: rk628: fix display error in plugout
Type: Fix
Redmine ID: #461174
Associated modifications: N/A
Test: plugin and plugout the HDMI cable.

Change-Id: Ib4c23b2cb98f782cafe0704e9e9ad22a3448dbfa
Signed-off-by: Chen Shunqing <csq@rock-chips.com>
2024-02-05 17:11:32 +08:00
Sandy Huang
d8938b5827 drm/rockchip: vop2: fix some compiled warning
1. vop2_power_domain_off_by_disabled_vp() error: buffer overflow'vop2->vps' 4 <= 7 subtract
2. warning: Access to field 'regsbak' results in a dereference of a null pointer
3. warning: Access to field 'regs' results in a dereference of a null pointer
4. rockchip_drm_vop2.c:4302:17: warning: ‘strncpy’ specified bound 32 equals destination size
5. rockchip_drm_vop2.c:10073:51: warning: Dereference of undefined pointer value

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: Ie9946a129ca73ca71c581b221f926084d6795995
2024-02-05 14:31:04 +08:00
Luo Wei
c60873aaf6 mfd: display-serdes: add error detection and recovery function
Signed-off-by: Luo Wei <lw@rock-chips.com>
Change-Id: I5cf255819541e296e23834e4dc1f5b1fa204c0e6
2024-02-05 09:37:19 +08:00
Jianwei Fan
7adb104bed video: rockchip: vehicle: adapt driver to kernel-6.1
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: Id20446f4ea33ceb9e22b62fd1a7e787c91f73529
2024-02-04 20:49:57 +08:00
Tao Huang
05f1106b6f Merge commit '4a94d0c5a9155246bcd4a1880b3b7f54052b26fb'
* commit '4a94d0c5a9155246bcd4a1880b3b7f54052b26fb':
  arm64: dts: rockchip: rk3568-evb: add edp display board

Change-Id: Ie1bc617a828836c5fb2d0c80289b1d274ec112e8
2024-02-04 20:39:16 +08:00
Tao Huang
c4a2472ecf Merge commit '18b58076972c32dd56a9f6125bbafbb80c52ae33'
* commit '18b58076972c32dd56a9f6125bbafbb80c52ae33':
  media: i2c: lt6911c: add lt6911c HDMI to MIPI-CSI2 bridge driver
  arm64: dts: rockchip: rk3588-evb: reserve more CMA memory for HDMIRX.
  thermal: rockchip: Round up code in rk_tsadcv2_temp_to_code
  media: i2c: rk628: add signal lost event report
  video: rockchip: vehicle: fix errors of get cif rst and irq
  media: rockchip: isp: fix isp32 bp min output
  crypto: rockchip: cryptodev: cipher support multithreading
  crypto: rockchip: cryptodev: add akcipher_request_set_callback for rsa
  media: rockchip: vicap fixes dma_en logic err with constrant electricity and readback mode
  ASoC: rockchip-spi-codec: fix kctonrol mute case crash

Change-Id: Ifd47e2c4f7dd1f56cd89976f2987780c2c8c91f9
2024-02-04 20:38:12 +08:00
Damon Ding
4a94d0c5a9 arm64: dts: rockchip: rk3568-evb: add edp display board
One eDP panel module, which named 7.86'' Mercury, supports
1536x2048p60 with 4 lanes.

Change-Id: I2e46d5dce2f18d7be905ba35549132a086587109
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2024-02-04 20:27:51 +08:00
Jianwei Fan
18b5807697 media: i2c: lt6911c: add lt6911c HDMI to MIPI-CSI2 bridge driver
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: I1cce568db23a791291d06fcad096ece9e75047d4
2024-02-04 20:26:25 +08:00
Wangqiang Guo
28d832ed84 arm64: dts: rockchip: rk3588-evb: reserve more CMA memory for HDMIRX.
HDMI-IN app require up to 5 buffers, about 118M.
The system may borrows some CMA memory cause errors.
Add more CMA memory to avoid problems.

Change-Id: Ifa03edef13604fc8ca1d26cd00f7fe4fce81b6da
Signed-off-by: Wangqiang Guo <kay.guo@rock-chips.com>
2024-02-04 20:19:52 +08:00
Ye Zhang
2db9f54300 thermal: rockchip: Round up code in rk_tsadcv2_temp_to_code
rk_tsadcv2_temp_to_code rounds down, so the temperature that triggers the
high temperature interrupt may be lower than the temperature we configured
in dts. Therefore, it may not be possible to update the trip when the high
temperature interrupt occurs, resulting in continuous interruptions.

Signed-off-by: Ye Zhang <ye.zhang@rock-chips.com>
Change-Id: I84511a612421b42a130c938b4573bddb6156dff6
2024-02-04 20:07:11 +08:00
Jianwei Fan
270a72866c media: i2c: rk628: add signal lost event report
Change-Id: I0cc2f643486ef3eebd3503d71e1aa5fdadaef0c2
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
2024-02-04 20:03:33 +08:00
Jianwei Fan
ecb7340491 video: rockchip: vehicle: fix errors of get cif rst and irq
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: Ib84dbf242bb6611ed1ccbacf1b66e7ba23861cca
2024-02-04 20:02:29 +08:00
Cai YiWei
b2cdfdd52a media: rockchip: isp: fix isp32 bp min output
Change-Id: Ic711a9b668cc6f832d4752700e63db54a50ed594
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2024-02-04 20:00:53 +08:00
Lin Jinhan
ad8ec7ddd0 crypto: rockchip: cryptodev: cipher support multithreading
Only HASH multithreading is restricted by the hardware. Therefore,
cipher removes the restriction on multithreading.

Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
Change-Id: I8ec0cb31cd51e6acfa5582cd7778d6482674f1de
2024-02-04 19:40:09 +08:00
Lin Jinhan
3258128cd9 crypto: rockchip: cryptodev: add akcipher_request_set_callback for rsa
Missing akcipher_request_set_callback will cause a process exception
 when rsa works in asynchronous mode.

Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
Change-Id: I99d3ffde471269528f42869d052004a25a6c14b0
2024-02-04 19:40:09 +08:00
Zefa Chen
497d03d9a2 media: rockchip: vicap fixes dma_en logic err with constrant electricity and readback mode
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I39c407234d07803f5880ed378f05814e510b528b
2024-02-04 17:18:58 +08:00