Commit Graph

1080061 Commits

Author SHA1 Message Date
Luo Wei
bccf896daf arm64: dts: rockchip: add rk3588 vehicle evb v21 dts for demo
Signed-off-by: Luo Wei <lw@rock-chips.com>
Change-Id: I9cdd03881fa8ee954f6fcdcfb17b3129677180bd
2023-06-14 19:44:00 +08:00
Sandy Huang
77c6054e48 drm/rockchip: vop: fix alpha mode error for vop lite
1. vop lite can't support pixel-alpha + scale and can support global
alpha + scale;
2. global alpha must be non-premul alpha mode;
3. vop lite and vop full premul alpha config bit is reversed;
4. vop full add premul and non-premul config from userspace;

Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: Ic42892eac39f07a41d46ed1a77398862f37894c0
2023-06-14 19:39:38 +08:00
Sandy Huang
15a4dfb123 drm/rockchip: vop2: fix esmart pd always be closed and lead to show black screen
without this commit, esmart pd will always be closed when uboot not use
esmart1/2/3 to show logo(enable smart pd), and lead to esmart1/2/3 layer
show black screen.

Fixes: c4a31b3e3a ("drm/rockchip: vop2: power on esmart pd without ref count")
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I20474745a31a813b97223345a4582a3e9da80cfe
2023-06-14 19:36:55 +08:00
Tao Huang
d322685333 mm/readahead: Fix for GKI
Fixes: c73d891d8e ("mm: optimize readahead for the file with fscrypt")
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I1db7d429e5ce34330d5c2d6737b520d3b6779977
2023-06-14 16:17:22 +08:00
Zhen Chen
73b5dde370 MALI: bifrost: Not to call kbase_ipa_reset_data() if rockchip simple-power-model is used
When rockchip simple-power-model is used,
kbase_ipa_reset_data() for the default mali power models should not be called.

The issue is exposed by the following exception logs:
[    3.406039] ------------[ cut here ]------------
[    3.406056] DEBUG_LOCKS_WARN_ON(lock->magic != lock)
[    3.406081] WARNING: CPU: 1 PID: 154 at kernel/locking/mutex.c:955 __mutex_lock_common+0x974/0xbc0
[    3.406094] Modules linked in:
[    3.406111] CPU: 1 PID: 154 Comm: kworker/u16:3 Not tainted 5.10.157 #110
[    3.406118] Hardware name: Rockchip RK3588 EVB1 LP4 V10 Board (DT)
[    3.406132] Workqueue: devfreq_wq devfreq_monitor
[    3.406144] pstate: 60c00009 (nZCv daif +PAN +UAO -TCO BTYPE=--)
[    3.406152] pc : __mutex_lock_common+0x974/0xbc0
[    3.406161] lr : __mutex_lock_common+0x974/0xbc0
...
[    3.406342] Call trace:
[    3.406351] __mutex_lock_common+0x974/0xbc0
[    3.406361] mutex_lock_nested+0x50/0x5c
[    3.406374] kbase_ipa_reset_data+0x40/0x154
[    3.406384] kbase_devfreq_status+0x60/0x90
[    3.406394] devfreq_simple_ondemand_func+0x34/0x104
[    3.406401] update_devfreq+0x60/0xf0
[    3.406408] devfreq_monitor+0x34/0x9c
[    3.406421] process_one_work+0x218/0x358
[    3.406429] worker_thread+0x230/0x4e0
[    3.406439] kthread+0x144/0x160
[    3.406449] ret_from_fork+0x10/0x30

Fixes: 68c4487930 ("MALI: bifrost: not to call kbase_ipa_init() if rockchip simple-power-model is used")
Change-Id: I5fb5d4b6e63df77e6ea45ab3c60d627e3d0a03a2
Signed-off-by: Zhen Chen <chenzhen@rock-chips.com>
2023-06-14 15:05:49 +08:00
Caesar Wang
f0a0c64287 arm64: dts: rockchip: add camera dtsi on rk3562-evb2-ddr4-v10-linux.dts
Including rk3562-evb2-cam.dtsi for dual camera configuration in
rk3562-evb2-ddr4-v10-linux.dts

Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Change-Id: If454c0561efd7936a266b9a224bf35f3dc68ba38
2023-06-14 14:34:49 +08:00
Caesar Wang
7836b77050 arm64: dts: rockchip: Assign VOP_ACLK to 750MHZ for rk3588-linux.dtsi
On the RK3588 platform, 8K display is an important feature, but it also
increases system power consumption if the product is concerned about
power consumption, 8K can be turned off by default.

