Commit Graph

1080836 Commits

Author SHA1 Message Date
Ziyuan Xu
d5ec07e871 ARM: dts: rockchip: add clock refs for rv1106-tb*_mmc
Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
Change-Id: I1d4a94a3ba522fcb4d9ff44be0d8324a813fd81d
2023-11-01 17:09:40 +08:00
Ziyuan Xu
b908341ad3 soc: rockchip: thunderboot_mmc: enable clk_emmc before accessing
Avoid the *clk_emmc* are disabled by *unused_off* when the ramdisk is
too large.

Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
Change-Id: I38b6f33ab55fbb65781ee266237382c977848e68
2023-11-01 17:07:49 +08:00
Andy Yan
14fe560ebd drm/rockchip: vop: check for valid sdr2hdr eoth
Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Change-Id: I8de0881df1c49f3b7365dbd6b33a716cd746ad98
2023-11-01 11:22:00 +08:00
Andy Yan
3f00c490d3 drm/rockchip: vop2: make sure the bpp is not zero
The bpp should not be a zero value.

Signed-off-by: Andy Yan <andy.yan@rock-chips.com>
Change-Id: I1a1f9214087639f63c101d0d5c68ee470c852649
2023-11-01 11:22:00 +08:00
LiuDiMing Lin
4fec67500f ARM: rv1106-evb.config: enable CONFIG VIDEO SC450AI/SC401AI/SC200AI
Signed-off-by: LiuDiMing Lin <fenrir.lin@rock-chips.com>
Change-Id: I8541cd64556eca8f958a4becc43ac22c4253789a
2023-10-31 20:13:33 +08:00
LiuDiMing Lin
6aef36d7b6 ARM: dts: rockchip: rv1106-evb-cam: add sc450ai/sc401ai/sc200ai
Signed-off-by: LiuDiMing Lin <fenrir.lin@rock-chips.com>
Change-Id: I3349cb999e9a204e76ad883e25af85c1762c6866
2023-10-31 20:13:25 +08:00
LiuDiMing Lin
ef1fb629c5 media: i2c: add sc450ai support
Signed-off-by: LiuDiMing Lin <fenrir.lin@rock-chips.com>
Change-Id: Id8e49af4fe64557238a226da6abbb6b80d849a44
2023-10-31 20:13:13 +08:00
Zefa Chen
ccc60a6249 media: rockchip: vicap support to do reset in online mode
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Ibea46658e5d9a41b4f5685838230321e9b71032e
Signed-off-by: Mingwei Yan <mingwei.yan@rock-chips.com>
2023-10-31 20:11:26 +08:00
Mingwei Yan
5c222a001f media: rockchip: isp support to do reset in online mode
Signed-off-by: Mingwei Yan <mingwei.yan@rock-chips.com>
Change-Id: I32a2aa91258130a69ec09e5743e27f8c85279322
Signed-off-by: Mingwei Yan <mingwei.yan@rock-chips.com>
2023-10-31 20:11:26 +08:00
Sugar Zhang
a86b62fb9b arm64: dts: rockchip: rk3588 boards: Fix bitclock-inversion
simple-audio-card,bitclock-inversion is a boolean property.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I2f69c4fd79b6f2b2cc06d69f720671227901482c
2023-10-31 20:11:04 +08:00
Sugar Zhang
1e839d738b arm64: dts: rockchip: rk356x boards: Fix bitclock-inversion
simple-audio-card,bitclock-inversion is a boolean property.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Ic8f1028e97a29e0af257a860be9b2022511c7a9a
2023-10-31 20:10:46 +08:00
Sugar Zhang
6131b1b779 arm64: dts: rockchip: rk3528 boards: Fix bitclock-inversion
simple-audio-card,bitclock-inversion is a boolean property.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I019257ca1585bcb0c531589bc8a8205842cff00d
2023-10-31 20:10:24 +08:00
Sugar Zhang
e3f6c3e4c5 arm64: dts: rockchip: rk3399-tve1205g: Fix bitclock-inversion
simple-audio-card,bitclock-inversion is a boolean property.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I7a9d17eebe4b5037f3976a8b70e5bef44d24cdd3
2023-10-31 20:09:18 +08:00
Sugar Zhang
0f41d6c903 arm64: dts: rockchip: rk3326-evb: Fix bitclock-inversion
simple-audio-card,bitclock-inversion is a boolean property.

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I141b6edcfbcbdafffed1d29b2b9273ac461e894e
2023-10-31 20:08:48 +08:00
Herman Chen
a1410c65b3 video: rockchip: mpp: Add uapi header
Change-Id: Id419e6a57adaf37371be8757b2435db0cffe7350
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
2023-10-31 20:04:37 +08:00
Ziyuan Xu
ef83daca54 soc: rockchip: tb_service: add memory-no-free property support
Some product scenarios would like the rtos's memory space always been
exclusive.

Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
Change-Id: Ib71da6b355995ab5b12ddfdf346bbce8e1852745
2023-10-31 19:08:04 +08:00
Zefa Chen
2c17810b09 media: rockchip: vicap: fixes warning of clk disable when dev suspend
iclk_csihost1 already disabled
WARNING: CPU: 1 PID: 1977 at drivers/clk/clk.c:1040 clk_core_disable+0x88/0x220
Modules linked in: bcmdhd r8168
CPU: 1 PID: 1977 Comm: binder:315_4 Not tainted 6.1.25 #139
Hardware name: Rockchip RK3588 EVB1 LP4 V10 Board (DT)
pstate: 604000c9 (nZCv daIF +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : clk_core_disable+0x88/0x220
lr : clk_core_disable+0x88/0x220
sp : ffffffc01221b9a0
x29: ffffffc01221b9a0 x28: ffffff8102014d28 x27: 0000000000000000
x26: ffffff8102014c10 x25: ffffffc00a22b000 x24: ffffffc00a171000
x23: ffffff814e3e5c80 x22: ffffffc00a222000 x21: ffffffc00a222000
x20: ffffff810024fe00 x19: ffffff810024fe00 x18: ffffffc00add90b0
x17: 0000000000000013 x16: ffffffffffffffff x15: 0000000000000004
x14: ffffffc009dbdf18 x13: 0000000000003fff x12: 0000000000000003
x11: 00000000ffffbfff x10: c0000000ffffbfff x9 : e683b01efecc8800
x8 : e683b01efecc8800 x7 : 205b5d3835343931 x6 : 342e39322020205b
x5 : ffffffc00a1f37c7 x4 : ffffffc01221b6d7 x3 : 0000000000000000
x2 : 0000000000000000 x1 : ffffffc01221b740 x0 : 000000000000001e
Call trace:
 clk_core_disable+0x88/0x220
 clk_core_disable_lock+0x9c/0x130
 clk_disable+0x20/0x2c
 rkcif_sleep_suspend+0x3c/0x6c

Fixes: af37f2152d ("media: rockchip: vicap fixes suspend/resume")
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I49f7adf948c9049ec6ad8fea8f8089e991e39b91
2023-10-31 18:18:10 +08:00
Felix Zeng
a7c7116f78 driver: rknpu: Fix probe failed due to missing interrupt names in DTS in kernel 6.10
Signed-off-by: Felix Zeng <felix.zeng@rock-chips.com>
Change-Id: Ie109c814b0c4f3e6b6ddc0c6e12fd58a2e645036
2023-10-31 10:07:35 +08:00
Tao Huang
ce595e7f0c ASoC: rockchip: utils: include rockchip_utils.h for missing prototype
sound/soc/rockchip/rockchip_utils.c:115:6: warning: no previous prototype for 'rockchip_utils_get_performance' [-Wmissing-prototypes]
sound/soc/rockchip/rockchip_utils.c:135:6: warning: no previous prototype for 'rockchip_utils_put_performance' [-Wmissing-prototypes]

Fixes: ff0c025724 ("ASoC: rockchip: Introduce rockchip utils common API")
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ida15cf7c465fbabea0f0db9bfd21f4577e9e8dbd
2023-10-31 09:23:33 +08:00
Jiahang Zheng
b368ed36e3 arm64: dts: rockchip: Add rk3562-evb2-ddr4-v10-linux-amp.dts
Signed-off-by: Jiahang Zheng <jiahang.zheng@rock-chips.com>
Change-Id: I9770e87f0002cd170867f7d717732c9785b2e732
2023-10-30 19:30:49 +08:00
Sandy Huang
a662526fcb drm/fourcc: add and update rockchip modifier format define
1. update rockchip tiled modifier format define;
2. add rockchip rfbc modifier format define, rfbc is rockchip framebuffer
compression format, it's will supported by rockchip video decoder, RGA and VOP
modules, and the superblocks size is 64x4.

Fixes: f727d3ad8e ("drm/fourcc: Add definitions for Rockchip vendor and VPU tiled format")
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: Ice06eda4819254ba670a7231836cabe46bc38137
2023-10-30 19:30:13 +08:00
Jon Lin
c050db5c79 mtd: spi-nor: gigadevice: Support gd25lb256
Change-Id: I6934e4bfd0ded64f05ea6dc738d73d6ea1131f42
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2023-10-30 19:26:36 +08:00
Zefa Chen
ebce693485 media: rockchip: vicap support to set quick stream
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Idbf038d79080b394c5bb614a0b04039964624ab5
2023-10-30 19:26:11 +08:00
Zefa Chen
368a33796a include: uapi: rkcif-config.h: add cmd RKCIF_CMD_SET_QUICK_STREAM
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Ib6bd9116605ea8feb9cc0826cc2c5c359aa91b08
2023-10-30 19:26:11 +08:00
Zefa Chen
6a556c2b9e media: rockchip: vicap: resume/suspend with rtt
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Ic45894930f97eb8b4e32fc202630f88a5f6e67be
2023-10-30 19:26:11 +08:00
Mingwei Yan
a253fe656c media: rockchip: vicap fix online stop switch mode to rdbk
Signed-off-by: Mingwei Yan <mingwei.yan@rock-chips.com>
Change-Id: Icf19cdfaeada77a781fb32e1e97fc8f6965af249
2023-10-30 19:26:11 +08:00
Zefa Chen
534dc2d08b media: rockchip: vicap support capture raw online with only one buffer
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I6e4be9633798c3c666dbc36221acbbf3d5df0c35
2023-10-30 19:26:11 +08:00
Zefa Chen
af37f2152d media: rockchip: vicap fixes suspend/resume
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I1d7e7d8f521fca3bda4f3599a7b34233e1a94bc2
Signed-off-by: Mingwei Yan <mingwei.yan@rock-chips.com>
2023-10-30 19:26:11 +08:00
Zefa Chen
f331648b74 phy: rockchip: mipi csidphy fixed register of write/read out of range
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I1ba4ce5ff225b41db988b9df1198345b760be330
2023-10-30 19:22:54 +08:00
Zhen Chen
71c9ade488 Mali: bifrost: log: Add task_comm of contexts in OOM notification log
Signed-off-by: Zhen Chen <chenzhen@rock-chips.com>
Change-Id: Ib6cfebe6eeafc10e69a5a9e7b206c208dd8bf1de
2023-10-30 19:22:17 +08:00
Zhen Chen
8a98ecb28e Mali: bifrost: log: Add pid and task_comm of contexts in the info read from node "gpu_memory"
The output of "cat /sys/kernel/debug/mali0/gpu_memory" would look like:
<dev>                <pages>
mali0                  13312
  <kctx>                  <comm>               <pid>         <pages>
  kctx-0x0000000000000000 system_server        609              1653
  kctx-0x0000000000000000 droid.launcher3      1042             1636
  kctx-0x0000000000000000 ndroid.systemui      802              5859
  kctx-0x0000000000000000 ndroid.settings      915              1566
  kctx-0x0000000000000000 surfaceflinger       310              2590

Signed-off-by: Zhen Chen <chenzhen@rock-chips.com>
Change-Id: Ifc8e4a49cc00aff54feacc1fbcdacf3af255e0a1
2023-10-30 19:22:17 +08:00
Jianlong Wang
61578b7113 arm64: configs: px30_linux_defconfig: enable CONFIG_DRM_IGNORE_IOTCL_PERMIT
Allow the DRM ignore some permission issues.

Change-Id: Id0b5287001bdb3ee91a97cfd58ef93fe2c3fc829
Signed-off-by: Jianlong Wang <jianlong.wang@rock-chips.com>
2023-10-30 19:20:06 +08:00
Wang Panzhenzhuan
80ef6aeac0 phy: rockchip: mipi-dcphy: fix null point cause reboot issue
In camera preview state, press the power button to standby,
then press the power button immediately to wake up,
machine will reboot, so fix it.

Call trace:
 samsung_mipi_dcphy_power_on+0x68/0xc80 [phy_rockchip_samsung_dcphy]
 phy_power_on+0xa4/0x124
 dw_mipi_dsi2_pre_enable+0x350/0x364 [rockchipdrm]
 dw_mipi_dsi2_encoder_atomic_enable+0x308/0x3d0 [rockchipdrm]
 drm_atomic_helper_commit_modeset_enables+0x158/0x2ec
 rockchip_drm_atomic_helper_commit_tail_rpm+0x50/0x2f8 [rockchipdrm]
 commit_tail+0xbc/0x170
 drm_atomic_helper_commit+0x1f4/0x218
 drm_atomic_commit+0xbc/0xec
 drm_mode_atomic_ioctl+0x59c/0x70c
 drm_ioctl_kernel+0xf8/0x184
 drm_ioctl+0x2cc/0x528
 __arm64_sys_ioctl+0xa8/0xe4
 invoke_syscall+0x58/0x11c
 el0_svc_common+0xb4/0xf4
 do_el0_svc+0x2c/0xb0
 el0_svc+0x2c/0xa4
 el0t_64_sync_handler+0x68/0xb4
 el0t_64_sync+0x1a0/0x1a4
Code: 95d7b2de b9408a68 34000b48 f9403e76 (f9407ad4)
---[ end trace 0000000000000000 ]---

Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
Change-Id: Ie15e7cef29821683731d56ff5c4ceb924e340bb5
2023-10-30 19:19:39 +08:00
Steven Liu
42f4aa0733 BACKPORT: pinctrl: rockchip: fix reading pull type on rk3568
When reading pinconf-pins from debugfs it fails to get the configured pull
type on RK3568, "unsupported pinctrl type" error messages is also reported.

Fix this by adding support for RK3568 in rockchip_get_pull, including a
reverse of the pull-up value swap applied in rockchip_set_pull so that
pull-up is correctly reported in pinconf-pins.
Also update the workaround comment to reflect affected pins, GPIO0_D3-D6.

Fixes: c0dadc0e47 ("pinctrl: rockchip: add support for rk3568")
Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
Reviewed-by: Jianqun Xu <jay.xu@rock-chips.com>
Link: https://lore.kernel.org/r/20230110172955.1258840-1-jonas@kwiboo.se
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit f8ac5467e1)
Signed-off-by: Steven Liu <steven.liu@rock-chips.com>
Change-Id: I8c6a115f1c6c62b734f76487a0ace63f4bc43743
2023-10-30 19:17:37 +08:00
Sugar Zhang
3433a51018 ASoC: rockchip: sai: Use DMC-DVFS-SCENE for HBR audio
This patch Use DMC-DVFS-SCENE policy for High Bitrate Audio.

