Commit Graph

1079998 Commits

Author SHA1 Message Date
Xing Zheng
760cdbbc19 ASoC: es8323: fix 32kHz coeff configurations
Signed-off-by: Xing Zheng <zhengxing@rock-chips.com>
Change-Id: I2f74a42dd133c40e90b29b872f41d1d501913d8e
2023-06-02 10:33:46 +08:00
Cai Wenzhong
e8913fed9f arm64: dts: rockchip: rk3588-vehicle-max96712: add pocen-gpios for dphy1 poc_en.
Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Change-Id: Iad0c9a35c662dbc54062ea7afff78fb18dd9bc56
2023-06-01 18:37:55 +08:00
Cai Wenzhong
b41e989448 media: i2c: max96712: add poc_en gpio conctrol for remote camera power suppply.
1. poc_en gpio control remote camera 12V power supply: active high.
2. max96712_V11 board need to control poc_en for remote camera power supply.

Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Change-Id: Ica5c446ce85877efd18ccca7180a8b18da609297
2023-06-01 18:37:55 +08:00
Jon Lin
13639746fa phy: rockchip: naneng-combphy: Fix swing to 650mv under 100M refclk for rk3562
Change-Id: Ia71ec0851c1d1bc686277a49af70488f413f423c
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2023-06-01 18:32:55 +08:00
Jon Lin
010c015455 phy: rockchip: naneng-combphy: Fix swing to 650mv under 100M refclk for rk3528
Change-Id: I30b988fe60a09ad3aafd6527238926526b1c3693
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2023-06-01 18:32:55 +08:00
Jianqun Xu
7aaa4bb7a2 ASoC: rockchip: i2s-tdm: try normal clear before switch master mode
As mind by sugar, sometimes the master device will exit unexpectly, stop
the sclk before the slave device to do stop trigger, for example the bt
module, which not act as a codec driver, is replaced by a dummy codec.

This patch adds a normal clear for i2s tdm before force switch to
master.

Fixes: c003b7fd8a ("ASoC: rockchip: i2s-tdm: Fix FIFO Clear failed on SLAVE mode sometimes")

Change-Id: Ia3ae2d9b008b07addcfcec38d4e970c376dae1e7
Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
2023-06-01 18:31:53 +08:00
David Wu
b221622157 ethernet: stmmac: dwmac-rk: Add bgs increment
Add the configuration of BGS from DTB.

Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: I0549f1a9327827441e83d7b17f20719026e8f27c
2023-06-01 18:12:04 +08:00
Cai Wenzhong
6e8bd48860 arm64: dts: rockchip: rk3588-vehicle-evb-maxim-max96712: default disable fsync
Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Change-Id: I3b56dacded01bbbbbb1898a0ed0f8d557851f7d7
2023-06-01 17:45:08 +08:00
Cai Wenzhong
776837f7b4 media: i2c: max96712: fix 4 lane mode mipi link freq index setting error.
Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Change-Id: Id1c1add779df6ec7c041cec53243645f8b2159d0
2023-06-01 16:38:35 +08:00
Sugar Zhang
b2dbb37c58 ARM: configs: rv1106: Optimize for cpu load
-CONFIG_HIGH_RES_TIMERS=y
-CONFIG_PREEMPT_VOLUNTARY=y
-CONFIG_HZ_300=y

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I68fe3a17e0a4b05ca724862ef3ad44d81280f4f4
2023-06-01 15:57:36 +08:00
David Wu
ee144563a5 net: phy: rk630: Enable aps && uaps to save power consumption
aps and uaps can save power consumption when RJ45 plug out.

Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: Iec36feb6ba1d734408efa9430e7889015c9d3fd1
2023-06-01 15:56:59 +08:00
David Wu
757588ef41 ethernet: stmmac: dwmac-rk: Fix Dribble bit error at 10M mode
At the 10M mode, gmac can detect odd nibbles package sometimes,
this is valid at mii mode. Make 25M at init for rmii mode, can
solve the issue by tests.

Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: I22dc619fbc9983d4b58efc42c5c92d0f8c8aaab5
2023-06-01 15:56:25 +08:00
Caesar Wang
c5e85bafa0 arm64: dts: rockchip: change dp sound card name on rk3588 platform
pulseaudio ucm2 config can not handle the character "," or long name,
so change it.

Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Change-Id: Idd25349d3b11e058b391bb5b0c205288ccdb3e74
2023-06-01 15:55:37 +08:00
David Wu
ec2ae3a698 ARM: dts: rv1106: rmii_phy bgs increment to 2
Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: I23e7eb6249e53a13adcb8679c55c401e98d290f4
2023-06-01 15:51:28 +08:00
David Wu
b67f47f242 net: phy: rk630phy: Add adc performance
Increase ad gain and vcm voltage to get better performance,
If it was 10M speed, also increase eq gain.

Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: I7bad65f14a753c4d3de18c702394d1f91d47dc4a
2023-06-01 15:49:29 +08:00
Sugar Zhang
bc08d84830 ARM: configs: rv1106: Updated by savedefconfig
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I56d8849dd1c0b6a68b55d0533dc22852e8e08846
2023-06-01 14:30:38 +08:00
Liang Chen
750f6e702f clk: rockchip: rv1106: adjust pvtpll length for cpu
Signed-off-by: Liang Chen <cl@rock-chips.com>
Change-Id: I26b02751a38dad4dc501cbbcd4497636dd6ac991
2023-06-01 14:22:16 +08:00
David Wu
c91152fefd ARM: dts: rv1106: Change gmac rx dma size to 128
Increase the size to avoid rx overflow.

Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: Ie2b1ad948393c8254bf6e20b2cf34b033a3e67c1
2023-06-01 14:21:40 +08:00
David Wu
ae995acd3e ARM: dts: rv1106: Set flow ctrl off for gmac
Signed-off-by: David Wu <david.wu@rock-chips.com>
Change-Id: Iec93bbff8f20de69a31dd618111abef04393b8a4
2023-06-01 14:19:17 +08:00
Xiao Ya peng
e45c069df7 PCI: rockchip: dw_ep: Update pcie ep status.
Add the rkep device mode definition and sync with SPL.

