Commit Graph

1080074 Commits

Author SHA1 Message Date
Bian Jin chen
188560e5f3 net: wireless: rockchip_wlan: bcmdhd: Fix compilation errors on clang-r487747c.
Signed-off-by: Bian Jin chen <kenjc.bian@rock-chips.com>
Change-Id: Iab5692494dd926d3b186d5d0b75a74b1624bd874
2023-06-16 18:07:19 +08:00
Jon Lin
a25a517ce4 spi: rockchip: Modify the slave tx finish judgement
The SR register of the old version IP SPI slave tx transmission
process will remain in a busy state, so it needs to be processed
by determining the tx empty status bits filed.

Change-Id: If71ed842e2b7aed3cfe22d7bc401ea2d0bb1409b
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2023-06-16 10:05:12 +08:00
Damon Ding
68382fc3ee drm/rockchip: vop: add check if global/pixel alpha both enable
VOP in RK3308 supports global alpha and pixel alpha.
Only one alpha mode can be enabled at the same time.

Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: Ia749deeb82a31b7e5298ca14586bbfb75606469f
2023-06-16 09:58:34 +08:00
Damon Ding
21815401b7 drm/rockchip: debugfs: add support to enable color bar
Enable horizontal color bar:
    echo 1 > /sys/kernel/debug/dri/0/video_port0/color_bar
Enable vertical color bar:
    echo 2 > /sys/kernel/debug/dri/0/video_port0/color_bar
Disable color bar:
    echo 0 > /sys/kernel/debug/dri/0/video_port0/color_bar

Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: I63ed8f2a3a2fafc852151fda03b91b926a8e4470
2023-06-16 09:57:05 +08:00
Xing Zheng
4700405386 ASoC: rockchip: rk817-codec: remove some useless SOC_ENUM_SINGLE_DECLs
Change-Id: Ibc351c03518152ac463f54aa1fa8640083352aa8
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2023-06-16 09:51:41 +08:00
Elaine Zhang
eebe228530 clk: rockchip: rk3568: fix pwm clk register description
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: I30a8c97c95be15ea23a485e9e429fd575605b38a
2023-06-16 09:49:51 +08:00
Xing Zheng
ed36cde37c ASoC: rockchip: rk817-codec: Fix a large number of mclk counts being enabled
If it is not controlled, when the path is configured after
resume, the clock will be continuously turn on to increase
the clock count.

Therefore, we can count and control the switch of clock
separately according to the current status of playback and
capture, so as to avoid that mclk is accidentally turned off
when playback and capture exist at the same time, causing
the other stream to fail to work.

For example:
- before:
  mclk_sai0          2        2        0    11289600          0     0  50000
     mclk_sai0_out2io       1        1        0    11289600          0     0  50000
        mclk_sai0_to_io      16       16        0    11289600          0     0  50000

- after:
  mclk_sai0          2        2        0    11289600          0     0  50000
     mclk_sai0_out2io       1        1        0    11289600          0     0  50000
        mclk_sai0_to_io       2        2        0    11289600          0     0  50000

Change-Id: I78ec18c7ffc42f548e82357bcf20701aa057f15d
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2023-06-16 09:39:22 +08:00
Xing Zheng
b2f8e21628 ASoC: rockchip: rk817-codec: re-support recover playback/capture path after resume
We can configure automatically playback/capture path via
the controlling of 'Resume Path'.

Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Change-Id: Ie00e7a673bff068aa922e322d833106f4cbacfde
2023-06-16 09:39:22 +08:00
Jon Lin
d8d884fca6 spi: rockchip-test: Check the spi sync actual length
Change-Id: I4a189c50cc9aa9c6151e9efcfa5eca59eb35f44a
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2023-06-16 09:30:52 +08:00
Jon Lin
0f7fb69548 spi: rockchip: Add transfer completion wait
Add transfer completion wait to improve software compatibility,
1.Support to adjust he timeount value if needed
2.Return the fail result when spi slave abort

Choose to discard the rx fifo data after slave abort instead of
attempting to modify xfer->len to change the framework layer
mechanism.

Change-Id: I6bb1ba0ba12ad7486117aff5e948616c8e768418
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2023-06-16 09:30:52 +08:00
Jon Lin
a1ab78c641 mtd: spinand: xincun: Add code
XCSP2AAPK

Change-Id: I205dbef7f1f3b24c4897bfe0ffd4c0b67ce04396
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2023-06-16 09:10:17 +08:00
Xing Zheng
0c8ca14156 ASoC: rockchip: sai: keeping naming style of 'rockchip_' prefix for sai_suspend/resume
Change-Id: I33a4d88acf8f12ea0f1440cf8ce4bd2a57ea466e
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2023-06-14 21:15:48 +08:00
Xing Zheng
f002e5acff ASoC: rockchip: sai: Add support system PM suspend/resume
Change-Id: Iafce14494982a3827f0a43409cfffe53307b7193
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
2023-06-14 21:15:48 +08:00
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