Commit Graph

1073094 Commits

Author SHA1 Message Date
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
Lin Jinhan
84d08ffd32 media: i2c: add gc1084 support
Signed-off-by: Lin Jinhan <troy.lin@rock-chips.com>
Change-Id: Idecacd6d217659a908de09517d10db02dd438478
2022-11-21 16:30:10 +08:00
Jian Zheng
68f953fab3 ARM: dts: rockchip: rv1106g-evb-v11-cvr: do not include rv1106-evb-ext-rgb-v10.dtsi
Due to the reuse of pins on the evb board,
wifi enable requires that rgb be temporarily turned off

Signed-off-by: Jian Zheng <zj@rock-chips.com>
Change-Id: I7f19d8d6ea80faee66dc1c44bb06b9e0d1507edf
2022-11-21 15:00:38 +08:00
David Wu
720d1c7da4 arm64: dts: rockchip: rk3568: Add xpcs_eee clk for gmac xpcs
Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: Iba2c79b343273751ea87f30be8f257a2539447c2
2022-11-21 14:21:51 +08:00
David Wu
13c8f4001f ethernet: stmmac: dwmac: Enable xpcs_eee clock for sgmii mode
If xpcs_eee clock was not enabled, the sgmii mode cannot work
after suspend/resume.

Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: If187b8e3344553f2e7062c677b1a851a761b5a18
2022-11-21 14:21:51 +08:00
Steve French
e361a115eb UPSTREAM: cifs: lease key is uninitialized in smb1 paths
It is cleaner to set lease key to zero in the places where leases are not
supported (smb1 can not return lease keys so the field was uninitialized).

Addresses-Coverity: 1513994 ("Uninitialized scalar variable")
Reviewed-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Steve French <stfrench@microsoft.com>
(cherry picked from commit 625b60d4f9)
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: I0cef58f5169c3e2b2fbe427f2340c277174a2be0
2022-11-21 14:16:22 +08:00
Jianlong Wang
ad1c79a5b7 ARM: dts: rockchip: rk312x-linux: enable mpp_srv node
Change-Id: Ic226f8ccdb8cdb803fad3c6e450aeb9d0115ea82
Signed-off-by: Jianlong Wang <jianlong.wang@rock-chips.com>
2022-11-21 14:13:53 +08:00
Steve French
38a4540cd6 BACKPORT: cifs: fix SMB1 error path in cifs_get_file_info_unix
We were trying to fill in uninitialized file attributes in the error case.

Addresses-Coverity: 139689 ("Uninitialized variables")
Signed-off-by: Steve French <stfrench@microsoft.com>
(cherry picked from commit e39df24169)
Change-Id: Id02f0a50c2ba3505bb8f5538f489e451c9423c0b
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
2022-11-21 11:35:58 +08:00
Wang Panzhenzhuan
ae4ab91e5e media: i2c: s5kjn1: fix low probability mipi error issue
1. add delays in setting to fix probability wrong reg writed.
2. add register setting readback check support.

Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
Change-Id: If74df1f175d09e63c33b47a63c321c024f70c6f2
2022-11-21 10:04:39 +08:00
David Wu
fe04d8bac2 ARM: dts: rockchip: rk3036: Change the property for emmc/sdio/sdmmc nodes
Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: I332b505d937eb97a26400ff9882b3d58401a00bf
2022-11-21 10:02:35 +08:00
Jason Zhu
7fdefc3445 ARM: dts: rockchip: rv1106: delete unused clk info of acodec
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Change-Id: Iadd90b902ca73b576ba6c1d8c6013dc6d9375709
2022-11-19 15:48:43 +08:00
Jason Zhu
59f45fdccd ASoC: codecs: rv1106_codec: use interface set_sysclk to set clk
Instead of setting clk by node mclk_cpu.

Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
Change-Id: Ib54d219d4f0ad488722524aac7effb4b019d1b7e
2022-11-19 15:48:43 +08:00
wlq
276bad482b arm64: dts: rockchip: px30: disabled uart dma
Change-Id: I1a1343459c0a67393d22be3101cd8d269a2f26f0
Signed-off-by: Wuliangqing <wlq@rock-chips.com>
2022-11-19 15:45:53 +08:00
Finley Xiao
57b8f4d774 clk: rockchip: rk3036: leave apll for core, mac and lcdc only
In order not to affect other clocks, remove the apll from the
parent list of other clocks and only core, mac and lcdc can
select apll as parent.

