Commit Graph

862978 Commits

Author SHA1 Message Date
Cai YiWei
e1ff4db01b media: rockchip: isp: adjust rdbk times with mulit dev for isp2.0
Change-Id: I0d15991a0f17ce0498435a296d8b997e30f6fc38
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2021-03-29 18:45:58 +08:00
David Wu
3371773b5c net: ethernet: stmicro: Exit loopback when dwmac_rk_init failed
This patch fixed the following issue:
[  106.688843] Call trace:
[  106.689091]  dwmac4_release_tx_desc+0x0/0x10
[  106.689495]  dwmac_rk_loopback_with_identify+0x48/0x54
[  106.689971]  dwmac_rk_loopback_run.constprop.10+0x55c/0xcf8
[  106.690482]  phy_lb_scan_store+0xdc/0xe0
[  106.690848]  dev_attr_store+0x18/0x28
[  106.691191]  sysfs_kf_write+0x48/0x58
[  106.691531]  kernfs_fop_write+0xf4/0x220
[  106.691896]  __vfs_write+0x34/0x158
[  106.692219]  vfs_write+0xb0/0x1d0
[  106.692530]  ksys_write+0x64/0xe0
[  106.692842]  __arm64_sys_write+0x14/0x20

Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: I7d36105d20cc94275842f07c9d7aaa49cc6daa06
2021-03-29 11:11:08 +08:00
Andy Yan
55fab09816 drm/rockchip: vop2: wb uv address must follow yrgb address without gap
VOP writeback directly without stride, and the uv buffer is follow
yrgb buffer without gap.

Change-Id: I9f63eb0527499e2d18d99fc248dbfd95b5d6179d
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
2021-03-29 10:49:38 +08:00
Andy Yan
824600d786 drm/rockchip: vop2: Add uv offset for y mirror
Esmart/Smart should add offset in y mirror mode.

Change-Id: I5299543006c702c1492ee740460d0b7536e7d6e8
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
2021-03-29 10:46:54 +08:00
Cai YiWei
9d40015844 media: rockchip: ispp: add uvnr sd32 self en control
Change-Id: I57c0ed94b7916a9ea2a17c0ab761bad3d0af27a4
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2021-03-29 10:46:20 +08:00
Dingxian Wen
76455ded4c media: i2c: rk628csi: fixed some issues
1.Fix the problem that MIPI CSI TX is abnormal when HDMI TX is powered on
after rk628.
2.Support dynamic switching of MIPI bit rate.
3.Remove 1080P50 from edid.

Signed-off-by: Dingxian Wen <shawn.wen@rock-chips.com>
Change-Id: I9980065da639b4b269306470f3ffa2db83a9b132
2021-03-26 17:37:32 +08:00
Finley Xiao
fc751a9c09 PM / devfreq: rockchip_dmc: Fix rate when enter isp and dulaview statuses
As the frequency can't be changed in isp and dulaview statuses,
the target frequency should be the bigger one, both in isp status
or in dulaview status.

Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: Id9182d591f615304f24ccba5816424a876046dc3
2021-03-26 17:36:30 +08:00
Finley Xiao
eec8142566 PM / devfreq: rockchip_dmc: Fix misused IS_ERR_OR_NULL checks
Fixes the following warning:
drivers/devfreq/rockchip_dmc.c:2914
rockchip_dmcfreq_register_cooling_device() warn: passing zero to 'PTR_ERR'

Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: Ia8b0811d0e27394e420b862305917314189f94be
2021-03-26 17:36:30 +08:00
Shawn Lin
9df33edc9a mmc: sdhci-of-dwcmshc: Fix DLL settings
We shouldn't enable any DLL settings in low speed and
always try to reset all of them in case of any leave-out
from previous stage.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: Iccd5dde85425d3c5981300da5aba9563b2f8b821
2021-03-26 14:45:57 +08:00
Jianqun Xu
5c7123ea0f arm64: dts: rockchip: rk3568-android: reserved cma default at 128M
The usb driver will alloc from the cma default memory pool, when it's
limited to 32bit, the cma default memory should limit to dma32.

Change-Id: Ibd91f3158af6eae98d899018685e03e8f47e75a9
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
2021-03-26 14:41:03 +08:00
William Wu
fbb9a10fc2 usb: dwc3: improve gadget wakeup from resume signal
The dwc3 wakeup and suspend interrupt handler are not perfect,
and it can't support usb gadget auto suspend function to save
power. For UVC device, the auto suspend function is necessary
and helpful.

