Commit Graph

1285945 Commits

Author SHA1 Message Date
Frank Wang
fbdb94a0c7 hwspinlock: rockchip: Add maximum user count config
Since the new IP has expanded the maximum hwlock user count to 6 bits,
this adds configuring the maximum hwlock user count via dtsi/dts to
support the feature.

Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
Change-Id: I6e59bb22984e6ee5c9d31099266778c0e42350bf
2025-10-11 10:46:58 +00:00
Frank Wang
34fd19547b dt-bindings: hwlock: rockchip: Add the maximum user count property
Set the maximum user count via the "rockchip,hwlock-max-user" property
to indicate the maximum number of users supported by this IP.

Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
Change-Id: I7dff4c813346db94642ed5b36191af0a1c0e5041
2025-10-11 10:46:58 +00:00
Frank Wang
c5d3bacad7 mailbox: rockchip: add get properties helper
This helper will be responsible for reading and parsing our
properties. No functional changes in this patch, cleanup only.

Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
Change-Id: I8476a5f4d3e78f90d9749fd949ff5287eb400558
2025-10-11 10:46:58 +00:00
Frank Wang
8fee3005f3 mailbox: rockchip: add version and lock register support
As of Mailbox Version 2.2.0, a version register and a channel lock
function have been added, and this change is intended to provide
support for these features.

Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
Change-Id: Ie4778dc5860fbb7f2f55c36a4c4f1b6fc97b1c99
2025-10-11 10:46:58 +00:00
Shengfei Xu
594bcd5a6c arm64: dts: rockchip: rv1126b-evb: Add the regulator-settling-time-up-us configuration
Add the regulator-settling-time-up-us configuration in the PWM
regulator to ensure sufficient time for the voltage to reach a
stable state during the rising phase.

Signed-off-by: Shengfei Xu <xsf@rock-chips.com>
Change-Id: I2ec7255931f22c1f8c46e41fac34b2c215e9abf3
2025-10-11 10:41:53 +00:00
Binyuan Lan
2b9745aa75 power: supply: sc89601_charger: fix the abnormal display of the charging icon
chrg_status register 0x08 is volatile.

Signed-off-by: Binyuan Lan <lby@rock-chips.com>
Change-Id: Ia569391b2eee3f8bfac0c40cb08991b341702115
2025-10-11 10:38:34 +00:00
Binyuan Lan
f0433771a5 arm64: dts: rockchip: add Tablet Board devicetree for RK3576S-RK809
Signed-off-by: Binyuan Lan <lby@rock-chips.com>
Change-Id: Ic944ad209f5875a302db639dfda06be385871209
2025-10-11 10:37:52 +00:00
Elaine Zhang
535db335d2 arm64: dts: rockchip: rv1126b: Fix compatible for can node
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: Ib2c841c8fde7605c299208583638b78f13e9f365
2025-10-11 18:30:27 +08:00
Elaine Zhang
f762a94b7c arm64: dts: rockchip: rk3576: Fix compatible for can node
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: I7476a47fd36d7d7e5137e64a5e673663c35839c8
2025-10-11 18:30:27 +08:00
Elaine Zhang
071f8bcb45 ARM: dts: rockchip: rk3506: Fix compatible for can node
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: I9752391f1dfea98e5425c6a553fee5e7d3e5af4d
2025-10-11 18:30:27 +08:00
Elaine Zhang
5b28e51f19 arm64: configs: rockchip_linux_defconfig enable CONFIG_CAN_RK3576
Rename CONFIG_CANFD_RK3576 to CONFIG_CAN_RK3576

Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: I9c1f67134ddc104e76c7cac642c027e66ce1c5f6
2025-10-11 18:30:27 +08:00
Elaine Zhang
7a7734a16b net: can: rockchip: rename rk3576_canfd.c to rk3576_can.c
remove unused canfd mode func.

Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: Iaeda3108d0f3e44fe1fec9b231d27726f7950faa
2025-10-11 18:30:27 +08:00
Zhang Yubing
539fd979b6 drm/rockchip: dw-dp: support more feature active protocol converter adapters
According to DP1.4a 5.3.3, To support more feature active protocol
converte adapters. All the adapters are branch device, Read the
Detailed Capabilities Info to get the branch type and the feature
it support. For Example, the max dot clock for VGA, max TDMS clock
for HDMI, the YCbCr420 support or not for HDMI 2.0, conversion to
YCbCr420 from YCbCr444 or not for HDMI 2.0.

