Commit Graph

1280646 Commits

Author SHA1 Message Date
Hongming Zou
e8e474cde9 phy/rockchip: inno-dsidphy: modify compatible for rv1126 dsi dphy
Change-Id: I20c1ed0bef953873079e0a1739e50904830cb1dd
Signed-off-by: Hongming Zou <hongming.zou@rock-chips.com>
2025-03-11 11:31:58 +00:00
Damon Ding
bc71a0f925 drm/rockchip: vkms: fix the size check of built-in modes in &drm_connector_helper_funcs.get_modes()
The unexpected warning may be like:

......
[    3.782187] rockchip-drm display-subsystem: [drm] User-defined mode not supported: "": 0 143007504 65472 65535 6544 2182 65535 0 0 0 0xff 0x0
......

Change-Id: I06ebfba8b8d06633db923091a6224a3bf5c1e49a
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2025-03-11 10:37:45 +08:00
Shengfei Xu
5be89acd01 arm64: dts: rockchip: rk3576-rk806/tablet: Revised battery charging current configuration
Change-Id: Ie067094e0067c1ddcbbcc9996b640ef5c9b88973
Signed-off-by: Shengfei Xu <xsf@rock-chips.com>
2025-03-10 12:21:47 +00:00
Sandy Huang
8127940715 drm/rockchip: vop2: add support dovi mode config
Mode0: normal mode
  echo 0 > /sys/kernel/debug/dri/0/video_port0/dovi_mode
Mode1: disable aclk reset when enter dovi
  echo 1 > /sys/kernel/debug/dri/0/video_port0/dovi_mode

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: Ie680a86453d9bad2334b2ba67f8806d5cf382003
2025-03-10 11:11:48 +00:00
Sandy Huang
a638f5bb9e drm/rockchip: vop2: update mode changed for dovi
DOVI will set mode changed at the following case:
(1) Enter or Exit dovi output mode;
(2) Keep dovi output mode, and change from non dovi video to dovi video;

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I24b2dca58031c6930e207350856f215af8863b4b
2025-03-10 11:11:48 +00:00
Sandy Huang
968469b635 drm/rockchip: vop2: dynamic enable/disable dovi core
After this commit, dovi core will be disabled when unused.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: If3585155599374d0ed8f36cfb4adfac6996eee2e
2025-03-10 11:11:48 +00:00
Sandy Huang
8141859ffb drm/rockchip: vop2: add aclk reset when exit from dovi mode
The burr of the vsync signal maybe lead to core1 work
abnormally, so add aclk reset when exit from dovi mode.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I6266a874a54d5b0df97a2824e135c4249e5abf1f
2025-03-10 11:11:48 +00:00
Sandy Huang
b8bfe877da drm/rockchip: vop2: add support force DOVI mode
RK3588 force DOVI mode[only have UI->coer2 and none base layer to
core1], the UI layer must from layer2 and connect to core2, so insert
unused win to layer0.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I84b37120a0de10960fb41a7989130d48bdad153d
2025-03-10 11:11:48 +00:00
Ye Zhang
af693b7322 gpio: rockchip: release clk correctly when error
Fixes: 7b561549e4 ("gpio: rockchip: binding thread to specified cpu")
Signed-off-by: Ye Zhang <ye.zhang@rock-chips.com>
Change-Id: I6e1828400c1d11c8fafdb33561c5673e6efcf934
2025-03-10 10:46:08 +00:00
LiuDiMing Lin
0a07eff3f1 arm64: dts: rockchip: add rk3576 evb1 v10 dv dts
Change-Id: I01fa42fc175fba9f51b577f35de0bf42dcb63c94
Signed-off-by: LiuDiMing Lin <fenrir.lin@rock-chips.com>
2025-03-07 12:06:30 +00:00
Yu Zheng
4b02d79b0b arm64: configs: add rk3576_dv.config
Change-Id: Ifea1f89560e412427a3afe9761f5cbffba0d31d9
Signed-off-by: Yu Zheng <yu.zheng@rock-chips.com>
2025-03-07 20:04:49 +08:00
Shengfei Xu
173ce59ad2 power: supply: rockchip-charger-manager: Supports charging via docking station
Supports charging via docking station, but connected devices will
undergo a power cycle (temporary power loss followed by reconnection)
when the charger is unplugged from the docking station.

