Commit Graph

863094 Commits

Author SHA1 Message Date
Xing Zheng
c7642a3dbc ASoC: es7202: Fix the muted capturing after reboot
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Change-Id: I375ed4ce368a6f94f302a9584a9bb02d444a89fa
2021-04-19 20:09:50 +08:00
Xing Zheng
2fc3a11f17 ASoC: es7202: Fix the missing the sound format of bit
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Change-Id: I49eb4a699572867e338c06f457ab0b0f7acdc6fa
2021-04-19 20:09:50 +08:00
Zorro Liu
b35ab171bb drm/rockchip: ebc_dev: pmic: tps65185: fix null point when tps probe
failed

[   10.939320] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000
[   10.940116] Mem abort info:
[   10.940373]   ESR = 0x86000006
[   10.940652]   Exception class = IABT (current EL), IL = 32 bits
[   10.941181]   SET = 0, FnV = 0
[   10.941458]   EA = 0, S1PTW = 0
[   10.941741] user pgtable: 4k pages, 39-bit VAs, pgdp = 00000000c7870e86
[   10.942328] [0000000000000000] pgd=0000000059e40003, pud=0000000059e40003, pmd=0000000000000000
[   10.943150] Internal error: Oops: 86000006 [#1] PREEMPT SMP
[   10.943656] Modules linked in:
[   10.943940] Process servicemanager (pid: 141, stack limit = 0x000000001d4803a1)
[   10.944585] CPU: 0 PID: 141 Comm: servicemanager Not tainted 4.19.172 #1156
[   10.945192] Hardware name: Rockchip RK3566 RK817 EINK LP4X Board (DT)
[   10.945754] pstate: 60400009 (nZCv daif +PAN -UAO)
[   10.946179] pc :           (null)
[   10.946496] lr : call_timer_fn+0x2c/0x1c0
[   10.946854] sp : ffffff8008003dd0
[   10.947155] x29: ffffff8008003dd0 x28: ffffff8009ca5000
[   10.947627] x27: ffffff80099a2000 x26: 0000000000000100
[   10.948099] x25: 0000000000000010 x24: ffffff8009cadb00
[   10.948571] x23: ffffff80099a1018 x22: 0000000000000100
[   10.949043] x21: 0000000000000000 x20: ffffffc05ca13320
[   10.949515] x19: ffffffc05ca13320 x18: 0000000000000000
[   10.949986] x17: 0000000000000000 x16: 0000000000000000
[   10.950458] x15: 0000000000000000 x14: 0000000000000000

Signed-off-by: Zorro Liu <lyx@rock-chips.com>
Change-Id: I6bc332ac3f9904e95414f5769dc57dd742c8e7fc
2021-04-19 16:12:28 +08:00
Fenrir Lin
4c3e5e692a media: i2c: os04c10 modify MIPI_FREQ to 384M
Signed-off-by: Fenrir Lin <fenrir.lin@rock-chips.com>
Change-Id: Id8cd628c9034192ba4345b63700c9d420b545f8f
2021-04-19 14:44:33 +08:00
Weixin Zhou
af1b6e88fa regulator: fan53555: add fan53555 resume
Do suspend_enable in resume callback.

Signed-off-by: Weixin Zhou <zwx@rock-chips.com>
Change-Id: I6af64769a89376e9c09c70af1ac63861088be7c5
2021-04-19 14:36:04 +08:00
Ding Wei
cddfb35604 video: rockchip: mpp: printf session fix to %8p
Change-Id: Ide0b15ed64afe577bac48bbb60986dc6b11dbd2b
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
2021-04-19 11:12:21 +08:00
Allon Huang
38eb6ffd7e media: platform: rockchip: cif: register cif itf dev when clear unready subdev
Signed-off-by: Allon Huang <allon.huang@rock-chips.com>
Change-Id: Icc051ac055cbfea78305327ebe8554d2d0963dc4
2021-04-16 19:48:13 +08:00
Elaine Zhang
fe2055ef9f net: can: rockchip: fix up the CAN bus off
Fix up the rx\tx err cnt.
Support Auto Retransmission Mode.
Support rx frame clean.

Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: Ib5a226c975cb6cb4229f8a30995ce09740de749e
2021-04-16 17:59:15 +08:00
Cai YiWei
37230db7f7 media: rockchip: isp/ispp adjust probe order
isp hw device -> isp virtual device then
ispp hw device -> ispp virtual device

Change-Id: I7897f50c2323c2d57b0eb143a53423390d6d7d6c
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2021-04-16 17:56:18 +08:00
Elaine Zhang
8fe15a6437 arm64: dts: rockchip: rk356x board: add init voltage for vdd_cpu
setting init voltage in uboot.

Change-Id: If1e23bb06790dcb3f9e4e9be4cc791cd394ca73a
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2021-04-16 16:47:27 +08:00
Zorro Liu
f28b44791a drm/rockchip: ebc_dev: release version v1.09
drop EPD_OVERLAY mode frames when overlay disabled

Signed-off-by: Zorro Liu <lyx@rock-chips.com>
Change-Id: I74440212b09802b81b2dc37c189c791b0a21a176
2021-04-16 16:46:28 +08:00
Elaine Zhang
4992de490c arm64: dts: rockchip: rk3568: remove ARMCLK init frequency
Change-Id: I93888983b39acadfdb9ccbd94c3a61ff5a97f52f
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2021-04-16 14:56:11 +08:00
Fenrir Lin
b773c30f0d media: i2c: add camera driver os04c10
Signed-off-by: Fenrir Lin <fenrir.lin@rock-chips.com>
Change-Id: Ia23e6b5fb225ce48a200e4aa0dc5eba93f7c7e95
2021-04-16 14:43:27 +08:00
Andy Yan
87d02abf6e drm: debugfs: calculate image width by bpp
Not all RGB image is 4 byte per pixel, use bpp
to get the correct image width.

Change-Id: I8e40980a7f510afcfe9fd8f2a83eaa254f3b5b96
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
2021-04-16 14:23:39 +08:00
Shawn Lin
2e01bfda9f mmc: dw_mmc-rockchip: Just set default sample value for legacy mode
.set_ios() is called from .resume() as well. For SDIO device which sets
keep-power-in-suspend, nothing should be changed after resuming, as well
as sample tuning value, since this value is tuned already. So we should
not overwrite it with the default value.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: I18974f28d7a2253fd151817a5a3e4105c2e976b3
2021-04-16 09:52:21 +08:00
Zorro Liu
3b52c398d6 arm64: dts: rockchip: rk3566 eink: set sdio default sample phase to 90
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
Change-Id: I69635ba3ec8456137bfc47de402b0bfc1c29a327
2021-04-15 18:54:25 +08:00
Tao Huang
a5e5db210c arm64: dts: rockchip: Fix the warnings caused by i2c_bus_reg
Fix the following warnings:
arch/arm64/boot/dts/rockchip/rk3566-evb2-lp4x-v10-eink.dts:274.18-285.4:
ERROR (i2c_bus_reg): /i2c@fe5c0000/wacom@09: I2C bus unit address format error, expected "9"
arch/arm64/boot/dts/rockchip/rk3566-rk817-eink.dts:551.18-562.4:
ERROR (i2c_bus_reg): /i2c@fe5b0000/wacom@09: I2C bus unit address format error, expected "9"
arch/arm64/boot/dts/rockchip/rk3566-rk817-eink.dts:678.17-690.4:
ERROR (i2c_bus_reg): /i2c@fe5e0000/kxtj3@0e: I2C bus unit address format error, expected "e"
arch/arm64/boot/dts/rockchip/rk3566-rk817-eink-w103.dts:698.18-710.4:
ERROR (i2c_bus_reg): /i2c@fe5a0000/wacom@09: I2C bus unit address format error, expected "9"

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ia116424ecbb3285d77274ef19b6b93ef5f0f1480
2021-04-15 18:54:25 +08:00
Zhenke Fan
ce99d23277 media: i2c: gc4c33 update init register array
Signed-off-by: Zhenke Fan <fanzy.fan@rock-chips.com>
Change-Id: I39690784108651e2ea63cbcd71ac5215f60d9db7
2021-04-15 15:02:37 +08:00
Cai YiWei
a8838e1f75 media: rockchip: isp: add monitor to restart if abnormal
enable monitor:
add rockchip,restart-monitor-en to rkisp node on dts or
echo Y > /sys/module/video_rkisp/parameters/monitor
NOTE: shouldn't enable this when porting camera!!!

Change-Id: I35fa45488136e2e0ec16c4e6179a39f34cf5ebc9
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2021-04-15 14:41:58 +08:00
Jon Lin
f90bf3cdf2 drivers: rkflash: Enable DLL tuning
1.Support after SFC ver 4
2.If the io rate is high than 100MHz, enable SFC delay line in
default
3.Get id byte as data pattern

Change-Id: Ia405771c0bc94eddaa45e1d85c7fa10a85c40531
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2021-04-15 09:53:41 +08:00
Jon Lin
b30f443cdf drivers: rkflash: Fix error in snor_resume
Change-Id: I18405c2c902e201e927049e9f876c9f5baf4ed62
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2021-04-15 09:53:41 +08:00
Cai YiWei
38b4421530 media: rockchip: cif: dma buf alloc limit to DMA32
Change-Id: I0974f59ba1cba4caf62d098c37ee2263fb481a5b
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2021-04-15 09:44:05 +08:00
Cai YiWei
7889a362bf media: rockchip: ispp: dma buf alloc limit to DMA32
Change-Id: Id0a8cda55bce267ba3a6fd51599b17d7d10dc26e
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2021-04-15 09:13:04 +08:00
Cai YiWei
4e6e6bb26a media: rockchip: isp: dma buf alloc limit to DMA32
Change-Id: Ibc1f4afc45a031714ee4cabfc70b38f930706d46
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2021-04-15 09:12:53 +08:00
Cai YiWei
03b6c6cac7 media: rockchip: isp: resolution limit for isp21
Change-Id: I046ac456fad9d4617c8fcc4f228409f59d23281a
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2021-04-14 20:19:38 +08:00
Fenrir Lin
274e3cb9e1 media: rockchip: ispp: add vidioc_enum_input
Signed-off-by: Fenrir Lin <fenrir.lin@rock-chips.com>
Change-Id: Id2b2c34b80245a2fa8dec97c5ca9ca64dd2c7363
2021-04-14 17:08:47 +08:00
Sandy Huang
e8190ffbbb drm/rockchip: vop2: add support yvyu and vyuy format
Change-Id: I0ed523a57b562a6d2aabcebf6d68a0e77cd31eeb
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2021-04-14 14:27:33 +08:00
Zorro Liu
4adeed80a6 drm/rockchip: ebc_dev: release version v1.08
use read write seam to protect auto buf

Signed-off-by: Zorro Liu <lyx@rock-chips.com>
Change-Id: Iafb71500511fc0cf4a6eb9a0b8bce8c3883e8ef1
2021-04-14 14:26:26 +08:00
Tao Huang
0d68523e09 gpu: remove unused rogue_m driver
Change-Id: I2d38df29926bc7c2e7e618b777cd36768cab0d0e
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2021-04-13 18:40:34 +08:00
Tao Huang
bf63b8bc5e gpu: remove unused rogue driver
Change-Id: I067a96e88b4a389470b12446dea573134b835018
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2021-04-13 18:36:53 +08:00
Yiqing Zeng
0807317e51 media: i2c: add soi jx_k04 sensor driver
Signed-off-by: Yiqing Zeng <zack.zeng@rock-chips.com>
Change-Id: I967e30304d6bae7c27f4536d48bb36a5bacc974c
2021-04-13 18:04:59 +08:00
Zorro Liu
ff1dff0cae soc: rockchip: system_monitor: add ebc blank/unblank notifier
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
Change-Id: I317a8b545d53fd1af960cdbd84d271eaa9451d12
2021-04-13 17:11:56 +08:00
Zorro Liu
2cf597db72 arm64: dts: rockchip: rk3566-eink.dtsi: adjust dmc freqs and voltage
Signed-off-by: Zorro Liu <lyx@rock-chips.com>
Change-Id: I72cea2c6040b48729a7ff24effe47b0cd1b71736
2021-04-13 17:11:24 +08:00
Wyon Bi
a49fe9b297 drm/bridge: analogix_dp: Compliant with eDP receiver enhanced frame capability
On an eDP connection, the eDP sink must operate only in Enhanced Framing
Mode. The Source must send only Enhanced Framing on the main link, and
must only write a '0' to DPCD 00101h: LANE_COUNT_SET Bit 7:
ENHANCED_FRAME_EN bit.

Independent of method used, DP1.2-compliant eDP Receivers shall indicate
any eDP protocol differentiation method they support through the
Receiver Capability Field of DPCD (DPCD:0000Dh).

Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: I38e30426924bed531047a2d41b812d697d9f9838
2021-04-13 14:14:22 +08:00
Tao Huang
e53e7c1fd8 rk: get rid of legacy 'get_ds()' function
According to commit 736706bee3 ("get rid of legacy 'get_ds()' function")

Every in-kernel use of this function defined it to KERNEL_DS (either as
an actual define, or as an inline function).  It's an entirely
historical artifact, and long long long ago used to actually read the
segment selector valueof '%ds' on x86.

Which in the kernel is always KERNEL_DS.

Inspired by a patch from Jann Horn that just did this for a very small
subset of users (the ones in fs/), along with Al who suggested a script.
I then just took it to the logical extreme and removed all the remaining
gunk.

Roughly scripted with

   git grep -l '(get_ds())' -- :^tools/ | xargs sed -i 's/(get_ds())/(KERNEL_DS)/'
   git grep -lw 'get_ds' -- :^tools/ | xargs sed -i '/^#define get_ds()/d'

plus manual fixups to remove a few unusual usage patterns, the couple of
inline function cases and to fix up a comment that had become stale.

The 'get_ds()' function remains in an x86 kvm selftest, since in user
space it actually does something relevant.

Change-Id: I4b8e3436c958b7745059ea7ef4367f3fd4a0ebbe
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2021-04-12 20:01:09 +08:00
Tao Huang
19d30cb3c7 rk: Replace deprecated PTR_RET
According to commit fad7c90209 ("err.h: remove deprecated PTR_RET for good").

Initially, commit fa9ee9c4b9 ("include/linux/err.h: add a function to
cast error-pointers to a return value") from Uwe Kleine-König introduced
PTR_RET in 03/2011. Then, in 07/2013, commit 6e8b8726ad ("PTR_RET is
now PTR_ERR_OR_ZERO") from Rusty Russell renamed PTR_RET to
PTR_ERR_OR_ZERO, and left PTR_RET as deprecated-marked alias.

After six years since the renaming and various repeated cleanups in the
meantime, it is time to finally remove the deprecated PTR_RET for good.

Change-Id: I2b5d464dc1c6bc0409e41dd9da503f14bef17dc7
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2021-04-12 19:45:06 +08:00
Tao Huang
d20cd8e14c rk: remove ioremap_nocache and devm_ioremap_nocache
According to commit 4bdc0d676a ("remove ioremap_nocache and devm_ioremap_nocache").

ioremap has provided non-cached semantics by default since the Linux 2.6
days, so remove the additional ioremap_nocache interface.

Change-Id: Id62917547d7d0d838ac3785f8c2bfd2d645af034
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
2021-04-12 19:35:40 +08:00
Cai YiWei
2d7eaeb4ee media: rockchip: isp/ispp add check for params subscribe event
Change-Id: If8b79286de5d9921abd69c96cb0b17ef297d75ef
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2021-04-12 17:52:06 +08:00
Ren Jianing
c6f93b066e usb: gadget: u_audio: fix dev_dbg information
Signed-off-by: Ren Jianing <jianing.ren@rock-chips.com>
Change-Id: I74dde0b3f08567e91312aaf5c4611ddfd5a2cd5f
2021-04-12 16:02:42 +08:00
Wang Panzhenzhuan
34aafd0764 media: i2c: ov2718: fix ov2718 pixel_rate null pointer issue
fix the following crash issue:
[   37.800747] pc : __v4l2_ctrl_s_ctrl_int64+0x14/0x60
[   37.805631] lr : ov2718_set_fmt+0x180/0x1b0
[   37.809824] sp : ffffff8010393b10
[   37.813141] x29: ffffff8010393b10 x28: ffffff80089a9f98
[   37.818453] x27: 00000000c0585605 x26: ffffffc072431d40
[   37.823764] x25: ffffffc072431c80 x24: ffffff80093bf3c0
[   37.829075] x23: ffffff80093bf3c0 x22: ffffff8010393ce8
[   37.834386] x21: 0000000000000000 x20: 0000000009896800
[   37.839697] x19: 0000000000000000 x18: 0000000000000000
[   37.845007] x17: 0000000000000000 x16: 0000000000000000
[   37.850319] x15: 0000000000000000 x14: 0000000000000000
[   37.855629] x13: 0000000000000000 x12: 0000000000000000
[   37.860940] x11: 0000000000000000 x10: 0000000000000000
[   37.866252] x9 : 0000000000000004 x8 : 0000000000000001
[   37.871563] x7 : 000000000000fbc7 x6 : 000000000000fbc7
[   37.876889] x5 : ffffffc072bf3cb8 x4 : 000000000000002e
[   37.882206] x3 : 0000000000000001 x2 : ffffffc072bf3cb8
[   37.887509] x1 : 0000000009896800 x0 : 0000000000000000

Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
Change-Id: I276b8e55631648748cd3cb968c44b64260677c56
2021-04-12 16:01:30 +08:00
Wu Liangqing
4f28fb51fb arm64: dts: rockchip: rk3568-evb: enabled rknpu_mmu
This reverts commit 8fc4d4d9b6 ("arm64: dts: rockchip: rk3568-evb:
Add reserved memory for rknpu").

Change-Id: I3d4c24266f7c52c311956adec9b1b1f42b7370a6
Signed-off-by: Wu Liangqing <wlq@rock-chips.com>
2021-04-12 16:00:21 +08:00
Wang Panzhenzhuan
6db6abb203 media: i2c: add camera driver os08a10
Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
Change-Id: Ib7bff92f112b32e7976562d412700a9ffe9960cf
2021-04-12 15:55:07 +08:00
Wang Panzhenzhuan
0c9764f5c4 dt-bindings: media: i2c: Document add os08a10
Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
Change-Id: I5913ad5afead7082d499b4beb26be3265757c031
2021-04-12 15:54:08 +08:00
Wang Panzhenzhuan
95975772aa media: i2c: add camera driver sp250a
Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
Change-Id: Iab7d4759ede2c18031a5c703c5cffb5668b7851f
2021-04-12 15:53:30 +08:00
Wang Panzhenzhuan
6ccee89854 dt-bindings: media: i2c: Document add sp250a
Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
Change-Id: Ia40942d69ada24084eff53977771497effe3f315
2021-04-12 15:53:16 +08:00
Cai YiWei
8831b4756c media: rockchip: isp: update procfs info
Change-Id: I48d64f9e579ca6eee1af5b707420a055e5b1b17f
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2021-04-09 19:48:39 +08:00
Cai YiWei
2f970e0f1f media: rockchip: isp: fix multi dev refcnt
Change-Id: Id6c742f1ce90bdf327b382864a26739bdf80661e
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2021-04-09 19:48:39 +08:00
Cai YiWei
a566b16975 media: rockchip: ispp: config default params
Change-Id: I8ef48c03123149564835143d4bda5dc011e7e9d3
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2021-04-09 19:32:49 +08:00
Cai YiWei
97745b823d media: rockchip: ispp: optimize first frame memory copy
Change-Id: I38803f1b8cb5bbe6fe53856037eb9214c0e85cbe
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2021-04-09 19:32:49 +08:00
Zorro Liu
c2ef67519c drm/rockchip: ebc_dev: release version v1.07
1.resize auto framecount, one byte per 16 pixels
2.do not change framecount value in refresh new function
3.remove ebc_refresh_task thread
4.add mutex to protect empty buf get
5.improve temperture get

Signed-off-by: Zorro Liu <lyx@rock-chips.com>
Change-Id: I80c245594cc87cc6717bafadc27562d66368eb04
2021-04-09 17:45:16 +08:00