Commit Graph

854525 Commits

Author SHA1 Message Date
Lin Jinhan
b44600d4dd crypto: rockchip - add rsa support for crypto v2
Change-Id: Ia12748b5f72060b6fef07dd5866f607e5ad163aa
Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
2020-07-27 14:29:10 +08:00
Li Huang
501a8e1d20 arm: dts: rockchip: Remove dma-coherent on RGA2
Signed-off-by: Li Huang <putin.li@rock-chips.com>
Change-Id: I0f9edc1104b6c1a40d3210352f310422d303fcbe
2020-07-27 11:39:52 +08:00
Li Huang
fc1036a17f arm64: dts: rockchip: Remove dma-coherent on RGA2
Signed-off-by: Li Huang <putin.li@rock-chips.com>
Change-Id: Ida5925b29a00b5c536432d12c47536d6fc8f806e
2020-07-27 11:39:51 +08:00
Li Huang
08e925b5a4 video/rockchip: rga2: Use dma_sync_single_for_device to flush cache
Signed-off-by: Li Huang <putin.li@rock-chips.com>
Change-Id: I551ce3bc8b8440d9a8681981a19b61bb541be30c
2020-07-27 11:39:50 +08:00
Wu Liangqing
5344750cd6 arm64: dts: rockchip: px30-evb-ext-rk618-avb support androidQ
Change-Id: I733a6948c76322d3ea4d3b21f28a7352f89102b4
Signed-off-by: Wu Liangqing <wlq@rock-chips.com>
2020-07-27 11:28:49 +08:00
Allon Huang
c6ac480a22 media: rockchip: cif: fix crop err when second streamoing on
Signed-off-by: Allon Huang <allon.huang@rock-chips.com>
Change-Id: Iba4b7f8dcc06997683cbaf7f443893ad837e7687
2020-07-27 10:39:24 +08:00
Allon Huang
b610c9218d media: rockchip: cif: update sensor info when stream on
Signed-off-by: Allon Huang <allon.huang@rock-chips.com>
Change-Id: I65837b7a16a511f00061288acb4d9db90110930e
2020-07-27 10:39:17 +08:00
Allon Huang
c4ac87b861 media: rockchip: cif: let all formats sampled with compact for rv1126
Signed-off-by: Allon Huang <allon.huang@rock-chips.com>
Change-Id: I3bfa4180a0e1c933a8a19553008b94fca869ec49
2020-07-27 10:39:11 +08:00
Allon Huang
f70f859332 media: rockchip: cif: disable all subdev when stream off for hdr mode
Signed-off-by: Allon Huang <allon.huang@rock-chips.com>
Change-Id: I5539a5f5e4f716d45fc287e5e6378bc34ac7147f
2020-07-27 10:39:05 +08:00
Cai YiWei
8a598d5911 media: rockchip: isp: mask csi isr if no use
Change-Id: I23b8511ef522255fea1b77bdba272b8c733e2d03
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2020-07-27 10:32:49 +08:00
Caesar Wang
90e61e60e7 arm64: configs: update rockchip_linux_defconfig
There are some configs needed to update for rockchip_linux_defconfig.
As below:

1) UART number increase to 6, e.g: px30...
2) Enable HW_RANDOM_ROCKCHIP for fast ramdom number init
3) Enable some the missing configs for rk805
4) Enable ARM_ROCKCHIP_BUS_DEVFREQ config
5) Enable USB_CONFIGFS_F_UVC for UVC

Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Change-Id: I880a4c59e40ba7b79f6f68fc39fca55919314e7b
2020-07-27 10:26:04 +08:00
Caesar Wang
157eabcdd5 arm64: dts: rockchip: Add px30-evb-ddr3-v11-linux dts for px30
Add the px30-evb-ddr3-v11-linux.dts for new panel on px30 evb boards.

Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Change-Id: I3f9acdd5f31c666487b1a51f611aa406ca553645
2020-07-27 10:24:45 +08:00
Caesar Wang
45b05dbe15 dt-bindings: Add rockchip px30 evaluation board for linux
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Change-Id: I71a076e63461dde6e39755feada34d2cca166849
2020-07-27 10:24:44 +08:00
Caesar Wang
8e81b94bb1 arm64: dts: rockchip: use ports to link DSI node and panel for px30 evb linux board
Fixes: d3d4f3e92d ("arm64: dts: rockchip: use ports to link DSI node and panel")

Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Change-Id: I25328b4ac95fc88c0bbfa64c2a0dfd33040a8f63
2020-07-27 10:24:44 +08:00
Ziyuan Xu
e410ab063c arm64: dts: rockchip: px30-evb-ddr3-v10: correction sw1/2 for rk809
Change-Id: Ib3e66f5e3965151c0a47d2b523ddc3724db884b5
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
2020-07-27 10:01:20 +08:00
Weiwen Chen
9fd62062bf dma-buf: export the function set release callback
Fix if CONFIG_DRM_ROCKCHIP config module compile.

