Commit Graph

1080466 Commits

Author SHA1 Message Date
Hu Kejun
31a0da2dca media: i2c: otp_eeprom: add pd_offset in pdaf part
Signed-off-by: Hu Kejun <william.hu@rock-chips.com>
Change-Id: Ifa901449d7f7d5ffaeeec1498bbed4c4ee5a14f1
2023-08-30 14:23:12 +08:00
ZiHan Huang
6f7585d73c ARM: configs: rk3308bs_aarch32_mipi_display enable CONFIG_DRM_IGNORE_IOTCL_PERMIT
Change-Id: Icacb68adf095676d26d7abc5c63948d5f4938c02
Signed-off-by: ZiHan Huang <zack.huang@rock-chips.com>
2023-08-29 16:39:15 +08:00
Felix Zeng
9894920d7c driver: rknpu: Update rknpu driver, version: 0.9.2
* Add task number tilling support
* Change kmalloc to vmalloc to avoid page allocation failure in RV1106
* Fix the issue of excessive time consumption in memory cache flushing
* Fix map pages into vma failed in kernel 6.10

Signed-off-by: Felix Zeng <felix.zeng@rock-chips.com>
Change-Id: I93c49a4766e4d3ff13a8d372be348757579c34e3
2023-08-29 11:28:05 +08:00
ZhiZhan Chen
2b3939a76d drm/rockchip: vop: fix the zpos setting in vop_atomic_plane_reset()
Change-Id: I27a85fc52dded9674f32f93c1a80c69a108d1118
Signed-off-by: ZhiZhan Chen <zhizhan.chen@rock-chips.com>
Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
2023-08-28 14:50:26 +08:00
Finley Xiao
24ea6649ad arm64: dts: rockchip: rk3562-evb1-lp4x-v10: Change clkin div to 5 for aclk vo
The dclk vop is 132MHz, the aclk vop can be reduced appropriately.

Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I80d060fd90e013aaa1eea4d94868731e3cf02ffb
2023-08-25 17:56:04 +08:00
Finley Xiao
26d58236a5 arm64: dts: rockchip: rk3562-rk817-tablet-v10: Change clkin div to 5 for aclk vo
The dclk vop is 70MHz, the aclk vop can be reduced appropriately.

Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: I05f79bb4bade6c8ff6c8014edce448f403bb9ca4
2023-08-25 17:56:04 +08:00
Finley Xiao
0e7bc1d765 arm64: dts: rockchip: rk3562: Change clkin div to 4 for aclk vo
The aclk vop should be equal or greater than the half of dlck vop,
the highest frequency of dclk may be 148.5MHz, the aclk vop is 396MHz,
so change the clkin div to 4.

Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
Change-Id: Ibc47f31b7d03530929fd537020c60a39708ccdcb
2023-08-25 17:56:04 +08:00
Zefa Chen
812a80b857 media: i2c: imx415 remove vendor limit of get dcphy param
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: I578a1e306985596d656a19615bdcf67edc08ffd8
2023-08-25 17:52:29 +08:00
Lin Qihao
f085d26126 arm64: dts: rockchip: rk3528-demo4-ddr4-v10-linux: enable sdmmc
Change-Id: Iade84f4f1ac94b2a0a1587ffe6454e074f527863
Signed-off-by: Lin Qihao <kevin.lin@rock-chips.com>
2023-08-25 16:55:41 +08:00
Su Yuefu
6c9d9857dd ARM: dts: rockchip: rv1106g-evb2-v10-dual-camera: sc301iot modified compatible name uppercase to lowercase
Signed-off-by: Su Yuefu <yuefu.su@rock-chips.com>
Change-Id: I7c3c39e0aff4e85cc541903dcd767d80f419a810
2023-08-25 16:51:47 +08:00
LongChang Ma
f188000384 media: i2c: sc301iot modified inferface name uppercase to lowercase
Signed-off-by: LongChang Ma <chad.ma@rock-chips.com>
Change-Id: I7689d695191419fd66504deebe400a01d01f74ba
2023-08-25 16:50:49 +08:00
Tao Huang
7e9467d1d2 usb: dwc3: core: parkmode_disable_hs_quirk depends on CONFIG_NO_GKI
Fixes: 35db5a9e94 ("UPSTREAM: usb: dwc3: core: add support for disabling High-speed park mode")
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ife342a9339c731828d9677d110494fdd7862fe49
2023-08-25 16:50:03 +08:00
Hongming Zou
0c4fa77794 rpmsg: rockchip_test: add delay compensation
1. add delay compensation to the test demo
2. update the names of some structures