Change-Id: Ia24f1dc976f73cebb1758e069a4c49131d7a85f3
Signed-off-by: Shengfei Xu <xsf@rock-chips.com>
2025-03-07 09:07:04 +00:00
LiuDiMing Lin
76976b1b61 iio: imu: inv_icm42670: fix suspend/resume handling
This ensures all device settings are properly preserved across
suspend/resume cycles and improves error handling robustness.

Change-Id: I7624236c67b8cfb8ef7f7dcb15b3fa49dd9b16a2
Signed-off-by: LiuDiMing Lin <fenrir.lin@rock-chips.com>
2025-03-07 08:38:24 +00:00
LiuDiMing Lin
4ebddb8c85 iio: imu: inv_icm42670: use gpiod_to_irq to get interrupts instead
Change-Id: I968b7f0186d0ad3bbe926a47dbed2f173d6538ce
Signed-off-by: LiuDiMing Lin <fenrir.lin@rock-chips.com>
2025-03-07 15:42:07 +08:00
Ye Zhang
7b561549e4 gpio: rockchip: binding thread to specified cpu
Signed-off-by: Ye Zhang <ye.zhang@rock-chips.com>
Change-Id: Icaa814dc04ed3dbc5a3b4d66ebd2a08e5baef9e1
2025-03-06 11:36:34 +00:00
Jon Lin
c677d85122 arm64: dts: rockchip: rk3588: Add qos_gic600_m0 and qos_gic600_m1
Change-Id: Icb547d8765d345e979a12c98f52ddecad547c388
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2025-03-06 11:17:31 +00:00
Jon Lin
a7ee710147 phy: rockchip: naneng-combphy: Configuring grf with clk enabled
Change-Id: Ie6c2e5dcd9936ff8e65783faee72ef55a8dce4d2
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2025-03-06 11:17:31 +00:00
Mingwei Yan
cc9141e700 media: rockchip: vpss: refactor v_1 to v10
Signed-off-by: Mingwei Yan <mingwei.yan@rock-chips.com>
Change-Id: I804ac9f1dd1cbd9309dec7dca49c5e17266cc83a
2025-03-06 19:10:08 +08:00
Lin Jianhua
e79edde399 ARM: rk3308_linux_aarch32_defconfig: enable rkflash driver
Change-Id: I876484376a2d051d2b87f57461518105f6073eb3
Signed-off-by: Lin Jianhua <linjh@rock-chips.com>
2025-03-06 16:36:00 +08:00
Lin Jianhua
433e920152 arm64: rk3308_linux_defconfig: enable rkflash driver
Change-Id: Idfc07fa7e359d82b6247c133095212696347c619
Signed-off-by: Lin Jianhua <linjh@rock-chips.com>
2025-03-06 16:36:00 +08:00
Lin Jianhua
1cefa27a3d ARM: dts: rockchip: rk3308-voice-module-v11-aarch32: remove dmc node
The VDD_LOGIC of rk3308-voice-module-v11-aarch32 is fixed,
so do not enable dmc.

Change-Id: I6a8ccedc13f60106a25ee0c38eb40a984a2e3a53
Signed-off-by: Lin Jianhua <linjh@rock-chips.com>
2025-03-06 08:20:14 +00:00
Lin Jianhua
0814ec131f arm64: dts: rockchip: rk3308b-evb-v10: remove dmc node
The VDD_LOGIC of rk3308b-evb-v10 is fixed, so do not enable dmc.

Change-Id: I8a7478b828fe83c5ec8f06de0a0c4e57ba0d4030
Signed-off-by: Lin Jianhua <linjh@rock-chips.com>
2025-03-06 08:19:59 +00:00
Jon Lin
395167cbe5 drivers: rkflash: Update sftl to kernel6.1
Change-Id: I4e261ade3425f4561bc64ec23a2ffa38b744b7bd
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2025-03-06 08:19:27 +00:00
Jon Lin
1284e4f200 drivers: rkflash: Remove blk_mq_init_sq_queue
Change-Id: I28da9c60c7a11c003c664950cca79ac2bc26632e
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2025-03-06 08:19:27 +00:00
Eddy Zhang
aef4da30d0 leds: is31fl32xx: sync modifies from rk kernel-4.4.
1. add reset gpio for control power
2. add delayed register function
3. add suspend & resume support