Ref: commit 5f0eb1c57240 ("ASoC: rockchip: Introduce rockchip utils common API")

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I58a34020fabbddd7f47a5831b3a33c6f81118fe1
2023-10-30 19:09:51 +08:00
Sugar Zhang
a4f964d7fc ASoC: rockchip: i2s: Use DMC-DVFS-SCENE for HBR audio
This patch Use DMC-DVFS-SCENE policy for High Bitrate Audio.

Ref: commit 5f0eb1c57240 ("ASoC: rockchip: Introduce rockchip utils common API")

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I9492fa993b6095f53f253615304ec445ac9cb53f
2023-10-30 19:09:51 +08:00
Sugar Zhang
adb52b6600 ASoC: rockchip: i2s-tdm: Use DMC-DVFS-SCENE for HBR audio
This patch Use DMC-DVFS-SCENE policy for High Bitrate Audio.

Ref: commit 5f0eb1c57240 ("ASoC: rockchip: Introduce rockchip utils common API")

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I9b919a8b2ebc85400eafb4229cd9f70b2df2bd9b
2023-10-30 19:09:51 +08:00
Sugar Zhang
ff0c025724 ASoC: rockchip: Introduce rockchip utils common API
At the monment, we add utils_get/put_performance for
DMC-DVFS-SCENE policy.