Change-Id: I58b995f8ccf69c6564f74b5823f618a186030d70
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
2022-11-19 15:44:53 +08:00
David Wu
8b37dde38e ARM: dts: rockchip: rk3036: Keep the pwm pins default pull state
In order to ensure the accuracy of PWM voltage regulation, keep
the pull state of PWM consistent with the default; The pull state
has little effect on other case such as output mode.

Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: I4d4813a9426e45a1c3f3690603b63c57addcdb73
2022-11-19 15:42:23 +08:00
Steven Liu
99f754dcaa Revert "ARM: dts: rockchip: Fix UART pull-ups on rk3036"
This reverts commit eb04688f6f.

Signed-off-by: Steven Liu <steven.liu@rock-chips.com>
Change-Id: Ifbc43c2b6ba476fcc3c50c71b21b05aee4dd91c4
2022-11-19 15:38:27 +08:00
Steven Liu
7a35e84b14 Revert "ARM: dts: rockchip: Fix UART pull-ups on rk3066a"
This reverts commit dd2f0befb2.

Signed-off-by: Steven Liu <steven.liu@rock-chips.com>
Change-Id: I6efc99eea9740888fa0b7b311435c394381c7d9f
2022-11-19 15:38:27 +08:00
Steven Liu
f340fd1bf0 Revert "ARM: dts: rockchip: Fix UART pull-ups on rk312x"
This reverts commit 026248a29f.

Signed-off-by: Steven Liu <steven.liu@rock-chips.com>
Change-Id: I71c65cee85fbe72b7bb6aefbf610cb2e6264ec3a
2022-11-19 15:38:27 +08:00
David Wu
54162171af net: phy: rk630phy: Add agc offset for initial flow
Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: Ibea8e37f7cf6e462ef281981c2529b6126287b9f
2022-11-19 15:34:50 +08:00
XiaoDong Huang
9cc95efeb5 PM / devfreq: rockchip_bus: add support for rk3588
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
Change-Id: If03fa9331168187dabf6f97cc38354f0b560fc1c
2022-11-19 15:26:03 +08:00
XiaoDong Huang
8fedbbb946 PM / devfreq: rockchip_bus: support parse soc-bus-table
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
Change-Id: I76ff30103cfa93289b9ecde0d95f42f960284e9b
2022-11-19 15:26:03 +08:00
Shuangjie Lin
1cde5fb12c driver: rknpu: Fix system interrupt signal cost rknpu wait error
Using wait_event_timeout() replace wait_event_interruptible_timeout().

Change-Id: I53481d25cb96a86a6262672bb65e9a2ed942164a
Signed-off-by: Shuangjie Lin <shuangjie.lin@rock-chips.com>
2022-11-19 15:00:55 +08:00
Yiqing Zeng
70de50acbb ARM: dts: rockchip: support ov13850/gc8034 for rk3288-evb-rk808-linux
Change-Id: I84c7e782a99270a29de0976b97784ccc73b35bad
Signed-off-by: Yiqing Zeng <zack.zeng@rock-chips.com>
2022-11-19 14:39:21 +08:00
Yiqing Zeng
14a26d6f6b ARM: configs: rockchip_linux_defconfig: add gc8034 config
CONFIG_VIDEO_GC8034=y

Change-Id: I44c5cf192936f668a9b3c9322136781070435e48
Signed-off-by: Yiqing Zeng <zack.zeng@rock-chips.com>
2022-11-19 13:19:22 +08:00
Yiqing Zeng
7cfaa4a10f ARM: configs: rockchip_linux_defconfig: enable rkisp1 config
CONFIG_VIDEO_ROCKCHIP_RKISP1=y

Change-Id: I11f913c8f04efd2eb53fb63d5ebe24c0e072d915
Signed-off-by: Yiqing Zeng <zack.zeng@rock-chips.com>
2022-11-19 12:05:08 +08:00
Jianqun Xu
e733a7a8b3 clk: rockchip: fix to SIP_V2 for rk3288
Fixes: d2b92a90ea ("clk: rockchip: support setting ddr clock via SCPI and SIP Version 2 APIs")

Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: I7521443f50dbe3049fd8a08c769a74f5e364334a
2022-11-19 11:59:55 +08:00
Jianqun Xu
a6a8f8d0a3 clk: rockchip: rk3288 set aclk_peri_niu as critical
Fixes: 938e2f2261 ("clk: rockchip: drop use of rockchip_clk_protect_critical()")

Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
Change-Id: I65b4dd2f380d30d7638212234ff23dc17e2d4349
2022-11-19 11:55:47 +08:00