Commit Graph

1073120 Commits

Author SHA1 Message Date
Yu Qiaowei
f60012eb97 video/rockchip: rga: rename drvdata to rga_drvdata
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: I28e7255f1e08a2c85476053395172bcd0a6615bf
2022-11-28 14:21:27 +08:00
Yu Qiaowei
f0e546653b video/rockchip: rga: fix bug with time debug nodes
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: Ie58a83af91c79e79cd6b85eeea78cf7ff820393c
2022-11-28 14:21:27 +08:00
Yu Qiaowei
475afae810 video/rockchip: rga: adapt to kernel 4.4
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: Ic1f8e21e5d1841d3533d0d74d46caf668c48645e
2022-11-28 14:21:27 +08:00
Yu Qiaowei
2dd6530d31 video/rockchip: rga: remove ^m
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: I2d3945442ef45b6baa9be9d286c1d7b4c70918c8
2022-11-28 14:21:27 +08:00
ZiHan Huang
97ca52bdc0 ARM: dts: rockchip: rk3036: fix compatible of pwm nodes
PWM in rk3036 is the same as rk3288

Change-Id: I078e068c8e6fe64fd2f53b0fde1b1fb9984c76bc
Signed-off-by: ZiHan Huang <zack.huang@rock-chips.com>
2022-11-28 14:14:51 +08:00
Zefa Chen
bbc9d3fcf6 media: rockchip: vicap disable dma capture in fs intr before stop stream
if disable dma capture in fe intr, register write to device may delay after real fs,
the register need effect in next real fs, may cause iommu error or size error

Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I451c18f175e89c5ddf7c8a31f2f288dd8c01a8f1
2022-11-28 10:25:32 +08:00
Jianqun Xu
3196fead2c ARM: dts: rockchip: rk3288: add rk3288-pinctrl.dtsi
Move rk3288 pinctrl functions to rk3288-pinctrl.dtsi.

Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: I358b4311ac47cb3c88cf372fb6662dfe4d9e6bd7
2022-11-25 21:11:32 +08:00
Jianwei Fan
55d671ad12 arm64: rockchip_defconfig: enable CONFIG_VIDEO_LT6911UXE for rk3588 evb1 extboard
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: Ib47b113ff10a13fb0b23e19567ec84767f1b880b
2022-11-25 21:03:01 +08:00
Jianwei Fan
64e13c9628 arm64: dts: rockchip: rk3588-evb1-lt6911uxe: add lt6911uxe configuration for rk3588 evb1 extboard
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: I6a1a0fd0bc25a5ce18089d4d7804d785745225b5
2022-11-25 21:01:57 +08:00
Jianwei Fan
b1657c60d0 media: i2c: lt6911uxe: add lt6911uxe HDMI to MIPI-CSI2 bridge driver
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: I8310c61a4dedfee6d0b38f4f7eb34da937dd0530
2022-11-25 21:01:15 +08:00
Herman Chen
7ea35f7e29 arm64: dts: rockchip: rk3588-evb: enable avs+ decoder
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: Iee041320e2b24769f28895d126657c30f9c4925e
2022-11-25 21:00:23 +08:00
Weiwen Chen
1d10186b4c mmc: mmc_ops: Skip checking ocr for thunder boot
In order to make eMMC boot more fast.

