Commit Graph

1268919 Commits

Author SHA1 Message Date
Zhibin Huang
fc4dc05e15 input: touchscreen: chipone_tddi: use panel notifier to fix resume/suspend timing
Type: Fix
Redmine ID: #474634 #468692
Associated modifications: N/A
Test: N/A

Signed-off-by: Zhibin Huang <zhibin.huang@rock-chips.com>
Change-Id: I85387aa2a35ccc78dd16500a8abbb2ee2758d1ea
2024-04-19 10:50:11 +08:00
Zhibin Huang
7944ac7a8d Revert "input: touchscreen: chipone_9551r add early_suspend"
This reverts commit 3133279020.

Change-Id: I60d405600b3b79168146e2635a8f8ce98f459492
Signed-off-by: Zhibin Huang <zhibin.huang@rock-chips.com>
2024-04-19 10:49:11 +08:00
Zhibin Huang
cda0fc9ebc drm/panel: panel-simple: add panel notifier for tp resume/suspend
The tp of some screens has strict timing requirements (especially the
display and tp are integrated on a screen IC), while kernel-6.1 does
not have fb function. The notifier is added to correlate the sleep and
wake-up timing of display and tp. For screens with low requirements
for tp and display timing, you can choose whether to use it to notify
on wake-up and sleep.

Type: Function
Redmine ID: #474634 #468692
Associated modifications: N/A
Test: N/A

Signed-off-by: Zhibin Huang <zhibin.huang@rock-chips.com>
Change-Id: I11cb63564fce97b6ca6b02cf12bc19db5d82124b
2024-04-19 10:48:48 +08:00
Zhibin Huang
d74b36463b drm/rockchip: panel-notifier: add panel notifier for panel-related device
Type: Function
Redmine ID: N/A
Associated modifications: N/A
Test: N/A

Signed-off-by: Zhibin Huang <zhibin.huang@rock-chips.com>
Change-Id: I22fb562772fcbf3808d61c7419407bf50d947e0d
2024-04-19 10:44:25 +08:00
Wang Panzhenzhuan
0ad1b882f4 media: i2c: add imx498 sensor driver
Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
Change-Id: I0eacdb0dcce89924b8a820699e855dbb11361cb3
2024-04-19 10:08:50 +08:00
Cai YiWei
50e3b9c050 media: rockchip: isp: rdbk_auto mode stop to clean buf list
Change-Id: Ia38e77ae5086bf54ee48fe54a60600e320fb34aa
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2024-04-18 20:19:51 +08:00
Damon Ding
c00d880c3e drm/rockchip: logo: call .mode_fixup() before mode comparison
The mode comparison helps to confirm whether the display
mode of uboot logo is valid of the drm mode list in kernel.

The mode stored in dts has been fixed by .mode_fixup()
in uboot, which helps to deal with some workarounds, so
it is also needed to call .mode_fixup() when getting mode
list in kernel.

Change-Id: I2c74e66365a5e305ec8322316fdb7472e6df9fcd
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2024-04-18 20:19:07 +08:00
Damon Ding
0d67fe863b arm64: dts: rockchip: rk3576-evb1: add hdmi2dp display dts
If using the hdmi2dp ext borad, eDP uses the hardware
link of HDMI, whose phy is multiplexed with eDP, and
the HDMI controller does not actually work.

Change-Id: If3d3983ef5b14c1181f4c7fae5fb96969061656c
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2024-04-18 09:52:55 +08:00
Algea Cao
177cd4fcb0 drm: bridge: dw-hdmi-qp: Optimized hdmi ddc transfer process
1.Reading edid consecutively 16 bytes at a time to
reduce the time consumed.

2.Increase the number of retries on failure to ensure
successful transfer.

Change-Id: I0ea92a4a80634771d1ecc7abe573986649a908e4
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2024-04-17 18:12:55 +08:00
Algea Cao
e10394b215 drm/bridge: dw-hdmi-qp: Fix hdmi color abnormal when resume
EDID will be clear when hdmi suspend. Linux system may not
actively read EDID when hdmi resume. So hdmi driver needs to read
edid when hdmi resume.

Change-Id: I2d37dc2fa278ba339fdb0294a9aa3d82150ea055
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2024-04-17 18:12:40 +08:00
Zhang Yubing
76391def17 drm/rockchip: vop2: get the correct clock source
In RK3588, as default config, the dclk_vop2's clock tree
as follow:
pll_v0pll
  v0pll
    dclk_vop2_src
      dclk_vop2
In the above case, we think that the dclk_vop2 will be the
input parameter in rockchip_drm_dclk_round_rate function.
By getting the parent clocks's parent clock, we can find
v0pll.
However, the input parameter is dclk_vop2_src instead of
dclk_vop2 now. And we can't find the v0pll which will filter
more display mode that may supported by VOP.
For RK3576, It has the same issue.
To avoid this issue happen, It just need to get the parent
clock in rockchip_drm_dclk_round_rate function.

