Commit Graph

1280635 Commits

Author SHA1 Message Date
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
Tao Huang
a14e67109d soc: rockchip: thunderboot_sfc: Explicitly include of_platform.h for of_platform_device_create
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Iac58bd3d9e725f7cfde9e04eb15969915eeda80a
2025-03-04 01:16:21 +00:00
Tao Huang
e6782dab44 video: rockchip: dvbm: Explicitly include of.h for of_match_ptr
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I82a7507af51b29b5ec79112d883f0c3da1cc3f18
2025-03-04 01:16:21 +00:00
Tao Huang
bca38bc9b4 clk: rockchip: Explicitly include platform_device.h
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I3b0c8956236f16ff9e264032ac46bc5c3be2e476
2025-03-04 01:16:21 +00:00
Tao Huang
8f49f308e9 ASoC: rockchip: multi-dais: Explicitly include of_platform.h for of_find_device_by_node
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I00cc4dd24ced61a44d93f1a0a9b47cb6da55de05
2025-03-04 01:16:21 +00:00
Yanjun Liao
a3cce2eecf video: rockchip: mpp: rkvenc2: Fix u32 overflow
Change-Id: I1dae138bcb57283d6c609bd73068c8714e8ce990
Signed-off-by: Yanjun Liao <yanjun.liao@rock-chips.com>
2025-03-03 17:03:20 +08:00
Tao Huang
cd2391de56 video: rockchip: iep: avoid -Wempty-body warning
Building with 'make W=1' shows a harmless -Wempty-body warning:

drivers/video/rockchip/iep/hw_iep_reg.c: In function 'iep_soft_rst':
drivers/video/rockchip/iep/hw_iep_reg.c:1313:49: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body]
 1313 |                 IEP_DBG("soft reset timeout.\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: Ifff86aeab7cc988d5af694d8709fb4b9c634b044
2025-03-03 14:21:54 +08:00
Jon Lin
9bcf86770a mtd: spinand: esmt: Change to esmt_c8_spinand_manufacturer
Change-Id: I9ef43450a9fd68a98993580c0cca379f31698a81
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2025-03-03 10:43:38 +08:00
Chen Shunqing
a39ea4c1bc power: supply: charger: add cps5601x charger driver
Signed-off-by: Chen Shunqing <csq@rock-chips.com>
Change-Id: I83378ef4952a7f946e517cf34b0a91b3c79b8ffd
2025-02-28 16:48:23 +08:00
Wu Liangqing
e0bd8b680d input: touchscreen: gt1x: switch to using gpiod API
Change-Id: I02c2cad17f0b4e7cf3fd59c1bb6736db8c205f19
Signed-off-by: Wu Liangqing <wlq@rock-chips.com>
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2025-02-28 16:48:23 +08:00
Simon Xue
b4f16563e3 soc: rockchip: decompress: add dynamic_buf_decom node for test
Using the "start_decom" node requires complex preparation,
such as modifying UBOOT code, adding partitions, modifying
reserved memory. To quickly set up a testing environment,
we introduced the "dynamic_buf_decom" node which only requires
placing test files in the /data/data/ directory to begin
testing hardware decompression

The testing command similar to "start_decom"

echo mode > /sys/devices/platform/fea80000.decompress/dynamic_buf_decom

Change-Id: Ibfa1ec2a7c3e74b5c58392458827a9542c907e23
Signed-off-by: Simon Xue <xxm@rock-chips.com>
2025-02-28 16:48:23 +08:00
Tao Huang
bd532dd406 ASoC: codecs: rv1106_codec: Use device_get_match_data()
Use preferred device_get_match_data() instead of of_match_device() to
get the driver match data in a single step.

Change-Id: I713eea70b5fc6751a2b1f9cbd1334a5cd32d2611
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2025-02-28 16:48:23 +08:00