Signed-off-by: Xiao Ya peng <yp.xiao@rock-chips.com>
Change-Id: I60e4809119cf60ddcafe45f6b5ccb11a19aa56e6
Signed-off-by: Kever Yang <kever.yang@rock-chips.com>
2023-06-01 09:34:35 +08:00
Cai Wenzhong
25030c287c media: i2c: max96712: version 1.03.00
Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Change-Id: I3faa1465a4db3edd7337cad2afbdc16f0495f905
2023-06-01 09:31:59 +08:00
Damon Ding
2196ad1ae9 pwm: rockchip: disable the pclk dynamic switch if oneshot mode enabled
If the pclk of pwm is off, the interrupt will not be
generated.

Signed-off-by: Damon Ding <damon.ding@rock-chips.com>
Change-Id: I1c68a22e875712fd7260ba8f24bd8f53cb8aa679
2023-05-31 15:24:28 +08:00
Jon Lin
a8efd060aa spi: rockchip-sfc: Optimize the judgment mechanism completed by the controller
There is very little data left in fifo, and the controller will
complete the transmission in a short period of time, so
use readl_poll_timeout() for busy wait 10us to accelerate response.

Change-Id: I63e7cfd35dc05d0af860cc9724d66d827aa47d51
Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
2023-05-31 14:39:02 +08:00
Cliff Chen
c73d891d8e mm: optimize readahead for the file with fscrypt
For files with fscrypt enabled, to allow IO and the encryption
or decryption process to ping-pong, lookahead is forcibly enabled.

Change-Id: I137b8439dcd1fd99052bef1d1b0526af0d4a611e
Signed-off-by: Cliff Chen <cmc@rock-chips.com>
2023-05-31 14:30:43 +08:00
Algea Cao
2f2ba4a8f8 phy: rockchip-samsung-hdptx-hdmi: Don't set bus_width 8 when probe
Fix set pll rate err when play hdr video first time after
system boot.

Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: Ic85b8f8b20a2a588627f650ff402076decd23b63
2023-05-31 14:19:55 +08:00
Hisping Lin
e6c7ea7d4d tee: optee: interrupt an RPC when supplicant has been killed
check supplicant is dead or alive when get signal,
run normal program if supplicant is alive,
interrupting an RPC if supplicant is dead, Otherwise,
the current thread will be stuck in the optee driver.
The error is printed as follows:

INFO: task gatekeeper@1.0-:461 blocked for more than 20 seconds.
Not tainted 5.10.66 #2
task:gatekeeper@1.0- state:D stack: 0 pid: 461 ppid: 1 flags:0x0400002d
Call trace:
switch_to+0x180/0x230
__schedule+0x49c/0x704
schedule+0xa0/0xe8
schedule_timeout+0x38/0x124
wait_for_common+0xa4/0x134
wait_for_completion+0x1c/0x2c
optee_handle_rpc+0x1a4/0x6ec
optee_do_call_with_arg+0x1a4/0x298
optee_release+0x134/0x1bc
tee_release+0xa4/0x100

Change-Id: I2f82338ecccc1bc97bb5a6c25767eca4542cbcdf
Signed-off-by: Hisping Lin <hisping.lin@rock-chips.com>
2023-05-31 11:17:40 +08:00
ZiHan Huang
2c94291de8 arm64: dts: rockchip: add rk3588-evb7-lp4-v11-linux-ipc.dts
Signed-off-by: ZiHan Huang <zack.huang@rock-chips.com>
Change-Id: I01791bd56777bf570de41e0468890a08f9fc5e55
2023-05-31 10:11:45 +08:00
Zefa Chen
6b1273024d media: rockchip: vicap send sof both online and read back
Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Iec76f92835eb4bb6ec24cd10a10157f0af8dae44
2023-05-31 09:38:07 +08:00
Wu Liangqing
1013c54dc1 input: touchscreen: gt1x: remove all usages of mm_segment_t
The struct mm_segment_t is required by this driver only in conjunction
with Linux 5.9.0 or older. Since the struct is removed in Linux 5.18, it
must be removed from the driver as well.

Change-Id: I993800f1f6f03962dfd267a9b8e3c95f37baffe5
Signed-off-by: Wu Liangqing <wlq@rock-chips.com>
2023-05-30 18:41:49 +08:00
Zhen Chen
e8df1af4f2 Mali: bifrost: use task_tgid_vnr() and task_pid_vnr() to get tgid and pid
To resolve the error of "Failed to get pid pointer for ...",
when running in container environment that uses pid_namespace.

Change-Id: Iff033d9cd8af33b9f2a536cbfbe2ae1e8d71bfba
Signed-off-by: Zhen Chen <chenzhen@rock-chips.com>
2023-05-30 18:41:29 +08:00
Zhen Chen
7a76350c1e MALI: rockchip: upgrade bifrost DDK to g18p0-01eac0, from g17p0-01eac0
Change-Id: I2c7e002c4b1a1834f89c52e4113e3b2f48f9cba6
Signed-off-by: Zhen Chen <chenzhen@rock-chips.com>
2023-05-30 18:41:29 +08:00
Sugar Zhang
038247591f ARM: configs: rv1106: Add config for TEE support
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: Icbb212470faf7b6dc822d88061f10ffbce159090
2023-05-30 16:18:03 +08:00
Sugar Zhang
d159a00ad2 ARM: dts: rv1106: Add PSCI node
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I08d549b801f18f8337e7ce92b0b8ca46e63068d9
2023-05-30 16:18:03 +08:00
Sugar Zhang
8c6317e0fc ARM: dts: rv1106: Add Non-secure physical timer
We should introduce both Non-secure and Secure timer
to compatible for kernel with TEE or not.

As the chapter 2.3.2 PPIs of GIC-400 TRM says:

Interrupt ID   Source

