Yandong Lin
e60ac2564f
video: rockchip: mpp: fix 64-bit division compile issue
...
err note:
undefined reference to `__aeabi_uldivmod''
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com >
Change-Id: I2572d1a89edfbf3a6fb347318b7e031ff2bc48d1
2022-11-03 16:19:36 +08:00
Xing Zheng
36564e2a80
ASoC: rockchip: rk817-codec: enable ADC dither by default
...
For most scenarios, especially when a usb cable is connected,
enabling the ADC dither can get a better SNR.
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com >
Change-Id: Iedc0c6bd6aa9139feea9feb5ffa91a67373964fc
2022-11-02 22:06:14 +08:00
Xing Zheng
40858982b6
ASoC: rockchip: rk817-codec: add checking APLL CFG0/4 with chip_ver during capture power up and reset
...
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com >
Change-Id: Ibb3a6a3c3fb8f7c1b1715913a046f5a951c4fd78
2022-11-02 22:06:10 +08:00
Xing Zheng
bd7cc07158
ASoC: rockchip: rk817-codec: do power down list without playback and capture
...
Change-Id: Iba2b6ccd6ca5d27f855c10e30a077cb657bf0bc8
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com >
2022-11-02 22:05:06 +08:00
Xing Zheng
1f37099553
ASoC: rockchip: rk817-codec: clear status of ADC sdo and keeping low level during stop stream
...
Change-Id: I9284c7dce0c5f3e42b8fdea5d2be273c578735f9
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com >
2022-11-02 21:50:42 +08:00
Mark Huang
778353e257
usb: gadget: uvc: support nv12 format
...
Change-Id: Iafa6bdb1540ef9f3ac766bf25e917a76069f942b
Signed-off-by: Mark Huang <huangjc@rock-chips.com >
2022-11-02 18:51:31 +08:00
Simon Xue
da4d118936
PCI: rockchip: dw: add standard ep mode driver
...
Change-Id: Id365b71acaa1db846b619fedd7397a9256d8e13f
Signed-off-by: Simon Xue <xxm@rock-chips.com >
Signed-off-by: Jon Lin <jon.lin@rock-chips.com >
2022-11-02 17:35:14 +08:00
Tao Huang
92574a636c
mfd: rk808: Constify static struct resources and regmap_irq_chip
...
Signed-off-by: Tao Huang <huangtao@rock-chips.com >
Change-Id: I3d23d66be5586d9f14e62910e540151e66fac5a9
2022-11-02 16:26:57 +08:00
Shunhua Lan
537b439591
arm64: dts: rockchip: rk3588: add hdmirx alias
...
Signed-off-by: Shunhua Lan <lsh@rock-chips.com >
Change-Id: Id9f7f884f0aacad0bb91e5bf37126d4ae06e64b5
2022-11-02 16:26:10 +08:00
James_Lin
82befae92c
UPSTREAM: media: uvcvideo: Add UVC_GUID_FORMAT_H265
...
This patch aims to add UVC_GUID_FORMAT_H265
High Efficiency Video Coding (HEVC), also known as H.265 and MPEG-H Part 2.
They describe the same video encoding method.
So for handling their behavior is the same.
However, when external camera device describes this encoding method,
some use hevc, some use h265.
There is no uniform specification to describe this encoding method.
So if an external camera device use h265 to describe this encoding method,
driver will not recognize it.
Therefore, this patch is to enable driver to read HEVC/H265
and convert it to V4L2_PIX_FMT_HEVC.
Change-Id: I8316ccbf09014d38eb1becbc3c5f54f29ad497b6
Signed-off-by: James_Lin <Ping-lei.Lin@mediatek.com >
Reviewed-by: Ricardo Ribalda <ribalda@chromium.org >
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com >
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org >
Signed-off-by: William Wu <william.wu@rock-chips.com >
(cherry picked from commit be938c70e2 )
2022-11-02 16:23:08 +08:00
Jianlong Wang
8edddd07cb
ARM: configs: rockchip_linux_defconfig: update for kernel5.10
...
Signed-off-by: Jianlong Wang <jianlong.wang@rock-chips.com >
Change-Id: I5ff5d8f1ad0743bfa140c5400d6c9b6af8fbbedf
2022-11-02 16:13:26 +08:00
Zefa Chen
34849d327b
media: rockchip: vicap alloc only one dummy_buf for all dev
...
use the maximum resolution as the allocated size
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com >
Change-Id: I41d263993245d168b6494bc4139b2e6dac0a6dc9
2022-11-02 11:14:45 +08:00
Sugar Zhang
a2bf1b64e8
ASoC: rockchip: dlp: Add support for XRUN-routine
...
* support XRUN-routine digital loopback
* support up to 16 ch digital loopback
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com >
Change-Id: I179ab370087bd49452c9ecbfa9b1e2ecbb010c5b
2022-11-02 10:28:22 +08:00
Frank Wang
e1288d0f36
usb: typec: tcpm: fusb302: add analog audio cc detect
...
USB Type-C Specification Release 1.2 March 25, 2016
A.2 Detail
A DFP that supports analog audio adapters shall detect the presence
of an analog audio adapter by detecting a resistance to GND of less
than Ra on both A5 (CC) and B5 (VCONN).
So check both CC1 and CC2 status when SRC togdone to handle the audio
adapter accessory mode.
Signed-off-by: Frank Wang <frank.wang@rock-chips.com >
Change-Id: Ied826a8a4b6e80b5406e3d370ef0f8aa31b1b536
2022-11-02 09:55:32 +08:00
Wang Xiaobin
7d7e585f2a
ARM: configs: rockchip: add rv1103-rmsl311.config
...
Generated by:
make ARCH=arm rv1106_defconfig rv1106-tb.config
cp .config tmp.config
make ARCH=arm menuconfig
bala...
./scripts/diffconfig -m tmp.config .config > \
arch/arm/configs/rv1103-rmsl311.config
Signed-off-by: Wang Xiaobin <xb.wang@rock-chips.com >
Change-Id: I7cb6a4b95c6a3f513f8d348a48d9c97b150b2798
2022-11-02 09:44:25 +08:00
Su Yuefu
ba38d5f2f5
media: i2c: sc3338 fixs brightness change
...
1、Fixes brightness is increasing to a stable value when
sensor’s exp reg is fixed value
2、Fixes cross stripe in the first 15 frame
this patch will delay 650us before frame start
Signed-off-by: Su Yuefu <yuefu.su@rock-chips.com >
Change-Id: Ic57a7dfa7340c859aed5ddd250744d3802bf313f
2022-11-01 15:54:46 +08:00
Yu Qiaowei
79893a8747
video: rockchip: rga3: add more error logs for hardware behavior.
...
1. Add job-state to detect hardware interrupt behavior. Easy to distinguish
the timeout of hardware interrupt top-half/bottom-half.
2. Print more error description according to register.
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com >
Change-Id: I0179bb59ae6a467fdb1e28643c2c19f7eb4bc5d5
2022-10-31 17:15:55 +08:00
Yu Qiaowei
19805cc2b8
video: rockchip: rga3: move rga*_ops to rga*_reg_info.h
...
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com >
Change-Id: I8f81e5b11873af76e32dc112dd89a1bc0ef4bcf5
2022-10-31 17:15:55 +08:00
Yu Qiaowei
1514f2ab39
video: rockchip: rga3: add backend-ops read_back_reg()
...
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com >
Change-Id: I2b24271214f8beeda06f7da0e97f009967a7d83e
2022-10-31 17:15:55 +08:00
Yu Qiaowei
21624c6edb
video: rockchip: rga3: add definitions for sys_ctrl and intr registers
...
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com >
Change-Id: Ib25837d9807de75b62e9c8258ff440c86fdab609
2022-10-31 17:15:55 +08:00
Yu Qiaowei
7c55f51007
video: rockchip: rga3: modify the debug log of irq
...
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com >
Change-Id: I18f4d02e22c0a2afb0754d3ed92ec2539037d10e
2022-10-31 17:15:55 +08:00
Cai YiWei
fd961d3e69
media: rockchip: ispp: fec remove useless function
...
Change-Id: I0450622a44804e2170af8fd195c3fa051596477c
Signed-off-by: Cai YiWei <cyw@rock-chips.com >
2022-10-31 17:12:41 +08:00
Cai YiWei
2b6d89cc5d
media: rockchip: ispp: fec optimize dmabuf
...
Change-Id: Iac2b94f416567802ce982b0155d9b0f982f04791
Signed-off-by: Cai YiWei <cyw@rock-chips.com >
2022-10-31 17:12:41 +08:00
Wang Panzhenzhuan
55a16bbbf5
media: i2c: s5kjn1: fix full size analog gain range
...
Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com >
Change-Id: Ib9d3d454c42dc7c89b3f128b7330ec840eed3f3a
2022-10-31 15:28:23 +08:00
Wang Panzhenzhuan
b2ba30ab22
media: i2c: aw36518: fix power off torch not off issue
...
Currently, if camera flash in torch mode,
press power key long to power off don't close flash, so fix it.
Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com >
Change-Id: I774a9fec00cfee1fef3c933ca6aeaa010aecce81
2022-10-31 06:48:52 +00:00
YouMin Chen
65cdd3aa7a
PM / devfreq: rockchip_dmc: rk3588: opp_table automatch supported frequencies
...
Signed-off-by: YouMin Chen <cym@rock-chips.com >
Change-Id: Ie0643ec5ff864136b44e357348cce5c595a15052
2022-10-28 16:25:51 +08:00
Lin Jinhan
8afea1b181
ARM: configs: rv1106-smart-door: use SC3338 instead of SC3336
...
Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com >
Change-Id: Ie22095d0ff5dbfbdc81d76c0dbb989b34eaefd92
2022-10-28 16:25:50 +08:00
Lin Jinhan
28c5674a9c
ARM: configs: rv1106-smart-door: Update by diffconfig
...
Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com >
Change-Id: I5f9e266a0527a027ad861a2de3e3790023e5c081
2022-10-28 16:25:50 +08:00
Weiwen Chen
c356117a08
ARM: dts: rockchip: rv1106g-evb1-v11: support spi_nand
...
Signed-off-by: Weiwen Chen <cww@rock-chips.com >
Change-Id: Ia549713bd3a816fd857e1f77c48d45cbf4947906
2022-10-28 16:25:50 +08:00
Elaine Zhang
1377256d12
net: can: rockchip: canfd: Add delay work to check tx errors
...
Fixes: aed0776380 ("canfd: Support extended frames transmit for rk3568")
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com >
Change-Id: I7d3ea5ca8ac501d81ec9f0ca15f6e3816080a4b5
2022-10-28 16:25:50 +08:00
Jianwei Fan
4bf4829448
arm64: dts: rockchip: rk3588-vehicle-evb: add fast reverse camera configuration
...
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com >
Change-Id: If2fbad61a74f15c7f56147cf137f0c49da444e7d
2022-10-28 16:25:50 +08:00
Jianwei Fan
433717c426
drm: modify driver probe time if CONFIG_VIDEO_REVERSE_IMAGE=y
...
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com >
Change-Id: I15eefd044dd8b848bdf0162639b3fedfa0d18722
2022-10-28 16:25:50 +08:00
Jianwei Fan
ec365fd626
video: rockchip: rga3: modify driver probe time if CONFIG_VIDEO_REVERSE_IMAGE=y
...
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com >
Change-Id: I187c87767cc6a6c3b06f7bee977e13e35f15fdcc
2022-10-28 16:25:50 +08:00
Jianwei Fan
e02a34a7fc
video: rockchip: vehicle: add fast reverse camera driver
...
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com >
Change-Id: I3c53046462000eaac645b2e5f0ef30b666b3f543
2022-10-28 16:25:50 +08:00
Jianwei Fan
31b330961a
media: cif: modify adapt to fast reverse camera if CONFIG_VIDEO_REVERSE_IMAGE=y
...
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com >
Change-Id: I9554f931d0421148cd9218187f5eec31fd4004e7
2022-10-28 16:25:50 +08:00
Jianwei Fan
6abb75642a
media: i2c: modify sensors probe time if CONFIG_VIDEO_REVERSE_IMAGE=y
...
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com >
Change-Id: I28a86e4f88425c90270b5d85ac68104bed93433a
2022-10-28 16:25:50 +08:00
Jianwei Fan
edfb48bcad
phy: rockchip: csi2-dphy: modify to adapt fast reverse camera if CONFIG_VIDEO_REVERSE_IMAGE=y
...
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com >
Change-Id: I9ce4c20ea056f1b39b2f29e57a55d79331919759
2022-10-28 16:25:50 +08:00
Wyon Bi
ce5b84ec53
drm/bridge: analogix_dp: Don't poll hpd status in analogix_dp_detect_hpd()
...
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com >
Change-Id: I6008193c58b878ca01abf775c6f61258a1818d8c
2022-10-28 16:25:50 +08:00
Yandong Lin
3c86c6018e
video: rockchip: mpp: Optimize ktime_get for each task issue
...
Get the time only when DEBUG_TIMING flag is enabled
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com >
Change-Id: I7ac49815f24d155cab3967af61dc75e4d92b9d60
2022-10-28 16:25:50 +08:00
Yandong Lin
033bd78a44
video: rockchip: mpp: add calc hw real times per task
...
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com >
Change-Id: Ibf21463caae403f7c71884647c546fc46a614f06
2022-10-28 16:25:50 +08:00
Yiqing Zeng
952472b9e7
ARM: dts: rockchip: rv1103-evb-cam: delete ircut for rv1103 evb
...
Signed-off-by: Yiqing Zeng <zack.zeng@rock-chips.com >
Change-Id: I71230c982489056d626e9f0eb20d1fbe6ce8bc38
2022-10-28 16:25:50 +08:00
Weiwen Chen
fbb4e1f674
ARM: configs: rv1106-battery-ipc.config: enable CONFIG_MSDOS_PARTITION
...
size vmlinux
after:
text data bss dec hex filename
3027212 1332668 180768 4540648 4548e8 vmlinux
before:
text data bss dec hex filename
3025900 1332444 180768 4539112 4542e8 vmlinux
Signed-off-by: Weiwen Chen <cww@rock-chips.com >
Change-Id: I86bebed3dcd017a8ba3e8111fedd9334b8132173
2022-10-28 16:25:50 +08:00
Sugar Zhang
dcf7535a30
ASoC: rockchip: Add driver support for SAI controller
...
This patch add support for rockchip sai controller:
* support flexible timing creation, e.g. I2S, PCM, TDM...
* support up to 128 slots per lane
* support up to 4 lanes per direction
* support slot mask
* support mono transfer and receive
* support digital loopback
* support data counter for flow control
* support clk sync among controllers which varies on chips
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com >
Change-Id: I3cd5eb1c1178cc3ca3b6069863787d1fa040b60c
2022-10-28 16:25:50 +08:00
Tao Huang
240a5660d7
phy: rockchip: inno-usb3: Use fallthrough pseudo-keyword
...
Replace /* fall through */ comment with pseudo-keyword macro fallthrough[1]
[1] https://www.kernel.org/doc/html/latest/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through
Signed-off-by: Tao Huang <huangtao@rock-chips.com >
Change-Id: I862e6acd6d9d202131d3cbc7e7fb461a8997a1f2
2022-10-28 16:25:49 +08:00
Yu Qiaowei
b7cda70045
video: rockchip: rga3: modify the process of session exit
...
When the session exits, there is no need to operate the rga_job directly.
Update driver version to 1.2.21
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com >
Change-Id: I0369dce427dc749795803eae064dc80e33747a7e
2022-10-28 16:25:49 +08:00
Yu Qiaowei
dc81be56db
video: rockchip: rga3: add reference counting in rga_job
...
fixup 'BUG: KASAN: use-after-free in rga_job_next'
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com >
Change-Id: I93bbe7723f923482dd8598f8a7155efdf6cb46d6
2022-10-28 16:25:49 +08:00
Lin Jianhua
dc81a14034
ARM: configs: rockchip_linux_defconfig: enable CONFIG_RFKILL_RK for wifi
...
Signed-off-by: Lin Jianhua <linjh@rock-chips.com >
Change-Id: I87a2cbd6f7a79033b389d4d2b2da9b2bd9443087
2022-10-28 16:25:49 +08:00
Cai YiWei
25ee175508
media: rockchip: isp: remove unsupported formats
...
Change-Id: Idb5e1b4350230f156fa5e8cea43893b0526998d9
Signed-off-by: Cai YiWei <cyw@rock-chips.com >
2022-10-28 16:25:49 +08:00
Weiwen Chen
13b4acb9e4
ARM: configs: rv1106-battery-ipc.config: enable mount vfat
...
insmod dw_mmc.ko
insmod dw_mmc-pltfm.ko
insmod dw_mmc-rockchip.ko
insmod mmc_block.ko
insmod nls_cp936.ko
insmod fat.ko
insmod vfat.ko
Signed-off-by: Weiwen Chen <cww@rock-chips.com >
Change-Id: I7d2e7b5eab74e77dece58036d2a7bcf085fd35dd
2022-10-28 16:25:49 +08:00
Weiwen Chen
55fb389095
ARM: dts: rockchip: rv1106g-evb2-v10: sdmmc support sdcard
...
Signed-off-by: Weiwen Chen <cww@rock-chips.com >
Change-Id: Ie803dc6a5f44f89a80250150b2cafc1741516039
2022-10-28 16:25:49 +08:00