ERROR: "dma_buf_set_release_callback" [drivers/gpu/drm/rockchip/rockchipdrm.ko] undefined!
ERROR: "dma_buf_get_release_callback_data" [drivers/gpu/drm/rockchip/rockchipdrm.ko] undefined!

Signed-off-by: Weiwen Chen <cww@rock-chips.com>
Change-Id: Ic2de2b500990b6a818a976ffb87e538bb0cb9f11
2020-07-27 09:51:15 +08:00
Lin Jianhua
42733c56ee ARM: configs: add rv1126-facial-gate.config for rv1109 facial gate
make ARCH=arm rv1126_defconfig rv1126-facial-gate.config

Signed-off-by: Lin Jianhua <linjh@rock-chips.com>
Change-Id: I31719cb84af3d5ca12acec44df2976cdaf43e246
2020-07-27 09:48:10 +08:00
Lin Jianhua
d2713bf0a9 ARM: dts: rockchip: Add rv1109-evb-ddr3-v12-facial-gate
Signed-off-by: Lin Jianhua <linjh@rock-chips.com>
Change-Id: I38e17a2b546b46bc6f6e3ebc88c33e8bcc733ef3
2020-07-24 17:34:38 +08:00
Frank Liu
376d89f836 media: i2c: add gc2053 sensor driver
Signed-off-by: Frank Liu <frank.liu@rock-chips.com>
Change-Id: I171e535d362c3c4e8daa2adaa4e4ec58dfb322aa
2020-07-24 17:32:33 +08:00
David Wu
c727de5059 i2c: rk3x: Clean start in rx_only mode
In rx only mode, if start is rewritten, a repeat start signal
will be generated, which may affect some peripherals.

Fixes: 42f500840d ("i2c: rk3x: Remove start state and irq")
Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: I1bdc6ee669bfcbd60e25abf723596791c59a9231
2020-07-24 15:55:53 +08:00
Caesar Wang
2765488245 arm64: configs: enable bifrost and otp for rockchip_linux_defconfig
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Change-Id: I9e5d0be46fe48ccb65c530548e77c4617a045d21
2020-07-24 15:31:26 +08:00
Caesar Wang
01a5b9fd17 arm64: dts: rockchip: Add rockchip,avs of cpu property on rk3326 linux boards
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Change-Id: I54e47d57e04db17871d3b639ff0ca94f8cd7aa90
2020-07-24 15:30:51 +08:00
Caesar Wang
bf1fb1ba8d MALI: bifrost_for_linux: adjust source codes for kernel v4.19
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Change-Id: Icd0b7085a5e19d8c40b7c2762b2286c89af0197c
2020-07-24 15:30:35 +08:00
Cai YiWei
a17a958f85 media: rockchip: isp: fix no work for internal read back case
Change-Id: I00722d7cd0f6e5011ea24c14cbdd7a5437a82eb4
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2020-07-24 11:17:34 +08:00
XiaoTan Luo
6d25c622a5 ASoC: es8323: fixed es8323 suspend error
it produces a lot of heat when es8323 suspend, and fixed it.

Signed-off-by: XiaoTan Luo <lxt@rock-chips.com>
Change-Id: I26c9a5dacc15f4b9a5ca323993d4986848c6be7d
2020-07-24 10:11:43 +08:00
XiaoTan Luo
099866c7c7 ASoC: es8323: fixed adc record error
it has a high probability that es8323 record error, and fixed it.