Change-Id: I12026f13395ad691628fd6a2c3cb1b15185b156e
Signed-off-by: Hongming Zou <hongming.zou@rock-chips.com>
2023-08-25 15:20:46 +08:00
Mingwei Yan
b5d46d598f media: rockchip: isp: add iqtool video for isp21
Signed-off-by: Mingwei Yan <mingwei.yan@rock-chips.com>
Change-Id: I2760d90f421a789d3f3e20e376cdfa5bef109efb
2023-08-25 14:17:14 +08:00
William Wu
4857aeccce arm64: dts: rockchip: rk3399pro-npu: dis u1 and u2 state for dwc3
This patch adds the properties "snps,dis-u1-entry-quirk"
and "snps,dis-u2-entry-quirk" to disable u1 and u2 state
for dwc3 peripheral. And remove the legacy of property
"snps,dis-u1u2-quirk" which is not used.

Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: I52d51797a06ff23aa145ecd589878ae264c318ad
2023-08-25 10:37:05 +08:00
William Wu
781f512532 arm64: dts: rockchip: rk1808: dis u1 and u2 state for dwc3
This patch adds the properties "snps,dis-u1-entry-quirk"
and "snps,dis-u2-entry-quirk" to disable u1 and u2 state
for dwc3 peripheral. And remove the legacy of property
"snps,dis-u1u2-quirk" which is not used.

Signed-off-by: William Wu <william.wu@rock-chips.com>
Change-Id: I96fd8c2658471383a11aa8228fadaf04422333a3
2023-08-25 10:29:39 +08:00
Jianwei Zheng
065a9b8ad8 arm64: dts: rockchip: dis u1 and u2 state for rk3528 dwc3
We use "snps,dis-u1-entry-quirk" and "snps,dis-u2-entry-quirk"
instead of "snps,dis-u1u2-quirk" after kernel4.19.

Signed-off-by: Jianwei Zheng <jianwei.zheng@rock-chips.com>
Change-Id: Ib96b4044edbbd197fa8da1ef40575f7c61089738
2023-08-24 15:28:57 +08:00
Caesar Wang
71edaa9a9b ARM: dts: rockchip: update rk808 for rk3288-evb-rk808-linux.dts
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Change-Id: I497af8de1c21563497a222edc064c9ea51314abd
2023-08-24 10:56:02 +08:00
Caesar Wang
c9c3bf778a ARM: dts: rockchip: Add mmc aliases for rk3288-linux.dtsi
This series in order to have the default MMC alias.

The mmc default alias:
	mmc0 = &sdhci;
	mmc1 = &sdmmc;
	mmc2 = &sdio0;

The Linux OS have the post-build.sh to handle the rootfs,
and export RK_EXTRA_PARTITIONS for setting the PARTITIONS.

Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Change-Id: Ic309cbfc606433b9e9b9098230e7b90ba59cca2d
2023-08-24 10:56:02 +08:00
Algea Cao
b1d8b2c24d drm/bridge: synopsys: dw-hdmi-qp: Fix frl switch error when switching resolution and color at the same time
When switching resolution and color at same commit, current
judgment conditions will cause the hdmi switching process will
not run properly if switching from tmds resolution to frl resolution.
So we need to add the judgment of the resolution before and after
the switch.

Change-Id: I96e304acf224bcfd01edba9df64a3d6b96a2c90d
Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
2023-08-24 10:15:56 +08:00
Caesar Wang
9ef5ed9bab ARM: configs: enable HDMI and MULTICODECS for rockchip_linux_defconfig
Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Change-Id: Ibc8b103357cfe3c6462bef135b28bae0efd88892
2023-08-23 18:40:22 +08:00
Oder Chiou
3d3da63929 UPSTREAM: ASoC: rt5640: Remove the sysclk and sysclk_src checking
Remove the sysclk and sysclk_src checking in the function set_sysclk() to
prevent the PLL power off. It is not getting re-programmed during
subsequent runs after the first run (in BIAS_OFF stage).

