Commit Graph

1268959 Commits

Author SHA1 Message Date
Damon Ding
718382dfea pwm: rockchip: keep the mode fixed in capture mode although pwm is disabled
The PWM io input/output state is controlled by PWM mode
configuration. In order to avoid the antagonistic drive
state between the PWM pin and the external pin, keep the
PWM mode fixed in capture mode although PWM is disabled.

Change-Id: I6183987c9bef6f444726643f878c5384f63844d0
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2024-04-23 18:34:44 +08:00
Tao Huang
40e33abf50 drm/rockchip: vop: Fix kernel-doc warnings
drivers/gpu/drm/rockchip/rockchip_drm_vop.c:2386: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
 * rockchip_atomic_helper_update_plane copy from drm_atomic_helper_update_plane
drivers/gpu/drm/rockchip/rockchip_drm_vop.c:2386: warning: missing initial short description on line:
drivers/gpu/drm/rockchip/rockchip_drm_vop.c:2458: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
 * drm_atomic_helper_disable_plane copy from drm_atomic_helper_disable_plane
drivers/gpu/drm/rockchip/rockchip_drm_vop.c:2458: warning: missing initial short description on line:

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ie9d2e00238e4c45d6a8ad7581ea7482b14092a23
2024-04-23 11:35:09 +08:00
Tao Huang
952d1e9902 drm/rockchip: vop2: Fix kernel-doc warnings
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c:6139: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst
drivers/gpu/drm/rockchip/rockchip_drm_vop2.c:6210: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I24f65edf0c4900c09d5b68411a8f2dd473260ce6
2024-04-23 11:32:08 +08:00
Cai Wenzhong
765d26b690 media: i2c: maxim: driver version v3.03.00
Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Change-Id: Id36b507fd07a4d295b0dc974c2af44ec3522cc84
2024-04-22 18:33:02 +08:00
Cai Wenzhong
4d5181c72f media: i2c: maxim: remote: rename sensor module ko, resolve duplicate name issues
Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Change-Id: I5d1d5213fd849b83236c7bb0c6f62eab6ba0eb6d
2024-04-22 18:32:48 +08:00
Zhibin Huang
c8cc469259 drm/panel: panel-simple: delete panel-notifier in loader protect
The event of the notification does not match the actual status

Type: Fix
Redmine ID: N/A
Associated modifications: N/A
Test: N/A

Signed-off-by: Zhibin Huang <zhibin.huang@rock-chips.com>
Change-Id: Ib2a9cb1888c27c74cc14f0f09707a670e65f0aa2
2024-04-22 18:02:36 +08:00
Liang Chen
056c54ef38 arm64: dts: rockchip: rk3576-eink: enable csu node
Signed-off-by: Liang Chen <cl@rock-chips.com>
Change-Id: Ifbacb5c37e30b2d040f42bdc5c1bad90c9f00338
2024-04-22 17:50:58 +08:00
Liang Chen
f343d47d09 arm64: dts: rockchip: rk3576-tablet: enable csu node
Signed-off-by: Liang Chen <cl@rock-chips.com>
Change-Id: I0fa3855094e2774a91c9f667c2521b70e315de36
2024-04-22 17:50:58 +08:00
Zorro Liu
2e23135a10 arm64: dts: rockchip: rk3576-ebook: add hall config for ultra sleep
Change-Id: Ieb8a8b01fed4284da56026254a5f2881d25a6123
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
2024-04-22 17:13:11 +08:00
Zorro Liu
5c6d5ffd84 input: sensors: hall: mh248: judge wakeup sources for hall sensor
for hardware reason, we need judge wakeup sources to avoid wakeup
screen by wrong irq when wakeup from ultra sleep

Change-Id: I5a3ef85eb71a312ba0a9e992b70ef0b14e00fc47
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
2024-04-22 17:12:32 +08:00
Zorro Liu
8e0f2bed69 arm64: dts: rockchip: rk3576-ebook: set hall int pull up
Change-Id: I58c044d8c49b74913f6fdc1efa26515869eec08c
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
2024-04-22 17:10:06 +08:00
Jon Lin
21cd7557bd mtd: spi-nor: Fix the issue of buffer contamination
spi_nor_write_sr will pollute the buffer of sr_cr buffer when calling
spi_nor_read_sr.

Change-Id: I217141297df4f448b64c61f1573e7e40d6874903
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2024-04-22 16:57:39 +08:00
shengfei Xu
75584d57e3 power: supply: rockchip-charger-manager: Add config for the charge pump
The charge pump depends on ROCKCHIP_CHARGER_MANAGER_CHARGE_PUMP

