Commit Graph

1280393 Commits

Author SHA1 Message Date
Zhang Yubing
35fa27dbcf usb: typec: tcpci_husb311: tcpm reset when resume with dp alt mode
For some Type-C to DP Adapter, It need reset tcpm state when resume
To avoid some thing wrong with display appear.

Change-Id: Ie23d62ded05cdbc438cd354c5b886ddc45210b42
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2025-02-13 03:06:00 +00:00
Zain Wang
684040993b power: supply: charger: add sc89601 charger driver
Change-Id: I504f598906fda580401bddf4cc7b33af633a8762
Signed-off-by: Zain Wang <wzz@rock-chips.com>
2025-02-13 03:02:16 +00:00
Weixin Zhou
a6e74a930c soc: rockchip: pm_config: fix virtual poweroff for gki
Change-Id: Ic43d8beb893493302e2b2738afbd529e47f346f0
Signed-off-by: Weixin Zhou <zwx@rock-chips.com>
2025-02-13 02:54:13 +00:00
Elaine Zhang
acacadfb54 can: rk3576_canfd: move devm_request_irq to the end of probe
move devm_request_irq() to the end of this function to
make sure rcan and napi is initialized.

Change-Id: I160447fe4f45dedffde9c97f1aa1df536baccb77
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2025-02-11 12:03:07 +00:00
Andy Yan
e7b6ef1e32 drm/rockchip: vvop: Rename to vkms
This driver simulate includes not only the display controller but
also the connector and encoder, name it to vkms as how vmwgfx/amd
name this kind of driver.

Change-Id: If56614c41973549e2120912c91569af27820b15d
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
2025-02-11 11:34:13 +00:00
Chaoyi Chen
48980901a1 drm/rockchip: vop: Add dclk rate count for RK3576
RK3576 supports calculating the exact dclk from the known hclk rate.

Change-Id: I06f3f59118bc6627b9bb92d0e9aedf1848e5c72c
Signed-off-by: Chaoyi Chen <chaoyi.chen@rock-chips.com>
2025-02-11 11:28:12 +00:00
Algea Cao
ff7af21e33 drm/rockchip: dw_hdmi: Support get hdr10 plus vsdb
Add drm property HDR10_PLUS_VSDB that hdr10 plus data
in edid:

struct hdr10_plus_vsdb {
	u8 application_version;
	u8 full_frame_peak_luminance_index;
	u8 peak_luminance_index;
};

Change-Id: I464cb67e0d9784df905bf34fd8472f80a6b98296
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2025-02-11 11:25:09 +00:00
San Mehat
734aea1cce ARM: process: Add display of memory around registers when displaying regs.
This is extremely useful in diagnosing remote crashes, and is based heavily
on original work by <md@google.com>.

Signed-off-by: San Mehat <san@google.com>
Cc: Michael Davidson <md@google.com>

[ARM] process: Use uber-safe probe_kernel_address() to read mem when dumping.

This prevents the dump from taking pagefaults / external aborts.

Signed-off-by: San Mehat <san@google.com>
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Change-Id: I7586677c4ea0e064b5a38c7972102db3b5771500
2025-02-11 11:24:40 +00:00
Damon Ding
a8677e8afa drm/rockchip: vop2: remove the plane number check in vop2_plane_mask_check()
The &vop2_data.nr_layers represents the max number of planes that can
be assigned to one VP. Therefore, when checking the max plane number for
VOP2, it may be incorrect to use the &vop2_data.nr_layers.

And the comparison of assigned plane_mask with &vop2_data.plane_mask_base
can already confirm whether every plane has been assigned to one of all
the VPs.

Fixes: 00424a589d ("drm/rockchip: vop2: add support to assign plane mask by default")
Change-Id: I9c2056dea42897150ef155c7e6fd0ad3a43c8132
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2025-02-11 11:20:02 +00:00
Damon Ding
57231d9636 drm/rockchip: vop2: rename plane name conversion functions and move them more forward
Since &vop2_win.plane_id means the unique plane id based on the
initialization order of planes in vop2_win_init(), it may be better
to rename vop2_plane_id_to_string() to vop2_plane_phys_id_to_string()
based on the definition of &vop2_win.phys_id.

And the movement can help to make more plane related logs more
readable.

Change-Id: If5d362817fc147cbd3a21f67ea44a8c0814899df
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2025-02-11 11:19:58 +00:00
Damon Ding
12f0cb6431 drm/rockchip: vop2: not to create plane_mask property of CRTC for VOP3
RK3528/RK3562/RK3576 use the VOP3 architecture, which supports
flexible switching of planes between different VPs. User can switch
planes between different CRTCs based on the &drm_plane.possible_crtcs
in userspace, so the 'PLANE_MASK' property is not required.