Signed-off-by: Oder Chiou <oder_chiou@realtek.com>
Link: https://lore.kernel.org/r/20220210071900.17287-1-oder_chiou@realtek.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Jiajian Wu <jair.wu@rock-chips.com>
(cherry-pick from commit d9c5996ab3)
Change-Id: I080a31484812a61b7cb3c4a53cc1eb3489038aa8
2023-08-23 18:40:00 +08:00
Yandong Lin
8323e849b7 video: rockchip: mpp: fix some iommu hdl register issue
Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Change-Id: Ic73bc4e330668b30e4519362b313bfb29ccecb24
2023-08-23 18:36:41 +08:00
Cai YiWei
2b3c021adf media: rockchip: isp: fix get tb info
Fixes: 4ce5cb8b0f ("media: rockchip: isp: add lock to save tb info")
Change-Id: I0085c3697500e3667d8f39dddf6a3a342b7d6ee6
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2023-08-23 15:32:30 +08:00
Finley Xiao
b670135a69 soc: rockchip: rockchip_system_monitor: Don't init wide temp when tz is NULL
Change-Id: I9e5213f130582fcb7ee1beae7a5200e9d7ff4bf4
Signed-off-by: Finley Xiao <finley.xiao@rock-chips.com>
2023-08-23 15:06:29 +08:00
Yandong Lin
900dde95ad video: rockchip: mpp: fix task re-add running_list issue
In rkvdec2_link hard ccu worker, the tasks may resend to hw when
decoder reset.There is a bug: the task that resend to hw may be re-add
to running_list.

Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Change-Id: I6aa77213d3f5cc805c24d39b5c5d13269297d749
2023-08-23 15:03:14 +08:00
Wu Liangqing
e76a8d7657 arm64: dts: rockchip: rk3588-evb3-lp5: update for v11 board
Signed-off-by: Wu Liangqing <wlq@rock-chips.com>
Change-Id: I6df2ef60133a150e658a03cfa3f7203bd871ba8a
2023-08-23 14:48:43 +08:00
Cai YiWei
fc49b7fcd0 media: rockchip: isp: fix list buf delete err
list_del error for curr_buf to buf_queue list and buf_done_list
pc : list_del+0x4/0x24
lr : destroy_buf_queue+0x170/0x188

Change-Id: Iede1ab20e30d25f4059b39e7896e1a89b3f03f67
Signed-off-by: Cai YiWei <cyw@rock-chips.com>
2023-08-23 10:09:15 +08:00
Tao Huang
dcfa3a17f6 soc: rockchip: amp: include rockchip_amp.h for function prototypes
drivers/soc/rockchip/rockchip_amp.c:257:5: warning: no previous prototype for 'rockchip_amp_check_amp_irq' [-Wmissing-prototypes]
drivers/soc/rockchip/rockchip_amp.c:262:5: warning: no previous prototype for 'rockchip_amp_get_irq_prio' [-Wmissing-prototypes]
drivers/soc/rockchip/rockchip_amp.c:267:5: warning: no previous prototype for 'rockchip_amp_get_irq_cpumask' [-Wmissing-prototypes]
drivers/soc/rockchip/rockchip_amp.c:489:6: warning: no previous prototype for 'rockchip_amp_get_gic_info' [-Wmissing-prototypes]

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I42ef41e8dc9fabcba90493ca56df435278614208
2023-08-23 09:32:45 +08:00
Wang Panzhenzhuan
6a1844dc34 arm64: dts: rockchip: rk3562-rk817-tablet: adjust vcm configs to reduce noise
Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
Change-Id: I9a6f2679bef116f9037938002f282c435aa3ec3f
2023-08-22 19:57:49 +08:00
Wang Panzhenzhuan
df3536ceae media: i2c: dw9763: optimize open/close procedure to reduce noise
1. add regulotor control to fix open i2c error issue.
2. fix move time unit to ms not us.
3. optimize open/close procedure, reduce vcm collision noise.
4. use v4l2_dbg replace dev_dbg for dynamic print debug info.

Signed-off-by: Wang Panzhenzhuan <randy.wang@rock-chips.com>
Change-Id: I20c65ef2d4623b6338699874c4c05b42d9d2d863
2023-08-22 19:57:33 +08:00
Stanley Chang
fb0c004d7e UPSTREAM: dt-bindings: usb: snps,dwc3: Add 'snps,parkmode-disable-hs-quirk' quirk
Add a new 'snps,parkmode-disable-hs-quirk' DT quirk to dwc3 core for
disable the high-speed parkmode.

For some USB wifi devices, if enable this feature it will reduce the
performance. Therefore, add an option for disabling HS park mode by
device-tree.