Signed-off-by: Weiwen Chen <cww@rock-chips.com>
Change-Id: Ib8b076f30746c9b0043e464581985f10867e9054
2022-11-25 17:25:37 +08:00
Jianqun Xu
b63c12102a ARM: dts: rockchip: rk3288: move psci node to core dtsi
Currently the psci node is in rk3288-linx/android.dtsi file, move them
into the core dt file.

Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: I0265719ab4eb6b05cb3c9414fd54f916fcce9d77
2022-11-25 16:51:32 +08:00
Herman Chen
d9cadd60be arm64: dts: rockchip: rk3588: Add avsd skip pmu idle
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
Change-Id: Ia71449a6a2d5e5e0fd4d0cdc1a433d1cb0ea7113
2022-11-25 15:46:15 +08:00
Jianwei Fan
4612b633c9 media: i2c: Lontium bridge: add CSI BGR888 media bus format
Change-Id: I0da2e6e9c6683ae6ac4c0a900b9d3bb6291d0a4c
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
2022-11-24 20:09:09 +08:00
Lin Jinhan
cac789f29a ARM: configs: rv1106-smart-door: enable camera thunder boot
CONFIG_MAILBOX=y
CONFIG_ROCKCHIP_MBOX=y
CONFIG_ROCKCHIP_THUNDER_BOOT_SERVICE=y
SPI_NOR compiled as module.

Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
Change-Id: I1ab9ed6265f233875451ef5cf9daf50bae1e4632
2022-11-24 19:03:47 +08:00
Lin Jinhan
2365d6f638 ARM: dts: rockchip: rv1106g-smart-door: add gc2093 thunder boot support
Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
Change-Id: I2578c1d45a037f0920dbc92f9973d7b8031eede4
2022-11-24 19:03:47 +08:00
Lin Jinhan
fea2e9f574 media: i2c: gc2093: pm_runtime_put device until stream_off for thunderboot
The camera device should keep *power on* until stream off, that make
sure the mclk is enable.

Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
Change-Id: Iad14d6648b24c5e9202ba2cef2199e35fbe18fbb
2022-11-24 19:03:47 +08:00
Wang Xiaobin
39115e823e media: i2c: gc2093 support get real fps
Signed-off-by: Wang Xiaobin <xb.wang@rock-chips.com>
Change-Id: I452732edf63ed913360d309ace457097ff8afedd
2022-11-24 19:03:47 +08:00
Sisyphean Zhou
fc49bfda1b media: i2c: gc2093 support fastboot
Signed-off-by: Sisyphean Zhou <sisyphean.zhou@rock-chips.com>
Change-Id: I3245ba187df5ddcc8c5a97e3098e1436e62d7e9d
2022-11-24 19:03:47 +08:00
Yu Qiaowei
97e91ee429 video: rockchip: rga3: remove useless delay for rga3 software reset
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: I244542e3a2df37b2b9ecf2d95204aa575ec65ee4
2022-11-24 19:02:24 +08:00
Yu Qiaowei
b843cf6902 video: rockchip: rga3: add iommu fault irq_handler
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: I9c8159e48a9e7c7a01b8e9b155c52a7f57603ab2
2022-11-24 19:02:24 +08:00
Jianwei Fan
b541c6aa8d media: i2c: lt7911d: fix reset operation
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: I5d97e98c0b26848262fa39dd1b484b23567bd4c2
2022-11-24 18:58:14 +08:00
Jianwei Fan
7f2c76d5a9 media: i2c: lt7911uxc: fix reset operation
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: I0f3790c341c855ec1b1684813ad63383b2e6e51a
2022-11-24 17:31:38 +08:00
Cai YiWei
caf146538f media: rockchip: isp: fix self update config for isp30
Change-Id: I882affcf17ab0dc6e6497ea1fb1e9683ff88c3c9
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2022-11-23 17:42:00 +08:00
Jianlong Wang
d39e7f58f7 net: rfkill: rfkill-wlan: fix syntax errors in get_wifi_addr_vendor
Change-Id: Ibc632671ba634af0d46341fbd3f91f01afa703b5
Signed-off-by: Jianlong Wang <jianlong.wang@rock-chips.com>
2022-11-23 15:28:47 +08:00
Lin Jianhua
fb738478a2 ARM: dts: rockchip: rk3288-linux: enable iep
Change-Id: Ibd4299e2695cd0a2009befd81ba65fdd35135ac2
Signed-off-by: Lin Jianhua <linjh@rock-chips.com>
2022-11-23 15:26:31 +08:00
Frank Wang
e81b859447 arm64: dts: rockchip: disable ss instances in park mode for usb3
The xHCI SuperSpeed instance in park mode would fail to recover, thus on
Rockchip SoCs when there is high load on the xHCI port. Such as a USB3
HUB with two USB3 disks are plugged in and do write/read test
continuously, the controller may crash like:

xhci-hcd xhci-hcd.9.auto: xHCI host not responding to stop endpoint command.
xhci-hcd xhci-hcd.9.auto: USBSTS: 0x00000000
xhci-hcd xhci-hcd.9.auto: xHCI host controller not responding, assume dead
xhci-hcd xhci-hcd.9.auto: HC died; cleaning up
xhci-hcd xhci-hcd.9.auto: xHCI host not responding to stop endpoint command.
xhci-hcd xhci-hcd.9.auto: USBSTS: 0x00001001 HCHalted HCE
usb 7-1: USB disconnect, device number 2
sd 2:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_TIME_OUT driverbyte=DRIVER_OK cmd_age=35s
sd 2:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 12 cc 80 00 02 00 00
blk_update_request: I/O error, dev sdb, sector 1232000 op 0x0:(READ) flags 0x80700 phys_seg 8 prio class 0

So set the PARKMODE_DISABLE_SS bit in the DWC3_USB3_GUCTL1 to mitigate the issue.

Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
Change-Id: I57a180dbd820b105bd70d0d8834c163de1ac0597
2022-11-23 11:37:33 +08:00
Shawn Lin
b0086261b6 mmc: sdhci-of-dwmshc: Add software queue support
Add newly added software queue support to improve random performance.
Testing condition: rk3588-evb1 32GB eMMC, CPU & DRAM fixed frequency

Random read test:

fio -filename=/dev/block/mmcblk0 -direct=1 -iodepth 20 -thread -rw=randread \
-ioengine=psync -bs=4k -size=1G -numjobs=20 -runtime=40 -group_reporting \
-name=rand_100read_4k

Random write test:

fio -filename=/data/fio.bin -direct=1 -iodepth 20 -thread -rw=randwrite \
-ioengine=psync -bs=4k -size=1G -numjobs=20 -runtime=40 -group_reporting \
-name=rand_100write_4k

======================================================================
|     -       |  W/O patch  | With patch applied|  improve percentage |
| random read | 45624KB/s   | 62542KB/s         |   +37%              |
| random write| 22548KB/s   | 27977KB/s         |   +24%              |
======================================================================

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: I81dca2e9c45d1a1596ef810328f32c9a2779683c
2022-11-23 10:16:54 +08:00
Tao Huang
1fda99416a arm64: rockchip_gki.config: Disable CONFIG_DRM_MAXIM_MAX96752F
Delete this unused config.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I97ba367145f90f98b23e96f38ed8d6b9cd833800
2022-11-23 09:57:14 +08:00
Wyon Bi
51450af0ed arm64: rockchip_defconfig: Disable CONFIG_DRM_MAXIM_MAX96752F
Delete this unused config.

Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: Iec1f9f2723146e83cadd3a9eda4e135ae029e739
2022-11-23 09:52:15 +08:00
Wyon Bi
c1f870a930 Revert "mfd: Add support for Maxim MAX96776"
This reverts commit 4b9ba5d213.

Delete this unused driver.

Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: I2ba96feb73c5ea98d3945478eb90773efe4eed0d
2022-11-23 09:48:37 +08:00
Wyon Bi
027cd3ac12 Revert "drm/bridge: Add support for Maxim MAX96776"
This reverts commit ecc6097c8d.

Delete this unused driver.

Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: Ie6af8864560413df85e14b5c1d00df19ca0142ba
2022-11-23 09:47:51 +08:00
Wyon Bi
9cd192293f Revert "mfd: Add support for Maxim MAX96752F"
This reverts commit ad3d90b0ba.

