Commit Graph

1272442 Commits

Author SHA1 Message Date
Algea Cao
ba78086f0b drm/bridge: synopsys: dw-hdmi-qp: Read bstatus via ddc
When hdcp repeater's device count is 0, hdmi controller
will not update bstatus in hdcp1.4 ram. So bstatus should
be read via ddc directly.

Change-Id: I891f3824c0e77586c1180b118d38da4667e4a927
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2024-08-14 17:55:20 +08:00
Algea Cao
5abf2c5f69 drm/rockchip: dw_hdmi: Output max rate if support frl mode and rate in edid is 0
Change-Id: Ibd4d4f16478412a2a3260ac717b0ba53e80e7740
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2024-08-14 17:55:20 +08:00
Algea Cao
d9459b1ea9 drm/rockchip: drv: Support HFR1-17
HFR1-17 requires that when the frl rate in edid
is protocol undefined, hdmitx must output the
maximum supported frl rate.

Change-Id: I61a0152d570e826207f51724578b0113e8818302
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2024-08-14 17:55:20 +08:00
Algea Cao
f1408dc64a drm/rockchip: drv: Support parse edid scds
Change-Id: I0dc7fa3c755819ed48a2c05797405105f1b075d0
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2024-08-14 17:55:20 +08:00
Algea Cao
6fda045b25 drm/rockchip: dw_hdmi: Output yuv420 when sink only support yuv420
Change-Id: I458f1ba66d94eaa5a77722a72f14f688de311d88
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2024-08-14 17:55:20 +08:00
Algea Cao
e7163be259 drm/bridge: synopsys: dw-hdmi-qp: Add flt thread for frl cts
Added flt state machine thread to ensure that frl cts can pass:

1.Support txFFE Level switch.
2.Support LTS4.
3.Polling sink frl status after flt pass.

Change-Id: I0d2aa1e8fb5ae39ff3493daf4f2036dffe0817a2
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2024-08-14 17:55:20 +08:00
Algea Cao
e941183620 phy: rockchip-samsung-hdptx-hdmi: Supports different phy at different ffe levels
RK3588 support ffe level from 0 to 3.

Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: I8b90b68a5d452815e54223497ae05203c85470bd
2024-08-14 17:55:20 +08:00
Zefa Chen
78a3b3d34a media: rockchip: vicap: rk3588s2 max support 5 mipi
logic node  -> real hw

mipi_dcphy0 -> csi0 01 lane(or 4 lane, no used csi_dphy5)
mipi_dcphy1 -> dcphy1
csi_dphy1   -> csi1 01 lane
csi_dphy2   -> csi1 23 lane
csi_dphy5   -> csi0 23 lane

Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I33251ee31e60737c113107d2a47154e69d291760
2024-08-14 17:28:11 +08:00
Zefa Chen
7c4f13c632 media: rockchip: vicap fixes stop logic to avoid timeout
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Ibbf7851cca4f8d0b4e2ab9407a173efa6ea92c54
2024-08-14 17:28:11 +08:00
Sugar Zhang
5cf9e075d7 ASoC: rockchip: i2s-tdm: Fix wrong TRCM id
Fixes: 3f4436826e ("ASoC: rockchip: i2s-tdm: Fix 1-Bit offset case")

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Ia2188975b139e8dc751b28758e9a21f3cad6d593
2024-08-14 14:52:46 +08:00
Sugar Zhang
27f1ad5ccc ASoC: rockchip: dlp: Add support for pcm pattern playback
CONFIG_SND_PCM_PATTERN_DEBUG

* MSB check
* channel id
* as much as more 0/1 stress

PATTERN8(x)     (0xa0 | (x))
PATTERN16(x)    (0xab00 | (x))
PATTERN32(x)    (0xabcabc00 | (x))

e.g. 16bit 4ch pattern:

0xab01 0xab02 0xab03 0xab04 0xab01 ...

This pattern is only used for IOCTL_READ/WRITE, not
suitable for MMAP.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I96d9664460adeee13ac86558159b39c9ab0dabe8
2024-08-14 09:09:42 +08:00
Sugar Zhang
0083e5a0ce ALSA: pcm: Add support for pcm pattern playback
CONFIG_SND_PCM_PATTERN_DEBUG

* MSB check
* channel id
* as much as more 0/1 stress

PATTERN8(x)     (0xa0 | (x))
PATTERN16(x)    (0xab00 | (x))
PATTERN32(x)    (0xabcabc00 | (x))

e.g. 16bit 4ch pattern:

0xab01 0xab02 0xab03 0xab04 0xab01 ...