Currently, support for 8K display is enabled by default on Linux
platforms, requiring an increase in the aclk of vop to 750MHZ.

Tested on RK3588 EVB, as below:

root@linaro-alip:/# cat /sys/kernel/debug/clk/clk_summary |grep aclk_vop
aclk_vop    1        4        0   750000000          0     0  50000

Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Change-Id: I6f4dd01140fe8fc9115ebc4cf8100f84f1592bbf
2023-06-14 11:41:00 +08:00
Damon Ding
6fe07fe661 pwm: rockchip: enable dclk scale function in oneshot mode
This is a workaround, an uncertain waveform will be
generated after oneshot ends. It is needed to enable
the dclk scale function to resolve it. It doesn't
matter what the scale factor is, just make sure the
scale function is turned on, for which we set scale
factor to 2.

Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: If34837194cba89570a58a993d7133a852955f69c
2023-06-13 16:22:57 +08:00
Tao Huang
8c43b7ff27 soc: rockchip_system_monitor: Fix TPYE -> TYPE typo
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I815c6e01039c0ba6469b575cf86349e6b87148c5
2023-06-13 15:28:39 +08:00
Cai Wenzhong
afbe5ad755 media: i2c: max96712: version 1.05.00
Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Change-Id: I683859243f34981c5bbc594d45360d79139e04a1
2023-06-13 14:34:11 +08:00
Wyon Bi
3536a204ce drm/panel: maxim-max96752f: Fix pin assignment
Fixes: 375777288b ("drm/panel: maxim-max96752f: Add HannStar HSD123JPW3-A15 panel")
Signed-off-by: Wyon Bi <bivvy.bi@rock-chips.com>
Change-Id: I73ae495870af9d230bd6a16bed8205a03841bac0
2023-06-13 11:57:26 +08:00
Ziyuan Xu
0950a09b27 soc: rockchip: tb_service: unmask mcu_done after all registered cb were finished
Make sure the next action after the higher priority registrant.

Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
Change-Id: I8bc99294f28aaeb4e574a45d17264cfe3317fbdd
2023-06-13 10:18:21 +08:00
Finley Xiao
413f050fd6 arm64: dts: rockchip: rk3588s: Fix low-volt-mem-read-margin
Fixes: 038080da03 ("arm64: dts: rockchip: rk3588s: Modify npu opp table")

Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I96a2850508f736fdd033b568d8f5b981cba42c50
2023-06-12 14:19:46 +08:00
Elaine Zhang
ff9bbf0db5 arm64: dts: rockchip: rk3588: Fixed the rkvenc1 init frequency
Make sure that the init frequency is within the design range

