Commit Graph

1268672 Commits

Author SHA1 Message Date
Zefa Chen
ae4058769f media: rockchip: vicap fixes error of yuv420 intput
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I130049a7effa8eba2511bb63e95b29eb9481cf5c
2024-03-20 21:15:36 +08:00
Zefa Chen
4683d4d50b media: rockchip: vicap fixes error config of 2x2 pixel extraction mode
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I7a8e2594247a0dbfcc4d9403265e99887d3c5ac8
2024-03-20 21:15:05 +08:00
Zefa Chen
00b96150b7 media: rockchip: vicap fixes size error of rgb888 with rk3576
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Ic9e933375b5a3d57fefd3cd4a7e9fcd2c74e8830
2024-03-20 21:13:54 +08:00
Chandler Chen
ae3eca4206 arm64: dts: rockchip: rk3576: rkvdec enable link mode by default
Change-Id: I6e8091b9cd69dd4e2a529721c3dc9813d2dbac02
Signed-off-by: Chandler Chen <chandler.chen@rock-chips.com>
2024-03-20 17:10:33 +08:00
Shunhua Lan
ab5593978c arm64: dts: rockchip: rk3588-evb7: add rk628 sound for hdmiin audio
Signed-off-by: Shunhua Lan <lsh@rock-chips.com>
Change-Id: I4b14de5ef996d256652a023a3bc64e6de056bd09
2024-03-20 17:04:51 +08:00
Zefa Chen
3490947faa media: rockchip: vicap fixes error of gcc compile
drivers/media/platform/rockchip/cif/capture.c:5159:6: error: conflicting types for 'rkcif_do_stop_stream' due to enum/integer mismatch; have 'void(struct rkcif_stream *, unsigned int)' [-Werror=enum-int-mismatch]
 5159 | void rkcif_do_stop_stream(struct rkcif_stream *stream,
      |      ^~~~~~~~~~~~~~~~~~~~
In file included from drivers/media/platform/rockchip/cif/capture.c:24:
drivers/media/platform/rockchip/cif/dev.h:949:6: note: previous declaration of 'rkcif_do_stop_stream' with type 'void(struct rkcif_stream *, enum rkcif_stream_mode)'
  949 | void rkcif_do_stop_stream(struct rkcif_stream *stream,
      |      ^~~~~~~~~~~~~~~~~~~~
drivers/media/platform/rockchip/cif/capture.c:6344:5: error: conflicting types for 'rkcif_do_start_stream' due to enum/integer mismatch; have 'int(struct rkcif_stream *, unsigned int)' [-Werror=enum-int-mismatch]
 6344 | int rkcif_do_start_stream(struct rkcif_stream *stream, unsigned int mode)
      |     ^~~~~~~~~~~~~~~~~~~~~
drivers/media/platform/rockchip/cif/dev.h:947:5: note: previous declaration of 'rkcif_do_start_stream' with type 'int(struct rkcif_stream *, enum rkcif_stream_mode)'
  947 | int rkcif_do_start_stream(struct rkcif_stream *stream,
      |     ^~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
scripts/Makefile.build:273: recipe for target 'drivers/media/platform/rockchip/cif/capture.o' failed

Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Ibbd427bf07937c655a93bf84d33f25e86fece9d0
2024-03-19 20:56:00 +08:00
Tao Huang
5ed0f1558c mfd: rkx110_x120: Check CONFIG_DEBUG_FS on rkx120_debugfs_init()
before:
   text	   data	    bss	    dec	    hex	filename
    538	    232	      0	    770	    302	drivers/mfd/rkx110_x120/rkx120.o
after:
   text	   data	    bss	    dec	    hex	filename
    468	     32	      0	    500	    1f4	drivers/mfd/rkx110_x120/rkx120.o

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ic1b6fe5fef13e64756797e28b48935ac570aa80b
2024-03-19 20:27:54 +08:00
Wu Liangqing
624656c1c9 arm64: dts: rockchip: rk3576-evb: add test power
Change-Id: Ic27d8d774f6e1c07fb3ab835c37107c48e9dd2ef
Signed-off-by: Wu Liangqing <wlq@rock-chips.com>
2024-03-19 20:15:17 +08:00
Huibin Hong
bc24e0b49a fiq_debugger: arm64: fix command bt, show correct call stack
Change-Id: I718bdfb4247e67542ae665572b0438066fd9daab
Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
2024-03-19 20:10:24 +08:00
Weixin Zhou
ddcea529f5 arm64: dts: rockchip: rk3576-eink: config pwrdn pinctrl
Signed-off-by: Weixin Zhou <zwx@rock-chips.com>
Change-Id: I1617fc5f7b8d8bb6fbee5c07709efa1fcf3d93fd
2024-03-19 19:16:53 +08:00
Chen Shunqing
98db161644 media: i2c: rk628: add cec register for csi_v4l2
Type: Function
Redmine ID: N/A
Associated modifications: N/A
Test: N/A

Signed-off-by: Chen Shunqing <csq@rock-chips.com>
Change-Id: I2ff2aedb323165ca3c1b95ae609f66facb1b61bb
2024-03-19 19:10:00 +08:00
Zorro Liu
6c0bd11b9e arm64: dts: rockchip: rk3576-ebook: update panel_color value
Change-Id: I0d57158b6813df97979d8e6c3960e5119a543d8f
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
2024-03-19 19:06:23 +08:00
Zorro Liu
c478f1f7d4 arm64: dts: rockchip: rk3576-ebook-v10: update wacom touch config
Change-Id: Icc0c3886bbc32ff959698a6edc9cb685d5a5881d
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
2024-03-19 19:06:03 +08:00
Cai YiWei
2ee9ce1196 media: rockchip: isp: dpcc border for isp39
Change-Id: I080fb9f62e7f11d2bb9bbe2ebeecd80910d4a0c3
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2024-03-19 19:05:30 +08:00
Johnson Ding
ddc7807764 arm64: dts: rockchip: rk3576: Increase vpu720 frequency to 702M
Signed-off-by: Johnson Ding <johnson.ding@rock-chips.com>
Change-Id: Id77982a5bafe9c308740a61e5b04ed26688580a1
2024-03-19 19:04:53 +08:00
Finley Xiao
037df56ef7 drm/rockchip: vop2: Add support to request early supend
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I53c710712fa058a0a8b6e46f2daab2b28f4b41ed
2024-03-19 18:57:59 +08:00
Finley Xiao
702c493b80 soc: rockchip: rockchip_system_monitor: Implement early suspend
Change-Id: Iaaac3766d3dba58bdde0f10cb8161b4066e0e1a3
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2024-03-19 18:57:56 +08:00
Finley Xiao
e190fda5f7 soc: rockchip: Kconfig: Add HAS_EARLYSUSPEND and ROCKCHIP_EARLYSUSPEND
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I7fe0d0288588194fec1e8d67398ddd0afe631b8a
2024-03-19 12:22:28 +08:00
Arve Hjønnevåg
ed688b8126 PM: Add early suspend api.
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I5133bd84fc33c2bc0f1f26ea05078d44b7135938
2024-03-19 12:22:28 +08:00
Finley Xiao
36be8862f9 input: touchscreen: gt1x: Don't add pm ops when enable early suspend
Fix underflow of vcc3v3_lcd0_n regulator enable count.

Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: Ie5383504b29c3efa8f98df76d32feb5721ee22c2
2024-03-19 12:10:01 +08:00
XiaoDong Huang
2807756abc arm64: dts: rockchip: rk3576: rockchip_suspend: enable RKPM_SLP_32K_EXT
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
Change-Id: Ieacfc301d6abb2d036b9232d006cc84d837ef3f9
2024-03-19 11:21:07 +08:00
XiaoDong Huang
d00bf4dffb dt-bindings: suspend: rk3576: fix *WKUP* macro
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
Change-Id: Id11895f0e48a00fa987dabc77be7d31123bfb1f3
2024-03-19 11:21:07 +08:00
Elaine Zhang
5664c1e4e4 clk: rockchip: rk3576: mark pclk_ddr_root as critical
Change-Id: Ibfb1aed00638afee4d7885d34252d85879243954
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2024-03-19 10:51:10 +08:00
Tao Huang
ea0c96c905 input: touchscreen: cyttsp5: fix module building
ERROR: modpost: "cyttsp5_devtree_create_and_get_pdata" [drivers/input/touchscreen/cyttsp5/cyttsp5.ko] undefined!
ERROR: modpost: "cyttsp5_devtree_clean_pdata" [drivers/input/touchscreen/cyttsp5/cyttsp5.ko] undefined!
ERROR: modpost: "cyttsp5_devtree_create_and_get_pdata" [drivers/input/touchscreen/cyttsp5/cyttsp5_i2c.ko] undefined!
ERROR: modpost: "cyttsp5_devtree_clean_pdata" [drivers/input/touchscreen/cyttsp5/cyttsp5_i2c.ko] undefined!
ERROR: modpost: "_cyttsp5_loader_platform_data" [drivers/input/touchscreen/cyttsp5/cyttsp5.ko] undefined!
ERROR: modpost: "cyttsp5_xres" [drivers/input/touchscreen/cyttsp5/cyttsp5.ko] undefined!
ERROR: modpost: "cyttsp5_init" [drivers/input/touchscreen/cyttsp5/cyttsp5.ko] undefined!
ERROR: modpost: "cyttsp5_power" [drivers/input/touchscreen/cyttsp5/cyttsp5.ko] undefined!
ERROR: modpost: "cyttsp5_irq_stat" [drivers/input/touchscreen/cyttsp5/cyttsp5.ko] undefined!

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I50187a731f717e1ccf8d01e2e32d20c40dd656ef
2024-03-19 09:21:40 +08:00
Damon Ding
e1e8b5683b arm64: configs: rockchip_linux_defconfig: enable CONFIG_PWM_RKX120
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: I4f5ec337d75703d474bc407f6733639f6e333799
2024-03-18 21:05:17 +08:00
Damon Ding
d307eedb3c mfd: rkx110_x120: add config option PWM_RKX120
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: Ia8bdc484d05beb5afa6869e0260c83781852ccc5
2024-03-18 21:05:11 +08:00
Weixin Zhou
bf280825e8 input: touchscreen: add ft5726
Signed-off-by: Weixin Zhou <zwx@rock-chips.com>
Change-Id: Ia5b1e35e5a58b3991a0a95a42e4c69219f9db988
2024-03-18 20:34:45 +08:00
Algea Cao
dcba99b1e1 drm/rockchip: vop2: Update acm info when acm prop changed
Previous versions did not update the acm status in real time.
This causes the input color format of post csc to be
wrongly judged.

Change-Id: I1213ec3962682a09d9ad80827564b1d68b97cb20
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2024-03-18 20:16:44 +08:00
Luo Wei
6553ec09f2 arm64: configs: Add rk3576_vehicle.config
Change-Id: I67bc915be1770d4dbeae052b5c7042a9a2608876
Signed-off-by: Luo Wei <lw@rock-chips.com>
2024-03-18 20:14:57 +08:00
Weixin Zhou
20728e11cd arm64: dts: rockchip: rk3576-ebook-color-v10: for color display
Signed-off-by: Weixin Zhou <zwx@rock-chips.com>
Change-Id: I46dbda1e64e0760918b7fe188ea50d1e903f33d4
2024-03-18 20:10:23 +08:00
Jianwei Fan
ad2269d28d arm64: dts: rockchip: rk3576-tablet: add ov16880 camera
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: I0b343946a6606a67db2f1e671312555b17044d90
2024-03-18 20:06:17 +08:00
Jianwei Fan
24569fc13f media: i2c: ov16880: add camera driver
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: Ibe581cb1f371005138bc2b798b51609a072fdb01
2024-03-18 20:06:09 +08:00
Tao Huang
6523a8c7f3 arm64: dts: rockchip: Fix Makefile sorting for rk3576-iotest-v10
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ibfb107aa828ec51fd6f2be62b14ca2f6385966f0
2024-03-18 20:04:43 +08:00
Binyuan Lan
97d6a1d0cf arm64: dts: rockchip: rk3576-tablet: add dp_sound
Signed-off-by: Binyuan Lan <lby@rock-chips.com>
Change-Id: I1a61786f9e1f353eb98b96f932bb6ab07d96aec8
2024-03-18 20:00:40 +08:00
Liang Chen
4941995dbd clk: rockchip: rk3576: mark clk_ref_mphy_26m as critical
The power consumption of mphy will be abnormal when clk_ref_mphy_26m
is disabled and PD_USB is power off/on.

Signed-off-by: Liang Chen <cl@rock-chips.com>
Change-Id: Icd67187494a22656a25454352ffcc06cc4321577
2024-03-18 20:00:08 +08:00
Damon Ding
1568e5614d drm/rockchip: vop2: not to register crtc for inactive video port
Make sure that the vp to be registered has at least
one connector, otherwise it will be as an inactive vp.

Fixes: 6092eb96b6 ("drm/rockchip: vop2: add possible_vp_mask to calculate the exact possible_crtcs")
Change-Id: Ibc078d9f50e47877e4296c2e570721a6f69c9058
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2024-03-18 19:59:31 +08:00
Sandy Huang
0ce65b9ff3 drm/rockchip: vop2: fix hdmi yuv420 display error for rk3576
At HDMI 4kYUV420 or 4K60 split output mode, pixel clk is 600M, dclk from
hdmi phy is 297M.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I619b94647b7dcb651b34f084e346f10bcc35efd3
2024-03-18 19:59:31 +08:00
Sandy Huang
398895b615 drm/rockchip: vop2: get the correctly vp id when close all pd
The win attached vp maybe unused, and the unused vp will not
register crtc, so we need to lool up all win under the pd and check
if the win attached vp has register crtc.
If all the win attached vp is unused, we set the first win(undter
the pd) attach to the first crtc to make sure the pd can be closed normally.

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: Id7dfedae2d3b6e7a139ca2eebaefea250e986d12
2024-03-18 19:59:31 +08:00
Luo Wei
7df2bd15e3 arm64: dts: rockchip: rk3576-vehicle-evb: init dts files
Change-Id: I3fa36362f761ef9a2de9ff22a3a111a6200d6aad
Signed-off-by: Luo Wei <lw@rock-chips.com>
Signed-off-by: Zheng zhiqi <looper.zheng@rock-chips.com>
Signed-off-by: Cai Wenzhong <wenzhong.cai@rock-chips.com>
Signed-off-by: Xu Xuehui <xxh@rock-chips.com>
2024-03-18 15:56:45 +08:00
Andy Yan
b34ddbc6c6 drm/rockchip: vop: Improve registers dump
Add vop register address base.
Add callback for active register dump.

Change-Id: I78b39f160c799aa72da22f17564696c92a256962
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
2024-03-18 14:22:46 +08:00
Andy Yan
6b460d196d drm/rockchip: vop: print dest->x1/y1 for display offset
The dsp_stx/dsp_sty on vop is dest->x1/y1 + blank timing,
this is different from vop2.

Change-Id: If2f97e85aa65ee94dcf8889d5703d92750e36061
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
2024-03-18 14:22:46 +08:00
Andy Yan
7f4926daaf drm/rockchip: vop: Fix blend_mode check
DRM_MODE_BLEND_PREMULTI is defined as zero.

Change-Id: I6bcb1777a9f9df454b6709f1f741c2a2aa9c63e3
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
2024-03-18 14:22:46 +08:00
Weixin Zhou
ae9e12cb18 arm64: dts: rockchip: rk3576-eink: move rk806 node to eink dtsi
Signed-off-by: Weixin Zhou <zwx@rock-chips.com>
Change-Id: I75a29f323c1f48c6d0b9f0e6121e59e4c78aa330
2024-03-18 14:18:57 +08:00
Wang Panzhenzhuan
e74f2de328 arm64: dts: rockchip: rk3576 evb1 add nvp6324 ahd2csi board
Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
Change-Id: I133a0b7ebeed1ee832468c6fe03183b7ba63cfaf
2024-03-18 14:18:36 +08:00
XiaoDong Huang
9b7a30b33d arm64: dts: rockchip: rk3576-eink: enable rockchip_suspend node
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
Change-Id: I9f277c0e4b8db73f241c0be7708ba449b862bbb7
2024-03-18 14:16:56 +08:00
Lin Jianhua
881a04cde8 arm64: dts: rockchip: rk3576-industry: enable boot logo
Change-Id: I721fbe80ed4cf083aaaf0c1344127d494f6d417e
Signed-off-by: Lin Jianhua <linjh@rock-chips.com>
2024-03-18 14:16:05 +08:00
Weixin Zhou
bb44752e4c arm64: dts: rockchip: rk3576-test1-v10-eink: only include evb rk806
Signed-off-by: Weixin Zhou <zwx@rock-chips.com>
Change-Id: Ibc6b97eefdfcaf316fd713d7999e5f4a234ee218
2024-03-18 14:11:09 +08:00
Finley Xiao
446711ce94 soc: rockchip: power-domain: Make pd vpu keep on when startup for rk3576
Because the ebc is under pd vpu, and it may be enabled in uboot.

Change-Id: Iee8afa8f802a5f02c7c50f2223479349614371ff
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2024-03-18 12:03:19 +08:00
Mingwei Yan
7614b638e9 media: rockchip: vpss: optimize module set
1: add module_get
2: module can't be changed dynamically

Signed-off-by: Mingwei Yan <mingwei.yan@rock-chips.com>
Change-Id: I4b7c6c5a8b3b600908a796224ab5fceaab6c995b
2024-03-18 11:30:52 +08:00
Binyuan Lan
4f9157021a arm64: dts: rockchip: rk3576-tablet: update rk806 config
Signed-off-by: Binyuan Lan <lby@rock-chips.com>
Change-Id: Ia83caef6c9d67801c706d8031a0cb0d96dee6f96
2024-03-18 11:16:53 +08:00