This pattern is only used for IOCTL_READ/WRITE, not
suitable for MMAP.

Change-Id: Ida01d0e30b20d0a14f3b8439eed430af8a3a9d56
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
2024-08-14 09:09:02 +08:00
XiaoTan Luo
b050234e13 arm64: dts: rockchip: rk3576 boards: Add pinctrl idle/clk for pdm
This commit adds pinctrl idle/clk configuration for the PDM on RK3576 boards to improve power management and reduce clock glitches during runtime.

commit: 48aa220b8b ("ASoC: rockchip: pdm_v2: Fix clk glitch on runtime PM")

Signed-off-by: XiaoTan Luo <lxt@rock-chips.com>
Change-Id: I41ad272a19656af325b42e4284296a21f14cafe4
2024-08-13 16:05:54 +08:00
Zain Wang
a44df82a67 ARM: rk3506_defconfig: used zstd compression for squashfs
Change-Id: I78c58c134e0e51065ffacc3b49e4502b5cb55d42
Signed-off-by: Zain Wang <wzz@rock-chips.com>
2024-08-13 16:05:39 +08:00
Vidya Sagar
da7c19384d FROMLIST: PCI/hotplug: Add GPIO PCIe hotplug driver
This adds a standalone driver to support PCIe hotplug functionality
merely based on a GPIO indicating the status of a downstream device
connectivity. It looks for "hotplug-gpios" property in the corresponding
device node to get the GPIO information.

It also provides a mechanism for platform drivers of the controllers
to register ops to perform any platform specific operations while
enabling/disabling the slots.

Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Link: https://patchwork.kernel.org/project/linux-pci/patch/20220930192747.21471-3-vidyas@nvidia.com/
Change-Id: Iafa798ee4d98f195f5d33d80120da0c569132548
2024-08-13 15:56:06 +08:00
Vidya Sagar
37921b4b01 FROMLIST: dt-bindings: Add "hotplug-gpios" PCIe property
Provide a way for the firmware to tell the OS about the GPIO that can be
used to get the Hot-Plug and Unplug events.

Signed-off-by: Vidya Sagar <vidyas@nvidia.com>
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Link: https://patchwork.kernel.org/project/linux-pci/patch/20220930192747.21471-2-vidyas@nvidia.com/
Change-Id: I2a24689796a5cc6cb9596e92cf47139127098353
2024-08-13 15:55:55 +08:00
David Wu
cd4a1dca2f i3c: master: Add driver for Rockchip IP
Add driver for Rockchip I3C master IP

Change-Id: I73ca38117c0e0e603da23586c7b5c93f80917b2e
Signed-off-by: David Wu <david.wu@rock-chips.com>
2024-08-13 15:17:31 +08:00
Lin Jianhua
3dea18690f ARM: rk3506_defconfig: enable rk801/gslX680/hym8563/stk3332 for rk3506g demo board
before:
   text	   data	    bss	    dec	    hex	filename
4880931	2116804	 107272	7105007	 6c69ef	vmlinux
after:
   text	   data	    bss	    dec	    hex	filename
4922448	2288868	 118408	7329724	 6fd7bc	vmlinux