Change-Id: I70a94d1bbdeee1143380c3d1cc2793fe0fa8114a
Signed-off-by: Eddy Zhang <eddy.zhang@rock-chips.com>
2025-03-06 10:55:46 +08:00
Shengfei Xu
4b1b147d3f power: supply: sc8551: Handling data out-of-bounds in Code
Change-Id: I3a2671b5dc2976d1dc030a21734cb425a72edad1
Signed-off-by: Shengfei Xu <xsf@rock-chips.com>
2025-03-06 01:22:12 +00:00
Tao Huang
62ee65392c video: rockchip: rga: Make rga_ioctl_kernel_imp() static
drivers/video/rockchip/rga/rga_drv.c:1691:6: error: no previous prototype for 'rga_ioctl_kernel_imp' [-Werror=missing-prototypes]

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Icb45c96075a5f8cf14d36806aa86a3ee8e52749b
2025-03-05 12:12:26 +00:00
Shawn Lin
074134053e PCI: rockchip: dw: Increase N_FTS needed by L0s exit
FTS, fast training sequences, is used for exiting from L0s, which
is issued to peers while in TS1 phase. If number of FTS issued is
not enough for PHY itself, FTS timeout would occur and the LTSMM
will fall into recovery leading to longer exit latency.

In theory this value is PHY relevant, especially combophy needs a
bigger FTS that another one. The default value is 210, just increase
it to 255 the max for compatibility.

Another thing should be noted is if EP can't work stable under L0s
or failing to do FTS in requested, just add them to quirk.c and there
were numbers of buggy devices already there who claims to support L0s but
actually not.

Change-Id: I071c27ef6a3ac504b9ed82b748b41ec55bfd5fc5
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
2025-03-05 12:10:20 +00:00
Zhang Yubing
bd5db4543a drm/rockchip: vop2: enable switch dclk to avoid turn off esmart pd failed
When enable vrr by switch dclk, the dclk source may be vp1 dclk.
In this case, if we want turn off esmart pd, the vp1 dclk should
be enable.

Change-Id: I2ad5a716763607693723fc8af6275444edae3dee
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2025-03-05 12:01:09 +08:00
Zhang Yubing
78afc36a99 drm/rockchip: vop2: dump vrr info
Change-Id: I2a428c9254c2fba08b616deee1505e87b91c9bfb
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2025-03-05 12:00:59 +08:00
Zhang Yubing
8ebfee0d1b drm/rockchip: vop2: support vrr by changing dclk and hfp
Change-Id: Ib4237693add871c9fe9f5a848cffcfaee242b69e
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2025-03-05 12:00:46 +08:00
Tao Huang
62646c7ab1 clk: rockchip: Fix missing rkclk_cpuclk_div_setting prototype for rk3128
drivers/clk/rockchip/clk-rk3128.c:566:6: error: no previous prototype for rkclk_cpuclk_div_setting [-Werror=missing-prototypes]

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I4f6407d9a09085d44de7a40e409b580256f99733
2025-03-05 01:49:03 +00:00
Tao Huang
cec18c3686 rtc: rk808: Explicitly include of.h for of_get_child_by_name
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ibdc94b634bab9b6964b56c58b8647efab90bb86a
2025-03-05 01:47:08 +00:00
Tao Huang
e6003f1293 ASoC: rk817: Explicitly include gpio/consumer.h for devm_gpiod_get_optional
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I039a99e4d7b58100f76432e57646b9f765f72864
2025-03-05 01:47:08 +00:00
Zhang Yubing
46e88d6992 drm/rockchip: dsi2: add crtc post enable and pre disable callback
Add crtc post enable and pre disable callback. Setting dsc config
done in crtc post enable callback if dsc is enable.

Change-Id: I6eb5e3c14ba70c90d2f3337c22754a3a7a96ea81
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
2025-03-04 12:03:20 +00:00
Zhang Yubing
e4a7f591fe drm/rockchip: vop2: set dsc config done in crtc post enable
DSC has strict constraint with timing output from VOP. If
vp reset dclk after DSC ready, something will be wrong with
DSC. To avoid this issue, it need set dsc config done after
dclk reset.

Fixes: fdcec7349c ("drm/rockchip: vop2: reset dclk after config stream output")

