Commit Graph

1268291 Commits

Author SHA1 Message Date
Tao Huang
fe33d5d60d Merge commit 'e0a6d5fa869c8ba0d109a415ca1bfa2d601d12df'
Merge made by the 'ours' strategy.

* commit 'e0a6d5fa869c8ba0d109a415ca1bfa2d601d12df':
  media: rockchip: isp: support 8k for isp32 lite
  media: rockchip: isp: fix isp32 lite frame buffer data read
  media: rockchip: isp: add ioctl to get bay3d buf

Change-Id: Ib2ecc6d25a106a71bb4239429da67ce8c6e4b1c1
2024-02-29 18:25:00 +08:00
Cai YiWei
3e0f158519 media: rockchip: isp: support 8k for isp32 lite
Change-Id: I2ebd5bff4be4b646564a874ce801cc8c9bf261e1
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2024-02-29 18:23:29 +08:00
Cai YiWei
474d365d35 media: rockchip: isp: fix isp32 lite frame buffer data read
Change-Id: I1e8e19185bce2800a0aee2a1623b204adb07355d
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2024-02-29 18:23:24 +08:00
Cai YiWei
0713900194 media: rockchip: isp: add ioctl to get bay3d buf
Change-Id: Id65390eab9f1dc2d64405def56e854078ceba037
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2024-02-29 18:23:18 +08:00
Tao Huang
b70dfeba02 Merge commit 'c4c06227b02a3af6274f6ea0780cce7c79530293'
* commit 'c4c06227b02a3af6274f6ea0780cce7c79530293':
  media: rockchip: isp: add RKISP_CMD_SET_TB_HEAD_V32 API
  clk: rockchip: rv1106: optimize calibrate step for cru pvtpll
  ARM: rockchip: rv1106_pm: optimize pvtpll save/restore process flow
  UPSTREAM: gpio: rockchip: Reset int_bothedge when changing trigger
  ARM: dts: rockchip: rv1106-evb-dual-cam add sc530ai
  media: rockchip: isp: fix mp wrap buf from rockit no output
  mfd: display-serdes: fix building error

Change-Id: Ifa823804017620c5297d002598dc87a3388e2dcd
2024-02-29 18:21:46 +08:00
Jianwei Fan
68598ecbf3 media: i2c: lt8668sx: fix kernel-6.1 compile errors
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: I3f06b045ff2f1d23be06248eb53b642ddf711f08
2024-02-22 17:49:51 +08:00
Cai YiWei
e0a6d5fa86 media: rockchip: isp: support 8k for isp32 lite
Change-Id: I2ebd5bff4be4b646564a874ce801cc8c9bf261e1
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2024-02-21 12:13:39 +08:00
Cai YiWei
c4c06227b0 media: rockchip: isp: add RKISP_CMD_SET_TB_HEAD_V32 API
Change-Id: I07ae10d69ae977ff5932c377e24eefbd48387946
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2024-02-21 10:25:17 +08:00
Cai YiWei
6c66737840 media: rockchip: isp: fix isp32 lite frame buffer data read
Change-Id: I1e8e19185bce2800a0aee2a1623b204adb07355d
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2024-02-21 10:25:17 +08:00
Cai YiWei
e84d9bd50a media: rockchip: isp: add ioctl to get bay3d buf
Change-Id: Id65390eab9f1dc2d64405def56e854078ceba037
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2024-02-21 10:25:17 +08:00
Liang Chen
25c456719d clk: rockchip: rv1106: optimize calibrate step for cru pvtpll
The frequency of pvtpll may unstable when calibrate, if the step
is too small, it will stride a too big length and adjust back
again, that is bad.

Signed-off-by: Liang Chen <cl@rock-chips.com>
Change-Id: I96227b37cde45ae86df68777da8f32467f8926e6
2024-02-21 10:19:27 +08:00
Liang Chen
f3fcf22888 ARM: rockchip: rv1106_pm: optimize pvtpll save/restore process flow
Pvtpll length must configure before enable pvtpll, otherwise pvtpll
may output wrong frequency.

Signed-off-by: Liang Chen <cl@rock-chips.com>
Change-Id: I432d10b53bf5853c724fb9e4e54256a3dd3e146b
2024-02-21 10:19:16 +08:00
Sebastian Reichel
ef32b29caa UPSTREAM: usb: dwc3: add optional PHY interface clocks
On Rockchip RK3588 one of the DWC3 cores is integrated weirdly and
requires two extra clocks to be enabled. Without these extra clocks
hot-plugging USB devices is broken.

Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Link: https://lore.kernel.org/r/20231020150022.48725-3-sebastian.reichel@collabora.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit 97789b93b792fc97ad4476b79e0f38ffa8e7e0ee)
Change-Id: Ib6268cb1de3560c4a5f1f1af898cb8869bb3ca4f
2024-02-20 18:41:51 +08:00
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
Samuel Holland
8d3794f358 UPSTREAM: gpio: rockchip: Reset int_bothedge when changing trigger
With v2 hardware, an IRQ can be configured to trigger on both edges via
a bit in the int_bothedge register. Currently, the driver sets this bit
when changing the trigger type to IRQ_TYPE_EDGE_BOTH, but fails to reset
this bit if the trigger type is later changed to something else. This
causes spurious IRQs, and when using gpio-keys with wakeup-event-action
set to EV_ACT_(DE)ASSERTED, those IRQs translate into spurious wakeups.

Fixes: 3bcbd1a85b ("gpio/rockchip: support next version gpio controller")
Reported-by: Guillaume Savaton <guillaume@baierouge.fr>
Tested-by: Guillaume Savaton <guillaume@baierouge.fr>
Signed-off-by: Samuel Holland <samuel@sholland.org>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
(cherry picked from commit 7920af5c82)
Signed-off-by: Steven Liu <steven.liu@rock-chips.com>
Change-Id: I8b4645a81e553957a77cca84e4152f1e38dd1852
2024-02-20 15:16:59 +08:00
Zhihua Wang
d55e030c51 ARM: dts: rockchip: rv1106-evb-dual-cam add sc530ai
Signed-off-by: Zhihua Wang <hogan.wang@rock-chips.com>
Change-Id: Ia073eb82e135466844e6474883f4b0f70aeacbf0
2024-02-19 09:28:11 +08:00
Cai YiWei
f938361535 media: rockchip: isp: fix mp wrap buf from rockit no output
Change-Id: I88fa7707ce8a67846951c0fc6287f81d8c3719ee
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2024-02-18 14:07:29 +08:00
wei.luo
4122e58de9 mfd: display-serdes: fix building error
Fixes: c60873aaf6 ("mfd: display-serdes: add error detection and recovery function")
Signed-off-by: Luo wei <lw@rock-chips.com>
Change-Id: Idcafd226b6e338f6c6180f61212ac7a09d8081b7
2024-02-18 10:07:13 +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