Commit Graph

1268895 Commits

Author SHA1 Message Date
Cai YiWei
dccff39e0f media: rockchip: isp: fix isp39 unite mode
Change-Id: I7fbfcaaef4162ab8098410366bdf1113a8ed2f3e
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2024-04-15 18:01:41 +08:00
Qiqi Zhang
0c452f60e6 ARM: dts: rockchip: rk3036: fix pinctrl error for pwm
Change-Id: I5ff558304ab080468aa2c562955d9d96d5b2329a
Signed-off-by: Qiqi Zhang <eddy.zhang@rock-chips.com>
Signed-off-by: David Wu <david.wu@rock-chips.com>
2024-04-15 17:59:10 +08:00
Luo Wei
fd5afe4228 arm64: dts: rockchip: rk3576-vehicle-evb: fix adb problem while resume
Signed-off-by: Luo Wei <lw@rock-chips.com>
Change-Id: Idd6c750105952ef4ebfc1c2bffc227cc668967ec
2024-04-15 16:56:15 +08:00
Michael Wu
886ba05af3 FROMLIST: usb: typec: tcpm: support sink port for debounce
When both CC1 and CC2 pins are simultaneously pulled up, it often leads
to the double Rp to Vbus cable being stuck in the SNK_ATTACH_WAIT state.
And the state machine fails to transition to the SNK_ATTACHED state.

Therefore, it is recommended to focus on transitioning the sink port to
the SNK_DEBOUNCED state instead. By doing so, the desired outcome can be
achieved more effectively.

[  134.525750] VBUS on
[  134.713240] CC1: 0 -> 3, CC2: 0 -> 3 [state TOGGLING, polarity 0, connected]
[  134.713249] state change TOGGLING -> SNK_ATTACH_WAIT [rev3 NONE_AMS]

Change-Id: Ib21f4f0322a193678a5f22007a515b3b19772b40
Signed-off-by: Michael Wu <michael@allwinnertech.com>
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
Link: https://lore.kernel.org/linux-usb/20240312011300.75081-1-michael@allwinnertech.com/
2024-04-15 09:31:42 +08:00
Michael Wu
30a61f7bf2 UPSTREAM: usb:typec:tcpm:support double Rp to Vbus cable as sink
The USB Type-C Cable and Connector Specification defines the wire
connections for the USB Type-C to USB 2.0 Standard-A cable assembly
(Release 2.2, Chapter 3.5.2).
The Notes says that Pin A5 (CC) of the USB Type-C plug shall be connected
to Vbus through a resister Rp.
However, there is a large amount of such double Rp connected to Vbus
non-standard cables which produced by UGREEN circulating on the market, and
it can affects the normal operations of the state machine easily,
especially to CC1 and CC2 be pulled up at the same time.
In fact, we can regard those cables as sink to avoid abnormal state.

Message as follow:
[   58.900212] VBUS on
[   59.265433] CC1: 0 -> 3, CC2: 0 -> 3 [state TOGGLING, polarity 0, connected]
[   62.623308] CC1: 3 -> 0, CC2: 3 -> 0 [state TOGGLING, polarity 0, disconnected]
[   62.625006] VBUS off
[   62.625012] VBUS VSAFE0V

Change-Id: I415db22b0012ace9535039bc4c8e5ec113482e33
Signed-off-by: Michael Wu <michael@allwinnertech.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20230920063030.66312-1-michael@allwinnertech.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
(cherry picked from commit dbc1defec1aa7d8d80da3ea9e3ddafbcfca8f822)
2024-04-15 09:30:33 +08:00
Weixin Zhou
ea9e2a9344 arm64: dts: rockchip: rk3576-eink: add vdc-wakeup-enable
Signed-off-by: Weixin Zhou <zwx@rock-chips.com>
Change-Id: I5accf0874d9664747fd9db47bdcc21f1b18d5784
2024-04-12 18:45:53 +08:00
shengfei Xu
79a7e75223 mfd: rk806: Enable vdc irq wakeup system
This function is mainly used for ultra suspend mode, which wakes up the
system through the VDC interrupt of the PMIC by plugging in the charger.