Change-Id: If066c764f6f17c35041f9f6a12afe255334b4f46
Signed-off-by: Lin Jianhua <linjh@rock-chips.com>
2024-08-13 10:38:03 +08:00
Zain Wang
59482a3a75 ARM: dts: rockchip: add rk3506g-demo-display-control.dts
Change-Id: I2b0b5d31694168c37ba122a49ded99da64dbe3dc
Signed-off-by: Zain Wang <wzz@rock-chips.com>
2024-08-13 10:33:06 +08:00
Hongming Zou
17a4e1cf2a input: touchscreen: gslx680_pad support gsl1686
Change-Id: If1ffbb172b63b046496340fd7e90c51dc64d7abf
Signed-off-by: Hongming Zou <hongming.zou@rock-chips.com>
2024-08-13 10:31:17 +08:00
XiaoTan Luo
54359b56ca arm64: dts: rockchip: rk3576: Add pinctrl idle for pdm
Signed-off-by: XiaoTan Luo <lxt@rock-chips.com>
Change-Id: Ia1aaf014ae5c393d3e1cc9155c6b7135acc12eb7
2024-08-13 09:31:44 +08:00
Tao Huang
793f93d85a ASoC: rk817: Sync with upstream
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I6162f1b433fd6bef619f6cad8df3b1ac8e734c06
2024-08-13 09:27:52 +08:00
Jon Lin
4c9bb4b7cc arm64: dts: rockchip: rk3576: Define fspi max-dll
Change-Id: I01ab52ee7f0368bb08b86307ffb44561f07331b9
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2024-08-13 09:27:36 +08:00
Joseph Chen
c98ecc8caa ARM: dts: rockchip: rk3506-evb1: Update rockchip-suspend node
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I9fb7eb37e3540aaa1ca3b1ba3e6792ef8655f53f
2024-08-13 09:21:52 +08:00
Joseph Chen
d9e3721dae ARM: dts: rockchip: rk3506: Add rockchip-suspend node
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I2ee72633c016d83d8655f4172252bd1c0c41cd14
2024-08-13 09:21:22 +08:00
Joseph Chen
3a23e8876c dt-bindings: suspend: Add rk3506 support
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I89e5bb2a806e0848ef97db6535d9b458d145c361
2024-08-13 09:21:11 +08:00
Jon Lin
66f11090f1 ARM: dts: rockchip: rk3506: Define fspi max-dll
Change-Id: I913a406bd3992f24fd437c905bc8b0c304f7befa
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2024-08-13 09:16:45 +08:00
Jon Lin
7f0be18516 dt-bindings: spi: rockchip-sfc: Add rockchip,max-dll property
Change-Id: I8b559635082a1a5785cc5075afba5de13cde8d89
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2024-08-13 09:11:10 +08:00
Jon Lin
2b1b24b4f0 spi: spi-rockchip-sfc: Support maximum dll cell setting for chips
Change-Id: I9bee5b29db8c1eb657720101f32c8d057328451c
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2024-08-13 09:11:10 +08:00
Cai YiWei
ec95dade2e media: rockchip: isp: fix isp39 sensor mode config
Change-Id: I9a98a86c1173392a1e44c0accecd769c3bf320db
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2024-08-12 19:18:05 +08:00
Yu Qiaowei
ad9aebd65b video: rockchip: rga3: optimize 'time' debug log
1. Add flush cache cost time
2. Fix wrong time-consuming statistics of set_reg

Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: I35254e49cd18e49d3ac691fc06ff67d2e36d3149
2024-08-12 19:02:50 +08:00
Joseph Chen
14ce427bb0 mfd: rk808: Add rk801 PMIC support
PMIC RK801 consists of:
  - 4 x BUCK
  - 2 x LDO
  - 1 x SWITCH
  - 1 x Pwrkey

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: If65c2c3ac41cd6c6199e22c65c54e8600c113148
2024-08-12 17:59:54 +08:00
Joseph Chen
1e9b96e375 ARM: rk3506_defconfig: Set CONFIG_ROCKCHIP_SUSPEND_MODE=y
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I9d1ffbc35c318a75ad165ad004e53637f9edd992
2024-08-12 14:31:39 +08:00
Cai YiWei
a07115527b media: rockchip: isp: isp39 add api to get params
enable CONFIG_VIDEO_ROCKCHIP_ISP_VERSION_V39_DBG in kernel config
to enable api, disable default

Change-Id: I37aafc3f10023ab4cf2791de34bb5ad8855fe1f3
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2024-08-12 11:06:05 +08:00
Cai YiWei
df4d3676e7 media: rockchip: isp: fix isp39 params
Change-Id: Ia9e0e79964072464f068e426f2cfaef30d2414ed
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2024-08-12 11:06:05 +08:00
Cai YiWei
37a90dcc03 media: rockchip: isp: frame buf default to ddr for isp39 multi sensor
Change-Id: I628d8eae0969c5c0f4ba9c405f6254e4063557a5
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2024-08-12 11:06:05 +08:00
Wu Liangqing
11ed525680 arm64: dts: rockchip: rk3562-android: enable rockchip_suspend
Change-Id: I934e210b35d9cbf9b80c374569ff5bba53ffb87d
Signed-off-by: Wu Liangqing <wlq@rock-chips.com>
2024-08-12 10:53:19 +08:00
XiaoTan Luo
6e848cbd34 ASoC: rk817: Fix no sound issue on first switch from 48K to 16K/8K
When switching sample rates, the clock settings are as follows:
- For 48K, MCLK = 256fs = 256 * 48K = 12288K
- For 16K, MCLK = 256fs = 256 * 16K = 4096K
- For 8K, MCLK = 256fs = 256 * 8K = 2048K

The `set_sysclk` function in the soc i2s_tdm controller does not
actually perform `clk_set_rate`; it merely passes the parameters.
The actual `clk_set_rate` is called during `i2s_tdm_hw_params`.
However, `rk817_hw_params` performs `restart_clk_apll` inside,
which sets the PLL parameters that do not match the MCLK,
resulting in silence. To resolve this, clk_set_rate for the MCLK
frequency should be called within the set_sysclk function.