Change-Id: Icbd75bc4602fcfd69a10f2be9f5a8375bd7f2abe
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2025-02-11 11:19:50 +00:00
Damon Ding
591e580fcd drm/rockchip: vop2: add cycles_per_pixel check for both rgb and mcu interfaces
The RGB interface also supports formats that have multiple cycles per
pixel, such as MEDIA_BUS_FMT_RGB888_3X8, MEDIA_BUS_FMT_RGB565_2X8_LE,
and so on. And the &drm_display_mode.crtc_clock should be multiplied by
the return value of rockchip_drm_get_cycles_per_pixel().

Fixes: 3cb261be89 ("drm/rockchip: drv: fix the dclk calculation of mcu interface")
Change-Id: Idbb6f6ef2ac17dc0dd63d67519733dbd1e29e9dd
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2025-02-11 16:35:45 +08:00
Damon Ding
825560b30c drm/rockchip: vop: add cycles_per_pixel check for both rgb and mcu interfaces
The RGB interface also supports formats that have multiple cycles per
pixel, such as MEDIA_BUS_FMT_RGB888_3X8, MEDIA_BUS_FMT_RGB565_2X8_LE,
and so on. And the &drm_display_mode.crtc_clock should be multiplied by
the return value of rockchip_drm_get_cycles_per_pixel().

Fixes: 3cb261be89 ("drm/rockchip: drv: fix the dclk calculation of mcu interface")
Change-Id: I85c0168ccfaedbf5566a2c6b8f86e881fbc93ad0
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2025-02-11 16:28:47 +08:00
Cai YiWei
e6270f2d22 media: rockchip: isp: fix bilinear scale no output if unite mode
Change-Id: Ic8ea66fdde4b139d961803e16fab2481dd72355a
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2025-02-11 06:10:32 +00:00
Tao Huang
596e50f65e Revert "Wifi: add rtl8723au & rtl8723bu wifi support."
This reverts commit 522c0bb37a.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I92b585b8eff58cd585717d0dffda7701f1875a5e
2025-02-11 06:09:47 +00:00
Algea Cao
cbb33e40aa drm/rockchip: vop2: Ensure rk3576 sharp/post-scaler/split are mutually exclusive
VOP sharp/post-scaler/split use the same line buffer.
They must be mutually exclusive, otherwise the picture
will display abnormally.

Change-Id: Ia8e7877826bf2a4484a4060ea4d704a2edc611c3
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2025-02-10 12:19:47 +00:00
Ding Wei
8f25f9d7c3 arm64: dts: rockchip: rk3528: Add iommu shared bitmask for avsd and vdpu
Change-Id: I42807997f85e9e43c2a7f490fd9af7c87b30fec6
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
2025-02-10 16:15:29 +08:00
Ding Wei
a6943befb9 video: rockchip: mpp: fix share iommu issue for rk3528 on Arch32
Issue:
1. On arm32 platform iommu use the mapping->domain, while use the
   group->domain on arm64 platform.
2. __iommu_attach_group use group->default to judge whether new device
   in kernel 5.10 branch, while use group->domain in kernel 6.1 branch.
   For this change, when two devices share the iommu, the first device
   attach success, while the second device failed in kernel 6.1 branch.

Method:
1. Set driver_managed_dma=true to ensure that during the IOMMU probe
phase,
   even if attach group failed, the mapping will not be released.
2. After the IOMMU probe succeeds, record info->domain=mapping->domain
and
   detach it, ensuring that group->domain is set to NULL. This prevents
the
   next device which sharing the IOMMU, not return -EBUSY when attach
the
   group.
3. Before hardware running, the shared IOMMU should check whether the
   device has been switched. If so, it needs to attach the current
   device's info->domain.
4. When removing a shared IOMMU, it must also ensure that group->domain
   corresponds to the current device.

Change-Id: If0fec01a0bcf9c49850129bfa5ac28484fece9a2
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
2025-02-10 16:15:29 +08:00
Tao Huang
f346f25228 Revert "power: add universal charger driver support"
This reverts commit 9f2ddf5a0c.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I56ad273f1da0a8d55a0e53a010a3b3c680212e7f
2025-02-10 06:15:48 +00:00
Simon Xue
e5ecfb7289 iio: adc: rockchip_saradc: fix crash cause by saradc
fix the crash caused by interrupt occurring before info->last_chan is ready

Change-Id: I6a57d49d5af6fb35708e009c33422ad936af0d3f
Signed-off-by: Simon Xue <xxm@rock-chips.com>
2025-02-10 06:15:15 +00:00
Simon Xue
bb5e238d4f iio: adc: rockchip_saradc: fix the variable naming conflict
fix the variable naming conflict with "lock" when CONFIG_ROCKCHIP_SARADC_TEST_CHN enabled