Signed-off-by: shengfei Xu <xsf@rock-chips.com>
Change-Id: I9c5ab1aeb067f4d0290f9a153675c3b4b5887920
2024-04-12 18:45:30 +08:00
Zefa Chen
7fbdee9b49 media: i2c: os04a10: solving image anomalies in low light environments
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Ia381a084795b97afb7df4031f0bfd0dcd5853ef5
2024-04-12 18:40:24 +08:00
Zefa Chen
5f731fa6db media: rockchip: isp: skip s_stream of sensor while connect to vicap sditf
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I0adcd429d254381e7fa2e9c7911687a471ce53b4
2024-04-12 18:40:24 +08:00
Zefa Chen
65ad696aba media: rockchip: vicap support multi channel to multi isp mode
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I7e936ae89afce021eb2ae2d5da44bc8e8349dfe5
2024-04-12 18:40:24 +08:00
Zefa Chen
35559e36f5 media: rockchip: vicap support one camera separate to multi camera
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I39170a161636ec9bf9b1b8069736aa5e54af023d
2024-04-12 18:40:24 +08:00
Zefa Chen
25ef1c071c include: rkcif-config: add command for one to multi camera mode
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I59737ea5e9061e41963511578246c11a2c5a0f1c
2024-04-12 18:40:24 +08:00
Zefa Chen
cae1345ffd media: rockchip: vicap fixes frame loss with AOV from ONE_FRMAE_MODE to MULTI_FRAME_MODE
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Ie9dc4328cdbdf8c92f11008cc1d1a86a2fe3de51
2024-04-12 18:40:24 +08:00
Zefa Chen
4f2574ca5f media: rockchip: vicap fixes error logic off quick stream on/off
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I1b61af686b97059b50f81450fd99150655d58043
2024-04-12 18:40:24 +08:00
Ziyuan Xu
9950483990 media: rockchip: vicap thunderboot support skip frame
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
Change-Id: I60e78da3acd5bc50d5332990a96d6fee007bdd4e
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
2024-04-12 18:40:24 +08:00
Zefa Chen
f8d2bb2e07 media: i2c: cam-tb-setup add param of skip_frame_interval
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I4e03f309aa952ddde028df5d845164a33aacbfb2
2024-04-12 18:40:24 +08:00
Zefa Chen
38624894a9 media: rockchip: vicap support restart capture one frame with aov sinngle frame mode
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I1ce89f84d568b14fc59bd0ace774310c3d4b3a98
2024-04-12 18:40:24 +08:00
Zefa Chen
55f78a749b media: rockchip: vicap fixes error of restart stream of AOV
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I68cfb62e10dc493dca6f638a95c1ae258f079549
2024-04-12 18:40:24 +08:00
Zefa Chen
9f06768123 media: rockchip: vicap fixes one buffer support with rdbk aotu
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Ib98aa45830cbafb6afb4d7a991ed42c813764f3d
2024-04-12 18:40:24 +08:00
Zefa Chen
c08df6d37f media: rockchip: vicap support config reserved buf num
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I3e2baabba29fbc1494c490ac45f3bbcf5a8bf6d3
2024-04-12 18:40:24 +08:00
Guochun Huang
fb38a757f6 drm/rockchip: dw-dp: fix enable single stream of dp source device in sst mode
Type: Fix
Redmine ID: #476810
Associated modifications: gerrit links
Test: test method

