Commit Graph

1080173 Commits

Author SHA1 Message Date
Sugar Zhang
e007c5be2f arm64: dts: rockchip: rk3588: Add mclkout for I2S1-M1
I2S1 has two iomux group, M0 is located in BUS_IOC,
and M1 is located in PMU_IOC. they are controlled by
different IOE bit.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Ib6b302e8b03aa7d64bdd11862c413c736eaf4636
2023-07-03 16:54:40 +08:00
Cai YiWei
8c236335ed media: rockchip: isp: fix uyvy format for unite mode
Change-Id: Id497079cc30fddcb06e19ac267de92d5c48b68dc
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2023-07-03 16:28:06 +08:00
Sugar Zhang
5c003b6983 ASoC: rockchip: i2s-tdm: Reduce FIFO XRUN warning prompt
Warning once each time FIFO XRUN occurs, and then disable
it, until the next time the stream resume.

Before:
  rockchip_i2s_tdm_isr: 234 callbacks suppressed
  rockchip-i2s-tdm fe480000.i2s: TX FIFO Underrun
  rockchip-i2s-tdm fe480000.i2s: TX FIFO Underrun
  rockchip-i2s-tdm fe480000.i2s: TX FIFO Underrun
  rockchip-i2s-tdm fe480000.i2s: TX FIFO Underrun
  rockchip-i2s-tdm fe480000.i2s: TX FIFO Underrun
  rockchip-i2s-tdm fe480000.i2s: TX FIFO Underrun
  rockchip-i2s-tdm fe480000.i2s: TX FIFO Underrun
  rockchip-i2s-tdm fe480000.i2s: TX FIFO Underrun
  rockchip-i2s-tdm fe480000.i2s: TX FIFO Underrun
  rockchip-i2s-tdm fe480000.i2s: TX FIFO Underrun
  ...

  cat /proc/interrupts | grep i2s
  21:      514 0 0 0 0 0 0 0 GICv3 213 Level  i2s

After:

  rockchip-i2s-tdm fe480000.i2s: TX FIFO Underrun
  rockchip-i2s-tdm fe480000.i2s: TX FIFO Underrun
  rockchip-i2s-tdm fe480000.i2s: TX FIFO Underrun
  rockchip-i2s-tdm fe480000.i2s: TX FIFO Underrun

  cat /proc/interrupts | grep i2s
  21:        4 0 0 0 0 0 0 0 GICv3 213 Level  i2s

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Ibe3b07d94b31f421fd637296cb137d5ba1071fcc
2023-07-03 15:49:50 +08:00
XiaoTan Luo
87f8c92f0e arm64: dts: rockchip: rk3588-vehicle: btsco enable 16k pcm support
Enable 16k pcm support for rk3588 vehicle boards.
Fixes: e1e3340e25 ("arm64: dts: rockchip: rk3588 boards: btsco enable 16k pcm support")

Signed-off-by: XiaoTan Luo <lxt@rock-chips.com>
Change-Id: Ifeaa088a01f7dee35cd9f669e0dfb04015f4413a
2023-07-03 15:49:06 +08:00
Sugar Zhang
264abe5b9d ASoC: rockchip: pdm: Fix clear on runtime resume
register PDM_SYSCONFIG is marked as volatile, and for regcache
sync policy, it will skip the registers which marked as volatile.

so, we should do it after regcache sync.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Ic65bc28d14fefc6e6c70e1b2c26468aa0fcd142e
2023-07-03 15:47:30 +08:00
Jon Lin
0a17a29a19 arm64: dts: rockchip: rk3588-evb: Set pcie30x4_clkreqn_m1 gpio output low
The new hardware design will connect clkreq to the control pin of the
external clock, so the default output should be low level。