Change-Id: I9f2925fb6e4be642cacf8e5d5c764e33d13b9cc4
Signed-off-by: Simon Xue <xxm@rock-chips.com>
2025-02-10 06:15:15 +00:00
Damon Ding
3ae279210e drm/bridge: analogix_dp: add support for ASSR mode
According to the eDP v1.3 chapter 3.6 Table 3-15, Alternative
Scramble Seed Reset(ASSR) is a recommended way for eDP Sink devices
to support Display Authentication and Content Protection as Method
3a, while Method 1 HDCP is normally not expected in an eDP Sink
device.

In addition, the ASSR support capability should be the bit 0 of
DPCD register 0000Dh according to the eDP v1.4 'Revision History'
table 2:

......
Table 3-4: Corrected reference to DPCD Address 0000Dh, bit 0 (was bit 4)
......

Change-Id: Iafad97755fd4c9e688c47164d099b290af905036
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2025-02-10 06:10:07 +00:00
Abel Vesa
8281b215f4 UPSTREAM: phy: Add Embedded DisplayPort and DisplayPort submodes
In some cases, a DP PHY needs to be configured to work in eDP mode.
So add submodes for both DP and eDP so they can be used by the
controllers for specifying the mode the PHY should be configured in.

Change-Id: I130b491edcf2624697489b18a3ab24add535840f
Signed-off-by: Abel Vesa <abel.vesa@linaro.org>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20240324-x1e80100-phy-edp-compatible-refactor-v5-1-a0db5f3150bc@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
(cherry picked from commit 368d67dab4cc4a3ffd39fbd062b2f5796cdbb37b)
2025-02-10 06:10:07 +00:00
Yu Qiaowei
2f5b41f4aa video: rockchip: rga3: enable scale/FBC-in error intr
Update driver version to 1.3.8

Change-Id: I40371f680c4d67e4a78338dad84f73b268e8877d
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
2025-02-08 16:21:16 +08:00
Yu Qiaowei
60e3a31479 video: rockchip: rga3: fix boundary protection for RGA2 average
Change-Id: Id646a2c5fd1a4e5335cbb049a8263ca9c25deabc
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
2025-02-08 15:29:00 +08:00
Sandy Huang
668a142bfb drm/rockchip: dsi2: update for dsi timing limit
rk3576:
    max_vfp:8191, max_vsync:1023, max_vbp:1023
rk3588:
    max_vfp:1023, max_vsync:1023, max_vbp:1023

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I0f7777c1dbbd7de6f4b86bf6a0647ef1a1a46516
2025-02-08 07:00:35 +00:00
Tao Huang
aa897b8ab2 Revert "misc: add gpio-detection driver"
This reverts commit d0d2368bf8.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I5d38c29967a7a284fd1bb048fdd96247931a0b0d
2025-02-08 02:06:33 +00:00
Tao Huang
fdce2e1ee0 Revert "power: charger: add new sy6982c/sy6982e driver"
This reverts commit 38c57424d4.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ibad478fd393cb69fa78a00020eebc65d43c5ac5d
2025-02-08 01:50:35 +00:00
Yandong Lin
0d5f21d790 video: rockchip: dvbm: sync code from 5.10
Merge from kernel 5.10

video: rockchip: dvbm: support dual dvbm wrap config
video: rockchip: dvbm: simplify the dvbm module codes
video: rockchip: dvbm: modify api to adapt rv1103b