Fixes: f07a5c3cf0 ("drm/rockchip: dw-dp: optimeize disable/enable dp flow")
Change-Id: I6e9befde28809215802389903cab96e0fb8c5dc3
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
2024-04-12 17:25:38 +08:00
Jianwei Fan
80647eb888 media: i2c: rk628: fix csc process mode and add range switch by user
1.support set output range by user
2.fix csc process color space and range config
3.add adobe YUV/RGB and 2020 YUV/RGB support

Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: I02ce6ae17c94f51b44d5b6096e1185e1fbb3e3e9
2024-04-12 15:58:34 +08:00
Jianwei Fan
75f62d85a6 media: i2c: rk628: add txdata and txbytehs reset when soft reset
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: I24c738e91107de252cf41270f7aafd3caa51fff6
2024-04-12 15:58:14 +08:00
Jianwei Fan
dfb6365006 media: i2c: rk628: clear interrupt should before process it
Change-Id: Id00207bf988b07d8e6b2b886dd7d7bf4f5bdd679
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
2024-04-12 15:57:42 +08:00
Jianwei Fan
7e2d3c490f media: i2c: rk628: fix CSI config valid immediately
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: Ibe48d5bc702522fb266e3d7cc4987a6c3aa82aa0
2024-04-12 11:25:25 +08:00
Cai Wenzhong
3c227060bc arm64: configs: rk3576_vehicle.config: add CONFIG_VIDEO_MAXIM_CAM_DUMMY
Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Change-Id: I4fe33d0efdee595342d9a2da175372800d917bae
2024-04-11 19:47:43 +08:00
Cai Wenzhong
d5d7a649c9 arm64: configs: rk3588_vehicle.config: add CONFIG_VIDEO_MAXIM_CAM_DUMMY
Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Change-Id: I31287deac0293f837b4c1680031e11e75e454870
2024-04-11 19:47:43 +08:00
Cai Wenzhong
eb1d8ea2ce media: i2c: maxim: driver version v3.02.00
Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Change-Id: I1582b70b760ed71881ebffd826a8c2b18705c8b7
2024-04-11 19:47:43 +08:00
Cai Wenzhong
6a63912fdc arm64: dts: rockchip: add rk3588-vehicle-evb-maxim-max9671(/2)2-dphy3-dummy.dtsi
Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Change-Id: I50d3ee28ac3bdee625dfadc31baf24c971d556ca
2024-04-11 19:47:43 +08:00
Cai Wenzhong
2ad5f7b7bf media: i2c: maxim: local: support mode add crop rect dts config
1. support mode dst: crop-rect = <left top width height>
2. v4l2 get_selection: crop rect = [left, top, width, height]

Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Change-Id: Ieab812795fad8f2d8cd3618a924f9757ff952429
2024-04-11 19:47:43 +08:00
Cai Wenzhong
3267b452f2 media: i2c: maxim: remote: add dummy sensor driver
Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Change-Id: Ibb3fa990044857bd8cf20fc4f54e4fc089aa5ec4
2024-04-11 19:47:43 +08:00
Cody Xie
c534e7e6ac arm64: dts: rockchip: Add board dts rk3576-vehicle-evb-v10-linux
Change-Id: I6cce3abaf74a3ab133ce2d98669bf5d9ce277f66
Signed-off-by: Cody Xie <cody.xie@rock-chips.com>
2024-04-11 16:37:41 +08:00
Zhibin Huang
e219b757a2 drm/panel: panel-simple: delete pm_runtime
In upstream patch, runtime pm is used to avoid excessive unprepare/
prepare.

However, some DSI panels need to be powered off and on again before
reloading the initialization sequence. If set the auto_suspend and
delay time is set to 1s, the suspend/resume callback function cannot
be entered when sleeping/waking up quickly, the power of panel cannot
be restarted, causing this timing to be abnormal and causing the panel
to not work properly.

In kernel 5.10, pm_runtime has not been used in panel-simple, but it
still runs stably in panel applications. Considering the above
reasons, we chose to revert the submission of pm_runtime upstream.