Fixes: fd4c1a5ee2 ("arm64: dts: rockchip: rk3588: Fixed the init frequency")
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: I62d9f2c5c87663f17b0f1dbff9b2109d05b5a5fa
2023-06-12 11:42:42 +08:00
Zefa Chen
fefe9843bc phy: rockchip: samsung-dcphy: restart rx after apb reset when rx is streaming
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I9e5e8607b8c824daca8ea820d785323e0ac8c8fa
2023-06-12 10:52:59 +08:00
Huibin Hong
33f4a54037 fiq_debugger: tty write to tty fifo
It means printf(user) write log to tty fifo, to reduce printf time.

Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
Change-Id: Iaf55719e7089a7c3b3638e2976c97868eed3868e
2023-06-09 19:40:12 +08:00
Shawn Lin
05bd7e4fe2 ARM: dts: rockchip: rv1106 boards: Add sdmmc idle state support
In order to avoid power leak for affacting SD cards, add idle state
to all related boards for RV1106 series and change default state to
normal state for the driver to totally control it.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: I80089eecb2ce1d41f8aaca9a17f913f5fa971514
2023-06-09 15:56:25 +08:00
Shawn Lin
c44a5ce055 ARM: dts: rockchip: rv1126: Add sdmmc idle state support
In order to avoid power leak for affacting SD cards, add idle state
to all related boards for RV1126 and change default state to normal
state for the driver to totally control it.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: If00ed994eb2a467bd5ef16fd52f51b490bea4b27
2023-06-09 15:54:27 +08:00
Shawn Lin
3dea3e0664 ARM: dts: rockchip: add idle state for sdmmc of rv1106-pinctrl
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: I77707268214b2d6433dc386b45015bb9d21b4cb2
2023-06-09 15:21:25 +08:00
Shawn Lin
5c80c612ad ARM: dts: rockchip: add idle state for sdmmc of rv1126-pinctrl
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: Ie72c4c8ac311aab1b02fb8c514c8652260aaa0e6
2023-06-09 15:21:21 +08:00
Cai Wenzhong
e11e649ac1 media: i2c: max96712: version 1.04.00
Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Change-Id: Icfd197f3bdf68f104bad82121b041962e3f3aa2e
2023-06-09 15:07:36 +08:00
Zefa Chen
2f2bda6e44 media: rockchip: vicap: fixes s_selection, support to set crop area
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Ia87c372d7b372bcb74a9ecf09b1789153baf51b9
2023-06-09 11:07:27 +08:00
Zefa Chen
1a955904dc media: rockchip: vicap: only enum outout formats that terminal sensor support to use
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I58d67a9c8ba65e18fd9031d3fc49f51beb47f067
2023-06-09 11:00:50 +08:00
Zefa Chen
7e9e093b8c media: rockchip: vicap: add security testing for output format
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I6c48543295eeef7c67e192bf16da44e533c07f09
2023-06-09 11:00:41 +08:00
Wesley Yao
fc947972ad arm64: dts: rockchip: rk3528-demo: Enable dfi
Signed-off-by: Wesley Yao <wesley.yao@rock-chips.com>
Change-Id: I10b208e45b091d7e0090b6fca7ce68d35e7f2f48
2023-06-09 10:48:28 +08:00
Wesley Yao
d285000cc8 arm64: dts: rockchip: rk3528-evb: Enable dfi
Signed-off-by: Wesley Yao <wesley.yao@rock-chips.com>
Change-Id: Iccc421ab21a05f3f0f74a01dd6c334d0cc0b27ca
2023-06-09 10:48:28 +08:00
Wesley Yao
31dd4c38e5 arm64: dts: rockchip: rk3528: Add ddr related nodes
Signed-off-by: Wesley Yao <wesley.yao@rock-chips.com>
Change-Id: I9d728a6a26c1156976958d242297e2a14ca28c66
2023-06-09 10:48:28 +08:00
Wesley Yao
a822375383 PM / devfreq: rockchip_dmc: Add support for rk3528
Signed-off-by: Wesley Yao <wesley.yao@rock-chips.com>
Change-Id: I90b09d044769747e8858c23f3087c00b2fcb2f12
2023-06-09 10:48:28 +08:00
Wesley Yao
1f98b6284d dt-bindings: devfreq: rockchip_dmc: Add rk3528 support
Signed-off-by: Wesley Yao <wesley.yao@rock-chips.com>
Change-Id: I3150649f8f9f3083d54ba80de706937b4a0852da
2023-06-09 10:48:28 +08:00
Wesley Yao
daf1596e95 PM / devfreq: rockchip-dfi: Add support for rk3528 dfi
Signed-off-by: Wesley Yao <wesley.yao@rock-chips.com>
Change-Id: Iaf29eebe4ccf3e9a25f5a76cd727af2410d514b3
2023-06-09 10:48:28 +08:00
Wesley Yao
61b70d7bc1 dt-bindings: devfreq: rockchip_dfi: Add rk3528 support
Signed-off-by: Wesley Yao <wesley.yao@rock-chips.com>
Change-Id: I2ecbe8788d046ce745157042b9038380d732590d
2023-06-09 10:48:28 +08:00
Tao Huang
e0716c0140 media: i2c: lt7911uxc: Fix print format string
u64 format should be %llu.