According the feature of branch device, filter the resolution, color
format and color depth that the branch device can't support.

Change-Id: I640ce0e6324811875a9dabea846514bc3e42f915
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2025-10-10 16:08:58 +08:00
Zefa Chen
fe51d80ff8 media: rockchip: vicap force update buffer addr when init stream
Change-Id: I3bc59fdcc769e9beaeb303ca6f6b18dfb5b457fa
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
2025-10-09 06:36:31 +00:00
Zefa Chen
3e9448b802 media: rockchip: vicap change stop dma to fs for dvp
Change-Id: Ife6b32d141d4377f6a19f49e88946876f1cbd645
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
2025-10-09 06:25:33 +00:00
Zefa Chen
69791e16c0 media: rockchip: vicap fixes error of stop stream with dvp
Change-Id: I269440ee3cb46a6bdd3d7d46ebe83abe1d5595b2
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
2025-10-09 06:25:22 +00:00
Zefa Chen
74626d61ec media: rockchip: vicap fixes error info of fps with toisp mode
Change-Id: I661b19466f3bbaece2db9a700f3c17010a57cb66
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
2025-09-30 08:58:40 +00:00
Jianwei Fan
4c08cc8051 iio: imu: add inv icm42607 support
Change-Id: I6a258bc331a3c3b2428faaa6a7d766cad5f83003
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
2025-09-30 06:05:19 +00:00
Chunsheng Zhang
18a1dd9d03 arm64: dts: rockchip: rv1126b-evb2: Add the rk96x_wake_aov_irq driver's dts.
Change-Id: Idef5e3d08b71058b95536b23fc333f19ce6c3d65
Signed-off-by: Chunsheng Zhang <chunsheng.zhang@rock-chips.com>
2025-09-30 02:49:22 +00:00
Yuefu Su
36d177c27c spi: rockchip-sfc: Wait for thunder boot DMA status change before rockchip_sfc_get_gpio_descs
Signed-off-by: Yuefu Su <yuefu.su@rock-chips.com>
Change-Id: I977ea73a372328313cfc2728786b123abaaecc7b
2025-09-29 12:20:16 +00:00
Liang Chen
7235aafc8f clk: rockchip: clk-pvtpll: rv1126bj: adjust pvtpll config for cpu
Change-Id: I618c129b48fb172f0e7ce4754523a5414b5a8839
Signed-off-by: Liang Chen <cl@rock-chips.com>
2025-09-29 10:18:11 +00:00
Liang Chen
dfbbb45bff arm64: dts: rockchip: rv1126bj: adjust opp-table for cpu
Change-Id: I8b070f128833117196e6309bb6e1a5262807aa60
Signed-off-by: Liang Chen <cl@rock-chips.com>
2025-09-29 10:17:52 +00:00
Yuefu Su
53b5639eb8 media: i2c: sc850sl: fix dual pm_runtime_put in stop_stream
Signed-off-by: Yuefu Su <yuefu.su@rock-chips.com>
Change-Id: I9e6c989fb34b90cb4c7a36513ec44eb03071e6e3
2025-09-29 09:46:22 +00:00
Sandy Huang
02027a2bbc drm/rockchip: vop2: add SPARSE_SPLIT_SIZE_16x16 afbc format for rk3588
As SPARSE_SPLIT_SIZE_16x16 afbc format each sub block size is
16*8*4=512 Byte, This can make DDR each channel keep balanced.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I1aa7a4c6068fec80f144979dca821bf9cc534b6a
2025-09-29 01:38:48 +00:00
Jianwei Fan
97faaa82e2 iio: proximity: add nds03 tof sensor
Change-Id: I263bc2a7cc302ded8c940a10f73e050abdefa1de
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
2025-09-28 16:26:54 +08:00
Jianwei Fan
1e7a3292b6 media: i2c: rk628: add status variable to determine whether CSI1 is enabled
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: I6f127c210f9c755400efb4dbbe1c96aed5c3f917
2025-09-28 01:22:26 +00:00
Haoran Han
ce6592f012 arm64: configs: rk3576_vehicle.config: add CONFIG_VIDEO_MAX96756=y
Change-Id: I05c3aa2938b6d86b7c1cf84fab4c436a9159fa8c
Signed-off-by: Haoran Han <haoran.han@rock-chips.com>
2025-09-26 08:05:50 +00:00
Guochun Huang
f0612ad478 arm64: dts: rockchip: rk3588s-evb: fix panel resolution info
Fixes: cc761c9b6a ("arm64: dts: rockchip: add rk3588/rk3588s evb mipi panel info")
Fixes: 8aa80d1c81 ("arm64: dts: rockchip: add rk3588s-tablet-rk806-single-v10.dts")