Type: Fix
Redmine ID: 460825 468692
Associated modifications:
    commit 3235b0f20a ("drm/panel: panel-simple: Use runtime pm to
    avoid excessive unprepare / prepare")
Test: N/A

Signed-off-by: Zhibin Huang <zhibin.huang@rock-chips.com>
Change-Id: I348e1a860e528cf4bee7ce76de0ea13c18fddd90
2024-04-11 16:22:30 +08:00
Caesar Wang
badbb91c40 arm64: dts: rockchip: enable dp0 sound for rk3576-evb1.dtsi
Change-Id: I4ac91cb2c76bbfa8778bb8fc79d90b3adaa409e1
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
2024-04-11 16:02:41 +08:00
Chen Shunqing
800b7a4984 media: i2c: rk628 add debugfs
Type: Function
Redmine ID: N/A
Associated modifications: N/A
Test:
enable rk628 debug:
    echo 1 > /d/rk628/3-0050/debug

hdmirx status:
    cat /d/rk628/3-0050/hdmirx/status

hdmirx hdcp:
    cat /d/rk628/3-0050/hdmirx/hdcp/enable
    echo 1 > /d/rk628/3-0050/hdmirx/hdcp/enable
    cat /d/rk628/3-0050/hdmirx/hdcp/status

Change-Id: I638710c3e4c60d15b9ca1d0a2d5d42d581bd94ff
Signed-off-by: Chen Shunqing <csq@rock-chips.com>
2024-04-11 15:36:25 +08:00
Jianwei Fan
1228527277 media: i2c: rk628: add reset rkcif when error interrupts
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: I31f4409fe2b4f52c04d4035ad4525c9e80f24673
2024-04-11 14:57:25 +08:00
Jianwei Fan
0e43952c98 media: platform: vicap export external soft reset function
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: Ib8e64185eeb237bda5ab202f24d44331d98fb861
2024-04-11 14:41:56 +08:00
Finley Xiao
c9fc251f1f arm64: dts: rockchip: rk3576: Add low temp config for opp table
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: Iba3ae4544e51a6902971a4d026e271a2191a8167
2024-04-11 14:36:29 +08:00
Frank Wang
45eac64a36 phy: rockchip: inno-usb2: add more debug print
This adds more step prints make easy to debug.

Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
Change-Id: Icf48b7d9e0d254db2fc75d3fdf713f901549e0e9
2024-04-11 14:19:30 +08:00
Zhang Yubing
fcc32041a4 drm/rockchip: dw-dp: register audio codec when dp port enable
Change-Id: I310c512fa388f7303da16b30be1d7a07dfe17081
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2024-04-10 19:34:45 +08:00
Zhang Yubing
d3a35aa83c drm/rockchip: dw-dp: avoid register device use the same node
when register 2 platform device use the same device node,
they will request the some pinctrl resource and cause
conflict. Don't use the same device node th register device
can avoid this issue.

Change-Id: I0a97bf50b80801ad09035554f2438c1c21580c1a
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2024-04-10 19:34:45 +08:00
Zhibin Huang
90480c88a8 arm64: dts: rockchip: normalize for dual-channel dsi
Signed-off-by: Zhibin Huang <zhibin.huang@rock-chips.com>
Change-Id: I04fd3ab4c1c09cc946957d8e1013ed214505ab90
2024-04-10 19:32:38 +08:00
Zhibin Huang
70d5c5d774 ARM: dts: rockchip: rk3288 boards: normalize for dual-channel dsi
Signed-off-by: Zhibin Huang <zhibin.huang@rock-chips.com>
Change-Id: Ie172d4d3821ef548149ce64f3e9d3eae5e83bdde
2024-04-10 19:32:16 +08:00
Guochun Huang
49a3a07ab7 drm/rockchip: dsi2: normalize for dual-channel
Change-Id: Ia1687f29183315d73aeaecd848e340e58a73717a
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
2024-04-10 19:31:34 +08:00
Zhibin Huang
6e287635a8 drm/rockchip: dsi: add support swap two channel data of MIPI
Signed-off-by: Zhibin Huang <zhibin.huang@rock-chips.com>
Change-Id: Ib9dd986da26bff9fb744e592522c332e721e03ac
2024-04-10 19:31:34 +08:00
Zhibin Huang
4f489b9d96 drm/rockchip: dsi: normalize for dual-channel
Signed-off-by: Zhibin Huang <zhibin.huang@rock-chips.com>
Change-Id: I8241ba018f3333481fa0ec63e009755a1a6c7f17
2024-04-10 19:31:34 +08:00
Zefa Chen
2d4661c496 media: rockchip: vicap disable dma adapter when use hdmi input
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I20a47ca718242eb253797c851b85189b5fcf1829
2024-04-10 17:40:39 +08:00
Wangqiang Guo
4fddfc26ca media: i2c: rk628: fix color space err on "RGB" format.
Change-Id: If950c7971143a411f2a83ccda92afafdb047c2d7
Signed-off-by: Wangqiang Guo <kay.guo@rock-chips.com>
2024-04-10 08:55:28 +08:00
Guochun Huang
77b8a97e6d drm/rockchip: analogix_dp: fix Condition of CDR fail
In DP spec 1.3, Condition of CR fail are outlined
in section 3.5.1.2.2.1, figure 3-20:

1. Maximum Voltage Swing reached
2. Same Voltage five times

The following conditions have been optimized:
1. Training of CDR still failed while maximum voltage swing has been applied and configured
2.Removed the redundant judgment for the maximum pre-emphasis level reached

Change-Id: I829437e0294663a6cb1f31feb91e1d6a468ed681
Signed-off-by: Guochun Huang <hero.huang@rock-chips.com>
2024-04-09 19:53:05 +08:00
Weixin Zhou
4d0cc7b05a arm64: dts: rockchip: rk3576-eink: disable unuse node display_subsystem
Signed-off-by: Weixin Zhou <zwx@rock-chips.com>
Change-Id: Ib473e4d1e1af40c05cc2a33085764a93fdb3a092
2024-04-09 19:52:35 +08:00