Ref: commit cae65d78f0 ("ASoC: rockchip: i2s-tdm: Add support for FIFO-XRUN detection")

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I188e5cfff960aa3679db5c3a8ee847d9c7b685ee
2023-10-30 19:09:51 +08:00
Jon Lin
a1a5a0fa34 mtd: spinand: xtx: Support new device XT26G0xDWSIGA
XT26G01DWSIGA, XT26G02DWSIGA, XT26G04DWSIGA

Change-Id: I5dbe2f881c47a700ff777dea1fcaf4ebe092749c
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2023-10-30 11:41:35 +08:00
YouMin Chen
cbe4303f6c PM / devfreq: rockchip_dmc: support get dmcfreq stall time
Signed-off-by: YouMin Chen <cym@rock-chips.com>
Change-Id: I73117550a9ec237a54f22d8967962bf1ceb43947
2023-10-30 10:04:49 +08:00
Bin Yang
e797ca0abf ANDROID: usb: gadget: fix cannot create multiple android instances
Cannot use android_device to get multiple android instances.
The cdev will not be freed by the set_gadget_data(gadget, NULL),
so we can do not use the spinlock of gadget item to prevent
the condition.

Bug: 298603473
Fixes: dd139186ef ("ANDROID: usb: gadget: fix NULL pointer dereference in android_setup")
Signed-off-by: William Wu <william.wu@rock-chips.com>
Signed-off-by: Bin Yang <yangbin@rock-chips.com>
Change-Id: Ic0c72971051401d218e2eba75c40194933290e16
2023-10-30 09:44:40 +08:00
Xiao Ya peng
059a18f32f misc: rockchip: pcie-rkep: Support clear id for pcie_rkep_release
Signed-off-by: Xiao Ya peng <yp.xiao@rock-chips.com>
Change-Id: I23d02919d3838eafd4be76724d3ea9db3a2da965
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2023-10-26 20:14:42 +08:00
Jon Lin
60ba25a544 misc: rockchip: pcie-rkep: Support raising ep elbi int by ioctl
Change-Id: I7612cb5ca5cd892065dbdb398c4f57f73fb00aa0
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2023-10-26 20:14:42 +08:00
Jon Lin
60c4612d62 misc: rockchip: pcie-rkep: Support adding virtual id by ioctl
Change-Id: I020ca781ac684caa5fe1c066c1e4b2a65d4891a5
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2023-10-26 20:14:42 +08:00
Huibin Hong
62e3d6fad9 serial: 8250_dma: fix bug when tx dma is enable
When three threads run on three different cpu, and write
60 byte to the same uart at the same time, which causes
the data loss. After test, it is caused by DMA bursts 16 byte
when the fifo is more than 48 byte(fifo total 64 byte).
It is solved by clearing the uart dma request before start
dma tx.