With this patch, it enable DWC3_DEVTEN_EOPFEN by default for
software to handle suspend interrupt. And for Rockchip platforms,
they usually power down DRAM when system enter deep sleep, so
this patch disable the dwc3 irq in dwc3_suspend to avoid dwc3
controller access the DRAM for handling dwc3 event if wakeup
from USB Host resume signal.

By default, the gadget wakeup from system suspend is disabled.
The user can add "wakeup-source" property in DTS dwc3 node to
enable it like this:

&usbdrd_dwc3 {
	status = "okay";
	wakeup-source;
};

Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: Iaf9d642ae1ef6ed12e66a15158706de6d73d5124
2021-03-26 14:24:15 +08:00
Dingxian Wen
1f165caac6 arm64: rockchip_defconfig: enable CONFIG_VIDEO_RK628_CSI
Signed-off-by: Dingxian Wen <shawn.wen@rock-chips.com>
Change-Id: I896a6909a1f44323881afb5215cd890efe5456c6
2021-03-26 10:37:41 +08:00
Vicent Chi
8fb7288c5e media: i2c: nvp6188: fixup default fps info not match
Change-Id: Id25d580c8540c88d48402ee356e00bafbf4a7115
Signed-off-by: Vicent Chi <vicent.chi@rock-chips.com>
2021-03-26 10:01:54 +08:00
Huang zhibao
cecd44d545 arm64: dts: rockchip: rk3566-box: remove regulator-always-on from usb otg regulator
Signed-off-by: Huang zhibao <hzb@rock-chips.com>
Change-Id: I66b8af4d1961e6cbb1e11ae9a2ed5d74bd35a50b
2021-03-26 09:01:39 +08:00
Huang zhibao
8362342c17 arm64: dts: rockchip: rk356x: remove pwm interrupts define from products dtsi
Signed-off-by: Huang zhibao <hzb@rock-chips.com>
Change-Id: Id89aa2fb8f368fad504ce5efd4e1ed20e1335fa3
2021-03-26 08:38:37 +08:00
Zorro Liu
1cc56ceb3d drm/rockchip: ebc_dev: release version v1.06
wait pre mode end when mode change

Signed-off-by: Zorro Liu <lyx@rock-chips.com>
Change-Id: I0b642da4aec21338a2ec36aac5fe3d1b58e9605c
2021-03-25 21:06:24 +08:00
Sandy Huang
eec84644a3 drm/rockchip: vop2: enable yuv clip when bt1120/bt656 output
Avoid image data have 0xff 0x00 0x00 lead to disturb bt1120/bt656
EAV and SAV sync signal, so enable yuv clip when bt1120/bt656 output.