Signed-off-by: XiaoTan Luo <lxt@rock-chips.com>
Change-Id: I3ad233542a5e8b16ae72f829e086a25f5be4a095
2024-08-09 18:48:35 +08:00
Wu Liangqing
cfe645f143 arm64: dts: rockchip: add rk3576-test5-v10.dts for rk3576 test5 evb
Type: Fix/Function/PerOpt
Redmine ID: #N/A
Associated modifications: N/A
Test: N/A

Signed-off-by: Wu Liangqing <wlq@rock-chips.com>
Change-Id: I39b177c63773753ee8efe68446f2d7c532cf831c
2024-08-09 18:13:39 +08:00
Liang Chen
0895030273 Revert "arm64: dts: rockchip: rk3576: set limit rate and offline cpus for early suspend"
This patch will impact performance, so disable this feature by default.

This reverts commit 980a9f6834.

Change-Id: I8f7e2413049f92e87b4a915e9e597172ecb955ce
Signed-off-by: Liang Chen <cl@rock-chips.com>
2024-08-09 16:34:26 +08:00
Xuhui Lin
68cf3d9c46 ARM: dts: rockchip: rk3506-pinctrl: Increase driver strengths of some SPI IOs
According to SPI signal test results:
(1) When using SPI IOs under 3.3V power domain, need to increase
    driver strength to level3.
(2) When using SPI IOs under 1.8V power domain, use default driver
    strength(level2) is best.

Change-Id: I0404418256d4f9671393345bf44ffd4e285af584
Signed-off-by: Xuhui Lin <xuhui.lin@rock-chips.com>
2024-08-09 16:17:06 +08:00
Ye Zhang
63cfe63d81 gpio: rockchip: Prevent underflow unsigned variables.
Signed-off-by: Ye Zhang <ye.zhang@rock-chips.com>
Change-Id: I2910fe7c57683bbd175cbc4b28584ff84f037d07
2024-08-09 15:01:28 +08:00
Ye Zhang
dc86ccfba0 gpio: rockchip: release reference to device node
Signed-off-by: Ye Zhang <ye.zhang@rock-chips.com>
Change-Id: I2f755fe900a54d9c82c9e6a3e889330ea6c298ac
2024-08-09 15:01:15 +08:00
David Wu
64aac2b25c arm64: dts: rockchip: rk3576: Add reset nodes for i3c
Change-Id: I0bb82b9c271e7f5409aae0203b7816e4678d4dc0
Signed-off-by: David Wu <david.wu@rock-chips.com>
2024-08-09 09:21:11 +08:00
Ye Zhang
62dec0a878 rockchip: gpio: fix debounce config error
1. Prevent data from crossing boundaries
2. Support GPIO_TYPE_V2_2 debounce config

Signed-off-by: Ye Zhang <ye.zhang@rock-chips.com>
Change-Id: I57e295806a4f0f4002527daf77fe41f584a7e9e1
2024-08-09 09:21:10 +08:00
Sugar Zhang
e8c26e3dfa arm64: dts: rockchip: rk3399: Remove mclk define in i2s_8ch_bus
mclk pin has been addressed in i2s_8ch_mclk, and used by
codec, so, do not redefine it again in i2s_8ch_bus.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I74a3c3f817142ff4c313bbf9a39ced215f04feb6
2024-08-09 09:21:10 +08:00
Jianwei Fan
faf5d48659 media: rockchip: vicap fix bug of tasklet disable when tasklet not enable
Change-Id: Ibf700123ace0227990b68b01d0919034ecb53904
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
2024-08-09 09:21:10 +08:00
Jianwei Fan
fc5d560717 media: i2c: rk628: DSI mode add 4096x2160 res support
1.mipi date rate need to set 1850Mbps
2.DSI RGB output need to set skip first frames

Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: I0a339e339bd94dae66be682a4481a4b0cef8ff99
2024-08-09 09:21:10 +08:00
Jianwei Fan
4fb1432e67 media: i2c: rk628: fix YUV420-10bit hdmirx input support
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: Ifa0880c563d04a44f43054596a48d622155e491d
2024-08-09 09:21:10 +08:00
Jianwei Fan
ae0bee6029 media: i2c: rk628: fix user set csc color range
Change-Id: Ibc35c8bbbc54c9b4de4977d9500083afa2857b36
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
2024-08-08 16:42:55 +08:00