Signed-off-by: Huibin Hong <huibin.hong@rock-chips.com>
Change-Id: I4e2099337e25e41a34ceeb9ea774a04cc7c71f07
2023-10-26 15:44:59 +08:00
Luo Wei
af4866c003 arm64: dts: rockchip: rk3588-vehicle-evb: improve lcd init of serdes display
Signed-off-by: Luo Wei <lw@rock-chips.com>
Change-Id: I469146f063f9e0a2e91c177b3362750991ce5792
2023-10-26 11:14:23 +08:00
Luo Wei
3cd649f4fc mfd: display-serdes: add soft reset and delay control support
Signed-off-by: Luo Wei <lw@rock-chips.com>
Change-Id: I6dbafb9788295040834224812f5e013b2583d5c8
2023-10-26 11:14:00 +08:00
KaiHui Huang
f89300e921 ARM: configs: rockchip: update rv1106-wakeup.config
1. enabled sc200ai
2. disabled ethernet

Change-Id: I4dcecda2d590f1e87160be7934494d0fc5092bc9
Signed-off-by: KaiHui Huang <jkand.huang@rock-chips.com>
2023-10-25 15:37:53 +08:00
KaiHui Huang
faa1f2e639 ARM: dts: rockchip: update rv1106g-evb2-v12-wakeup
1. add sc200ai
2. set clk_gate.always_on=0
3. disabled wireless_wlan
4. disabled acodec

Change-Id: Icf9ad78152b667f0d2de5f29434d6ecc36e29323
Signed-off-by: KaiHui Huang <jkand.huang@rock-chips.com>
2023-10-25 15:37:30 +08:00
Cai YiWei
d27dad663d media: rockchip: isp: fix rv1106 resume no output
Change-Id: Ia18ce862426e351156263efded7af9e4d0e17ae6
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2023-10-24 19:26:46 +08:00