Change-Id: I2c99b90b7de359c8f32576d5f6eb7157c7a4a7b5
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2023-07-03 14:31:57 +08:00
Sugar Zhang
8012da0685 arm64: dts: rockchip: rk3562: Enable Schmitt-Trigger for pins I2Sx-CLK
This patch enable Schmitt-Trigger for pins I2S-MCLK/BCLK/LRCK for
clk noise reduction on slave mode which clk is provided by external
devices. and this can make controllers work much more robust.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I04237f1b1f56c5abbb4b61f0a2c1af89b1e32bc3
2023-07-03 14:28:14 +08:00
Sugar Zhang
c31bdd4afb arm64: dts: rockchip: rk3528: Enable Schmitt-Trigger for pins I2Sx-CLK
This patch enable Schmitt-Trigger for pins I2S-MCLK/BCLK/LRCK for
clk noise reduction on slave mode which clk is provided by external
devices. and this can make controllers work much more robust.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I619605ee9f71f912e495a2eb991746cdc67d8dd8
2023-07-03 14:28:14 +08:00
Sugar Zhang
1960cac34a arm64: dts: rockchip: rk3588: Enable Schmitt-Trigger for pins I2Sx-CLK
This patch enable Schmitt-Trigger for pins I2S-MCLK/BCLK/LRCK for
clk noise reduction on slave mode which clk is provided by external
devices. and this can make controllers work much more robust.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I8734c40041733b51107d0ed9715606111b2b94b9
2023-07-03 14:28:14 +08:00
Sugar Zhang
f2e765e3f9 arm64: dts: rockchip: rk3568: Enable Schmitt-Trigger for pins I2Sx-CLK
This patch enable Schmitt-Trigger for pins I2S-MCLK/BCLK/LRCK for
clk noise reduction on slave mode which clk is provided by external
devices. and this can make controllers work much more robust.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Iaac7ecc28e2a686e0c01ff4f3ae082d90fe3474d
2023-07-03 14:28:14 +08:00
Sugar Zhang
1a62380cdb arm64: dts: rockchip: px30: Enable Schmitt-Trigger for pins I2Sx-CLK
This patch enable Schmitt-Trigger for pins I2S-MCLK/BCLK/LRCK for
clk noise reduction on slave mode which clk is provided by external
devices. and this can make controllers work much more robust.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I757328e08969031a638e2f7b7da09bf7473f8a0b
2023-07-03 14:28:14 +08:00
Sugar Zhang
ebac5559a8 arm64: dts: rockchip: rk3308: Enable Schmitt-Trigger for pins I2Sx-CLK
This patch enable Schmitt-Trigger for pins I2S-MCLK/BCLK/LRCK for
clk noise reduction on slave mode which clk is provided by external
devices. and this can make controllers work much more robust.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I08b127b7f75f303c8da45973d068f57b9a6ebc62
2023-07-03 14:28:14 +08:00
Sugar Zhang
b66ce77e31 arm64: dts: rockchip: rk1808: Enable Schmitt-Trigger for pins I2Sx-CLK
This patch enable Schmitt-Trigger for pins I2S-MCLK/BCLK/LRCK for
clk noise reduction on slave mode which clk is provided by external
devices. and this can make controllers work much more robust.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I27ff54d8e17ef9a41cf2db91dbbfb8e81f8227ff
2023-07-03 14:28:14 +08:00
Zefa Chen
deb5581bef media: i2c: sensor driver remove limit of modify sensor fps
to solve the problem of the camera being unable to restore the default frame rate after adjust it to other frame rates

Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Iedbeca79cb17368922d41a55ef2aafeb58170e1f
2023-06-30 19:38:03 +08:00
Zhang Yubing
6bd92608df drm/rockchip: drv: get acm and csc info when boot
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
Change-Id: I03dd5370a86d7a998bd8543c3eb09b1b7a8746c6
2023-06-30 16:27:48 +08:00
Zhang Yubing
49d12068b3 drm/rockchip: drv: add a parameter to pass data for crtc loader protect
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
Change-Id: I463766227e8bc1acc325831941bba2c44b1e8b6b
2023-06-30 16:27:19 +08:00
Yifeng Zhao
5580a7e6f3 mmc: dw_mmc-rockchip: fix v2 tuning defect
The v2 tuning has a defect, When tuning again, it is possible to
choose the phase that was previously selected which cannot work
stable.

Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: I0dcc83bb35567278e8a10f1964f4636573b165ec
2023-06-30 15:21:01 +08:00
Shiqin Chen
701fcef947 arm64: dts: rockchip: Add rk3568 toybrick board
Change-Id: I7e17479682405b2edb402a31c5c4feff4a5a7f9f
Signed-off-by: Shiqin Chen <chensq@rock-chips.com>
2023-06-30 15:20:14 +08:00
Cai Wenzhong
b35fc82165 arm64: dts: rockchip: add rk3588-vehicle-evb-maxim-max96722.dtsi.
Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Change-Id: Ic9ac28c908fea6cb7e4f58a4f9f749cb97d02998
2023-06-30 11:54:16 +08:00
Kever Yang
0ead4b6531 net: rfkill: rk: Add stub for rfkill_get_wifi_power_state() when CONFIG_RFKILL_RK=n
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
Change-Id: I15897f8421e7f00b08170f428179c82b969e36fd
2023-06-30 10:56:20 +08:00
Jon Lin
527eb2b93f dt-bindings: spi: spi-rockchip: Add description for ready-gpios property
Change-Id: I944f06c01a5c719c5bfc6313a41933794e92efd8
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2023-06-30 09:47:49 +08:00
Jon Lin
2286209df9 spi: rockchip: Support slave ready gpio signal
When spi slave is configured and ready to sample the clk from the
spi master, sending the gpio signal to remote, and the signal is
rising edge effective.