Signed-off-by: shengfei Xu <xsf@rock-chips.com>
Change-Id: I8b47d7525fc2549417c368a68f7486c975cbf427
2024-04-22 16:42:54 +08:00
Algea Cao
3819eda012 drm/bridge: dw-hdmi-qp: Support hdmitx hdcp cts passed
Change-Id: I1c819300ff554bb43aa0ae314dca399183576472
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2024-04-22 16:17:23 +08:00
Algea Cao
114fefc526 drm/rockchip: dw_hdmi: Support rk3576 hdcp2.3
Change-Id: Ibf24f7557133b4695b95ef75268f9092bbffe417
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2024-04-22 16:17:11 +08:00
Zhang Yubing
c1d0507d67 drm/rockchip: dw_hdcp2: support rk3576
Change-Id: I0fd4966615a154d20046da682bbfb19b522f0121
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2024-04-22 16:16:54 +08:00
Zefa Chen
927fd4ed97 media: i2c: ov13850 fixes exposure range
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I01844942c9b6c36df7ec085d76638a6f0f25115c
2024-04-22 16:15:21 +08:00
Damon Ding
29e7837d1d drm/rockchip: vop2: disable rb swap if using eDP in YUV444 output mode
Change-Id: I8bd3134b0d6950380b9bd8b2ff79530b8b5931d8
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2024-04-22 16:07:04 +08:00
Sandy Huang
db931a7165 drm/rockchip: dw_hdmi: no need to do crtc_clock div2
The crtc_clock div2 has been done at drm_mode_convert_to_origin_mode() from
the following commit:

commit 649255c0e3 ("drm/rockchip: drv: Add crtc_clock convert in
drm_mode_convert_to_{split,origin}_mode()")

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I530d9582a52cea7d432208bc835fb19be051a7a0
2024-04-22 15:57:17 +08:00
Elaine Zhang
a269396080 net: can: rockchip: Fix rockchip_canfd_start_xmit return type for GKI error
rockchip_canfd_start_xmit is used as a callback function for the ndo_start_xmit
function pointer. ndo_start_xmit's return type is netdev_tx_t but
rockchip_canfd_start_xmit's return type is int.

This causes a failure with Control Flow Integrity (CFI), which requires
function pointer prototypes and callback function definitions to match
exactly. When CFI is in enforcing, the kernel panics. When booting a
CFI kernel with WSL 2, the VM is immediately terminated because of this.

The splat when CONFIG_CFI_PERMISSIVE is used:

[   82.432581][ T2211] CPU: 3 PID: 2211 Comm: cansend Tainted: G
E      6.1.57-android14-11-gfc4b04d84027-ab11318753 #1
[   82.433595][ T2211] Hardware name: Rockchip RK3568 EVB1 DDR4 V10
Board (DT)
[   82.434206][ T2211] pstate: 30400005 (nzCV daif +PAN -UAO -TCO -DIT
-SSBS BTYPE=--)
[   82.434887][ T2211] pc : dev_hard_start_xmit+0xd0/0x260
[   82.435367][ T2211] lr : sch_direct_xmit+0xf0/0x3d0
[   82.435815][ T2211] sp : ffffffc0110f3a70
[   82.436175][ T2211] x29: ffffffc0110f3a80 x28: ffffffc009f47000 x27:
ffffff800d078080
[   82.436873][ T2211] x26: ffffffc009f2ed80 x25: ffffffc009f50550 x24:
0000000000000010
[   82.437567][ T2211] x23: ffffff807bfefc00 x22: ffffff800d078000 x21:
ffffff81f41b7200
[   82.438261][ T2211] x20: 0000000000000000 x19: ffffffc0110f3ae4 x18:
ffffffc01075d070
[   82.438954][ T2211] x17: 0000000044e57e43 x16: 00000000ab1f26f7 x15:
0000007fec6a51b0
[   82.439646][ T2211] x14: 0000000000000001 x13: 0000000008000000 x12:
fffffffdeff6a120
[   82.440340][ T2211] x11: 0000000000000000 x10: 0000000000000000 x9 :
ffffff81f9bf5d80
[   82.441033][ T2211] x8 : ffffffc00262b620 x7 : 7f7f7f7f7f7f7f7f x6 :
fefefefefefefeff
[   82.441726][ T2211] x5 : 0000000000000001 x4 : 0000000000000000 x3 :
ffffffc0110f3ae4
[   82.442418][ T2211] x2 : ffffff81f41b7200 x1 : ffffff800d078000 x0 :
ffffff807bfefc00
[   82.443111][ T2211] Call trace:
[   82.443393][ T2211]  dev_hard_start_xmit+0xd0/0x260
[   82.443839][ T2211]  sch_direct_xmit+0xf0/0x3d0
[   82.444247][ T2211]  __dev_queue_xmit+0x5f0/0xd40
[   82.444667][ T2211]  can_send+0x22c/0x2b0 [can]
[   82.445098][ T2211]  raw_sendmsg+0x1b4/0x3ac [can_raw]
[   82.445585][ T2211]  sock_write_iter+0xdc/0x13c
[   82.445997][ T2211]  vfs_write+0x1e0/0x2c8
[   82.446375][ T2211]  ksys_write+0x78/0xe8
[   82.446737][ T2211]  __arm64_sys_write+0x1c/0x2c
[   82.447157][ T2211]  invoke_syscall+0x58/0x11c
[   82.447557][ T2211]  el0_svc_common+0xb4/0xf4
[   82.447954][ T2211]  do_el0_svc+0x2c/0xb0
[   82.448316][ T2211]  el0_svc+0x2c/0xa4
[   82.448661][ T2211]  el0t_64_sync_handler+0x68/0xb4
[   82.449102][ T2211]  el0t_64_sync+0x1a4/0x1a8
[   82.449504][ T2211] Code: 728fc871 72a89cb1 6b11021f 54000040
(d4304500)
[   82.450106][ T2211] ---[ end trace 0000000000000000 ]---
[   82.468041][ T2211] Kernel panic - not syncing: Oops - CFI: Fatal
exception in interrupt
[   82.468776][ T2211] SMP: stopping secondary CPUs
[   82.469267][ T2211] Kernel Offset: disabled
[   82.469643][ T2211] CPU features: 0x00,00040000,00040184,6600721b
[   82.470190][ T2211] Memory Limit: none
[   82.470530][ T2211] PMU CRU:

Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: I62fa546e07984c7fd6acbd0bdf1278414b479829
2024-04-22 15:24:36 +08:00
Cai YiWei
70df1f6919 media: rockchip: isp: version v2.6.0
Change-Id: I350aaf2188344c16b318a87820ecbba6296e261f
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2024-04-22 15:19:10 +08:00
Cai YiWei
d0797df513 media: rockchip: isp: update gic and check params for isp39
Change-Id: I623d2f9474d744d576f919547778962891b08fa4
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2024-04-22 15:19:10 +08:00
Tony Xie
6128a96972 arm64: dts: rockchip: rk3576: add csu
Signed-off-by: Tony Xie <tony.xie@rock-chips.com>
Change-Id: Iff0b8f0d50ad3fcbd6fd0dd03f6e413087d1b07e
2024-04-22 14:44:48 +08:00
David Wu
5a1ef132de arm64: dts: rockchip: rk3576: Enable high speed interfaces use DMA coherent
The GMAC0/1 and MMU0/1(PCIe, SATA, USB OTG1) support CCI
(Cache Coherent Interconnect), Mark them as such.

Hardware feature for CCI were enabled at U-Boot miniloader level.

Note that MMU2 for USB OTG0 doesn't support CCI.

Change-Id: Ie632fc2ad987c3972076f65559c043b3da67d858
Signed-off-by: David Wu <david.wu@rock-chips.com>
Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
Signed-off-by: William Wu <william.wu@rock-chips.com>
2024-04-19 19:07:39 +08:00
Wangqiang Guo
15f661b3f5 media: rockchip: hdmirx: corrected color range/space judgment.
Change-Id: I4ba59410f06af6828e1bdf6c236e8998b616aa6a
Signed-off-by: Wangqiang Guo <kay.guo@rock-chips.com>
2024-04-19 16:45:24 +08:00
Zhang Yubing
d4c993251d drm/rockchip: dw-dp: config color range for different color format
According to VESA DisplayPort Ver.1.4a - 5.1.1.1 Video
Colorimetry and CEA-861-F - 5.1 Default Encoding Parameters,
YCbCr format default use limit range. RGB format default
use limit range for CEA timing(except 640x480p or color depth
is 6 bit), and other timing should use full range.

The VOP Video Port only support full range when output RGB
format. So we just default config RGB format as full range
and YCbCr format as limit range.

Change-Id: I27e60c314c8cd17f69aa85eb380357fd8a78990f
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
2024-04-19 16:34:01 +08:00
Jianwei Fan
32c36b9a1b media: i2c: rk628: fix set output color space
Fixes: 80647eb888 ("media: i2c: rk628: fix csc process mode and add range switch by user")
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: I2ffd203fa69ce7d73a38f00be47ef3ee9a8fcd07
2024-04-19 16:27:52 +08:00
Jianwei Fan
343cbdee29 media: i2c: rk628: fix bug of clear hdmirx ints
Fixes: dfb6365006 ("media: i2c: rk628: clear interrupt should before process it")
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: Id13a298c69b20f87f3b808524b387144510739a7
2024-04-19 16:25:31 +08:00
Hu Kejun
34dfaace94 media: i2c: dw9714: fix motor is closed after execute v4l2-ctl
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
Change-Id: Icf2b0840bdcfc82950218e4ca389f925f07e2a89
2024-04-19 16:21:11 +08:00
Hu Kejun
2cf876942e media: i2c: lens: fix motor is closed after execute v4l2-ctl
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
Change-Id: I76060b416f4ce84cc1881c952ec1d6ca46eeede2
2024-04-19 16:20:53 +08:00
Hu Kejun
f2bcf24c33 media: i2c: cn3927v: fix motor is closed after execute v4l2-ctl
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
Change-Id: Iac72045aba5e65b5d2411fd4a0fa25ab9b698ddd
2024-04-19 16:18:52 +08:00
William Wu
5fa9a192ea usb: dwc3: gadget: Fix stop active transfer
Sync the commit a9a4f474d7 ("usb: dwc3: gadget: fix deadlock in kick transfer")

Change-Id: I4f0394304227a4261d99b644603ab4edbda21e5d
Signed-off-by: William Wu <william.wu@rock-chips.com>
2024-04-19 16:16:31 +08:00
William Wu
8d733347b8 usb: dwc3: gadget: Move all started reqs to cancelled list on dequeue
If a request is dequeued, the transfer is cancelled.
Give back all the started requests.

Fixes: 2007d5815e ("usb: dwc3: gadget: properly skip over trbs on ep_dequeue")
Change-Id: I7a4d4e58435fb630681891a79bd5e04c19dbbdbd
Signed-off-by: William Wu <william.wu@rock-chips.com>
2024-04-19 16:16:31 +08:00
Wesley Cheng
307db3a0b5 UPSTREAM: usb: dwc3: gadget: Handle EP0 request dequeuing properly
Current EP0 dequeue path will share the same as other EPs.  However, there
are some special considerations that need to be made for EP0 transfers:

  - EP0 transfers never transition into the started_list
  - EP0 only has one active request at a time

In case there is a vendor specific control message for a function over USB
FFS, then there is no guarantee on the timeline which the DATA/STATUS stage
is responded to.  While this occurs, any attempt to end transfers on
non-control EPs will end up having the DWC3_EP_DELAY_STOP flag set, and
defer issuing of the end transfer command.  If the USB FFS application
decides to timeout the control transfer, or if USB FFS AIO path exits, the
USB FFS driver will issue a call to usb_ep_dequeue() for the ep0 request.

In case of the AIO exit path, the AIO FS blocks until all pending USB
requests utilizing the AIO path is completed.  However, since the dequeue
of ep0 req does not happen properly, all non-control EPs with the
DWC3_EP_DELAY_STOP flag set will not be handled, and the AIO exit path will
be stuck waiting for the USB FFS data endpoints to receive a completion
callback.

Fix is to utilize dwc3_ep0_reset_state() in the dequeue API to ensure EP0
is brought back to the SETUP state, and ensures that any deferred end
transfer commands are handled.  This also will end any active transfers
on EP0, compared to the previous implementation which directly called
giveback only.

Fixes: fcd2def663 ("usb: dwc3: gadget: Refactor dwc3_gadget_ep_dequeue")
Cc: stable <stable@kernel.org>
Signed-off-by: Wesley Cheng <quic_wcheng@quicinc.com>
Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Link: https://lore.kernel.org/r/20231206201814.32664-1-quic_wcheng@quicinc.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit 730e12fbec53ab59dd807d981a204258a4cfb29a)
Change-Id: I8f3749ebdc13b86e79713ca813b454cb1dacdb34
2024-04-19 16:16:31 +08:00
Wesley Cheng
c354bcb16d UPSTREAM: usb: dwc3: gadget: Refactor EP0 forced stall/restart into a separate API
Several sequences utilize the same routine for forcing the control endpoint
back into the SETUP phase.  This is required, because those operations need
to ensure that EP0 is back in the default state.

Acked-by: Thinh Nguyen <Thinh.Nguyen@synopsys.com>
Signed-off-by: Wesley Cheng <quic_wcheng@quicinc.com>
Link: https://lore.kernel.org/r/20230420212759.29429-3-quic_wcheng@quicinc.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry picked from commit 8f40fc0808)
Change-Id: Ib8ec06f1e5e2ad4366d2ec33d135d170da90644e
2024-04-19 16:16:31 +08:00
Frank Wang
f549f20ac4 usb: typec: husb311: fix non-standard cable that cc double pull-up
For the non-standard cables that double Rp connected to VBUS, when
husb311 detects one of CC is Rp, let do clear the another CC status
in anyway to dodge being stuck in the SNK_ATTACH_WAIT state.

[   59.366185] VBUS on
[   59.403488] CC1: 0 -> 3, CC2: 0 -> 3 [state TOGGLING, polarity 0, connected]

Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
Change-Id: Ief2f01c97d1a7be81bca7dd26ecd975d35ea9877
2024-04-19 16:10:30 +08:00
Algea Cao
2e7e4970dc drm/rockchip: vop2: Update post csc info when post csc prop changed
Previous versions did not update the post csc status in
real time. This causes post csc was not properly closed
when post csc prop is cleared.

Change-Id: I9c65961517166bc0fb7b700e9b06fdfad1251f4f
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2024-04-19 16:07:43 +08:00
Shawn Lin
a38c9166be scsi: ufs: rockchip: Remove ufshcd_*_suspend/resume call
Because we can't gate the clock when using ufs, so we remove
UFSHCD_CAP_CLK_GATING support. However, ufshcd_runtime_suspend still
be called which can still call ufshcd_suspend->ufshcd_setup_clocks,
then ufshcd_setup_clocks() still tries to gate the clock which we
don't actually allow. Except for gating clock, ufshcd_suspend also send
H8 to the device. This rule is applied to system PM as well.

So the problem looks like:

[  T217] ueventd: restorecon_recursive: /sys/devices/platform/regulatory.0
[  T146] ufshcd-rockchip 2a2d0000.ufs: uic cmd 0x14 with arg3 0x0 completion timeout
[  T146] ufshcd-rockchip 2a2d0000.ufs: dme-reset: error code -110

Remove them together with UFSHCD_CAP_CLK_GATING.

BTW, no matter whether we call ufshcd_*_suspend/resume or not, wlun RPM
make sure all status come back:

[   29.213545][  T146] Workqueue: pm pm_runtime_work
[   29.213567][  T146] Call trace:
[   29.213578][  T146]  dump_backtrace+0xec/0x10c
[   29.213598][  T146]  show_stack+0x14/0x1c
[   29.213616][  T146]  dump_stack_lvl+0x68/0x88
[   29.213631][  T146]  dump_stack+0x14/0x34
[   29.213644][  T146]  ufshcd_hba_enable+0x32c/0x3b4
[   29.213659][  T146]  ufshcd_host_reset_and_restore+0x54/0x12c
[   29.213674][  T146]  ufshcd_reset_and_restore+0x60/0x1f8
[   29.213693][  T146]  __ufshcd_wl_resume+0xa0/0x4a8
[   29.213710][  T146]  ufshcd_wl_runtime_resume+0x38/0x154
[   29.213726][  T146]  scsi_runtime_resume+0x58/0x80
[   29.213746][  T146]  __rpm_callback+0x78/0x3bc
[   29.213765][  T146]  rpm_resume+0x434/0x670
[   29.213782][  T146]  __rpm_callback+0x1ac/0x3bc
[   29.213799][  T146]  rpm_resume+0x458/0x670
[   29.213816][  T146]  pm_runtime_work+0x9c/0xa0
[   29.213833][  T146]  process_one_work+0x1a4/0x3b0
[   29.213847][  T146]  worker_thread+0x258/0x428
[   29.213861][  T146]  kthread+0xe8/0x1b4
[   29.213878][  T146]  ret_from_fork+0x10/0x20

Fixes: 83dbc34b20 (“scsi: ufs: rockchip: Fix stability issues and add WB support”)
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: I30fcdf35575a882b1095c5f991d82e429eccd1ce
2024-04-19 15:02:29 +08:00
Algea Cao
518a2153e8 arm64: dts: rockchip: rk3576-evb: Enable hdmi uboot logo
Change-Id: I8c1dda5b890e1a260d944b0f47469a8c1b5b9945
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2024-04-19 11:02:42 +08:00
Zhibin Huang
4b7eebc375 arm64: dts: rockchip: rk3576-tablet: modify dsi panel and tp config
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: Ide57a721a8c6f641d4492239bc7a5b5dc869ea23
2024-04-19 10:51:48 +08:00
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