Change-Id: I78f0a49099caec0eace0002a099877f2c67484ce
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
2025-09-26 08:04:30 +00:00
Jianwei Fan
e81982d9e2 media: i2c: bridge: add ioctl RK_HDMIRX_CMD_GET_SIGNAL_STABLE_STATUS
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: Ibb8af426e677e3615b2eb1be4dc2dcdf15d1045b
2025-09-26 15:46:59 +08:00
Zitong Cai
04add29009 arm64: dts: rockchip: vehicle-evb: Fix the issue of left and right shaking in probability display
Change-Id: I759f845221455c2f0f5d227282fe7167fdab75f3
Signed-off-by: Zitong Cai <zitong.cai@rock-chips.com>
2025-09-26 14:33:38 +08:00
Zitong Cai
77ce0f10e6 arm64: dts: rockchip: vehicle-evb: Fix the abnormal operation of dp phy when switching dp
Change-Id: I86e89a26b8b356571d2870f15abbd889485d7fb6
Signed-off-by: Zitong Cai <zitong.cai@rock-chips.com>
2025-09-26 14:33:24 +08:00
Tao Huang
7444be54f4 rtc: rk630: Use devm_rtc_register_device()
According to commit fdcfd85433 ("rtc: rework rtc_register_device() resource management").

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: If37750a01675a5d5e2b9231d1549e70bc349a3e7
2025-09-26 11:10:17 +08:00
Jon Lin
0241b8bd2a phy: rockchip-snps-pcie3: Support rockchip,skip-init
For special scenarios, such as after the PCIe PHY is bifurcation and
with different usage like phy1 is the RC and the other phy0 is the EP.
Since the EP has been initialized in the previous stage, it is not
expected that repeated initialization in the kernel stage will cause
the link to be disconnected. Therefore, no matter which of the two
controllers performs initialization, the PHY re-initialization operation
should be avoided.

Change-Id: I7c04b537b18020d434d14049c5a0661739713265
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2025-09-26 02:57:00 +00:00
Jianwei Fan
bc08d6c1b9 media: i2c: rk628: add ioctl to get process output color range/space
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: I777397d2e77985859e03563dd3f10a7b0c6b793e
2025-09-26 10:06:29 +08:00
Zorro Liu
192d95fdf1 arm64: dts: rockchip: rk3576-eink: update dts configs for new shutdown method
Change-Id: I18d6fb72eedea776b67ab74ba2faf554c5034ccf
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
2025-09-26 01:17:49 +00:00
Shengfei Xu
db61801669 mfd: rk806: The shutdown pin of RK806 is configurable
Configure which pin controls the shutdown function via the
shutown_by_pwrctrln property in the DTS.

Change-Id: I7bb3adf28ff7e93fd318d08274cb88271b925027
Signed-off-by: Shengfei Xu <xsf@rock-chips.com>
2025-09-25 12:22:21 +00:00
Jianwei Fan
b7f7724895 media: i2c: rk628: fix hdmirx range detect when default
According to the CEA-861 specification, when the RGB default color gamut is detected:

When the VIC is between 2 and 127, it is CE video, i.e., limited range.
When the VIC is any other value, it is IT video, i.e., full range.

Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: I258bd84096a340fd88e37e7f127301469baadef9
2025-09-25 03:44:31 +00:00
Jianwei Fan
41c01fb27b media: i2c: rk628: add csi output yuv422 10bit support
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: Ibdbb2d39287b13115babb36e6643c0a0c60eadeb
2025-09-25 03:39:45 +00:00
Chen Shunqing
e2c0f45bcb media: i2c: rk628: add hdr support
Signed-off-by: Chen Shunqing <csq@rock-chips.com>
Change-Id: I90ae0d96391185b5e79a5a7a8733a42964684dd0
2025-09-25 09:51:44 +08:00
Chen Shunqing
f07db797dd media: rockchip: hdmirx: add RK_HDMIRX_CMD_GET_HDR_METADATA
Signed-off-by: Chen Shunqing <csq@rock-chips.com>
Change-Id: Idc399fea2a76a10f8ae196e52670d88be5bedd44
2025-09-25 09:46:39 +08:00
Jianwei Fan
e1f3f2c568 media: i2c: rk628: post process fix output space for BT2020
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: If3795a08ce7be84ece2d0f0a4d5f091655be4baa
2025-09-25 01:33:59 +00:00
Jianwei Fan
215d3c5bf9 media: i2c: rk628: fix vsync/vfp/vbp calculate when scaler en
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: I4472e8ceff09e326107c203ae6d65eaf907e90ac
2025-09-25 01:30:09 +00:00
Jianwei Fan
f2f204f06b media: i2c: rk628: fix mipi dphy timing set
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: I58c77f0f7418651ecf817b225d7dac3e649567db
2025-09-25 01:30:09 +00:00
Finley Xiao
7007e186ca thermal: rockchip: Add support to save and restore tsadc offset for rv1126b
Change-Id: Ie21cd1854b4421036a7eafc210ef2b2e378b2967
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2025-09-25 01:21:19 +00:00
Cai YiWei
6a5a34e360 media: rockchip: isp: support raw14 format
Change-Id: I46569179161e2fc136654ab8ecbdff74ad228c4d
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2025-09-25 01:20:45 +00:00
Shengfei Xu
f97148ab59 regulator: rk806: Resolving rk806m abnormal power-off during DVS Mode
If the RK806M DVS mode does not follow the configured timing sequence,
it may cause abnormal power-off.

The settings must be configured in the following order:
entering voltage adjustment:
	first configure SLPn_FUN, then configure XXX_SLP_CTR_SEL at addresses 0x64~0x6e.
exiting voltage adjustment:
	first clear XXX_SLP_CTR_SEL at addresses 0x64~0x6e to 0, then modify SLPn_FUN.

Change-Id: I265d916b99160fddf467f7c12149490a95f75ca8
Signed-off-by: Shengfei Xu <xsf@rock-chips.com>
2025-09-25 01:14:08 +00:00
Zefa Chen
02aea86b57 media: rockchip: vicap add support RAW14
Change-Id: I80024552bddcf0452e96c2621a0f4fb7ae4c4b76
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
2025-09-24 07:24:27 +00:00
Zefa Chen
552ee9dedd media: rockchip: vicap fixes multi combine mode error for rv1126b
Change-Id: I3d3faf319b5f03b1ded1e5b1eb6fd704939ddf71
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
2025-09-24 07:23:45 +00:00
Zefa Chen
0caa02b632 phy: rockchip: csi2_dphy: add hw_idx to distinguish dev
Change-Id: I072cedcba316cf5d26335cbead272457bee2f61c
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
2025-09-24 07:23:29 +00:00
Zefa Chen
d5e575bdf7 phy: rockchip: csi2-dphy: fixes lvds bit-width error for rv1126b
Change-Id: I56007548f832c3c89c6e2be324c30ca5445945a2
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
2025-09-24 07:23:23 +00:00