Commit Graph

1080022 Commits

Author SHA1 Message Date
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
Shawn Lin
60c9e5240f mmc: dw_mmc: Add normal and idle pinctrl control
normal pinctrl is used for sd working mode. idle pinctrl is
used when the card is added or removed, so pull down the
IO to avoid power leak which makes the card unable to work.

Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Change-Id: I8780b9de735b86918b4d5ba857711e56de740ecf
2023-06-06 09:29:35 +08:00
Sisyphean Zhou
4fa6921109 crypto: rockchip: v2: Fix pointer judgment errors
Change-Id: If13ef9030e42dc88feba351575dd0caa4ea4b66a
Signed-off-by: Sisyphean Zhou <sisyphean.zhou@rock-chips.com>
2023-06-06 09:18:18 +08:00
Qiqi Zhang
c4fc0a5153 input: rockchip_pwm_remotectl: workaround rk3528 IR code reading issue
Change-Id: Ic1cf95c7347324fd5b87e97b8084b7fb2a3d6708
Signed-off-by: Qiqi Zhang <eddy.zhang@rock-chips.com>
2023-06-05 16:54:45 +08:00
Zefa Chen
3852e749f0 media: rockchip: vicap change compact mode by align of width
and it only control with unit and online mode

Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com>
Change-Id: Ibdf6b6969dacdb0f418066594b9c0520d0d9a7fb
2023-06-05 16:54:03 +08:00
Tony Zheng
972d711bd4 arm64: dts: rockchip: rk3308b-amp: Increase the size of AMP reserved memory to 18MB
Signed-off-by: Tony Zheng <tony.zheng@rock-chips.com>
Change-Id: I81a54a11a4b33c3539c760ffc054115e15854dbf
2023-06-05 16:09:46 +08:00
Sandy Huang
82a56746d9 Revert "drm: Not mark crtc state as connectors_changed when a writeback connector attatch to a crtc"
This reverts commit ae488c03ab.

Use the following commit instead:

22fe2c3d386e ("drm/rockchip: vop2: No need for a full modested when the
only writeback connector changed")

Change-Id: If8669d28ebc6c06331beaca588e9842920894a4c
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
2023-06-05 09:46:34 +08:00
Sandy Huang
c7e2a3387e drm/rockchip: vop2: No need for a full modested when the only writeback connector changed
Signed-off-by: Sandy Huang <hjc@rock-chips.com>
Change-Id: I2c1f9e20777de3cb581b4c6678ff4f268cd97522
2023-06-05 09:46:27 +08:00
Algea Cao
e2a24104ee drm/edid: add HF-EEODB support to EDID read and allocation
HDMI 2.1 section 10.3.6 defines an HDMI Forum EDID Extension Override
Data Block, which may contain a different extension count than the base
block claims. Add support for reading more EDID data if available.

Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
Change-Id: Id2c7bd846330ae9ec9547db32e151bbf387e5734
2023-06-05 09:44:54 +08:00
Sugar Zhang
1255f11b25 clk: rockchip: clk-out: Add CLK_IGNORE_UNUSED flag
It's used for compatible for old style mclk reference
which do not use the "mclkout_x".

The clk framework will disable all unused clk after
system boot done. in this situation, it is failed to
output mclk with old style DT, because "mclkout_x"
was disabled by framework.

We add CLK_IGNORE_UNUSED flag to clk-out to allow old
style usage still work well.

Suggest to drop this flag for totally new SDK or SoCs
in the future. at the moment, we still need this flag.

Fixes: b3cfac5e37 ("clk: rockchip: Add support for clk input / output switch")

Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I9d0a6b04637d055bc8beb0a03a630804108d4b28
2023-06-02 16:52:26 +08:00
Weiwen Chen
840f3f259f ARM: configs: add rv1106-nand.config
Change-Id: Ibdc0c656f9a371c90ebf68b35d7274badfc9ba41
Signed-off-by: Weiwen Chen <cww@rock-chips.com>
2023-06-02 15:09:05 +08:00
Yu Qiaowei
ee55fc9efa video: rockchip: rga3: fix compile errors on kernel-6.1
Signed-off-by: Yu Qiaowei <cerf.yu@rock-chips.com>
Change-Id: I3b0de1f1da992975c13f99de7574ff0cd0865e25
2023-06-02 10:58:56 +08:00
Cai Wenzhong
0eee997bed media: i2c: max96712: add rk3588 dcphy param get and set ioctl cmd.
Signed-off-by: Cai Wenzhong <cwz@rock-chips.com>
Change-Id: Ie548dbecfd049b70a19ef1232530bbcc238c75b4
2023-06-02 10:49:49 +08:00
Wangqiang Guo
3f2bd70899 media: rockchip: hdmirx: notify the bound cpu to bl31.
Change-Id: I4354213eb23c734626a7b51ee90feb31d6a66c3e
Signed-off-by: Wangqiang Guo <kay.guo@rock-chips.com>
2023-06-02 10:48:51 +08:00
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