Delete this unused driver.

Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: Ie3f71ea9cfb53751e7f1370ca95acfe9726e9696
2022-11-23 09:45:23 +08:00
Wyon Bi
65358f283c Revert "drm/bridge: Add support for Maxim MAX96752F"
This reverts commit 24af5158d9.

Delete this unused driver.

Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: I8b674c8b65bcd83e3d1be3c0dcc68fdf0e7f07ed
2022-11-23 09:42:09 +08:00
Wyon Bi
eabac9aad4 Revert "pinctrl: Add support for Maxim MAX96752F pin controller"
This reverts commit 530d7e8c7c.

Delete this unused driver.

Change-Id: I5d478b7002bf1eb6aeba42ab2d1ccdb70c47367f
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
2022-11-23 00:51:56 +00:00
Wyon Bi
256063f27a Revert "gpio: Add support for Maxim MAX96752F GPIO controller"
This reverts commit 673d3358b0.

Delete this unused driver.

Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: I157ef462ad5334c17389f39a71f109976896ca4f
2022-11-23 00:51:55 +00:00
Yiqing Zeng
a8534cd7ac ARM: dts: rockchip: ov13850/gc8034 add power gpio for rk3288-evb-rk808-linux
Change-Id: I15847124e126c7acf7e33d0aeb9430b003f37c57
Signed-off-by: Yiqing Zeng <zack.zeng@rock-chips.com>
2022-11-22 18:45:41 +08:00
Zhang Yubing
286b1fafa8 drm/rockchip: dw-dp: fixup the timing min limit
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
Change-Id: I776ed1eaf38a7d91db3541bade02eac68908b977
2022-11-22 18:41:11 +08:00
Wang Panzhenzhuan
2c418fb7b9 arm64: configs: rockchip_defconfig: enable GC2053 & GC2093
enable gc2053 & gc2093 for rk3568-evb1 dual camera module

Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
Change-Id: I90b68722bb7a2faf6cc36675bae892be1fa6bc9b
2022-11-22 18:40:23 +08:00
Xing Zheng
873d6962c4 ARM: dts: rockchip: rv1106: specify MIC Gain to 20dB by default
Since most cases, we need to amplify the signal coming in from
the ECM recording.

Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Change-Id: I7962d5bd604775f5de23209f13d21862145444f4
2022-11-22 18:38:29 +08:00
Xing Zheng
7c5535c11f ASoC: codecs: rv1106_codec: add support properties to configure init gains
Add support init gains:

MIC  Gain     ALC Gain (0dB: 0x06)   Lineout Gain (0dB: 0x1a)
0dB  (0x01)    min: -9.0dB (0x00)     min: -39.0dB (0x00)
20dB (0x02)    max: +37.5dB (0x1f)    max: +6.0dB (0x1f)
12dB (0x03)   step: +1.5dB           step: +1.5dB

Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Change-Id: I827329e3b96c64a7a344dfc4094fea6d118503a5
2022-11-22 18:38:29 +08:00
Alex Zhao
ed56e6902a net: wireless: rockchip_wlan: bcmdhd: disable DHD_PKTID_AUDIT_ENABLED
Signed-off-by: Alex Zhao <zzc@rock-chips.com>
Change-Id: I71f3a86d5a722739a03daef68c50e70de4968dd9
2022-11-22 17:55:48 +08:00
Wyon Bi
56f0ad9953 drm/bridge: analogix_dp: Fix bpp value in analogix_dp_bandwidth_ok()
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: I38fc9c1d95966204c89afffe15ce551ae8c3f62f
2022-11-22 17:55:26 +08:00
Tao Huang
deb783324d Revert "input: touchscreen: gt1x: ignore pin of reset and support power invert"
This reverts commit 334791b0d3.