Fixes: aebca4f07f ("drm/rockchip: vop2: filter unsupported mode when can't get correct dclk")

Change-Id: Ib041e0614a2d67354a4d22e14aaa625b07edcf35
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2024-04-17 18:06:32 +08:00
Damon Ding
125ab5f427 arm64: dts: rockchip: rk3576-iotest: add edp2dp display dts
Change-Id: I3b22bd30f61b15ff52ba94abe07e4e8ec30af8d3
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2024-04-17 16:35:35 +08:00
Damon Ding
3f53efd971 drm/rockchip: analogix_dp: add analogix_dp_devtype RK3576_EDP
RK3588_EDP dones not support hsync/vsync polarity configuration,
while RK3576_EDP does.

Change-Id: Ic24628333a81427e2141adcf544a05254a1586e0
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2024-04-17 15:47:06 +08:00
Zefa Chen
4b0cca3790 media: rockchip: vicap: fixes error of s_power when open video
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I618cf4400310171903e4eb189ea4ac3c51e41805
2024-04-17 15:10:10 +08:00
Alex Zhao
4e7c88cf70 net: wireless: rockchip_wlan: bcmdhd: Fix out-of-srctree build
../drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/aiutils.c:25:10: fatal error: 'typedefs.h' file not found

Fixes: 487057acaf ("net: wireless: update bcmdhd driver to 101.10.591.52.27 (20240409-1)(20240411-2)")
Change-Id: I355a012fe28ec9d943998b95b66459bb6f449b88
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Signed-off-by: Alex Zhao <zzc@rock-chips.com>
2024-04-17 15:09:31 +08:00
Zhang Yubing
4a5f5135d1 arm64: dts: rockchip: rk3576-evb: fix some display route config
Change-Id: I081dcd5f785b085f3642f84519acf30786d0dfc5
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2024-04-16 17:40:48 +08:00
Sandy Huang
dc65fd7c5f drm/rockchip: vop2: get gamma config from dts
sample:

/ {
	dsp_lut0: dsp-lut0 {
		gamma-lut = <...>;
	};

	dsp_lut1: dsp-lut1 {
		gamma-lut = <...>;
	};
};

&vp0 {
	dsp-lut = <&dsp_lut0>;
};

&vp1 {
	dsp-lut = <&dsp_lut1>;
};

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: Ifca948f102abe73e925744aa792b6e1f87579761
2024-04-16 17:32:45 +08:00
Shawn Lin
83dbc34b20 scsi: ufs: rockchip: Fix stability issues and add WB support
Disable UFS related clock in runtime is proved to be incorrect and
mismatch state between host and device should be recovered by reset the
controller to make sure each part is in the beginning status.

Meanwhile, we have verified WB works fine by test, so add WB support
as well.

Change-Id: I5af675576ef2b43ebe5061af204ba1fff5f3f233
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
2024-04-16 17:30:33 +08:00
Wesley Yao
197e998c07 arm64: dts: rockchip: rk3576: Increase 2400M to 2750M for dmc opp table
Change-Id: Id5c8f3eb19a3dbd3868f0cb4638eeadcbdd30a54
Signed-off-by: Wesley Yao <wesley.yao@rock-chips.com>
2024-04-16 16:26:27 +08:00
Wang Panzhenzhuan
4aca4b6b2c media: i2c: nvp6324: fix once dev register fail cause later failed issue
dts config multi nvp6324, if previous nvp6324 register failed,
it will set i2c addr to 0xff, cause later nvp6324 register failed,
so fix it.

Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
Change-Id: I39a4a9a59432918582ad23d918b316b66e99a632
2024-04-16 15:19:23 +08:00
Alex Zhao
487057acaf net: wireless: update bcmdhd driver to 101.10.591.52.27 (20240409-1)(20240411-2)
Change-Id: Id8ace96051346f2bae7236c66a6c2968c9aa07b6
Signed-off-by: Alex Zhao <zzc@rock-chips.com>
2024-04-15 20:32:39 +08:00
Luo Wei
44a66b84b0 mfd: display-serdes: retry probe if split is null
Signed-off-by: Luo Wei <lw@rock-chips.com>
Change-Id: I223b5c7db1f92405e9647a31740773fd8c2cb0d4
2024-04-15 19:55:31 +08:00
Jianwei Fan
f3019c0e92 video: rockchip: vehicle: use hardware interlace for rk3576 when interlace input
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: I8912cf794963e0f5f315f6e7b958f5194b657151
2024-04-15 19:19:08 +08:00
Wu Liangqing
523045a15d arm64: dts: rockchip: rk3576-test1 enable ufs
Change-Id: I03ce3632dc1de5fa63398bfafe6dec1d2339693a
Signed-off-by: Wu Liangqing <wlq@rock-chips.com>
2024-04-15 18:02:24 +08:00
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