In Synopsys's dwc3 data book:
In a few high speed devices when an IN request is sent within 900ns of the
ACK of the previous packet, these devices send a NAK. When connected to
these devices, if required, the software can disable the park mode if you
see performance drop in your system. When park mode is disabled,
pipelining of multiple packet is disabled and instead one packet at a time
is requested by the scheduler. This allows up to 12 NAKs in a micro-frame
and improves performance of these slow devices.

Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Stanley Chang <stanley_chang@realtek.com>
Link: https://lore.kernel.org/r/20230419020044.15475-2-stanley_chang@realtek.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: William Wu <william.wu@rock-chips.com>
(cherry-pick from commit 4a2f152af1)
Change-Id: I8bffdfe134e644b705da78eaf16946aff80e5e80
2023-08-22 19:57:02 +08:00
Cai Wenzhong
739cc63893 media: i2c: add Maxim Quad GMSL2/GMSL1 to CSI-2 Deserializer driver.
1. maxim deserializer support: max96712/max96722
1.1 local maxim deserlializer depend on CONFIG_VIDEO_DES_MAXIM4C

2. maxim serializer support: max9295/max96715/max96717
2.1 remote max9295 serializer depend on CONFIG_MAXIM4C_SER_MAX9295
2.2 remote max96715 serializer depend on CONFIG_MAXIM4C_SER_MAX96715
2.3 remote max96717 serializer depend on CONFIG_MAXIM4C_SER_MAX96717

Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Change-Id: I0deab6dd47a419bed9ebf643e451d71dc8f151a4
2023-08-22 19:52:22 +08:00
Cai Wenzhong
383b245ce2 arm64: dts: rockchip: rk3588-vehicle-evb-maxim-max96722: adjust some node name
Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Change-Id: I28052218fad9fa0db840d032b630b9270b599b19
2023-08-22 19:51:40 +08:00
Cai Wenzhong
85504aa4a3 arm64: dts: rockchip: rk3588-vehicle-evb-maxim-max96712: adjust some node name
Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Change-Id: I9e0896ee4cf1e07f8a8b7a415d9c0fdde3e13435
2023-08-22 19:51:23 +08:00
Wu Liangqing
5bd2065957 arm64: dts: rockchip: rk3562-rk817: set vcc_3v3 regulator on in suspend
Change-Id: Ica0866c34353a0e6c624aca3becfc49c8e304b59
Signed-off-by: Wu Liangqing <wlq@rock-chips.com>
2023-08-22 15:43:02 +08:00
Yifeng Zhao
53d54c4a71 mmc: dw_mmc-rockchip: fix tuning return incorrect value in certain situations
When V2 tuning returns an error, it is necessary to reset
the ret to 0, otherwise the incorrect value will be returned.

log:
[    4.935664] mmc0: tuning execution failed: -5

Fixes: 795e052cc8 ("mmc: dw_mmc-rockchip: add v2 tuning support")
Signed-off-by: Yifeng Zhao <yifeng.zhao@rock-chips.com>
Change-Id: I54a77e02255d88114191e8abc434856b34768715
2023-08-21 14:26:55 +08:00
Steven Liu
0b2afcfc6d arm64: dts: rockchip: rk3562-evb1-lp4x-v10-linux-amp: Add memory node for ap amp
use 0x00400000~0x01000000 for ap amp core

Signed-off-by: Steven Liu <steven.liu@rock-chips.com>
Change-Id: If4dd9e18537a9904de55125d0871b533fb340701
2023-08-18 20:17:23 +08:00
Jianwei Fan
e58d97c2cf video: rockchip: vehicle: fix support RK356X
Change-Id: Ifbd619c5cab7e9506b09e7fa4efb90990d301584
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
2023-08-18 20:11:23 +08:00
Jianqun Xu
e6b8805e0e arm64: dts: rockchip: rk3588-vehicle-adsp-audio-s66: set i2s3 master
This patch set the i2s3 to be master mode, while the bt must to be
slave mode.

The mclk rate is 24.576MHz from mclkin pin.

The setting for bt:
 NBS:
  Slave
  LRCK 8k
  BCLK 512kHz
  I2S
  clk inverted

 WBS:
  Slave
  LRCK 16k
  BCLK 1024kHz
  I2S
  clk inverted

Change-Id: I866ea471a2db5e39623cebeb4110ea2a639fbeba
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
2023-08-18 20:08:17 +08:00
Jianwei Fan
6f12652f07 arm64: dts: rockchip: rk3568: default enable mipi_csi2_hw
Fixes: 841fa2175d ("arm64: dts: rockchip: rk3568 separate the node of csi2 and hw")
Change-Id: I16a05ac90044e9aad1338827ac33146bb4f2bc71
Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
2023-08-18 20:05:38 +08:00
Steven Liu
0013ee06a1 rpmsg: rockchip: fix mailbox txdone method to polling
Since there is no txdone irq in the Rockchip mailbox IP, invoking
    mbox_chan_txdone()/mbox_client_txdone() after mbox_send_message()
    to tick the TX would be free the active request which have not been
    sent out if the controller returned the EBUSY state before. So amend
    the txdone method to polling to fix it.