Reason for revert:
The following warning appears on rk3588-evb1-lp4-v10 when suspend:
[   31.636037][  T414] unbalanced disables for vcc3v3_lcd0_n
[   31.636166][  T414] WARNING: CPU: 2 PID: 414 at drivers/regulator/core.c:2768 _regulator_disable+0x2e8/0x2f4
[   31.636191][  T414] Modules linked in: bcmdhd dhd_static_buf
[   31.636256][  T414] CPU: 2 PID: 414 Comm: composer@2.1-se Not tainted 5.10.110 #116
[   31.636279][  T414] Hardware name: Rockchip RK3588 EVB1 LP4 V10 Board (DT)
[   31.636309][  T414] pstate: 60400009 (nZCv daif +PAN -UAO -TCO BTYPE=--)
[   31.636338][  T414] pc : _regulator_disable+0x2e8/0x2f4
[   31.636366][  T414] lr : _regulator_disable+0x2e8/0x2f4
...
[   31.636950][  T414] Call trace:
[   31.636980][  T414]  _regulator_disable+0x2e8/0x2f4
[   31.637009][  T414]  regulator_disable+0x40/0x84
[   31.637036][  T414]  panel_simple_unprepare+0x78/0xa4
[   31.637064][  T414]  drm_panel_unprepare+0x28/0x48
[   31.637094][  T414]  dw_mipi_dsi2_encoder_disable+0x70/0xbc
[   31.637123][  T414]  drm_atomic_helper_commit_modeset_disables+0x174/0x4d0
[   31.637154][  T414]  rockchip_drm_atomic_helper_commit_tail_rpm+0x44/0x184
[   31.637180][  T414]  commit_tail+0x110/0x200
[   31.637209][  T414]  drm_atomic_helper_commit+0x1f0/0x210
[   31.637238][  T414]  drm_atomic_commit+0x50/0x64
[   31.637268][  T414]  drm_mode_atomic_ioctl+0x620/0x744
[   31.637298][  T414]  drm_ioctl+0x24c/0x3b8
[   31.637328][  T414]  __arm64_sys_ioctl+0x94/0xd0
[   31.637359][  T414]  el0_svc_common+0xc0/0x23c
[   31.637388][  T414]  do_el0_svc+0x28/0x88
[   31.637417][  T414]  el0_svc+0x14/0x24
[   31.637446][  T414]  el0_sync_handler+0x88/0xec
[   31.637474][  T414]  el0_sync+0x1a8/0x1c0

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Id27946e0ef3a6c320214c961b8e9b02978a15f6b
2022-11-22 17:43:26 +08:00
Jian Zheng
6a39dba2e5 ARM: configs: rv1106-cvr.config: based on rv1106-evb.config
Separate the config for the cvr product definition

Signed-off-by: Jian Zheng <zj@rock-chips.com>
Change-Id: I94040ee07992e694df6d307dead7febea78b84ec
2022-11-22 15:33:27 +08:00
Yu Qiaowei
4bf27cc8c8 ARM: dts: rockchip: rk3288-linux: fix rga to rockchip,rga2
Fix compatible of rga to "rockchip,rga2", and modify the clock names
to work fine with current driver.

Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: Icd30ef8e090aceedbc680eb39c4a0c5b00869102
2022-11-22 15:17:43 +08:00
Zhen Chen
034aad5dd8 MALI: rockchip: upgrade bifrost DDK to g15p0-01eac0, from g13p0-01eac0
Note, the corresponding mali_csffw.bin for DDK g15 MUST be used.

Change-Id: Ic30634fa6247d62bf96f506c64d13b89e16b02e6
Signed-off-by: Zhen Chen <chenzhen@rock-chips.com>
2022-11-22 14:13:04 +08:00
Yu Qiaowei
96e93dba44 video: rockchip: rga3: fix misconfiguration of updating lut table mode
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: I120b57fcb2c190a3e9cba7cb49ecbb0035e498ea
2022-11-21 17:47:26 +08:00
Yu Qiaowei
f13dae5b9c video: rockchip: rga3: iommu device uses slave mode
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: I1ab682d3ee687ae13ba4d7c252d1d9ec25875efd
2022-11-21 17:47:25 +08:00