Change-Id: Ied1cddc381eacd86771ae52af82f31f887fdbf89
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2025-03-04 12:03:20 +00:00
Tao Huang
e9fd48e4a9 input: sensors: avoid -Wempty-body warning
drivers/input/sensors/accel/bma2xx.c:2093:47: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body]
 2093 |                 DBG("set bandwidth failed!\n");
      |                                               ^

Change the empty debug macros to no_printk(), which avoids the
warnings and adds useful format string checks.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I41d3b2eb23fef6f37a7680e869858be27ece3250
2025-03-04 19:16:11 +08:00
Tao Huang
1d9e4abff3 input: sensors: accel: dmard10: Make gsensor_reset() static
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I7c9cfa2e71278757e13ca38a6e4ab53650a20ddd
2025-03-04 18:55:30 +08:00
Tao Huang
7b0e4b864b ASoC: rk312x: Fix missing prototypes
sound/soc/codecs/rk312x_codec.c:604:5: error: no previous prototype for rk312x_codec_mute_dac [-Werror=missing-prototypes]
sound/soc/codecs/rk312x_codec.c:2412:6: error: no previous prototype for rk312x_platform_shutdown [-Werror=missing-prototypes]

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I5faa117a8fb6a803bfeffc5c20473e362f4f7ed9
2025-03-04 18:47:23 +08:00
Finley Xiao
1dd2cac363 arm64: dts: rockchip: rk3518: Add rockchip,video-1080p-freq for cpu opp table
Change-Id: I820e1311233d54aa3e10f5e5101161d9b6339f9c
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2025-03-04 09:14:23 +00:00
Finley Xiao
ac1d6418f5 soc: rockchip: system_monitor: Add support to limit cpu max freq when play 1080p video
Change-Id: I1a3e3a043b8a3827c807e869250625ba7f8a2cd8
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2025-03-04 09:13:36 +00:00
Tao Huang
7a4dc023a4 net: phy: Convert to use sysfs_emit_at() API
Follow the advice of the Documentation/filesystems/sysfs.rst and show()
should only use sysfs_emit() or sysfs_emit_at() when formatting the value
to be returned to user space.

Fixes: ea074eb627 ("net: phy: add sysfs node for reading PHY's registers")
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I642da13c8e4b9351b13592a817c9bf9a9b5c34a7
2025-03-04 14:23:18 +08:00
Tao Huang
59bcd15ac0 drm/rockchip: dw_hdmi: Explicitly include pinctrl/consumer.h for devm_pinctrl_get
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ia9f8242cd2723faa6406f7a1d4e96db6ee6f180a
2025-03-04 09:53:00 +08:00
Tao Huang
287cbd63d0 net: rfkill: bt: Explicitly include pinctrl/consumer.h for pinctrl_select_state
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I2160807931525e0893b8a8c003a74224b9349588
2025-03-04 09:53:00 +08:00
Tao Huang
1aa8a27380 ASoC: codecs: rk_dsm: Explicitly include pinctrl/consumer.h for devm_pinctrl_get
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ic9aba2db95c6f9a349a71b2a2c8b3365c9010a67
2025-03-04 09:53:00 +08:00
Tao Huang
d958a0ed01 spi: rockchip-slave: Explicitly include pinctrl/consumer.h for pinctrl_pm_select_sleep_state
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I75124e3a45d39120389326d683bce7dbd94b9014
2025-03-04 09:53:00 +08:00
Tao Huang
c0d7c9e3a7 media: rockchip: isp: Explicitly include platform_device.h
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I4cc3a2c082ac0507f205e50afb2116aaeac4efda
2025-03-04 01:16:21 +00:00
Tao Huang
5dc7e05b74 regulator: rk801: Explicitly include platform_device.h
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ib5ed20b0152d1e88f97de1bf7c81939b195b19f6
2025-03-04 01:16:21 +00:00
Tao Huang
aaa8ff59ac soc: rockchip: decompress: Explicitly include of_platform.h for of_platform_device_create
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ie44d7c000fa200b061cc344481b584ad6bc001f1
2025-03-04 01:16:21 +00:00
Tao Huang
0d9a55e1bf soc: rockchip: thunderboot_mmc: Explicitly include of_platform.h for of_platform_device_create
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ie5bd3676d93de96de87c3145f9d2d66a975e7a02
2025-03-04 01:16:21 +00:00