The TX polling interval can specify in mailbox DT with
    set "rockchip,txpoll-period-ms" property to 1 milliseconds.

Fixes: b5795e81ec ("rpmsg: rockchip: add Rockchip RPMsg Platform Support")
Signed-off-by: Steven Liu <steven.liu@rock-chips.com>
Change-Id: I9d15ed4a61cda049c7804e2688e79f157de1c5a2
2023-08-17 19:36:01 +08:00
Binyuan Lan
e79df5fa17 arm64: dts: rockchip: rk3562-android: assign a fixed index to mmc devices
Change-Id: I707e84a2e7cbbf7004522674ac2fd05564f8e930
Signed-off-by: Binyuan Lan <lby@rock-chips.com>
2023-08-17 16:04:58 +08:00
Caesar Wang
c7973edb63 arm64: dts: rockchip: Add mmc aliases for rk3562-linux.dtsi
This series in order to have the default MMC alias.

The mmc default alias:
            mmc0 = &sdhci;
            mmc1 = &sdmmc0;
            mmc2 = &sdmmc1;

The Linux OS have the post-build.sh to handle the rootfs,
and export RK_EXTRA_PARTITIONS for setting the PARTITIONS.

Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Change-Id: I28ae38a7aaf35c6f584879c19a339ff6079d059d
2023-08-17 16:03:57 +08:00
Wu Liangqing
d21f77d0fd arm64: dts: rockchip: Makefile add rk3399-sapphire-excavator-edp-avb.dtb
arch/arm64/boot/dts/rockchip/rk3399-sapphire-excavator-edp.dtsi:210.20-216.4: ERROR (i2c_bus_reg): /i2c@ff110000/vm149c@0c: I2C bus unit address format error, expected "c"
arch/arm64/boot/dts/rockchip/rk3399-sapphire-excavator-edp.dtsi:243.20-249.4: ERROR (duplicate_label): /i2c@ff110000/vm149c@0c: Duplicate label 'vm149c' on /i2c@ff110000/vm149c@0c and /i2c@ff110000/vm149c@c
arch/arm64/boot/dts/rockchip/rk3399-sapphire-excavator-edp-avb.dts:29.24-54.4: ERROR (i2c_bus_reg): /i2c@ff110000/tc35874x@0f: I2C bus unit address format error, expected "f"

Change-Id: Ie89eb8038b8791e89b63dab2c990f929596984a8
Signed-off-by: Wu Liangqing <wlq@rock-chips.com>
2023-08-17 15:26:38 +08:00
Steven Liu
0621d78318 arm64: dts: rockchip: add rk3568 evb1 linux amp dts
Signed-off-by: Steven Liu <steven.liu@rock-chips.com>
Change-Id: Ic38603697a7a909e1c406bc56be10e0ab7c5608b
2023-08-17 14:45:32 +08:00
Steven Liu
5aeacb348d arm64: dts: rockchip: rk3568: Add arm_pmu label
Signed-off-by: Steven Liu <steven.liu@rock-chips.com>
Change-Id: Ia2c342e70042e98c3800c5748e8d1f4ad39fbfc3
2023-08-17 14:45:32 +08:00
Joseph Chen
f2576488ab soc: rockchip: amp: Update coding style and message
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I05b802b7caec5361c5b659926ebd46f31f0b1d44
2023-08-17 14:45:32 +08:00
Joseph Chen
a555b785b3 soc: rockchip: amp: Add 'boot-on' property assignment support
boot-on is absent or boot-on = <1>: bring up this cpu when driver probe.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I0157e72b53f5c35e5478408804a72bab5fd02837
2023-08-17 14:45:32 +08:00
Shunhua Lan
4b354ca1b7 arm64: dts: rockchip: rk3399-evb: fix dts build error
Fixes: d449b25d6b ("arm64: dts: rockchip: rk3399-evb: use multicodecs instead simple card")
Signed-off-by: Shunhua Lan <lsh@rock-chips.com>
Change-Id: I2c13a7834090e8433301125b79e86219db7b805d
2023-08-17 14:31:40 +08:00