Fixes: db473bd423 ("media: i2c: lt7911uxc: update driver to V0.0X01.0X07")
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Iadd65d15d690222da7561a9ea67bd70082d79b45
2023-06-08 19:04:04 +08:00
Weiwen Chen
d600ae58b7 ARM: configs: rockchip: add uvc to rv1106-rndis.config
Signed-off-by: Weiwen Chen <cww@rock-chips.com>
Change-Id: I83de76ba4e7a0827f0bcfc4840db1c1b4adcacc7
2023-06-08 16:32:47 +08:00
Cai YiWei
5cad0068f7 media: rockchip: isp: fix isp32 and lite buf output err due to mi on/off
Change-Id: I7d78a12861c075e99f3005af5b8ffab2958a10b2
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2023-06-08 16:32:00 +08:00
XiaoDong Huang
9004c277ca dt-bindings: suspend: rk3528: add sleep pin defines
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
Change-Id: I6bffbb885c5d09bbf0c92db32112eac246f2bc56
2023-06-08 14:27:49 +08:00
XiaoDong Huang
68a0cca2c3 soc: rockchip: pm_config: support sleep-pin-config
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
Change-Id: I93f52766bfa1ce0cf97d826dc1cad5af0134a4c1
2023-06-08 14:27:49 +08:00
Wu Liangqing
1e135f352e arm64: dts: rockchip: add rk3588-evb7-v11 board
Change-Id: If9788078dd3a428e7be8e102dff274a5aecd10a6
Signed-off-by: Wu Liangqing <wlq@rock-chips.com>
2023-06-08 14:19:31 +08:00
Elaine Zhang
fd4c1a5ee2 arm64: dts: rockchip: rk3588: Fixed the init frequency
Make sure that the init frequency is within the design range

Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: I1aea3638e0aa70e425410e71060ce89fa96e1869
2023-06-08 11:20:12 +08:00
Zhen Chen
eaf544c6d9 Mali: bifrost: disable tiler heap reclaiming temporally
Comes from mail "230423: 15:04: ARM support: Yao: ".

This patch and fw_230426 can resolve the occurrence
of "Unhandled Page fault" and CS_FAULTs exceptions
in the stress test "Dvfs+Gl_retrace+Rockx+emmc".

In another mail, Yao said "before any further suggestion or conclusion from RD,
you could temporally WA the issue by disable tiler heap reclaim".

Signed-off-by: Zhen Chen <chenzhen@rock-chips.com>
Change-Id: If06aa8e207b05f1a277aae9a86d1ff76b9a9f93b
2023-06-08 11:18:42 +08:00
Zou Dengming
c5cdbfc2eb arm64: dts: rockchip: rk3528-evb: prepare bt sco settings
we don't directly add bt-sco cards because it may take some
i2s/pcm, which may use dma, but dmas may limit.
so we just prepare this settings, then if any one who want to
support bt-sco, he/she can just add dts in board-level dtsi.

For example diff in "rk3528-evb1-ddr4-v10.dtsi":

+&bt_sco {
+       status = "okay";
+};
+
+&bt_sound {
+       status = "okay";
+};
+
+&sai0{
+       status = "okay";
+};

The default pcm/i2s setting is:
Format: PCM, dsp_a, MSB first, short sync, rising edge and 1 bclk.
rockchip soc: master; Bt controller: slave