Add gpio to spi dts node like following:
&spi1 {
	...
	ready-gpios = <&gpio1 RK_PD2 GPIO_ACTIVE_LOW>;
	...
};

Change-Id: I38c81d9058a1eb0c5397a37df99c22d273c30692
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2023-06-30 09:45:03 +08:00
Jon Lin
cb95040587 dt-bindings: spi: spi-rockchip: Add description for rockchip,cs-inactive-disable property
Change-Id: If71321768bac1398cbd1127fc572bc9a6d20b804
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2023-06-30 09:43:03 +08:00
Jon Lin
a51736f637 spi: rockchip: Support rockchip,cs-inactive-disable property
The feature cs-inactice support ss_in_n posedege interrupt in slave
mode, but it's need to disable the feature of cs-inactive.

Change-Id: I7a983719811589ee729a4355d3d5159ec78d1257
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2023-06-30 00:12:37 +08:00
Cai Wenzhong
6d7c7b143a media: i2c: max96722: version 1.01.00
Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Change-Id: I7f54b870205489a5fd66841b940361a067bcf1fd
2023-06-29 19:34:04 +08:00
Cai Wenzhong
b738cf9fb4 media: i2c: max96712: version 1.06.00
Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Change-Id: Ib0275f7160888b1ec7d85e98a3ab5e80c189b242
2023-06-29 18:53:56 +08:00
Felix Zeng
9db57dd757 driver: rknpu: Update rknpu driver, version: 0.9.0
* Fix power reference counting error
* Fix issue with IOMMU mode limited to 32-bit
* Reduce the time consumed by dma mapping