Signed-off-by: XiaoTan Luo <lxt@rock-chips.com>
Change-Id: I57509a2f5ee04045bb2618a7c7ec11440030c4dc
2020-07-24 09:52:42 +08:00
Ding Wei
bf5afbeaf9 video: rockchip: mpp: fix error for hand writing
Change-Id: If8483dfa7e4b432128d1139b69f9d414c5d04a22
Signed-off-by: Ding Wei <leo.ding@rock-chips.com>
2020-07-23 19:41:49 +08:00
Sandy Huang
d7bc7fe3a6 Revert "drm/drm-prime: cache dma_buf import context"
This reverts commit 09d07c8016.

Change-Id: Ifb57a691d55e108589b77037a9b9d88328cd9415
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2020-07-23 17:25:13 +08:00
Sandy Huang
1484f3cf59 drm/rocckhip: implement rockchip_drm_gem_prime_import
1. when import dma-buf we should compare dma_buf->ops with
rockchip_drm_gem_prime_dmabuf_ops;
2. drm_gem_prime_import_dev add some special change for ion alloc
buffer, we must remove them from drm_prime.c for gki.

so we implement rockchip_drm_gem_prime_import to instead of
drm_gem_prime_import.

Change-Id: Iab3260b5c3efb5634d411eb1e8620fb575aa063c
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2020-07-23 17:25:03 +08:00
Nickey Yang
cc1f5b2bce ARM: dts: rv1126: correct cpu0_opp_table
fixed the maximum voltage value of CPU working at 408M

Signed-off-by: Nickey Yang <nickey.yang@rock-chips.com>
Change-Id: Iaa730767007229295106d8f5e2ff7e1653f19aef
2020-07-23 16:05:51 +08:00
Allon Huang
269e1f16dc media: platform: rockchip: cif: get crop from sensor
Signed-off-by: Allon Huang <allon.huang@rock-chips.com>
Change-Id: I728805a9e48c5a055c58fb33d382fadfb00777ec
2020-07-23 15:47:55 +08:00
Hu Kejun
54c024a548 media: rockchip: isp: fix can not report luma connected with some sensor
y state isr of next long frame of some sensor comes before frame end of short frame,
fix can not report luma connected with these sensor.

Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
Change-Id: I9024bf330da178445aaff4aa8131dec6547e5ba5
2020-07-23 15:46:48 +08:00
Nickey Yang
bfd5509dc2 ARM: dts: rv11xx-evb-v10.dtsi update touch ic slave address
There is a  pull-up resistor added to the new touch board,
so the address of TP is changed to 0x14.
At the same time, switch the reporting coordinate method for
meet the requirement of QT using linuxfb.

Signed-off-by: Nickey Yang <nickey.yang@rock-chips.com>
Change-Id: I1e25f7e47b2b93ccb66b1c093241eb94afc1a574
2020-07-23 14:15:59 +08:00
Allon Huang
0abb8094e0 media: platform: rockchip: cif: run luma isr only when chip is rv1126
Signed-off-by: Allon Huang <allon.huang@rock-chips.com>
Change-Id: I90dd9ef08279456b7fef8f0eaad1fe5fe767fbb2
2020-07-23 14:13:07 +08:00
Allon Huang
096bba0696 media: platform: rockchip: cif: disable vicap lvds function when stream off
Signed-off-by: Allon Huang <allon.huang@rock-chips.com>
Change-Id: I9914c7466b313740208322091d653d189ad4d665
2020-07-23 14:12:55 +08:00
Allon Huang
2e3ebdadc4 media: platform: rockchip: cif: support subscribing lvds sof event
Signed-off-by: Allon Huang <allon.huang@rock-chips.com>
Change-Id: I1c24c30050912f29e6ce1e4a4065575979b07de7
2020-07-23 14:12:46 +08:00
Cai YiWei
30e6e71506 media: rockchip: isp: tx timestamp match with fps
Change-Id: I2bc8e58ac09bde3b845d8c0a03f3193fd3179b97
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2020-07-22 14:12:29 +08:00
Cai YiWei
fb9c868033 media: rockchip: ispp: support sharp fbc rotation
Change-Id: Ide6b2adf289d03524b0105b3b7640c419e86fb2a
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2020-07-22 14:12:00 +08:00
Shunqian Zheng
27e2f35d39 ARM: configs: add rv1126 robot defconfig
RV1126 robot defconfig removes some configs from rv1126_defconfig
which is not in use of robot boards, like BT, ethernet, LCD, VOP.