Change-Id: I64e76c2ae4b8449e2ee345587e080b3a70521ed9
Signed-off-by: Zou Dengming <marsow.zou@rock-chips.com>
2023-06-07 14:14:25 +08:00
Steven Liu
dcc194b4d4 arm64: dts: rockchip: rk3528: Split I2Sx pinctrl
Signed-off-by: Steven Liu <steven.liu@rock-chips.com>
Change-Id: Ibfc99cfbd5ef324f549ae356059b7fc7ab45fe96
2023-06-07 13:13:25 +08:00
Zhang Yubing
1d030d294e drm/rockchip: dw-dp: notify audio when enable/disable dptx
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
Change-Id: I61e07cce16f8e0a30e6a67ff508be03a5b249563
2023-06-06 19:47:14 +08:00
Jianwei Fan
6676316bd0 media: i2c: lt6911uxe/c: set default timing
Change-Id: Id22160e280ef23d93e9ad8cbe5ab972eb6f98c11
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
2023-06-06 19:45:48 +08:00
Jianwei Fan
db473bd423 media: i2c: lt7911uxc: update driver to V0.0X01.0X07
1.fix driver probe sequence.
2.set default timing
3.fix dcphy params
4.fix hotplug event report

Change-Id: Ibd97f1498169798ff2a73e23330fdcb51b0a27ef
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
2023-06-06 11:13:38 +00:00
Jianwei Fan
db77afeb1d media: i2c: lt6911uxe: add interlaced support
Change-Id: I09156961998940fa78c87e591c3d89982d91868d
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
2023-06-06 17:37:36 +08:00
Caesar Wang
6e858e1a97 arm64: configs: update camera sensors for rockchip_linux_defconfig
1/ Enable CONFIG_VIDEO_LT6911UXE for rk3588 evb1 extboard
2/ Enable CONFIG_VIDEO_OV13855 for rk3588s-tablet
3/ Enable CONFIG_VIDEO_OV50C40 rk3588s tablet & evb1.

Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Change-Id: I78e7caeb11b7f1db4a7ec74aaba681e895bcc843
2023-06-06 17:32:33 +08:00
Caesar Wang
ff60528776 arm64: dts: rockchip: add camera sensor configuration for rk3588s-evb1-lp4x-v10-linux.dts
Add lt7911d type-c/DP to MIPI CSI-2 bridge dts configuration as an example

Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Change-Id: I3ccd33f0f8ecf991c3c0ea4e6d6574009dc0e04c
2023-06-06 10:58:04 +08:00
William Wu
27312ce9d8 phy: rockchip: naneng-combphy: Fix Rx squelch for RK3528 U3
This patch adjust the RK3528 U3 Rx squelch input filler
bandwidth to 3'b110 which is used for rx_lfps, reduce the
bandwidth to avoid filtering valid superspeed data.

With this patch, it can fix the issue that Kingston U3 Disk
(idVendor=0951, idProduct=1666, bcdDevice= 1.10) read error
on RK3528 platforms.

Change-Id: Ifa4eac24bbdebe020db356ba45dae146f4df22f1
Signed-off-by: William Wu <william.wu@rock-chips.com>
2023-06-06 09:30:14 +08:00
William Wu
ae3a28752e phy: rockchip: naneng-combphy: Fix Rx squelch for RK3562 U3
This patch adjust the RK3562 U3 Rx squelch input filler
bandwidth to 3'b110 which is used for rx_lfps, reduce the
bandwidth to avoid filtering valid superspeed data.

With this patch, it can fix the issue that Kingston U3 Disk
(idVendor=0951, idProduct=1666, bcdDevice= 1.10) read error
on RK3562 platforms.

Change-Id: Idb667d159f9dba6b1de0a9ec04af9dae2d065927
Signed-off-by: William Wu <william.wu@rock-chips.com>
2023-06-06 09:30:14 +08:00
William Wu
4bbb16bf87 phy: rockchip: naneng-combphy: Fix Rx squelch for RK3568 U3
This patch adjust the RK3568 U3 Rx squelch input filler
bandwidth to 3'b110 which is used for rx_lfps, reduce the
bandwidth to avoid filtering valid superspeed data.

With this patch, it can fix the issue that Kingston U3 Disk
(idVendor=0951, idProduct=1666, bcdDevice= 1.10) read error
on RK3568 platforms.

Change-Id: I27410c5702862df2d8829a2ca3c2c1d9f57885be
Signed-off-by: William Wu <william.wu@rock-chips.com>
2023-06-06 09:30:14 +08:00