Signed-off-by: Felix Zeng <felix.zeng@rock-chips.com>
Change-Id: I93ea77fee4904455a80dfe6303ff049f3338742b
2023-06-29 18:53:07 +08:00
Damon Ding
8e777ce52e arm64: dts: rockchip: rk3562-evb1: add rgb2hdmi display board
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: I57f2a581a040bd5680c3acfa6f83897daed05d0d
2023-06-29 18:50:42 +08:00
Finley Xiao
2f6c8669bf arm64: dts: rockchip: rk3588j: Adjust Maximum frequency
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I930b9bd951175981d55b2ec1938dcb6eed2eaf52
2023-06-29 18:49:12 +08:00
Finley Xiao
25033bf473 arm64: dts: rockchip: rk3588m: Remove unused nodes
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: Ie140880538225e0905f9e4132d82274db73ba5da
2023-06-29 18:49:12 +08:00
Finley Xiao
7efaf6559d arm64: dts: rockchip: rk3588s: Add opps for rk3588j/m
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I261edc1f7af8159840f3caf2046e8f9962f81974
2023-06-29 18:49:12 +08:00
Finley Xiao
2fe4992cb6 soc: rockchip: opp_select: Add support to parse 'rockchip,pvtm-voltage-sel-hw'
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I9d8ad8057f5fff32d5cd859b9d6ee71486c61160
2023-06-29 18:49:12 +08:00
Finley Xiao
ed8ff84e98 soc: rockchip: opp_select: Implement rockchip_set_opp_supported_hw()
This implements new APIs to get soc info and set opp hardware info.

Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I167a37f661ce6fc8b32afc7768985fe23e35318c
2023-06-29 18:49:12 +08:00
Wang Panzhenzhuan
d36f5cd2cf video: rockchip: vehicle: fix flinger buf search issue
Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
Change-Id: Id1fcecdb780c4cc69190619b23fc829a872201bb
2023-06-29 18:22:28 +08:00
Wang Panzhenzhuan
9f23b04a7f video: rockchip: vehicle cif mipi interlaced support correct frame sequence
Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
Change-Id: I01a4ad0b83ed9f7d6741a09520563f27a6d98101
2023-06-29 18:17:01 +08:00
Wang Panzhenzhuan
6706d3c865 video: rockchip: vehicle: default use nv12 scale to vop show
1. default use nv12 scale to vop show
2. force scale to 1920x1080 before to vop show

Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
Change-Id: Ib6cbe8a638ab6a285c4982cd031b39db90f58c04
2023-06-29 10:53:40 +08:00
Wang Panzhenzhuan
d95cdfda87 video: rockchip: vehicle: nvp6324 add SD_H960 NTSC & PAL support
Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
Change-Id: Iad6bd21aaa0fcb3283f4f967e64c1f310b1516aa
2023-06-29 10:53:40 +08:00
Yao Xiao
5dfd3c6a1b rfkill: bt: fix unbalanced wake_host_io
Change-Id: Ie486db27454a78f145d94b2c71b88e1ce3ab605b
Signed-off-by: Yao Xiao <xiaoyao@rock-chips.com>
2023-06-28 20:10:49 +08:00
Damon Ding
7bdc7c13c5 drm/rockchip: rgb: add support for rgb666_3x6 and rgb565_2x8 modes
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: I9ae49745e0e8eca4672f3600d8a770279714fe98
2023-06-28 16:45:31 +08:00
Damon Ding
e9a74303e1 drm/rockchip: vop: add support for rgb666_3x6 and rgb565_2x8 modes
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: I6a6f3610c9e9e7c8c7869796c0de318af19666da
2023-06-28 16:45:22 +08:00
Damon Ding
e59bb483a2 media: uapi: add MEDIA_BUS_FMT_RGB666_3X6 media bus format
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: Idee22ed5875a58e22c89f7013c7c790a072a2e1a
2023-06-28 16:45:14 +08:00
Felix Zeng
89a2d47db7 driver: rknpu: Compatible with kernel 6.1 compilation, version: 0.8.9
Signed-off-by: Felix Zeng <felix.zeng@rock-chips.com>
Change-Id: I88ca7a85e3ea5e2a410f48a5789f17b57ffb267e
2023-06-28 16:36:49 +08:00
Algea Cao
484d7b1bd6 misc: Add rk628 misc drivers
Customers may use rk628 drivers on different platforms.
Hence we need drivers that do not rely on the FB/DRM
display framework.

Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: Iaab679e4a72d0fb0e5a76bee89b8e1bdac60f4a7
2023-06-28 15:43:53 +08:00
Zhang Yubing
e847ed9deb drm/rockchip: vop3: update acm info when it change
When update acm info, it need disable acm function in the first frame,
then update the acm info and enable acm function in the second frame.
If the acm info is not changed between 2 frames, it don't need update.

Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
Change-Id: Iaedead2fad5951844ca07b037c3588071499e50a
2023-06-28 15:36:09 +08:00
Sandy Huang
ce5da098c4 drm/rockchip: vop2: update rk3568 max height limit
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: Ic323e783452e1d97a0b4df955ad7d11ead8da17a
2023-06-27 20:40:08 +08:00
Sandy Huang
96a4ade24f drm/rockchip: lvds: update MEDIA_BUS_FMT_RGB666_1X7X3_SPWG description
Refer to the following information:

https://www.kernel.org/doc/Documentation/devicetree/bindings/display/panel/panel-lvds.txt

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I9ea389605940911d576e5ed0c0be20f892f41390
2023-06-27 20:40:08 +08:00
Yifeng Zhao
4fa16359d6 mmc: sdhci-of-dwcmshc: support HS400ES for RK3568
Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: I0491bcb3def6e1f5975a94b8e8921027a9d6e271
2023-06-27 20:37:32 +08:00
Sandy Huang
79f0bdb4fc Revert "arm64: rockchip_defconfig: enable CONFIG_ROCKCHIP_DRM_CUBIC_LUT"
This reverts commit d7c77171a7.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: Ifff2f6bccc17c78fd6d449613da8b9c352293c70
2023-06-27 20:31:20 +08:00
Sandy Huang
7f9e600004 Revert "FROMLIST: drm: Extend color correction to support 3D-CLU"
This reverts commit 4b81d4e560.

Change-Id: I501bc346b574df3143a505abb509e331a5afc7b6
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2023-06-27 20:30:33 +08:00
Sandy Huang
3325b43a1a drm/rockchip: vop2: move cubic lut to rockchip drm driver
move cubic lut support from drm croe to rockchip drm driver and remove
depend on NO_GKI.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I8fb6ba4fc927bf9f7e1b38c180986b1e25393347
2023-06-27 20:30:23 +08:00