Change-Id: Idd1e0e98392cc1314d6dc67e512cfe1f660d691c
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
2025-02-08 01:46:43 +00:00
Tao Huang
ecd317b0bd Revert "power: add ec battery driver"
This reverts commit 620a4f67a4.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I5bfeb24fdda20fb2b0ff93cebdc9d7dd878841dc
2025-02-08 01:00:38 +00:00
Tao Huang
0143c72295 Revert "misc: add usb camera pd pin control driver"
This reverts commit 3344984bec.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ic45376d824f855353960f8969f3073c606b38599
2025-02-07 20:11:58 +08:00
Tao Huang
87d2d0e0e1 Revert "Documentation: DT: ASoC: add for rockchip HDMIIn"
This reverts commit 949f0095eb.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I2466644a1618e50380d54e546102680a6d0facdd
2025-02-07 19:57:02 +08:00
Tao Huang
704255dd5a Revert "Documentation: DT: ASoC: add toshiba tc358749x"
This reverts commit cd8c7b5b05.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I45ce51c96e592657c3fa0d107ce9945dc9e02ae5
2025-02-07 19:56:29 +08:00
Tao Huang
28235e6dc3 Revert "ASoC: dw-hdmi-audio: add dummy codec for DesignWare hdmi"
This reverts commit 1d660dce67.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I4f1c7275b718f90dd0e6075018239c31b2bbfd2a
2025-02-07 19:55:12 +08:00
Tao Huang
40b645fcb2 Revert "Documentation: sound: add rt3261 codec documentation."
This reverts commit 85d067dc7e.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I150018be86c69bb1182e04977bf0726a13191d2d
2025-02-07 19:54:16 +08:00
Tao Huang
4f8e410b81 Revert "ASoC: Add gva codec driver"
This reverts commit 3655e45471.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I64fb3d8525bcf8cbed7c46b6eee9ccb73daa0ab4
2025-02-07 19:53:23 +08:00
Tao Huang
f314f93295 Revert "drm/panel: add support for Sharp F402 2048x1536 panel"
This reverts commit e8308567c1.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ib31ea08e072f1091149623f70c0ece3056944d4c
2025-02-07 19:51:51 +08:00
Tao Huang
f65a051e7c Revert "drm/panel: simple: Add support for LG LM270WR3-SSA1"
This reverts commit a5ca275f86.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: If8b97afc79a26fbfb535327b03bc7cb3005fcaad
2025-02-07 19:50:24 +08:00
Tao Huang
ae8ae3b771 Revert "drm/panel: simple: Add support for LG LM238WR2-SPA1"
This reverts commit 8b76818914.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ie27f8f403cbe0b6636bf538bb33e90d49cbff8cb
2025-02-07 19:50:00 +08:00
Tao Huang
fcef954628 Revert "drm/panel: simple: Add support for INNOLUX N125HCE-GPA 1920x1080 panel"
This reverts commit bc41bde50a.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I5672d18405db65dd7a6f147316316720e61786f1
2025-02-07 19:49:28 +08:00
Tao Huang
d950bee6db Revert "drm/panel: simple: Add support for BOE NV124FHM-N73 1920x1080 panel"
This reverts commit f67be24239.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ifd888cbb5fd9630a05528dd5639ad58a67493766
2025-02-07 19:48:51 +08:00
Tao Huang
d6992856f6 Revert "drm/panel: simple: Add support for BOE MV270QUM-N10"
This reverts commit db8a437fd3.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Iae5175ce87b3d110cb0cd9bae6b2d0095b7e96ff
2025-02-07 19:48:19 +08:00
Tao Huang
90ca19f9a5 Revert "drm/panel: simple: Add support for BOE MV238QUM-N20"
This reverts commit 7ba25eea80.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I22eda1c029691e4053cd5a8b0f79fdaebcd25fdc
2025-02-07 19:47:46 +08:00
Tao Huang
66190a3935 Revert "drm/panel: simple: Add support for AUO B125HAN03.1 1920x1080 panel"
This reverts commit f712e42bd1.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I71101db366c3d11585944aab606db4dcfa55c849
2025-02-07 19:46:43 +08:00
Tao Huang
a76724bff4 Revert "dt-bindings: Add support for AUO B101EW05 1280x800 panel"
This reverts commit 92c763a6a1.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I5204028bfcde0dc745f08ea6f710442b10c708e6
2025-02-07 19:45:41 +08:00
Lin Jianhua
5abb1bd80b ARM: dts: rockchip: rk3506-evb2-v10: update matrix-keypad
Change-Id: I8fefeb356ae23285300b869eb4640902f1261c91
Signed-off-by: Lin Jianhua <linjh@rock-chips.com>
2025-02-07 15:01:28 +08:00
Huang zhibao
9e2ef257d6 arm64: dts: rockchip: rk3576-evb2: Remove vcc3v3_lcd_n
Signed-off-by: Huang zhibao <hzb@rock-chips.com>
Change-Id: Ieb50556d5ed41c23005137c60153d604906f79c7
2025-02-06 06:32:40 +00:00
Tao Huang
35f9183723 mmc: dw_mmc: Explicitly include linux/pinctrl/consumer.h for pinctrl_select_state
Change-Id: I94a11f222ed5ae7ed3be1b8e69f71a19667aa381
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2025-02-05 18:44:58 +08:00
Tao Huang
47102b506a regulator: rk806: Explicitly include linux/pinctrl/consumer.h
Change-Id: I9b4c7b5ec442536bef78aeec3e0ea151ec670c35
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2025-02-05 18:44:58 +08:00
Tao Huang
7166d5f4bb mfd: rk806: Explicitly include linux/pinctrl/consumer.h
Change-Id: I4cb4f8d7b88319100f5646b4f96fbe5b73cc96a1
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2025-02-05 18:30:08 +08:00