Change-Id: I59d802814f3619641516254b88e82adc636c6cde
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2021-03-25 20:55:30 +08:00
Yu Qiaowei
b5c2d70e63 video/rockchip: rga2: Fix YUV output error.
Fix some modes that did not set the U/V address and
cause the output error of the YUV format image.

Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: I41abd364576e0a73fd501f3dfc726eeaa6c9b118
2021-03-25 20:55:06 +08:00
Tao Huang
000389f66a ARM: dts: rockchip: bulk convert gpios to their constant counterparts (v2)
According to upstream commit 07f08d9cee ("ARM: dts: rockchip:
bulk convert gpios to their constant counterparts") replace
RK_FUNC_x -> x and RK_GPIOx -> x.

sed -i -e "
/rockchip,pins *=/bcheck
b # to end of script
:append-next-line
N
:check
/^[^;]*$/bappend-next-line
s/<RK_GPIO\([0-9]\) /<\1 /g
s/<\([^ ][^ ]*  *\)0 /<\1RK_PA0 /g
s/<\([^ ][^ ]*  *\)1 /<\1RK_PA1 /g
s/<\([^ ][^ ]*  *\)2 /<\1RK_PA2 /g
s/<\([^ ][^ ]*  *\)3 /<\1RK_PA3 /g
s/<\([^ ][^ ]*  *\)4 /<\1RK_PA4 /g
s/<\([^ ][^ ]*  *\)5 /<\1RK_PA5 /g
s/<\([^ ][^ ]*  *\)6 /<\1RK_PA6 /g
s/<\([^ ][^ ]*  *\)7 /<\1RK_PA7 /g
s/<\([^ ][^ ]*  *\)8 /<\1RK_PB0 /g
s/<\([^ ][^ ]*  *\)9 /<\1RK_PB1 /g
s/<\([^ ][^ ]*  *\)10 /<\1RK_PB2 /g
s/<\([^ ][^ ]*  *\)11 /<\1RK_PB3 /g
s/<\([^ ][^ ]*  *\)12 /<\1RK_PB4 /g
s/<\([^ ][^ ]*  *\)13 /<\1RK_PB5 /g
s/<\([^ ][^ ]*  *\)14 /<\1RK_PB6 /g
s/<\([^ ][^ ]*  *\)15 /<\1RK_PB7 /g
s/<\([^ ][^ ]*  *\)16 /<\1RK_PC0 /g
s/<\([^ ][^ ]*  *\)17 /<\1RK_PC1 /g
s/<\([^ ][^ ]*  *\)18 /<\1RK_PC2 /g
s/<\([^ ][^ ]*  *\)19 /<\1RK_PC3 /g
s/<\([^ ][^ ]*  *\)20 /<\1RK_PC4 /g
s/<\([^ ][^ ]*  *\)21 /<\1RK_PC5 /g
s/<\([^ ][^ ]*  *\)22 /<\1RK_PC6 /g
s/<\([^ ][^ ]*  *\)23 /<\1RK_PC7 /g
s/<\([^ ][^ ]*  *\)24 /<\1RK_PD0 /g
s/<\([^ ][^ ]*  *\)25 /<\1RK_PD1 /g
s/<\([^ ][^ ]*  *\)26 /<\1RK_PD2 /g
s/<\([^ ][^ ]*  *\)27 /<\1RK_PD3 /g
s/<\([^ ][^ ]*  *\)28 /<\1RK_PD4 /g
s/<\([^ ][^ ]*  *\)29 /<\1RK_PD5 /g
s/<\([^ ][^ ]*  *\)30 /<\1RK_PD6 /g
s/<\([^ ][^ ]*  *\)31 /<\1RK_PD7 /g
s/<\([^ ][^ ]*  *[^ ][^ ]*  *\)0 /<\1RK_FUNC_GPIO /g
s/<\([^ ][^ ]*  *[^ ][^ ]*  *\)RK_FUNC_\([1-9]\) /<\1\2 /g
" *.dts *.dtsi

Change-Id: I8ee2a66094cc25b0d72aba11a239f4fe9c76c4f4
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2021-03-25 19:55:38 +08:00
Tao Huang
f8817b8fb3 arm64: dts: rockchip: bulk convert gpios to their constant counterparts (v2)
According to upstream commit d64420e816 ("arm64: dts: rockchip:
bulk convert gpios to their constant counterparts") replace
RK_FUNC_x -> x and RK_GPIOx -> x.

sed -i -e "
/rockchip,pins *=/bcheck
b # to end of script
:append-next-line
N
:check
/^[^;]*$/bappend-next-line
s/<RK_GPIO\([0-9]\) /<\1 /g
s/<\([^ ][^ ]*  *\)0 /<\1RK_PA0 /g
s/<\([^ ][^ ]*  *\)1 /<\1RK_PA1 /g
s/<\([^ ][^ ]*  *\)2 /<\1RK_PA2 /g
s/<\([^ ][^ ]*  *\)3 /<\1RK_PA3 /g
s/<\([^ ][^ ]*  *\)4 /<\1RK_PA4 /g
s/<\([^ ][^ ]*  *\)5 /<\1RK_PA5 /g
s/<\([^ ][^ ]*  *\)6 /<\1RK_PA6 /g
s/<\([^ ][^ ]*  *\)7 /<\1RK_PA7 /g
s/<\([^ ][^ ]*  *\)8 /<\1RK_PB0 /g
s/<\([^ ][^ ]*  *\)9 /<\1RK_PB1 /g
s/<\([^ ][^ ]*  *\)10 /<\1RK_PB2 /g
s/<\([^ ][^ ]*  *\)11 /<\1RK_PB3 /g
s/<\([^ ][^ ]*  *\)12 /<\1RK_PB4 /g
s/<\([^ ][^ ]*  *\)13 /<\1RK_PB5 /g
s/<\([^ ][^ ]*  *\)14 /<\1RK_PB6 /g
s/<\([^ ][^ ]*  *\)15 /<\1RK_PB7 /g
s/<\([^ ][^ ]*  *\)16 /<\1RK_PC0 /g
s/<\([^ ][^ ]*  *\)17 /<\1RK_PC1 /g
s/<\([^ ][^ ]*  *\)18 /<\1RK_PC2 /g
s/<\([^ ][^ ]*  *\)19 /<\1RK_PC3 /g
s/<\([^ ][^ ]*  *\)20 /<\1RK_PC4 /g
s/<\([^ ][^ ]*  *\)21 /<\1RK_PC5 /g
s/<\([^ ][^ ]*  *\)22 /<\1RK_PC6 /g
s/<\([^ ][^ ]*  *\)23 /<\1RK_PC7 /g
s/<\([^ ][^ ]*  *\)24 /<\1RK_PD0 /g
s/<\([^ ][^ ]*  *\)25 /<\1RK_PD1 /g
s/<\([^ ][^ ]*  *\)26 /<\1RK_PD2 /g
s/<\([^ ][^ ]*  *\)27 /<\1RK_PD3 /g
s/<\([^ ][^ ]*  *\)28 /<\1RK_PD4 /g
s/<\([^ ][^ ]*  *\)29 /<\1RK_PD5 /g
s/<\([^ ][^ ]*  *\)30 /<\1RK_PD6 /g
s/<\([^ ][^ ]*  *\)31 /<\1RK_PD7 /g
s/<\([^ ][^ ]*  *[^ ][^ ]*  *\)0 /<\1RK_FUNC_GPIO /g
s/<\([^ ][^ ]*  *[^ ][^ ]*  *\)RK_FUNC_\([1-9]\) /<\1\2 /g
" *.dts *.dtsi

Change-Id: I789e702620a4d0331d54474d48aaf68133795859
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2021-03-25 19:40:40 +08:00
Sandy Huang
282016c6b0 drm/rockchip: vop: enable yuv clip when bt1120 output
Avoid image data have 0xff 0x00 0x00 lead to disturb bt1120 EAV and SAV
sync signal, so enable yuv clip when bt1120 output.

Change-Id: I103615bfecfbf812768b89fb42bfd3859950187b
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2021-03-25 15:12:32 +08:00
Vicent Chi
5fe2f921ff media: i2c: nvp6188: fixup mixed resolution linkfreq rate mismatch
Change-Id: I7b886b45982fd4682ebf1db45ee182a18dcdb218
Signed-off-by: Vicent Chi <vicent.chi@rock-chips.com>
2021-03-25 15:10:52 +08:00
William Wu
241a5e5577 usb: gadget: f_uvc: add suspend and resume function
This patch adds uvc_function_suspend and uvc_function_resume
for uvc function. With this patch, if usb bus enter suspend
or resume state, the usb controller driver will call the
uvc_function_suspend or uvc_function_resume to send event
to uvc app.

Change-Id: I9c584aae25298747c5a287243cb3efd71c8adfe6
Signed-off-by: William Wu <william.wu@rock-chips.com>
2021-03-25 14:13:10 +08:00
Cai YiWei
f8b5452aae media: rockchip: isp: support multi dev for isp21
Change-Id: I5973f952d0b744448025496c29a1c6b4c5316db3
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2021-03-25 14:12:44 +08:00
Ville Syrjälä
b5529311af UPSTREAM: drm/edid: Add CTA-861-G modes with VIC >= 193
Add a second table to the cea modes with VIC >= 193.

v2: Improve the comment for cea_modes_*[] to indicate
    that one should always use cea_mode_for_vic() (Tom)

Cc: Hans Verkuil <hansverk@cisco.com>
Reviewed-by: Manasi Navare <manasi.d.navare@intel.com>
Reviewed-by: Thomas Anderson <thomasanderson@google.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191213174348.27261-3-ville.syrjala@linux.intel.com
(cherry picked from commit f7655d42fc)
Change-Id: Ie8889d9062cdadfa3416ea35caf1b8ecca24cadc
2021-03-25 11:33:39 +08:00
Ville Syrjälä
c417ed8f46 UPSTREAM: drm/edid: Abstract away cea_edid_modes[]
We're going to need two cea mode tables (one for VICs < 128,
another one for VICs >= 193). To that end replace the direct
edid_cea_modes[] lookups with a function call. And we'll rename
the array to edid_cea_modes_0[] to indicate how it's to be
indexed.

v2: Fix typos (Tom)
    Drop the pointless NULL checks in the loops (Tom)
    Assign when declaring (Tom)
    Improve the comment for cea_modes_*[] to indicate
    that one should always use cea_mode_for_vic() (Tom)

Cc: Tom Anderson <thomasanderson@google.com>
Cc: Hans Verkuil <hansverk@cisco.com>
Cc: Manasi Navare <manasi.d.navare@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191213174348.27261-2-ville.syrjala@linux.intel.com
Reviewed-by: Thomas Anderson <thomasanderson@google.com>
(cherry picked from commit 7befe621ff)
Change-Id: I97f9bfe67f0b4b7f2f4da53105d625add04b8f8b
2021-03-25 11:32:49 +08:00
Ville Syrjälä
01235a497c UPSTREAM: drm/edid: Add CTA-861-G modes with VIC < 128
Fill out our list of cea modes with the new stuff from CTA-861-G.
We only do the modes with VIC < 128 here. Adding the higher
numbered VICs will need some slight code refactoring first.

Cc: Hans Verkuil <hansverk@cisco.com>
Cc: Shashank Sharma <shashank.sharma@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190711103234.6294-2-ville.syrjala@linux.intel.com
Reviewed-by: Shashank Sharma <shashank.sharma@intel.com>
(cherry picked from commit 978f6b0693)
Change-Id: I3fe74dc92e0f97e74445fc348962c2cd05155063
2021-03-25 11:31:17 +08:00
Jon Lin
483a2cd58a spi: rockchip: Stop spi slave dma receiver when cs inactive
The spi which's version is higher than ver 2 will automatically
enable this feature.

If the length of master transmission is uncertain, the RK spi slave
is better to automatically stop after cs inactive instead of waiting
for xfer_completion forever.

Change-Id: If99e51d35391b824f48e31a3e4508db036593c8a
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2021-03-25 10:24:37 +08:00
Vicent Chi
b33df72292 media: i2c: add techpoint driver
Change-Id: I6022492c26a9d792773de28f2ae05e817a9040e8
Signed-off-by: Vicent Chi <vicent.chi@rock-chips.com>
2021-03-25 09:26:04 +08:00
Yu Qiaowei
7918accd02 video/rockchip: rga2: Support 8G DDR.
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: I2583cd7f96362803fd57a25f42aad21e23e837d4
2021-03-25 09:18:37 +08:00
Tao Huang
b8c64fbca6 media/i2c/soc_camera: remove unused rockchip drivers
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I898b1035c9d591143ec35e7b4c137603201ef89a
2021-03-24 18:52:38 +08:00
Vicent Chi
8f94f92285 media: platform: cif: not allow reset work after all streams off
Change-Id: Ifceccb3788dae7a95dae09a0c524a52b33808a26
Signed-off-by: Vicent Chi <vicent.chi@rock-chips.com>
2021-03-24 16:57:35 +08:00
Allon Huang
f8df77d207 media: platform: rockchip: cif: support bt656/bt1120 multi channels function
Signed-off-by: Allon Huang <allon.huang@rock-chips.com>
Change-Id: I0eb7c4d2a9d5d99eb69627741febedc09133ff21
2021-03-24 16:57:35 +08:00
Allon Huang
c1a4ffeb64 media: rockchip: cif: fix rk356x dvp pclk polarity
Signed-off-by: Allon Huang <allon.huang@rock-chips.com>
Change-Id: Ia5a41bf7b428c61d4b79911a88f9b93928de0ac6
2021-03-24 16:57:35 +08:00
Allon Huang
12a285bed1 media: platform: rockchip: cif: support YUYV for y swap in bt1120
Signed-off-by: Allon Huang <allon.huang@rock-chips.com>
Change-Id: I7a38f3a881be0689f3bf37736944cd7563c644ea
2021-03-24 16:57:35 +08:00
Allon Huang
cd0b093f5a media: platform: rockchip: cif: register sd itf when cif pipeline completed
Signed-off-by: Allon Huang <allon.huang@rock-chips.com>
Change-Id: I4025d325f0e5dee52a692a302a5cef699adfd6c9
2021-03-24 16:57:35 +08:00
Ding Wei
4d5fcff848 arm64: dts: rockchip: rk3568: rkvenc: remove advanced-rates for safety
Change-Id: Ie1c4a45c084a6bc98359868db54c6a333489cd45
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
2021-03-24 10:57:49 +08:00
Zefa Chen
6e50af3b41 media: move rk_vcm_head.h from drivers/media/i2c/ to include/uapi/linux/
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I1774f05820df31468db8df196dccc7475730b1b5
2021-03-23 14:18:14 +08:00
Herman Chen
9ff59c732d video: rockchip: mpp: Add session index
Change-Id: I1b55227b0692e84ee28a1b229b38a1ad118b1e5b
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2021-03-23 11:43:51 +08:00
Liu, Changcheng
37af141aeb UPSTREAM: dts: remove cris & metag dts hard link file
arch cris & metag have been removed from supported archs.
The dts hard link files should also be removed, or the ctags
tool will give warning.

execute"ctags -R" or "gtags", output:
ctags: Warning: cannot open source file
"scripts/dtc/include-prefixes/cris" : No such file or directory
ctags: Warning: cannot open source file
"scripts/dtc/include-prefixes/metag" : No such file or directory

This patch was override by commit 9820464afd ("UPSTREAM:
devicetree: Move include prefixes from arch to separate
directory"), so apply it again.

Change-Id: I002617cde3f879bc8364f55502839b3c3cd2dd92
Signed-off-by: Liu Changcheng <changcheng.liu@intel.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
(cherry picked from commit 8d14f31ec9)
2021-03-23 11:09:24 +08:00
Wyon Bi
27bd6e4c11 drm/bridge: analogix_dp: Disable AUX CH in analogix_dp_bridge_disable()
Change-Id: I0eb7175619719c0b13a48cf4e82ed983b09c57ec
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2021-03-23 10:23:22 +08:00
Binyuan Lan
7f65256297 ASoC: rockchip: add rt5651_rk628 driver
add rockchip_rt5651_rk628 machine driver to support HDMIIn function

Signed-off-by: Binyuan Lan <lby@rock-chips.com>
Change-Id: I893afca69ba555a3a05751df32aa4461720d3ca4
Signed-off-by: Shunhua Lan <lsh@rock-chips.com>
2021-03-23 10:09:52 +08:00
Liang Chen
d85728da36 arm64: dts: rockchip: rk3568: adjust opp-talbe when low-temp
Change-Id: I21a6394f9c4473ca6d98f46c2d2a9527e2eaabd2
Signed-off-by: Liang Chen <cl@rock-chips.com>
2021-03-22 17:41:20 +08:00
Jon Lin
b0a6ec201f dt-bindings: spi: spi-rockchip: add description for rv1126 and rk3568
Change-Id: Ie54950ea83bfcd129cbb7295dc96158aa2badc7a
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2021-03-22 17:25:07 +08:00
Joseph Chen
f977519828 mfd: rk808: add reboot cmd list for PMIC to reset the 'RST' related register only
When system restart, there are two rst actions of PMIC sleep if
board hardware support:

- 0b'00: reset the PMIC itself completely.
- 0b'01: reset the 'RST' related register only.

In the case of 0b'00, PMIC reset itself which triggers SoC NPOR-reset
at the same time, so the command: reboot load/bootload/recovery, etc
is not effect any more.

We add a cmd list to check if this reboot cmd is what we expect for 0b'01.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Ib87d031a9dc2edc3d0ee2ba5bfb0d647696bf494
2021-03-22 16:51:35 +08:00
Herman Chen
25e8ceb642 video: rockchip: mpp: common: remove work_lock
Remove work_lock in mpp_taskqueue.

Change-Id: Ideda9e23acae5df9aa91136d9d4678d9ee4e2c7e
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2021-03-22 14:34:21 +08:00
Cai YiWei
0a70e9461d media: rockchip: isp: make sure 3dlut no continuous read twice
if 3dlut enable and 3DLUT_UPDATE = 1,
will start read lut at following case:
1. isp force update
2. frame end
2->1 shouldn't for 3dlut.

Change-Id: I82d03836035bc06e25839fe4d90dba7cd36c2e1a
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2021-03-19 17:20:32 +08:00
Wyon Bi
2dc370f09b clk/rockchip/regmap: divider: Make round to closest divider valid
Change-Id: I6cff98ec7573f6774700bbbd2650b6e3a01b66f0
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2021-03-19 16:46:33 +08:00
Wyon Bi
696ecdc30f drm/bridge: analogix_dp: disable PSR feature by default
Panel Self Refresh (PSR), originally introduced in eDP v1.3, is an
optional feature for Source and Sink devices.

Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: I39c357d7caefc087241407a7d6b452e47e16eb9a
2021-03-19 16:07:44 +08:00
Wang Panzhenzhuan
b58f0ed84f media: i2c: ov8858: update ov8858 sensor driver
1. fix g_mbus_config lane config issues
2. add debug info
3. add r1a version support

Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
Change-Id: I7ef54d8216597963a90e60d5a57859818c07c929
2021-03-19 14:14:54 +08:00