Signed-off-by: Shunqian Zheng <zhengsq@rock-chips.com>
Change-Id: I8f89e79e6b6e48005c8a4dca231ef7ea0a5a064a
2020-07-22 11:54:20 +08:00
Shunqian Zheng
2c5ca422ba ARM: dts: add rv1126 robot dts
Signed-off-by: Shunqian Zheng <zhengsq@rock-chips.com>
Change-Id: I44f95c6b05d66699fc3f388a2f96e548b3252f3c
2020-07-22 11:54:20 +08:00
Shunqian Zheng
b309af488c net: wireless: rockchip: rkwifi: bcmdhd: fix gcc8 warning
drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/dhd_linux.c:6975:39:
warning: argument to 'sizeof' in 'strncpy' call is the same expression
as the source; did you mean to use the size of the destination?
[-Wsizeof-pointer-memaccess]
error, forbidden warning:dhd_linux.c:6975
   strncpy(drvname, info.driver, sizeof(info.driver));

Signed-off-by: Shunqian Zheng <zhengsq@rock-chips.com>
Change-Id: I8f39153a2df4bb2395cd9aac9bd763587f509713
2020-07-22 11:51:16 +08:00
Allon Huang
815ae888ae media: platform: rockchip: cif: add interface for getting sof in luma module
Signed-off-by: Allon Huang <allon.huang@rock-chips.com>
Change-Id: I7f9102057c4a52427c4264e523a14ecdf54d971b
2020-07-22 11:48:52 +08:00
Nickey Yang
2825ffae0c input: touchscreen: gt1x: support config gtp_ics_slot_report
Configure gtp_ics_slot_report in dts node will use slot report
to report coordinate. QT use linuxfb backend can only receive
touch reports in this way.

Signed-off-by: Nickey Yang <nickey.yang@rock-chips.com>
Change-Id: I080d7752852e07bd8f93c86149af6021e2b0edbf
2020-07-22 10:38:00 +08:00
Allon Huang
a417316229 ARM: dts: rv1126: add lite vicap node
Signed-off-by: Allon Huang <allon.huang@rock-chips.com>
Change-Id: I307b969adfc251469d0e3c5f422f0eca402458c2
2020-07-22 10:31:53 +08:00
Allon Huang
b4ac25e9ea media: platform: rockchip: cif: add lite vicap device
Signed-off-by: Allon Huang <allon.huang@rock-chips.com>
Change-Id: I5251d677c6228cd6b09a0052cbb719a97c7fafd6
2020-07-22 10:28:43 +08:00
Allon Huang
00610f370e media: platform: rockchip: cif: support lvds for linear and hdr mode
Signed-off-by: Allon Huang <allon.huang@rock-chips.com>
Change-Id: I1aa2ab86b16f16c535c39025603795afbb5e0e94
2020-07-22 10:21:27 +08:00
Allon Huang
74e1e1627e include : uapi: linux: camera: change struct rkmodule_lvds_cfg for lvds sync code parameters
Signed-off-by: Allon Huang <allon.huang@rock-chips.com>
Change-Id: I4cdf7d7d4c4454f42de3614bdbc1c193f39616c3
2020-07-22 09:55:35 +08:00
Hu Kejun
17ed5ad9a6 media: platform: rockchip: cif: add luma device node
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
Change-Id: I23f9c34930d2ac7d6ddcfa0d6e4334c417220d09
2020-07-22 09:43:22 +08:00
Allon Huang
80dc82ec94 media: platform: rockchip: cif: support rv1126 mipi interface for linear and hdr mode
Signed-off-by: Allon Huang <allon.huang@rock-chips.com>
Change-Id: I073bdafe037498519bb5cd14cb6a64b26f5dd1f5
2020-07-22 09:26:33 +08:00
Caesar Wang
9835c70741 drm/rockchip: change the overlay for rk312x
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Change-Id: I3dfdff66a8903e1f7c710a3b5fea8fa43d2b0a07
2020-07-22 09:12:30 +08:00