30             Non-secure physical timer
29             Secure physical timer
27             Virtual timer
26             Hypervisor timer

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: If9441688d39930e71c5b217a4356f1c9972a8269
2023-05-30 16:18:03 +08:00
Tao Huang
03e8db0382 uapi/fec-config.h: Fix UAPI compile-test
./usr/include/linux/fec-config.h:14:2: error: unknown type name 'u32'

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I14edf55fe45b52f21bc18fba90f9d434a8882cfa
2023-05-30 16:09:11 +08:00
Tao Huang
9a2fdb9b46 uapi/rk_vcm_head.h: Fix UAPI compile-test
./usr/include/linux/rk_vcm_head.h:88:2: error: unknown type name 's32'
./usr/include/linux/rk_vcm_head.h:111:30: error: field has incomplete type 'struct __kernel_old_timeval'
./usr/include/linux/rk_vcm_head.h:116:23: error: field has incomplete type 'struct old_timeval32'

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I603502aaac87c71de8ae6ad027652de23cdcf73d
2023-05-30 16:09:11 +08:00
Tao Huang
9392fc185f uapi/rk-camera-module.h: Fix UAPI compile-test
./usr/include/linux/rk-camera-module.h:180:2: error: unknown type name 'u8'

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I388d47ea658b5829df148c8b10eb5c466160a0e7
2023-05-30 16:09:11 +08:00
Tao Huang
4100ee9184 uapi/rk-preisp.h: Fix UAPI compile-test
./usr/include/linux/rk-preisp.h:65:2: error: unknown type name 's32'

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ib1812da340c745600b4e2286ca299db2c1922bce
2023-05-30 16:09:11 +08:00
Tao Huang
d2c8cecdbc uapi/rk-isp32-config.h: Fix UAPI compile-test
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Iddda89ca94260056fee99b15c72c0c83cf02a8e1
2023-05-30 16:09:11 +08:00
Tao Huang
36d41c6a18 uapi/rk-isp3-config.h: Fix UAPI compile-test
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I26016e6d1c3dbea0717ea97f80798677ac1b8823
2023-05-30 16:09:11 +08:00
Tao Huang
6c9d8b3eab uapi/rk-ispp-config.h: Fix UAPI compile-test
./usr/include/linux/rk-ispp-config.h:21:43: warning: // comments are not allowed in this language [-Wcomment]
./usr/include/linux/rk-ispp-config.h:132:2: error: unknown type name 'u32'

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I5d9a79af6c1f72a8e969b0664e6b48fbf9e0199f
2023-05-30 16:07:14 +08:00
Tao Huang
97cb4e6b74 uapi/rk-isp1-config.h: Fix UAPI compile-test
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I1bacf9575ded157a7c720472c24dfb32ff59c8e1
2023-05-30 16:06:44 +08:00
Tao Huang
7ea15737d0 uapi/rk-isp21-config.h: Fix UAPI compile-test
Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Id8c9c89b79b621aac379e3f937dfc488772c1b2f
2023-05-30 16:06:44 +08:00
Tao Huang
7e16cc6ce6 uapi/rk-isp2-config.h: Fix UAPI compile-test
./usr/include/linux/rk-isp2-config.h:277:21: error: implicit declaration of function 'BIT' [-Werror,-Wimplicit-function-declaration]
./usr/include/linux/rk-isp2-config.h:288:2: error: unknown type name 'u32'

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I2f98bdcf50638cbe328b310d17d9417b382ab551
2023-05-30 16:06:44 +08:00
Tao Huang
1f70949faa uapi/rkcif-config.h: Fix UAPI compile-test
./usr/include/linux/rkcif-config.h:63:2: error: unknown type name 'u8'

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ic1c8f6c71c7fcaffd3f44ea8c88fcbeba19f3f7d
2023-05-30 16:06:44 +08:00
Tao Huang
1f72923c99 uapi/rk-video-format.h: include types.h
usr/include/linux/rk-video-format.h:10: found __[us]{8,16,32,64} type without #include <linux/types.h>

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I3071683240e04039186c3a1d506835bd732c6716
2023-05-30 16:06:44 +08:00
Tao Huang
35d4f2a5df uapi/rockchip_drm.h: Fix UAPI compile-test
./usr/include/drm/rockchip_drm.h:19:10: fatal error: 'drm/drm_file.h' file not found

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I987b8bb26023e9e7b652962e54b45c24a0231d57
2023-05-30 16:06:44 +08:00
Tao Huang
018299a4ca uapi/dw_hdcp2.h: Fix UAPI compile-test
./usr/include/misc/dw_hdcp2.h:15:1: warning: // comments are not allowed in this language [-Wcomment]

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ib68c8b37acdc7e7cb11abeae15d1bfd27ec945b3
2023-05-30 16:06:44 +08:00
Tao Huang
78e874e69c uapi/rkflash_vendor_storage.h: include types.h
./usr/include/misc/rkflash_vendor_storage.h:11:2: error: unknown type name '__u32'

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: Ia912e65b2f87d2c6bd57eb76019431c4084f6549
2023-05-30 16:06:44 +08:00
XiaoDong Huang
da9a7e29f0 ARM: configs: rockchip: Add rv1106-pm.config
Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
Change-Id: Id8375b10d5c9b240a45e451b0a027d362c7ca06a
2023-05-30 10:41:39 +08:00